Skill 5.2.1
Design and implement advanced fine-tuning methods
Key Concepts
Supervised fine-tuning (SFT) trains on conversations that end with the desired assistant response, which teaches format, style, domain conventions and narrow tasks. Direct preference optimization (DPO) trains on an input with a preferred and a non-preferred response, which suits qualities such as tone and completeness that are easier to compare than to write perfectly. Reinforcement fine-tuning (RFT) trains a reasoning model, such as o4-mini, with a grader that scores its generated answers, which suits tasks with many valid answers that can be checked.
Fine-tuning comes after prompt engineering and RAG: it does not reliably add changing knowledge, which belongs in retrieval. Foundry offers training tiers (Standard with data residency, Global at lower cost, and Developer on idle capacity without an SLA) and hyperparameters such as epochs, batch size and learning rate multiplier. Open-weight models can also be fine-tuned with parameter-efficient methods such as LoRA (low-rank adaptation), which trains small adapter matrices instead of all weights.