# Distillation

> The Distillation is a technique of training a smaller model to imitate a larger one.

## What is model distillation?

The technique where a small student model is trained on the outputs of a large teacher model. The result is cheaper and faster while keeping a large part of the teacher's quality.

- Topic: Training & Architecture
- Type: technique

## Interview questions

### What is the difference between distillation and quantization?

Distillation trains a new smaller model to imitate a larger one. Quantization keeps the same model but stores its weights with lower precision.

### What are teacher and student models?

The teacher is the large model whose outputs guide training. The student is the smaller model that learns to copy them.

### Is it allowed to distill a model through its API?

It depends on the provider's terms. Many terms of service forbid using outputs to train competing models, so check them first.

## Related cards

- [Small Language Model](https://wonderium.dev/ai/small-language-model.md)
- [Fine-Tuning](https://wonderium.dev/ai/fine-tuning.md)
- [Synthetic Data](https://wonderium.dev/ai/synthetic-data.md)
- [Quantization](https://wonderium.dev/ai/quantization.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/distillation
- Last updated: 2026-11-25
