Skip to content

Commit bc46195

Browse files
committed
koboldcpp.sh dist generator
1 parent 76cfb2b commit bc46195

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

environment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- ninja
1717
- make
1818
- packaging
19+
- pyinstaller
1920
- pocl
2021
- pip:
2122
- customtkinter

koboldcpp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ bin/micromamba run -r conda -n linux make LLAMA_OPENBLAS=1 LLAMA_CLBLAST=1 LLAMA
1313

1414
if [[ $1 == "rebuild" ]]; then
1515
echo Rebuild complete, you can now try to launch Koboldcpp.
16+
elif [[ $1 == "dist" ]]; then
17+
bin/micromamba run -r conda -n linux pyinstaller --noconfirm --onefile --collect-all customtkinter --add-data='./koboldcpp_default.so:.' --add-data='./koboldcpp_cublas.so:.' --add-data='./koboldcpp_openblas.so:.' --add-data='./koboldcpp_clblast.so:.' --add-data='./koboldcpp_clblast_noavx2.so:.' --clean --console koboldcpp.py -n "koboldcpp.bin"
1618
else
1719
bin/micromamba run -r conda -n linux python koboldcpp.py $*
1820
fi

0 commit comments

Comments
 (0)