2023-05-16 13:45:41 +00:00
|
|
|
#!/bin/bash
|
2023-05-16 14:00:07 +00:00
|
|
|
## Untested Linux shell script
|
2023-05-16 13:45:41 +00:00
|
|
|
#
|
|
|
|
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 ...
|
2023-08-26 01:07:31 +00:00
|
|
|
python -c tmp\llama.cpp\convert-lollms-to-ggml.py \"$FILENAME\" \"$TOKENIZER\"
|