Distillation
Your ticket classifier runs on a large model. It's accurate, takes 1.8 seconds and costs about $9,000 a month. A small model with a good prompt gets 81% where the large one gets 94%. So you have the large model label 20,000 real tickets, and fine-tune the small one on its answers. It reaches 92%, at a tenth of the latency and a twentieth of the cost.
In this lesson you'll learn to
- Explain what distillation is, and why teams distil a large model into a small one.
- Compare distilling from the teacher's text, from its probabilities, and on the student's own attempts.
- Build a distillation pipeline from real inputs, teacher outputs, filtering, training and evaluation.
- Recognise distillation's limits, including the quality ceiling, narrow coverage and usage terms.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.