Skip to content

Commit acc9f64

Browse files
rootroot
authored andcommitted
.sh script V1
1 parent 0ca814e commit acc9f64

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,8 @@ hipblas.dll
115115
koboldcpp_hipblas.so
116116
koboldcpp_hipblas.dll
117117

118+
bin/
119+
conda/
120+
118121
# Jetbrains idea folder
119122
.idea/

environment.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: koboldcpp
2+
channels:
3+
- nvidia/label/cuda-11.8.0
4+
- conda-forge
5+
- defaults
6+
dependencies:
7+
- cuda-nvcc=11.8
8+
- cuda-libraries-dev=11.8
9+
- cxx-compiler
10+
- gxx=10
11+
- pip
12+
- git=2.35.1
13+
- libopenblas
14+
- openblas
15+
- clblast
16+
- ninja
17+
- make
18+
- packaging
19+
- pip:
20+
- customtkinter

koboldcpp.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/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
3+
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+
fi
8+
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 $*

0 commit comments

Comments
 (0)