File size: 522 Bytes
c4f8e4a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/bash
set -e
source .venv-psi/bin/activate
export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-0}
echo "Serving on GPU $CUDA_VISIBLE_DEVICES"
# Accept RUN_DIR and CKPT_STEP as command line arguments
if [ "$#" -ne 2 ]; then
echo "Usage: $0 RUN_DIR CKPT_STEP"
exit 1
fi
RUN_DIR=$1
CKPT_STEP=$2
uv run --active --group psi --group serve serve_psi0 \
--host 0.0.0.0 \
--port 22085 \
--policy=psi0 \
--run-dir=$RUN_DIR \
--ckpt-step=$CKPT_STEP \
--action-exec-horizon=24 \
--rtc
|