mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-14 10:37:43 -07:00
parent
89fdf6a727
commit
9e7fb28b65
1 changed files with 7 additions and 1 deletions
|
@ -7,7 +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
|
||||
$DOCKER_COMPOSE up
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue