lollms-webui/scripts/convert model.bat

13 lines
384 B
Batchfile
Raw Normal View History

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