Tinker Small models: distillation & routing

by Samy (Kondasamy Jayaraman)

Loading Larkspur mini

Chapter 3 of 7

How close is the student?

Before Larkspur trusts the student with anything, the team wants to know how often it still picks what the teacher would.

This chapter: How do you measure how close a student is to its teacher, on text neither has seen?

About this chapter

You will learn

  • Agreement: how often the two models’ top picks match
  • KL divergence: how differently they spread their bets, even when the top pick matches
  • Why closeness to the teacher is not the same as being right

Words you’ll meet

Held-out text
Text kept out of training, used only to score the models.
Agreement
The share of positions where the student’s most likely next piece is the teacher’s.
KL divergence
A number for how far one set of odds is from another: 0 when they are the same, larger the more they differ.

Step 1 of 3

The fair test is , which neither model trained on. At every place in it, both pick their likeliest next piece.

Predict first.

Held-out documents

data-retention-faq-2025.md, heron-shelving-install-guide-2021.md, portal-release-notes-2021.md, remote-work-policy-2021.md, warehouse-safety-handbook-2023.md

Run both models over 5 of Larkspur’s documents that neither trained on: 1,503 places to guess the next piece. How often will the student’s top pick be the teacher’s?