Adaptation
Supervised fine-tuning (SFT)
Train on input→ideal output pairs so the model imitates them.
What it is and why it exists
SFT continues training a model on curated examples in chat format. Data quality dominates: a few hundred excellent, consistent examples beat thousands of noisy ones. Hold out an eval set from the same distribution and compare against the prompted base model.
Quick prototype
Export 200 conversations and fine-tune.
In production, at scale
Curated, deduplicated, PII-scrubbed data with a held-out test set; baseline vs fine-tuned evals; checks for regressions on general behaviour; versioned datasets and models; a plan to redo it on new base models.
Vendors and tools
| OpenAI / Together / Fireworks fine-tuning APIs | Hosted SFT |
|---|---|
| Hugging Face TRL SFTTrainer | Open-source SFT |
On AWS: Bedrock fine-tuning jobs; SageMaker training jobs / HyperPod.
How it fails
- Training on outputs you wouldn’t want repeated
- Overfitting: great on the test set’s near-duplicates, worse in production
What the interviewer asks next
How do you know the fine-tune helped?
Same eval set, same prompts: compare base+prompt vs fine-tuned on quality, latency and cost, and check general-capability regressions on a broader set.