2023-03-25 00:53:39 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
test -n "$VERBOSE" && set -x
|
|
|
|
|
|
|
|
if test -f "$1"/VERSION && test $(cat "$1"/VERSION) = $2; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p "$1"
|
|
|
|
cd "$1"
|
|
|
|
|
|
|
|
tea gum format <<EoMD
|
2023-07-24 23:43:32 +03:00
|
|
|
# downloading OpenLLaMA 3Bv2
|
2023-03-25 00:53:39 +03:00
|
|
|
models will be placed: \`$PWD\`
|
|
|
|
> this may take a a few minutes…
|
|
|
|
EoMD
|
|
|
|
|
2023-07-24 23:43:32 +03:00
|
|
|
tea wget \
|
|
|
|
--continue \
|
|
|
|
--output-document OpenLLaMA-3Bv2.ggml.f16.bin \
|
|
|
|
'https://huggingface.co/SlyEcho/open_llama_3b_v2_ggml'
|
2023-03-25 00:53:39 +03:00
|
|
|
|
2023-07-24 23:43:32 +03:00
|
|
|
tea wget \
|
|
|
|
--continue \
|
|
|
|
'https://huggingface.co/openlm-research/open_llama_3b_v2/resolve/main/tokenizer.model'
|
2023-03-25 00:53:39 +03:00
|
|
|
|
|
|
|
echo $2 > VERSION
|
|
|
|
|
|
|
|
tea gum format "# All done!"
|
|
|
|
echo #spacer
|