Production Distillation: Pipelines, Pitfalls, and What's Next
Distilling once is a project. Staying distilled is a discipline.

Everything so far — the theory, the loss, the hands-on run, the industrial recipes — covered how to distill a model once. This finale covers the part nobody blogs about: what happens after, when the distilled model is in production, the teacher keeps improving, traffic keeps drifting, and it's 3 AM.
Then we close the series where the field is heading: whether you can distill reasoning itself, and why today's student is tomorrow's teacher.
Distillation is a pipeline, not an event
The single biggest mindset shift from prototype to production: the distilled model you shipped is not an artifact. It's a snapshot of three moving things — the teacher's capability, your data distribution, and your quality bar. All three drift. So production distillation looks less like "train once, deploy forever" and more like a refresh loop:
Teacher versioning. Your teacher — an API model or your own large model — will change. New versions shift behavior in ways that ripple into every student distilled from them. Pin teacher versions the way you pin dependencies: every student checkpoint should record exactly which teacher (and which prompt templates, for synthetic pipelines) produced its training signal. When the teacher upgrades, that's not maintenance — that's a new distillation run, evaluated as such. An unversioned teacher is an untracked dependency in the most important part of your stack.
Synthetic data at scale. For LLM-era pipelines (Part 6), the generation step becomes real infrastructure: prompt templates under version control, generation batched against rate limits and budgets, aggressive dedup, filtering for blandness and confident nonsense — increasingly with a grader model scoring the generator's output. Budget honestly: expect well over half the engineering effort of an ongoing distillation program to live in this data layer, not in training. The training loop is fifteen lines (Part 4); the textbook factory is the actual product.
Refresh cadence. How often do you re-distill? Tie it to triggers, not the calendar: teacher upgraded, eval scores dipped below a threshold, or production traffic drifted measurably from the distillation corpus (Part 5's wrong-country map, arriving slowly instead of all at once). A monthly cadence with those three tripwires covers most products.
Monitoring: the tails are where students fail
Part 5 ended on the precise trade: the student masters the body of the distribution; the teacher keeps the tails. In production, that sentence becomes your monitoring spec — because aggregate accuracy is exactly the wrong lens for a distilled model. The student matches the teacher on easy traffic, so headline metrics look great while the tails quietly rot: the rare intents, the unusual phrasings, the long documents, the sarcasm.
Three practices that work.
Sliced evals, not averages. Break your eval set by segment — rare classes, long inputs, each language, each product area — and alert on slices, not the mean. A 0.3% aggregate dip that's actually a 12% collapse on one rare-but-revenue-critical intent is the classic silent failure. Averages are where tail problems go to hide.
Teacher-student disagreement as a free signal. You still have the teacher; use it. Shadow-score a small sample of live production traffic (1% is plenty) through the teacher, and watch the disagreement rate between teacher and student. Rising disagreement is your earliest drift alarm — it fires before user complaints, and it needs zero human labels. It also auto-generates your next distillation corpus: the disagreement examples are, by construction, exactly what the student needs to study next. The monitoring system and the retraining system turn out to be the same system.
Escalation routing. The pattern that makes everyone happy: the student handles everything by default, but low-confidence predictions (or high-stakes segments) route to the teacher. The intern runs the front desk; the laureate is on call. Done well, 90–95%+ of traffic rides the cheap model while worst-case quality stays teacher-grade — and the escalation rate itself becomes another beautiful drift metric. When the intern starts escalating more, something changed.
Distill, quantize, or prune? Yes.
The three compression techniques get framed as rivals; they're actually a stack, because they remove different things.
Distillation removes knowledge the small architecture doesn't need — it transfers judgment into fewer layers. Quantization removes numerical precision — storing weights in 8 or 4 bits instead of 16, shrinking memory 2–4x and speeding inference, with the model's structure untouched. Pruning removes connections — zeroing weights that barely matter, though extracting real speedups from the resulting sparsity takes hardware cooperation and patience.
Order matters. Distill first, quantize second is the standard production combo: get judgment into the small dense architecture, then compress its numbers — the two barely interfere, and their savings multiply. A 4-layer distilled student, quantized to INT8, is routinely ~6x smaller and faster than the naïve deployment while keeping the large majority of teacher quality. Quantizing the teacher first and then distilling from it is backwards — you'd teach from a degraded mentor (and yes, Part 5's rule generalizes: never distill from a teacher you wouldn't deploy at the quality bar you're targeting). Pruning is the situational third layer, worth it mostly when your target hardware actually exploits sparsity.
The CFO section: break-even in one paragraph
Distillation costs are one-time and front-loaded: teacher inference to produce the training signal (the dominant line item for API teachers — Alpaca-style corpora run a few hundred to a few thousand dollars), student training (small models, cheap GPUs, the easy part), and engineering time (the honest biggest number). Savings are per-token and forever: recall Part 1's spread — flagship output tokens at $25–30 per million versus nano-class at ~$1–1.25, a 25x gap before you even consider self-hosting. Worked example: 50M output tokens/day at flagship pricing is ~$1,500/day; the same traffic on a distilled student self-hosted or at nano pricing lands under $100/day. Against a one-time distillation investment of, say, $15–30K all-in (data generation, runs, an engineer-month), break-even arrives in two to four weeks, and every week after is margin. That's the whole pitch. High-volume, scoped-task inference is one of the very few places in AI where the cost curve bends this hard, this reliably.
(Cost sanity-check for your own case: if your traffic is low-volume or your task genuinely needs frontier generality, distillation's math weakens honestly — Part 1's trade was always "scoped tasks, high volume." Not every workload should be distilled. Most high-volume production workloads should.)
Where this is heading
Three bets to close the series, each already visibly underway in 2026.
Reasoning distillation. The frontier question: can you distill chain-of-thought — not the teacher's answers but its thinking process? Early recipe, promising results: have a reasoning model generate step-by-step traces, train the student on the traces rather than final answers alone. Students trained this way punch far above their size on math and logic — they inherit the method. It's Part 2's lesson at a higher level of abstraction: first we learned to copy the shape of a model's doubt; now we're learning to copy the shape of its deliberation. Expect "small model, borrowed reasoning" to be a defining pattern of the next few years.
On-device as default. Part 6's trajectory, extended: latency, privacy, and cost all pull the same direction, hardware keeps improving, and distillation is the bridge. The mental model to internalize — frontier models are where capability is born; distilled models are how it ships. When your product's AI feels instant and works offline, distillation is why.
The recursive future. Today's student becomes tomorrow's teacher. Labs already run capability ladders — huge internal models distilling into large public ones, distilling into minis, into device-scale models — each rung teaching the next. Add reasoning distillation and synthetic textbooks (Part 6), and "training a model" increasingly means "organizing a curriculum of models teaching models." A decade ago that sentence was science fiction; today it's a pipeline diagram.
Series close
The full arc, in one breath: frontier models are too expensive for most production work (Part 1) — but knowledge transfers, because a model's doubt has structure (Part 2), extractable from its outputs, its layers, or its geometry (Part 3), with one loss and two knobs (Part 4), provably better than training alone (Part 5), industrialized by the pros into recipes and synthetic textbooks (Part 6), and sustained in production by pipelines, sliced monitoring, and an escalation path (this post).
Back to where we started: the Nobel laureate finally gets to do research. The well-taught intern runs the front desk brilliantly, escalates the weird cases, and costs 3% as much. Everyone's happy — including, at last, your finance team.
Thanks for reading all seven. If you build something with this — or break something interesting trying — I'd love to hear about it. Reach out.
Facing this problem in production?
I help teams make AI systems smaller, faster, and cheaper — from distillation to full MLOps pipelines.
Work with me