mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
18 lines
367 B
Plaintext
18 lines
367 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
test -n "$VERBOSE" && set -x
|
||
|
|
||
|
MODEL_NAME="base"
|
||
|
MODEL_DIR="$1"
|
||
|
VERSION="$2"
|
||
|
|
||
|
D="$(cd "$(dirname "$0")"/../tbin && pwd)"
|
||
|
|
||
|
mkdir -p "$MODEL_DIR"
|
||
|
|
||
|
# we have to move the script as it downloads relative to itself
|
||
|
cp "$D/download-ggml-model.sh" "$MODEL_DIR"
|
||
|
bash "$MODEL_DIR/download-ggml-model.sh" "$MODEL_NAME.en"
|
||
|
rm "$MODEL_DIR/download-ggml-model.sh"
|