GRPO & RLVR Training
Trains LLM reasoning and verifiable task capabilities using Group Relative Policy Optimization (GRPO) and Reinforcement Learning from Verifiable Rewards (RLVR).
This skill guides the implementation of Reinforcement Learning from Verifiable Rewards (RLVR) using TRL's GRPOTrainer and vLLM-backed generation. It provides production-ready training recipes, composite reward functions (combining format and correctness), pre-flight reward inspection gates to prevent reward-hacking, and failure-mode routing to specialized GRPO variants like DAPO, Dr.GRPO, and GSPO. Ideal for fine-tuning open-source language models on algorithmically checkable tasks such as math problem solving, code generation, schema validation, and structured tool use.
主な機能
01Composite reward function designs combining formatting, schemas, and execution correctness
02Failure mode diagnosis and variant selection for DAPO, Dr.GRPO, and GSPO (MoE models)
0339,277 GitHub stars
04Pre-flight reward inspection protocol across 50–100 samples to prevent reward hacking
05Reference TRL GRPOTrainer configuration with vLLM colocate and server modes
06Hardware memory sizing, rollout batch optimization, and gradient accumulation tuning
ユースケース
01Optimizing code generation models against automated unit test and parser feedback
02Fine-tuning open-source LLMs on math reasoning benchmarks with ground-truth verification
03Training tool-calling and structured JSON output agents using schema validator rewards