mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-14 02:28:06 -07:00
parent
33e8cac5b8
commit
79fa54008b
1 changed files with 7 additions and 7 deletions
14
launch.sh
14
launch.sh
|
@ -7,13 +7,13 @@ if [ ! -f config.env ]; then
|
|||
fi
|
||||
source config.env
|
||||
|
||||
# On newer versions, docker-compose is docker compose
|
||||
DOCKER_COMPOSE=$(command -v docker-compose)
|
||||
if [ -z "$DOCKER_COMPOSE" ]; then
|
||||
DOCKER_COMPOSE="docker compose"
|
||||
fi
|
||||
|
||||
export NUM_GPUS=${NUM_GPUS}
|
||||
export MODEL_DIR="${MODEL_DIR}"/"${MODEL}-${NUM_GPUS}gpu"
|
||||
export GPUS=$(seq 0 $(( NUM_GPUS - 1 )) | paste -sd ',')
|
||||
$DOCKER_COMPOSE up
|
||||
|
||||
# On newer versions, docker-compose is docker compose
|
||||
if command -v docker-compose > /dev/null; then
|
||||
docker compose up
|
||||
else
|
||||
docker-compose up
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue