Skip to content

Commit

Permalink
conda: add conda to PATH
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler committed Nov 2, 2023
1 parent 3676662 commit 14ba64c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ COPY --from=builder /build/local-ai ./
COPY --from=builder /build/backend-assets/grpc/stablediffusion ./backend-assets/grpc/stablediffusion

RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
make prepare-extra-conda-environments \
PATH=$PATH:/opt/conda/bin make prepare-extra-conda-environments \
; fi

# Copy VALLE-X as it's not a real "lib"
Expand Down
4 changes: 3 additions & 1 deletion extra/grpc/autogptq/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
##
## A bash script wrapper that runs the autogptq server with conda

PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate autogptq

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/autogptq.py
python $DIR/autogptq.py
4 changes: 2 additions & 2 deletions extra/grpc/bark/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
##
## A bash script wrapper that runs the ttsbark server with conda

PATH=$PATH:/opt/conda/bin
# Activate conda environment
source activate ttsbark

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/ttsbark.py
python $DIR/ttsbark.py
4 changes: 3 additions & 1 deletion extra/grpc/diffusers/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
##
## A bash script wrapper that runs the diffusers server with conda

PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate diffusers

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/backend_diffusers.py
python $DIR/backend_diffusers.py
4 changes: 3 additions & 1 deletion extra/grpc/exllama/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
##
## A bash script wrapper that runs the exllama server with conda

PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate exllama

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/exllama.py
python $DIR/exllama.py
4 changes: 3 additions & 1 deletion extra/grpc/huggingface/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
##
## A bash script wrapper that runs the huggingface server with conda

PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate huggingface

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/huggingface.py
python $DIR/huggingface.py
3 changes: 2 additions & 1 deletion extra/grpc/vall-e-x/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
##
## A bash script wrapper that runs the ttsvalle server with conda
PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate ttsvalle

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/ttvalle.py
python $DIR/ttvalle.py
4 changes: 3 additions & 1 deletion extra/grpc/vllm/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
##
## A bash script wrapper that runs the diffusers server with conda

PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate vllm

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/backend_vllm.py
python $DIR/backend_vllm.py

0 comments on commit 14ba64c

Please sign in to comment.