What problem does it solve? Building reinforcement learning training pipelines for LLMs typically requires wiring together distributed training, inference, and weight synchronization infrastructure by hand. This Skill provides guidance for using torchforge, Meta's PyTorch-native RL library, so you can focus on algorithm design while the framework handles distributed coordination. ## Core Features & Use Cases - GRPO and SFT Training Workflows: Step-by-step configuration and launch instructions for math reasoning training with group-relative advantages and supervised fine-tuning. - Custom Loss Functions: Implement new RL algorithms (GRPO, DAPO, SAPO variants) in roughly 100 lines using built-in loss classes like SimpleGRPOLoss and ReinforceLoss. - Distributed Scaling: Configure multi-GPU and multi-node training with Monarch actors, TorchTitan FSDP parallelism, and vLLM inference. - Use Case: Train a Qwen2.5-7B model on GSM8K with GRPO across 3 GPUs by defining a YAML config, a math reward function, and launching with a single command. ## Quick Start Ask the AI to help you set up a GRPO training run with torchforge for a math reasoning model, including the YAML configuration and reward function.