Skip to content
mentoor

Topic 5 of 5 · 5 min read

Distillation terms, licences and fit

Goal: Decide whether distillation is allowed and worthwhile for a stated product, citing the teacher's terms and the request volume.

Distill only when the terms of the teacher allow it and the task is narrow and high-volume enough to repay the effort; otherwise prompting a stronger model or a smaller off-the-shelf one is cheaper.

Check yourself · 1 of 3

What do the terms of major hosted AI providers, such as OpenAI and Anthropic, generally say about using their outputs to train other models?

Choose one answer

Why it matters

Two checks come before any training run: may you use this teacher's outputs this way, and does the saving cover the work? A student trained on a provider's output in breach of its terms can lose you API access, and the trained model may be unusable for the product you built it for.

Check one: the terms

Read the terms of every model whose output you plan to train on. Typical clauses:

  • Hosted providers, including OpenAI and Anthropic, restrict using their output or service to develop competing models. Wording differs and changes, so read the current text and ask for written confirmation where the case is unclear. Some providers offer a documented, permitted distillation or fine-tuning route inside their own platform.
  • Open-weight models come with a licence. Some allow training on outputs, some require attribution or a naming prefix, and some bar certain uses or very large operators. Check the licence of the teacher and also of the student's base model.
  • Some datasets and outputs carry terms of their own.

This is a product and legal question, not a code question. Record the clause you relied on and the date you read it.

Check two: does it pay off?

Distillation fits when most of these are true:

  • High volume. Millions of requests, so a lower cost per request repays the one-off teacher calls, labelling, training and evaluation.
  • Narrow task. One classification, extraction or format, not general chat.
  • Stable task. If the requirements change monthly, you retrain monthly.
  • Latency or privacy limits. On-device or in-house hosting, where a large model cannot run or data cannot leave.
  • A measurable target, so you can prove the student is good enough.

Before and after

Weak decision: "Everyone says distillation saves money, so we will distill our assistant." Better: "We classify 3 million emails a month with a hosted model at about $1,200. The provider's terms bar training models that compete with it, but our classifier is internal and not offered as an AI service. Counsel confirms in writing. A student at roughly a tenth of the cost repays the build in under six months." If counsel says no, the same team switches to an open-weight teacher whose licence allows it.

What goes wrong

  • Skipping the terms because the outputs are technically easy to collect.
  • Distilling a low-volume task where the saving never repays the build and the maintenance.
  • Forgetting the student's licence, so a product ships on a base model whose licence blocks its use.
  • No refresh plan. When the teacher improves or the task shifts, the student quietly goes stale.

Examples

Allowed and worthwhile

A mail client classifies 3 million emails a month. The hosted teacher costs about $1,200 a month. Counsel confirms in writing that an internal classifier is within the provider's terms. A student costs a tenth as much to run, so the build pays back in under six months. The team records the terms page and the date.

Not worthwhile

An internal tool answers about 200 varied questions a week. Teacher cost is a few dollars. A distillation project would cost weeks of engineering plus ongoing maintenance. A cheaper hosted model with a good prompt is the better answer.

Key points

  • Check the teacher's current terms first, because major hosted providers restrict training competing models on their output.
  • Open-weight teachers and student base models each have licences that set what training and use are allowed.
  • Distillation pays for narrow, stable, high-volume tasks, or where latency, cost or privacy rule out a large model.
  • Count the one-off costs of teacher calls, filtering, training and evaluation against the saving per request.
  • Record the clause you relied on and the date, and plan for retraining when the task or the teacher changes.

Common mistakes

  • Collecting teacher outputs first and reading the terms afterwards.
  • Checking the teacher's terms but not the licence of the student's base model.
  • Distilling a task with low volume or fast-changing requirements.
  • Treating terms as fixed, when providers update them.

Check yourself · 2 of 3

A startup will serve a chat product that competes with the teacher provider's own assistant. What should it do before distilling from that provider's API?

Choose one answer

Check yourself · 3 of 3

Which task is the best candidate for distillation?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic