LLM distillation: teach a cheap model your expensive model’s one job

On 7 May 2026 OpenAI told developers that organisations which had never fine-tuned a model could no longer start. On 6 January 2027, even its active fine-tuning customers lose the ability to create new training jobs. The company that did most to popularise “train a small model on a big model’s homework” is closing its own classroom.

That makes this an odd week to recommend distillation, and the right one. The technique works better than ever. The cheapest route to it has simply moved off OpenAI and onto open-weight models you can keep. This is instalment nine of the AI on a Budget series, and the first where the advice depends on which doors are still open.

What distillation is, minus the mystique

You use a large “teacher” model to produce good answers for your task, then fine-tune a small “student” model on those answers until it does that one job nearly as well. Hinton, Vinyals and Dean formalised the idea in 2015. DistilBERT made it famous in 2019: 40% fewer parameters than BERT-base, around 60% faster inference, and about 97% of its GLUE score.

The modern poster child is DeepSeek. Its R1 paper fine-tuned open Qwen and Llama models on about 800,000 samples curated with R1. The distilled Qwen-32B scored 72.6% on AIME 2024, against 63.6% for OpenAI’s o1-mini. The 7B version hit 55.5%. GPT-4o (May 2024 edition) managed 9.3% on the same test. A 7B model runs on a decent gaming GPU.

The numbers that make it worth an afternoon

TensorZero’s July 2025 study is the most useful public benchmark for ordinary businesses, because the tasks look like real work: named-entity extraction, multi-hop RAG, and customer-service agent tasks from τ-bench. The teacher was GPT-4.1. The students were GPT-4.1 mini and nano, GPT-4o mini, Gemini 2.0 Flash-Lite and Qwen3-8B.

  • Cost per successful task fell 5x to 30x versus the teacher. Flash-Lite came in 31x cheaper on entity extraction and 15.2x cheaper on retail support.
  • Responses got 2x to 4x faster across every task.
  • Training sets were small: 328 retail conversations, 536 for multi-hop RAG.
  • Filtering did the heavy lifting. They kept only conversations the teacher got right, and on some tasks the students beat the teacher.

Hundreds of examples, not millions. If you log production traffic, you probably own a training set already.

Why OpenAI walking away changes the maths

OpenAI’s pricing page still lists fine-tuning for four legacy bases only: gpt-4.1, gpt-4.1-mini, gpt-4o and gpt-4o-mini, with gpt-4o-mini training at $3 per million tokens. The same page says fine-tuning is “closed to new users”, and tuned models survive only until their base models are deprecated. Starting a product on that today means signing a lease with the end date printed on it.

Meanwhile, cheap models got very cheap. OpenAI’s gpt-6-luna costs $0.10 per million input tokens and $0.50 per million output, against $2 and $10 for gpt-6.2-sol. That 20x gap is roughly the saving distillation used to deliver. For plenty of tasks a well-prompted budget model now gets you most of the way with no training at all, and OpenAI’s own optimisation guide now says prompt engineering “may be all you need”. That is the honest reason distillation has slid down many teams’ to-do lists.

Where it still wins: high-volume, narrow, repetitive jobs where the cheap general model is 85% right and you need 95%. Classification, extraction into fixed schemas, ticket triage, tone-matched replies. A student trained on your teacher’s best outputs beats a cheap model guessing.

The budget route in 2026

The practical path now runs through open weights: LoRA fine-tune an 8B-class model such as Qwen3-8B on a fine-tuning service or a rented GPU, then serve it yourself or on a host. Together AI, for example, bills per training token with a $4.00 minimum per job, refunds failed jobs in full, and serves the result on a dedicated endpoint billed per minute. That last part is the catch. A dedicated endpoint costs money whether anyone calls it or not, so distillation only pays when volume is steady.

  • Log two to four weeks of real requests and your expensive model’s answers.
  • Keep only the good ones. Use an automatic check (valid schema, correct label, no user complaint) or a quick human pass. This is where quality is won or lost.
  • Hold back 15-20% as a test set the student never sees.
  • LoRA fine-tune for two or three epochs.
  • Score the student on the held-out set against the teacher and against a prompted cheap model like gpt-6-luna. If it does not beat the cheap model, stop. You learnt something for the price of a takeaway.
  • Route the narrow task to the student and keep the teacher as a fallback for low-confidence cases (see our routing instalment).

A worked budget

Say a support tool pushes 50 million input and 10 million output tokens a month through gpt-6.2-sol. That is $100 plus $100, so $200 a month at standard rates. The same traffic on gpt-6-luna costs $10. A distilled 8B model on shared hosting lands in a similar range, with one difference: you own the weights, and nobody can retire them.

At that volume the engineering time is hard to justify if Luna is good enough. At ten times the volume, $2,000 a month on one task, a few days of work to cut it by 80-90% looks very different. Distillation is a scale lever. If a single task costs you less than a few hundred a month, try routing, caching and better prompts first.

The downsides nobody puts on the landing page

  • Terms of service. Commercial APIs generally forbid using their outputs to build competing models. Distilling for your own internal task is the normal, accepted use; read the terms before you do anything grander.
  • Frozen knowledge. The student learns your task as it was. Change the product, retrain the model.
  • Brittleness. Students are narrow. Ask one something off-piste and quality falls off a cliff, which is why the teacher fallback matters.
  • Ops burden. You now own a model, an endpoint and an evaluation set. Someone has to look after all three.

What this means

  • Distilled students still deliver 5-30x cheaper inference on narrow tasks, on published benchmarks.
  • OpenAI’s fine-tuning is winding down, so new projects should target open-weight students you control.
  • Budget models have closed much of the gap. Test a prompted cheap model first and distil only when it falls short at real volume.
  • A first run costs a weekend and usually tens of dollars in training. It earns its keep once one task costs you hundreds a month.

Did you know: the 2015 paper that named the technique, “Distilling the Knowledge in a Neural Network”, borrowed the word from chemistry: boil off the bulk, keep the essence.

Sources

Related on Top Tool Stack: AI on a Budget: cut your AI costs · Prompt caching

The free stack. One email a week: the AI tools and moves that actually matter, hype filtered out. Subscribe free →
Get the free weekly stack: the AI tools and moves that matter, hype filtered out.Subscribe free →
Scroll to Top