Skill 2.1.3
Design and implement a strategy for fine-tuning agents and models, including data and frequency
Key Concepts
Supervised fine-tuning (SFT) trains on input and ideal output pairs and suits consistent formats, tone and tool-call patterns. Direct preference optimization (DPO) trains on preferred and rejected outputs. Reinforcement fine-tuning (RFT) trains reasoning models with graders on tasks whose results can be scored. Distillation trains a smaller model on a larger model's outputs, often from stored completions, to cut cost and latency for one agent's narrow task.
Training data comes from curated production traces, human-corrected outputs and synthetic examples, with personal data removed and a held-out evaluation set. Frequency follows evidence: retrain when monitoring shows quality drift, when the task definition changes or when a new base model is adopted, and always compare the new model with the current one before deployment.