What problem does it solve? Aligning language models with human preferences requires complex post-training pipelines involving supervised fine-tuning, reward modeling, and reinforcement learning, which are difficult to configure and debug from scratch. ## Core Features & Use Cases - Multiple Training Methods: Supports SFT for instruction tuning, DPO for preference alignment, PPO and GRPO for reinforcement learning, and reward model training, all through HuggingFace TRL trainers. - Guided Workflows: Provides step-by-step checklists for full RLHF pipelines, DPO alignment, and memory-efficient GRPO training with ready-to-adapt code. - Deep References & Templates: Includes detailed guides on DPO loss variants, GRPO reward function design, reward modeling, and a production-ready GRPO training script. - Use Case: A team wants to align a Qwen model with human feedback. They run SFT on instruction data, train a reward model on preference pairs, then apply PPO, following the provided pipeline and hyperparameter guidance. ## Quick Start Ask the assistant to fine-tune a Qwen model with DPO on a preference dataset using TRL and it will generate the training configuration and code.