When (and when not) to fine-tune
Notebook· 14.03· 2–3 h· Lesson 118 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Choose the cheapest lever that solves a problem: prompt → few-shot → RAG → tools → fine-tune, and say why.
- Build an honest benchmark: split by template family, check for leaks, keep a test set you look at once.
- Measure classic baselines (naive Bayes, logistic regression in numpy) and few-shot LLMs on the same 234 tickets, with confidence intervals and slices.
- Compare two routers with a paired test instead of eyeballing two accuracies.
- Check calibration and turn error costs into an escalation threshold for a local-first router.
- Prepare training data in the chat format a QLoRA run needs (Lesson 14.04), and name what fine-tuning can't fix.
Before you start
Lessons 14.01–14.02, Module 10 (confidence intervals, paired comparisons, Lesson 10.04 classifiers).
