Skip to main content
A single-turn math agent that solves competition / textbook problems via the AgentFlow protocol. The model emits reasoning followed by \boxed{ANSWER}; the evaluator pulls the boxed value and grades it via mathd + sympy equivalence. This is the no-tool counterpart to math_tool_agent, which uses a calculator tool. Use math for chain-of-thought-only training.

Pattern

Architecture

Install

Datasets

Eval

Verified with gpt-5.4-mini: 100% (10/10) on a smoke run.

Training

For LoRA-only training (the legacy gsm8k_lora use case), set --lora-rank higher and pass --train-dataset gsm8k:

Key code

The evaluator wraps the existing rllm.eval.reward_fns.math.evaluate:

Files

On GitHub

cookbooks/math

Full source, README, and runnable launch scripts