Skip to content

Post-training 101, lesson 4

Distillation: a small model taught by a big one

A small model can be trained on a big model's answers, and run for a fraction of the cost. This lesson shows how that works, and how to tell when small is enough.

What do you run?

Every example below changes to fit what you pick. The businesses are made up for teaching.

The picture, one step at a time

Each box is one stage. The picture lights up as you scroll.

Step 1 of 6

Big models answer well, at a price

The best models are big. Every answer they give takes more machines and more time to produce. For a hard question that is worth paying. For a simple job done thousands of times a day, it adds up fast.

Step 2 of 6

The teacher writes the answers

So the big model is used as a teacher. It answers a large set of questions, often showing its working step by step. Those answers become the lesson for a smaller model.

Step 3 of 6

The student trains on them

A smaller model is then trained to answer the way the teacher did. This is called distillation: boiling a big model's skill down into a small one. It is teaching by example, from lesson 2, with a model writing the examples.

The name comes from a 2015 paper by Geoffrey Hinton, Oriol Vinyals and Jeff Dean, "Distilling the Knowledge in a Neural Network".

Step 4 of 6

Cheaper and faster

The student needs less hardware, so each answer costs less and arrives sooner. On the kind of work it was taught, it can come close to its teacher.

In 2019 Hugging Face made DistilBERT this way. It was 40% smaller and 60% faster than the model it learned from, and kept 97% of its score on a set of language tests.

Step 5 of 6

What the student loses

The student copies the teacher's answers, not everything the teacher knows. It is strong on the kind of question it was taught with, and weaker on odd, new or many-step ones. That lost breadth is called range.

In 2025 DeepSeek released six small models taught on its big R1 model's worked answers, from 1.5 billion to 70 billion parameters (the numbers inside a model that training sets).

Where is a small, distilled model most likely to slip?

Step 6 of 6

Choosing a size for your work

For sorting and answering customer emails, split the work. Give the narrow, repeated, high-volume jobs to a small model. Keep the rare, open-ended or high-stakes ones for the big one. Before you switch a job to small, test it on your own real examples, side by side with the big model.

A small model does well on your test set. What next?

Big or small?

Here are four jobs in your business. Sort each one: will a small model do, or does it need the big one?

  1. 1Tagging each incoming email as returns, sizing, delivery or other. About 3,000 a month.

  2. 2Replying to a customer who says a faulty heater damaged their flat and wants compensation.

  3. 3Turning a supplier's spreadsheet into product listings in your layout.

  4. 4Planning next season's range from sales figures, supplier notes and what customers asked for.

0 of 4 right so far, 4 to go.

Big or small: the sizing card

This is what you keep: what a small model gains and gives up, and which jobs suit each size.

Big or small: the sizing card

  1. A small model taught by a big one can come close to it on the work it was taught.
  2. It costs less per answer and replies sooner.
  3. It loses range: odd, new or many-step questions go less well.
  4. Narrow, repeated, high-volume jobs suit a small model.
  5. Rare, open-ended or high-stakes jobs suit the big one.
  6. Test the small one on your own real examples before you switch.

Start small on narrow jobs, test it on your own cases, and send the hard ones up to the big model.

Next: Lesson 5: prompt, harness or tune? How to choose the cheapest fix that works before you pay for any training.