lollms-webui/scripts/convert model.bat

13 lines
384 B
Batchfile
Raw Normal View History

2023-04-14 20:16:25 +00:00
@echo off
@echo off
2023-04-17 00:31:43 +00:00
set filename=../models/%1
set newname=../models/%1.original
2023-04-14 20:16:25 +00:00
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
2023-04-14 21:15:54 +00:00
cd ../..
2023-04-16 21:22:09 +00:00
move /y "%filename%" "%newname%"
2023-04-14 21:15:54 +00:00
echo Converting ...
2023-04-16 23:19:42 +00:00
python tmp\llama.cpp\convert.py "%newname%" --outfile "%filename%"