Skip to main content
Group relative policy optimization samples several responses for each prompt, scores them with the environment’s grader, and moves the model toward the responses that score above their group’s mean. It fits when a grader, in code or with an open-weight judge, can score an output, including on multi-turn and tool-use tasks.

Prepare the Environment

GRPO trains on a training environment: a set of tasks and a grader.
The support_escalation grader rewards an escalation with the right category, or a resolution with the right facts from the knowledge base. The starting model must earn a reward on some tasks. When it scores near 0, run SFT first.

Start a Run

Parameters