Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Distillation

Definition

Training a smaller model to imitate the outputs of a larger one, keeping much of the quality at a lower cost and latency per request.

In more detail

In practice teams often generate examples with a strong model and fine-tune a smaller one on them. Check provider terms: some forbid using their outputs to train competing models.

The idea goes back to a 2015 paper by Hinton and colleagues, where a small student model learns to match a large teacher's output probabilities. With modern LLMs the practical version is usually simpler: generate many high-quality answers with a strong model and fine-tune a small one on them. The student is cheaper and faster but rarely matches the teacher outside the tasks it was trained on.

  • Fine-tuning

    Further training a pretrained model on task-specific examples to change its behaviour, format or style, rather than its general knowledge.

  • Quantization

    Storing model weights at lower numerical precision, such as 8 or 4 bits, to reduce memory use and speed up inference at a small quality cost.

  • Small language model

    A language model small enough, usually up to a few billion parameters, to run cheaply on a laptop, phone or modest GPU.

  • Synthetic data

    Training or test examples generated by a model or program instead of collected from real users, used when real data is scarce.

  • Fine-tuning

    Further training a model on task-specific examples, and knowing when RAG is enough.

    SkillAdvanced

  • Small language model

    A language model small enough, usually up to a few billion parameters, to run cheaply on a laptop, phone or modest GPU.

    Glossary

  • Synthetic data

    Training or test examples generated by a model or program instead of collected from real users, used when real data is scarce.

    Glossary