Compare commits

...

2 Commits

Author SHA1 Message Date
henk717 b432d55d99
Merge pull request #291 from Relys/patch-1
Update install_requirements.sh
2023-04-20 14:03:35 +02:00
Syler Clayton 860b697a70
Update install_requirements.sh
Made parameter case insensitive.
2023-04-15 09:51:45 -07:00
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash
if [[ $1 = "cuda" ]]; then
if [[ $1 = "cuda" ]||[ $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
if [[ $1 = "rocm" ]||[ $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