Linux Installer Improvements
This commit is contained in:
parent
9f7c9c4b9e
commit
a3dc188c8f
|
@ -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 $*
|
||||
|
|
Loading…
Reference in New Issue