mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
update
This commit is contained in:
parent
14be7139c1
commit
e05a3f0fbc
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
## Untested script
|
||||
## Untested Linux shell script
|
||||
#
|
||||
FILENAME="../models/alpaca"
|
||||
TOKENIZER="../models/alpaca/alpaca_tokenizer.model"
|
||||
|
16
scripts/convert_model_with_tokenizer.sh
Normal file
16
scripts/convert_model_with_tokenizer.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
## untested Linux shell script
|
||||
#
|
||||
FILENAME="../models/$1"
|
||||
NEWNAME="../models/$1.original"
|
||||
|
||||
#echo %modelPath%
|
||||
echo Converting the model to the new format...
|
||||
#if not exist tmp\llama.cpp git clone https://github.com/ggerganov/llama.cpp.git tmp\llama.cpp
|
||||
if [! -e tmp\llama.cpp]; then $(git clone https://github.com/ggerganov/llama.cpp.git tmp\llama.cpp)
|
||||
cd tmp\llama.cpp
|
||||
cd ../..
|
||||
#move /y "%filename%" "%newname%"
|
||||
mv -f $FILENAME $NEWNAME
|
||||
echo Converting ...
|
||||
python -c tmp\llama.cpp\convert.py \"$NEWNAME\" --outfile \"$FILENAME\" --vocab-dir $2
|
Loading…
Reference in New Issue
Block a user