Card book

Distillation

In the kitchen: The apprentice learning from the head chef

A small model learns from a big model's answers and stays fast and cheap.

What it is

Distillation means having a big model produce a batch of good answers, then training a small model on them. By copying those answers, the small model gets close to the big one on that kind of task while staying fast and cheap.

In the AI Kitchen

In the AI Kitchen, the apprentice copied the head chef's three plates into a notebook, then got every ask on the tricky order right, at apprentice speed and price.

In real life

Many small models learned from big ones this way. Real distillation retrains the small model on thousands of examples; the notebook you just used is closer to putting a few examples straight into the prompt, but the idea is the same.

Where to try it

Related concepts