From 55625e5cde34a34f475484897c7a50ae9fcc2fe9 Mon Sep 17 00:00:00 2001 From: Henk Date: Wed, 26 Apr 2023 19:31:20 +0200 Subject: [PATCH] Linux Isolation --- commandline-rocm.sh | 2 ++ commandline.sh | 2 ++ install_requirements.sh | 1 + play-rocm.sh | 1 + play.sh | 1 + 5 files changed, 7 insertions(+) diff --git a/commandline-rocm.sh b/commandline-rocm.sh index 5c9a54aa..d34ca445 100755 --- a/commandline-rocm.sh +++ b/commandline-rocm.sh @@ -1 +1,3 @@ +export CONDA_AUTO_ACTIVATE_BASE=false +export PYTHONNOUSERSITE=1 bin/micromamba run -r runtime -n koboldai-rocm bash diff --git a/commandline.sh b/commandline.sh index 72338169..80cf9868 100755 --- a/commandline.sh +++ b/commandline.sh @@ -1 +1,3 @@ +export CONDA_AUTO_ACTIVATE_BASE=false +export PYTHONNOUSERSITE=1 bin/micromamba run -r runtime -n koboldai bash diff --git a/install_requirements.sh b/install_requirements.sh index 9241d5a1..6e37c7e9 100755 --- a/install_requirements.sh +++ b/install_requirements.sh @@ -1,4 +1,5 @@ #!/bin/bash +export PYTHONNOUSERSITE=1 git submodule update --init --recursive if [[ $1 = "cuda" || $1 = "CUDA" ]]; then wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba diff --git a/play-rocm.sh b/play-rocm.sh index 6cf2794a..e0753edc 100755 --- a/play-rocm.sh +++ b/play-rocm.sh @@ -1,4 +1,5 @@ #!/bin/bash +export PYTHONNOUSERSITE=1 if [ ! -f "runtime/envs/koboldai-rocm/bin/python" ]; then ./install_requirements.sh rocm fi diff --git a/play.sh b/play.sh index 10f3c8aa..8ce7b781 100755 --- a/play.sh +++ b/play.sh @@ -1,4 +1,5 @@ #!/bin/bash +export PYTHONNOUSERSITE=1 if [ ! -f "runtime/envs/koboldai/bin/python" ]; then ./install_requirements.sh cuda fi