2023-11-28 08:01:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
##
|
|
|
|
## A bash script wrapper that runs the exllama server with conda
|
|
|
|
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
|
|
|
|
# Activate conda environment
|
|
|
|
# if source is available use it, or use conda
|
|
|
|
#
|
|
|
|
if [ -f /opt/conda/bin/activate ]; then
|
2023-12-21 07:35:15 +00:00
|
|
|
source activate transformers
|
2023-11-28 08:01:46 +00:00
|
|
|
else
|
|
|
|
eval "$(conda shell.bash hook)"
|
2023-12-21 07:35:15 +00:00
|
|
|
conda activate transformers
|
2023-11-28 08:01:46 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# get the directory where the bash script is located
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
|
|
|
python $DIR/backend_petals.py $@
|