What problem does it solve?
This Skill provides practical, end-to-end guidance for post-training and reinforcement-learning fine-tuning so you can align a language model with instructions and human preferences.
Core Features & Use Cases
- SFT (Supervised Fine-Tuning): Train instruction-following behavior using prompt-completion datasets for baseline alignment.
- Preference Alignment (DPO): Optimize directly from chosen/rejected pairs to improve helpfulness and reduce undesirable outputs without training a separate reward model.
- Reinforcement Learning (PPO / GRPO): Use reward modeling (PPO) or online group comparisons (GRPO) to optimize outputs with stronger feedback signals and better reward-driven behavior.
- Use case: Train an initially instruct-tuned model with SFT, optionally learn a reward model from preference data, then run PPO or GRPO to improve answer quality and format compliance for a domain like tutoring, summarization, or structured reasoning.
Quick Start
Use the TRL-based SFT workflow to fine-tune a base model into an instruction-following model, then switch to DPO for preference alignment if you have chosen/rejected examples.