How do you run GRPO with TRL or Unsloth on a cloud GPU?
A minimal TRL GRPOTrainer script, the Unsloth swap for one GPU, GPU sizing by model size, and checkpoint settings that survive a reclaimed GPU.
A minimal TRL GRPOTrainer script, the Unsloth swap for one GPU, GPU sizing by model size, and checkpoint settings that survive a reclaimed GPU.
Start with DPO: same preference labels, no reward model or sampling loop. Switch to RLHF with PPO when you need online exploration. Full cost math.
Agent RL needs GPUs for generation and training plus one isolated sandbox per live rollout. Cost math showing GPU wait time, not sandboxes, drives the bill.
Pick by the signal you have: preference pairs mean DPO, a checker you can run in code means GRPO, a learned reward model means PPO. Memory and cost math inside.
GRPO trains an LLM by scoring groups of sampled answers against each other, with no critic model. How it works, memory math for 8B, and how to run it.