Skip to content

Commit 76cfb2b

Browse files
committed
koboldcpp.sh polish
1 parent acc9f64 commit 76cfb2b

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

environment.yaml

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

koboldcpp.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
#!/bin/bash
2-
wget -qO- https://anaconda.org/conda-forge/micromamba/1.5.3/download/linux-64/micromamba-1.5.3-0.tar.bz2 | tar -xvj bin/micromamba
2+
if [ ! -f "bin/micromamba" ]; then
3+
wget -qO- https://anaconda.org/conda-forge/micromamba/1.5.3/download/linux-64/micromamba-1.5.3-0.tar.bz2 | tar -xvj bin/micromamba
4+
fi
5+
36
if [[ ! -f "conda/envs/linux/bin/python" || $1 == "rebuild" ]]; then
4-
bin/micromamba create --no-shortcuts -r conda -n linux -f environment.yaml -y
5-
bin/micromamba create --no-shortcuts -r conda -n linux -f environment.yaml -y
6-
bin/micromamba run -r conda -n linux make clean
7+
bin/micromamba create --no-shortcuts -r conda -n linux -f environment.yaml -y
8+
bin/micromamba create --no-shortcuts -r conda -n linux -f environment.yaml -y
9+
bin/micromamba run -r conda -n linux make clean
710
fi
11+
812
bin/micromamba run -r conda -n linux make LLAMA_OPENBLAS=1 LLAMA_CLBLAST=1 LLAMA_CUBLAS=1 LLAMA_PORTABLE=1
9-
bin/micromamba run -r conda -n linux python koboldcpp.py $*
13+
14+
if [[ $1 == "rebuild" ]]; then
15+
echo Rebuild complete, you can now try to launch Koboldcpp.
16+
else
17+
bin/micromamba run -r conda -n linux python koboldcpp.py $*
18+
fi

0 commit comments

Comments
 (0)