Skip to content

Commit

Permalink
updated worker script
Browse files Browse the repository at this point in the history
  • Loading branch information
yk committed Mar 16, 2023
1 parent 3270bef commit 3815460
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inference/worker/run_worker_container.sh
Expand Up @@ -8,9 +8,13 @@ function cleanup {
# Set up a trap to catch the SIGINT signal (Ctrl+C) and call the cleanup function
trap cleanup SIGINT

# worker image name
image_name="ghcr.io/laion-ai/open-assistant/oasst-inference-worker-full:latest"

# get visible gpu env variable, default to all
gpus=${CUDA_VISIBLE_DEVICES:-all}

while true; do
docker pull $image_name
docker run --rm --runtime=nvidia --gpus all -e retry_on_error=False $image_name
docker run --rm --runtime=nvidia --gpus=$gpus -e RETRY_ON_ERROR=False $image_name
done

0 comments on commit 3815460

Please sign in to comment.