Files
prime-rl/configs/math_python
20f6449e1f
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
refactor: rename rollouts_per_example to group_size (#2599)
Renames the orchestrator-level, [orchestrator.eval] group-level, and per-env
[[orchestrator.eval.env]] fields. The old name still parses as a validation
alias in both TOML and CLI, so existing configs keep working unchanged.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 16:47:02 -07:00
..

math-python

Setup

CLone verifiers

cd ~ && curl -sSL https://raw.githubusercontent.com/PrimeIntellect-ai/verifiers/main/scripts/install.sh | bash && cd -

Install the environment as local packages

uv pip install -e ~/verifiers/environments/math_python

This will automatically install the environment, and a pinned verifiers commit (71006c) which includes necessary changes to the PythonEnv.

Eval

Get a quick vibe-check of the model

vllm serve Qwen/Qwen3-4B-Instruct-2507 --enable-auto-tool-choice --tool-call-parser hermes --max-model-len 8192
uv run --no-sync vf-eval math-python -n 16 -r 1 -c -1 -v -m Qwen/Qwen3-4B-Instruct-2507 -b http://localhost:8000/v1 -a '{"dataset_name": "PrimeIntellect/Hendrycks-Math", "dataset_subset": "default"}' -t 512

RL

Again, make sure to have installed the environment as local packages from verifiers

uv pip install -e ~/verifiers/environments/math_python

Then, run RL in debug mode (small batch size, limited turns, 2 GPUs, etc.)

uv run --no-sync rl @ configs/math_python/math_python.toml --log.level debug