The Open Model EcosystemLesson 57 of 71

Module 6 · Adapting a model to your work

Distilling a larger model into a smaller one

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 7 of 11 in this chapter

This chapter’s goalDecide with evidence whether a task needs fine-tuning at all; if it does, build the dataset, size a LoRA to fit free hardware, run it, and demonstrate on a held-out set and a regression suite that the adapted model is better at the task and no worse at everything else.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

The idea, and the two versions of it

You have a large model that does the task well and is too expensive to serve. Distillation trains a small model to imitate it.

Response distillation is what almost everybody does. Run a set of prompts through the teacher, keep the outputs, fine-tune the student on those pairs. It is ordinary supervised fine-tuning where the labels came from a model instead of a person.

Logit distillation is stronger and rarer. Instead of the teacher’s chosen token, you train against the teacher’s full probability distribution at each step, minimising the divergence between student and teacher. The student learns not just what the teacher said but how uncertain it was, which carries much more information per example. It requires the same tokenizer for both models and access to the teacher’s logits, which rules out any closed API and most convenient setups.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Maths You Actually Need exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Distilling a larger model into a smaller one’, in The Open Model Ecosystem. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/open-models/distilling-a-bigger-model (Accessed: 29 November 2026).