Download scripts/deploy/serve_psi0_simple.sh from Tinghong-Ye22/code-Psi0: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/Tinghong-Ye22/code-Psi0/resolve/main/scripts/deploy/serve_psi0_simple.sh
- Command line
-
hf download hf://Tinghong-Ye22/code-Psi0/scripts/deploy/serve_psi0_simple.sh
-
curl -L -o serve_psi0_simple.sh https://huggingface.co/Tinghong-Ye22/code-Psi0/resolve/main/scripts/deploy/serve_psi0_simple.sh
522 Bytes
| 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 | |