mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix llama.cpp model download
This commit is contained in:
parent
2b06942c62
commit
a40a0d8fc8
1 changed files with 14 additions and 8 deletions
|
@ -15,14 +15,19 @@ if [ ! -f "$MODEL_DIR/$MODEL_FILENAME" ]; then
|
|||
EoMD
|
||||
echo #spacer
|
||||
mkdir -p "$MODEL_DIR"
|
||||
aria2c "$MODEL_URL" --dir="$MODEL_DIR"
|
||||
aria2c "$MODEL_URL" --dir="$MODEL_DIR" --out="$MODEL_FILENAME"
|
||||
gum format "# All done!"
|
||||
echo #spacer
|
||||
fi
|
||||
|
||||
D="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
exec "$D"/bin/llama.cpp \
|
||||
if [ $# -gt 0 ]; then
|
||||
exec "$D"/bin/llama.cpp \
|
||||
--model "$MODEL_DIR/$MODEL_FILENAME" \
|
||||
"$@"
|
||||
else
|
||||
exec "$D"/bin/llama.cpp \
|
||||
--model "$MODEL_DIR/$MODEL_FILENAME" \
|
||||
-n 256 \
|
||||
--repeat_penalty 1.0 \
|
||||
|
@ -30,3 +35,4 @@ exec "$D"/bin/llama.cpp \
|
|||
--interactive \
|
||||
--reverse-prompt "User:" \
|
||||
--file "$D"/share/prompts/chat-with-bob.txt
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue