What problem does it solve?
This Skill helps you train reinforcement learning models in a PyTorch-native, scalable way by separating RL algorithm code from distributed training and inference infrastructure.
Core Features & Use Cases
- PyTorch-native agentic RL architecture: Use torchforge to keep algorithms focused while Monarch and TorchTitan handle distributed coordination and training.
- Async RL pipeline with vLLM generation: Run an asynchronous loop where a generator (vLLM) produces rollouts, a reference model computes KL baselines, and trainer actors optimize updates.
- Built-in training objectives and easy customization: Apply GRPO-style training workflows (plus other loss variants) and swap in custom loss functions or rewards.
Use cases: training reasoning models with group-relative advantages (GRPO) on math datasets (e.g., GSM8K/MATH), experimenting with new RL loss functions, and scaling multi-GPU distributed runs using actor-based services.
Quick Start
Use the torchforge-rl-training skill to launch GRPO math training with your chosen config by running: python -m apps.grpo.main --config config/grpo_math.yaml.