#!/usr/bin/env bash set -euo pipefail workspace="/mnt/pvc/users/simon/agentptb/runs/sol-max-s1/workspace" [[ -f "$workspace/submission/model/STABLE" ]] if curl --fail --silent http://127.0.0.1:8200/health >/dev/null 2>&1; then echo "port 8200 already has a model server" >&2 exit 1 fi cd /root/work/a/prime-rl exec env \ CUDA_VISIBLE_DEVICES=4,5,6,7 \ TMPDIR=/tmp/agentptb-s1 \ PYTHONUNBUFFERED=1 \ uv run --no-sync inference @ "$workspace/configs/inference-selected.toml"