Advanced Fine-Tuning and Model Customization
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Operationalizing Machine Learning and Generative AI Solutions premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Fine-tune for behavior; use RAG for changing facts
- SFT, DPO, and RFT: the three tuning methods
- Training data: JSONL schemas and file rules
- Synthetic data: the Simulator and distillation
- Hyperparameters, metrics, and spotting overfitting
- Deploying a fine-tuned model: tiers and cost
- Exam pattern recognition
SFT vs DPO vs RFT: the three fine-tuning methods
| Dimension | SFT (supervised) | DPO (preference) | RFT (reinforcement) |
|---|---|---|---|
| Learns from | Labeled input/output pairs | Preferred vs non-preferred answer pairs | Model-based grader reward signals |
| Training file schema | messages array (chat format) | input / preferred_output / non_preferred_output | messages array plus grader fields |
| Best for | A task with one correct output | Tone, style, subjective quality | Open-ended reasoning, no single answer |
| Reward model or grader | None | None (binary preferences, no reward model) | Grader required; it defines the reward |
| Typical models | Broad GPT-4.1 and GPT-4o family | gpt-4o, gpt-4.1, gpt-4.1-mini | Reasoning models (o4-mini, gpt-5) |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Microsoft Foundry fine-tuning considerations - Microsoft Foundry
- RAG and Generative AI - Azure AI Search
- Customize a model with fine-tuning - Microsoft Foundry
- Direct preference optimization - Microsoft Foundry
- Reinforcement fine-tuning - Microsoft Foundry
- Generate Synthetic and Simulated Data for Evaluation (classic) - Microsoft Foundry (classic) portal
- Understanding deployment types in Microsoft Foundry Models - Microsoft Foundry
- Deploy a fine-tuned model - Microsoft Foundry
- Azure OpenAI Service - Pricing