New Linux Runtime

This commit is contained in:
henk717 2022-03-20 00:00:21 +01:00
parent a7f652f293
commit f1487a4551
8 changed files with 17 additions and 7 deletions

2
.gitignore vendored
View File

@ -9,6 +9,8 @@ stories
/.project
*.bak
miniconda3
runtime
bin
*.settings
__pycache__
*.log

1
commandline-rocm.sh Normal file
View File

@ -0,0 +1 @@
bin/micromamba run -r runtime -n koboldai-rocm bash

1
commandline.sh Normal file
View File

@ -0,0 +1 @@
bin/micromamba run -r runtime -n koboldai bash

4
docker-rocm.sh Normal file
View File

@ -0,0 +1,4 @@
cd docker-rocm
xhost +local:docker
cp ../environments/rocm.yml env.yml
docker-compose run --service-ports koboldai bash -c "cd /content && python3 aiserver.py $*"

View File

@ -15,9 +15,9 @@ dependencies:
- protobuf
- pip:
- --find-links https://download.pytorch.org/whl/rocm4.2/torch_stable.html
- torch==1.11.*
- torchvision==0.11.1
- torch==1.10.*
- torchvision
- flask-cloudflared
- flask-ngrok
- lupa==1.10
- transformers>=4.17
- transformers>=4.17

View File

@ -1,4 +1,3 @@
cd docker-rocm
xhost +local:docker
cp ../environments/rocm.yml env.yml
docker-compose run --service-ports koboldai bash -c "cd /content && python3 aiserver.py $*"
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
bin/micromamba run -r runtime -n koboldai-rocm python aiserver.py

3
play.sh Normal file
View File

@ -0,0 +1,3 @@
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
bin/micromamba run -r runtime -n koboldai python aiserver.py