pantry/projects/github.com/antimatter15/alpaca.cpp/alpaca.cpp

20 lines
396 B
C++
Raw Normal View History

2023-03-28 15:41:23 +03:00
#!/bin/sh
set -e
test -n "$VERBOSE" && set -x
D="$(cd "$(dirname "$0")"/.. && pwd)"
VERSION="$(basename "$D")"
MODEL_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/models/alpaca-LoRA"
export PATH="$D/tbin:$PATH"
alpaca.cpp-fetch-model "$MODEL_DIR" "$VERSION"
2023-03-28 22:09:49 +03:00
if test "$1" != '--fetch'; then
exec "$D"/tbin/alpaca.cpp \
--color \
--model "$MODEL_DIR"/ggml-alpaca-7b-q4.bin \
"$@"
fi