From d5fe043d76502dad0c5d7e48f99ae557e6937188 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 28 Mar 2023 15:09:49 -0400 Subject: [PATCH] Allow `alpaca.cpp --fetch` --- projects/github.com/antimatter15/alpaca.cpp/alpaca.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/projects/github.com/antimatter15/alpaca.cpp/alpaca.cpp b/projects/github.com/antimatter15/alpaca.cpp/alpaca.cpp index b05aad2a..8b2cff57 100755 --- a/projects/github.com/antimatter15/alpaca.cpp/alpaca.cpp +++ b/projects/github.com/antimatter15/alpaca.cpp/alpaca.cpp @@ -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