mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-10 12:19:58 +00:00
shell script
This commit is contained in:
parent
f360884786
commit
14be7139c1
13
scripts/convert_model_ggml.sh
Normal file
13
scripts/convert_model_ggml.sh
Normal file
@ -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\"
|
Loading…
x
Reference in New Issue
Block a user