Download harness/scripts/run_rl.sh from agentic-ptb/opus-max-record: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/agentic-ptb/opus-max-record/resolve/main/harness/scripts/run_rl.sh
- Command line
-
hf download hf://agentic-ptb/opus-max-record/harness/scripts/run_rl.sh
-
curl -L -o run_rl.sh https://huggingface.co/agentic-ptb/opus-max-record/resolve/main/harness/scripts/run_rl.sh
1.13 kB
| set -uo pipefail | |
| export PRIME_API_KEY="$(cat "$AGENTPTB_PRIME_KEY_FILE")" | |
| export TMPDIR=/var/lib/agentptb-cache/a/tmp | |
| export PYTHONPATH="/mnt/pvc/users/simon/agentptb/runs/a-opus-max/workspace/pkgs${PYTHONPATH:+:$PYTHONPATH}" | |
| export CUDA_VISIBLE_DEVICES=${RL_GPUS:-2,3} | |
| export WANDB_MODE=disabled | |
| # Installs the render-parity patch in EVERY process this launcher spawns (pkgs/sitecustomize.py | |
| # reads it). It has to be process-wide: the renderer is built in the orchestrator, the harness is | |
| # imported in the env server. Evaluation never sets this, so eval is untouched. | |
| export VF_RENDER_PARITY=1 | |
| export VLLM_ENGINE_READY_TIMEOUT_S=2400 | |
| # /app holds a DIFFERENT prime-rl build: its orchestrator schema disagrees with this one | |
| # (max_inflight_rollouts vs max_inflight_episodes, train.env vs train.source) and its verifiers | |
| # has no broker runtime at all. The default PATH puts /app/.venv first, so the launcher spawns | |
| # its subprocesses from that build and the generated config fails to validate. Put this venv first. | |
| export PATH="/root/work/a/prime-rl/.venv/bin:$PATH" | |
| cd /root/work/a/prime-rl | |
| exec .venv/bin/rl @ "$@" | |