mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
added a convert script with tokenizer
This commit is contained in:
parent
512e089b17
commit
8f5326bd68
13
scripts/convert model_with_tokenizer.bat
Normal file
13
scripts/convert model_with_tokenizer.bat
Normal file
@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
@echo off
|
||||
set filename=../models/%1
|
||||
set 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
|
||||
cd tmp\llama.cpp
|
||||
cd ../..
|
||||
move /y "%filename%" "%newname%"
|
||||
echo Converting ...
|
||||
python tmp\llama.cpp\convert.py "%newname%" --outfile "%filename%" --vocab-dir %2
|
Loading…
Reference in New Issue
Block a user