Files
prime-rl/configs/math_python
d2718f5f65
Release / Push CUDA image to Docker (push) Canceled after 0s
chore: rename deprecated orchestrator config keys (#2327)
Rename '[orchestrator.sampling]' -> '[orchestrator.train.sampling]',
'[[orchestrator.env]]' -> '[[orchestrator.train.env]]', and
'max_tokens' -> 'max_completion_tokens' across all configs to remove
reliance on the deprecated auto-translation.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 13:08:35 -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