grpo-rl-training
Installation
SKILL.md
GRPO/RL Training with TRL
Expert guidance for Group Relative Policy Optimization (GRPO) using the TRL library. Battle-tested patterns for fine-tuning language models with custom reward functions.
When to Use
- Teaching a model to follow specific output formats (JSON, structured reasoning)
- Improving accuracy on math, coding, or reasoning tasks
- Custom task-specific behavior without labeled datasets
- Distilling reasoning capabilities from larger models
Setup
pip install transformers>=4.47.0 trl>=0.14.0 datasets>=3.2.0 peft>=0.14.0 torch accelerate