Allow alpaca.cpp --fetch

This commit is contained in:
Max Howell 2023-03-28 15:09:49 -04:00
parent 96857e732b
commit d5fe043d76
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC

View file

@ -11,7 +11,9 @@ export PATH="$D/tbin:$PATH"
alpaca.cpp-fetch-model "$MODEL_DIR" "$VERSION"
exec "$D"/tbin/alpaca.cpp \
--color \
--model "$MODEL_DIR"/ggml-alpaca-7b-q4.bin \
"$@"
if test "$1" != '--fetch'; then
exec "$D"/tbin/alpaca.cpp \
--color \
--model "$MODEL_DIR"/ggml-alpaca-7b-q4.bin \
"$@"
fi