Reinforcement learning for LLMs: GRPO, verifiable rewards and environments
Published
Reinforcement learning (RL) trains a model by letting it attempt tasks, scoring each attempt and reinforcing what scored well. For language models it has become the main way to improve reasoning, coding and agent behaviour. Methods such as GRPO and reinforcement fine-tuning let a team train against rewards it defines, instead of only copying examples. This page explains how it works and what a project needs.

RackShore makes introductions to post-training teams and GPU providers. You contract with them directly. Nothing on this page is an offer or a quote.
How RL post-training works
- Sample. The model generates several attempts for each prompt.
- Score. A reward function grades each attempt: tests pass or fail, an answer matches, a judge scores it against a rubric, or an environment reports success.
- Update. The model is pushed towards the attempts that scored above the group's average and away from the rest.
- Repeat. New attempts come from the updated model, so the data is always on-policy.
The quality of the reward decides everything. A reward the model can satisfy without doing the task, known as reward hacking, produces a model that games the grader.
Rewards you can use
| Reward type | Examples | Notes |
|---|---|---|
| Verifiable | Unit tests for code, exact answers in maths, schema validation, SQL that returns the right rows | The most reliable signal; start here if your task allows it |
| Rubric or AI judge | A strong model scores answers against written criteria | Flexible; check the judge against human labels |
| Environment | An agent completes a task in a browser, terminal, API sandbox or simulated workflow | Closest to real use; needs engineering to build and reset environments |
| Preference model | A reward model trained on human comparisons | The classic RLHF setup |
GRPO and related methods
GRPO (group relative policy optimization) scores a group of attempts for the same prompt and compares each attempt with the group's average, so it needs no separate value model. That makes it lighter than PPO and well suited to verifiable rewards. Variants adjust how attempts are sampled, how long responses are treated and how far the model may drift from its starting point. A good team chooses based on your task, model size and reward, not on the newest name.
What to prepare
- A starting model that can already attempt the task, usually after supervised fine-tuning.
- Prompts or tasks at the right difficulty. If the model always fails or always succeeds, it learns nothing.
- A reward: tests, checkers, a rubric, or an environment the model can act in.
- Held-out tasks for evaluation, plus checks that general skills have not regressed.
- Traces from production, if you have them. Real failures make the best next round of training tasks.
Compute
RL is generation-heavy: most of the time goes on sampling attempts, not on weight updates. Runs typically pair a training cluster with fast inference for rollouts, and agent environments add CPU and sandbox capacity. Long reasoning traces and larger models push this to several connected nodes of H200, B200 or B300 GPUs. Teams size it once they see the task and model.
Next step
Tell us the task, how success can be checked and the model you are starting from. We reply within 24 hours and introduce you to a team that runs RL post-training, or to GPU capacity if you have your own training stack.
Planning a post-training project?
Tell us the model and the goal. We reply within 24 hours.