mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Linux Installer Improvements
This commit is contained in:
15
install_requirements.sh
Executable file
15
install_requirements.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
if [[ $1 = "cuda" ]]; then
|
||||
wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
|
||||
bin/micromamba create -f environments/huggingface.yml -r runtime -n koboldai -y
|
||||
# Weird micromamba bug causes it to fail the first time, running it twice just to be safe, the second time is much faster
|
||||
bin/micromamba create -f environments/huggingface.yml -r runtime -n koboldai -y
|
||||
exit
|
||||
fi
|
||||
if [[ $1 = "rocm" ]]; then
|
||||
wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
|
||||
bin/micromamba create -f environments/rocm.yml -r runtime -n koboldai-rocm -y
|
||||
# Weird micromamba bug causes it to fail the first time, running it twice just to be safe, the second time is much faster
|
||||
bin/micromamba create -f environments/rocm.yml -r runtime -n koboldai-rocm -y
|
||||
exit
|
||||
fi
|
||||
echo Please specify either CUDA or ROCM
|
@@ -1,3 +1,4 @@
|
||||
wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
|
||||
bin/micromamba create -f environments/rocm.yml -r runtime -n koboldai-rocm -y
|
||||
if [ ! -f "runtime/envs/koboldai-rocm/bin/python" ]; then
|
||||
source ./install_requirements.sh rocm
|
||||
fi
|
||||
bin/micromamba run -r runtime -n koboldai-rocm python aiserver.py $*
|
||||
|
5
play.sh
5
play.sh
@@ -1,3 +1,4 @@
|
||||
wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
|
||||
bin/micromamba create -f environments/huggingface.yml -r runtime -n koboldai -y
|
||||
if [ ! -f "runtime/envs/koboldai/bin/python" ]; then
|
||||
source ./install_requirements.sh cuda
|
||||
fi
|
||||
bin/micromamba run -r runtime -n koboldai python aiserver.py $*
|
||||
|
Reference in New Issue
Block a user