From 14be7139c1025bc12b43aae8ae21559efe5ac585 Mon Sep 17 00:00:00 2001 From: Tom Kocourek Date: Tue, 16 May 2023 09:45:41 -0400 Subject: [PATCH] shell script --- scripts/convert_model_ggml.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/convert_model_ggml.sh diff --git a/scripts/convert_model_ggml.sh b/scripts/convert_model_ggml.sh new file mode 100644 index 00000000..71e80027 --- /dev/null +++ b/scripts/convert_model_ggml.sh @@ -0,0 +1,13 @@ +#!/bin/bash +## Untested script +# +FILENAME="../models/alpaca" +TOKENIZER="../models/alpaca/alpaca_tokenizer.model" +# echo %modelPath% +echo Converting the model to the new format... +if [! -e tmp\llama.cpp]; then $(git clone https://github.com/ggerganov/llama.cpp.git tmp\llama.cpp) +cd tmp\llama.cpp +$(git checkout 6c248707f51c8a50f7792e7f7787ec481881db88) +cd ../.. +echo Converting ... +python -c tmp\llama.cpp\convert-gpt4all-to-ggml.py \"$FILENAME\" \"$TOKENIZER\" \ No newline at end of file