esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

What Is Compute-Optimal (Chinchilla-Style) Training?

How to split a fixed training budget between model size and training text, why the 2022 Chinchilla paper changed the advice, and where it stops, for your AI interview.

In short

Compute-optimal training means spending a fixed training budget so that model size and training text grow together. The 2022 Chinchilla paper found that many large models had too little text for their size.

10 min readAdvancedOccasional · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

Compute-optimal training means spending a fixed training budget so that model size and training text grow together. The 2022 Chinchilla paper showed that many big models of its day were undertrained. A 70 billion parameter model trained on 1.4 trillion tokens beat Gopher, another large model with 280 billion parameters. So before I ask for a bigger model, I check that I have the text to train it properly.

What is compute-optimal training, in plain words?

Every training run has a budget: the computing power and time you can pay for. You can spend it on a bigger model, on more text for the model to learn from, or on a mix. Compute-optimal training means choosing the mix that gives the best model for that same budget. Chinchilla is the name of a 2022 research paper, and of the 70 billion parameter model that paper trained.

Think of a bank opening a new branch with a fixed budget. Hire ten tellers and no loan officers, and the bank has plenty of counter staff but nobody to make loans, so it earns little. Balance the staff, and the same money serves more customers. In AI, a huge model that sees too little text is the same kind of lopsided team: it has the room to learn, but not the material.

Key words

Compute budget
The total computing power and time a training run can use.
Parameters
The numbers inside a model that it adjusts while it learns. Also called weights.
Tokens
The small pieces of text a model reads in training, roughly a word or part of one.
Undertrained
A model that is large, but saw too little text to learn its size properly.

Why did the 2022 Chinchilla paper change the advice?

In 2020, Kaplan and colleagues, in a paper on scaling laws, found the most efficient use of compute was a very large model on a modest amount of text, stopped well before it fully learned that text. The Chinchilla paper notes that many of the recently trained large models were trained on around 300 billion tokens.

One fixed budget, two ways to spend it

Fixed compute budget

What you can pay for in training.

Old advice, 2020

Big model, modest text

Size grows, text stays modest.

Chinchilla, 2022

Model and text grow

Double the model, double the text.

Undertrained model

Too little text for its size.

Smaller, better trained

Same budget, better results.

  1. 1Put the money into a bigger model first.
  2. 2Split the same money so size and text grow together.
  3. 3The big model gets too little text to learn from.
  4. 4The same budget gives a smaller model that does better.
A fixed budget can go two ways. The 2020 advice put it into a big model with modest text. The 2022 Chinchilla finding grew size and text together, and the smaller, well-trained model did better on the same budget.

The paper's headline result is simple: scale size and text together, so that for every doubling of model size, you double the training tokens. The authors tested this on over 400 models, from 70 million to over 16 billion parameters, trained on 5 to 500 billion tokens.

  • “for compute-optimal training, the model size and the number of training tokens should be scaled equally: for every doubling of model size the number of training tokens should also be doubled”

    Chinchilla paper, 2022

  • “optimally compute-efficient training involves training very large models on a relatively modest amount of data and stopping significantly before convergence”

    Kaplan and colleagues, 2020

Then they tested it with a model. Chinchilla had 70 billion parameters and 1.4 trillion tokens. It used the same compute budget as Gopher, which had 280 billion parameters, and it outperformed Gopher.

The authors' word for the older models is undertrained: they were large, but had seen too little text to learn from. That is the same problem the rule is built to avoid.

How do you check the rule before you buy compute?

Here is the check I would run. Say a health insurer holds 30 billion tokens of clean claim notes, with names removed. The team wants a model, and the question is how big it can be before the text runs out.

Chinchilla's own model gives a rough ratio: 1.4 trillion tokens for 70 billion parameters is about 20 tokens for each parameter. It comes from one paper's fit, so treat it as a starting point and test the result. The ratio is about spending a training budget well, so using it to size a model from a fixed text supply is a rough guide.

Python
# Made-up numbers: a health insurer's archive of clean claim notes.
CLEAN_TOKENS_B = 30  # billions of clean tokens the team holds
TOKENS_PER_PARAM = 20  # rough ratio from Chinchilla's 70B model on 1.4T tokens

for params_b in (1.5, 7, 14):
    need_b = params_b * TOKENS_PER_PARAM
    gap_b = need_b - CLEAN_TOKENS_B
    if gap_b <= 0:
        print(f"{params_b:>4}B parameters need {need_b:>4.0f}B tokens: enough data")
    else:
        print(f"{params_b:>4}B parameters need {need_b:>4.0f}B tokens: short by {gap_b:>4.0f}B")

Output

 1.5B parameters need   30B tokens: enough data
   7B parameters need  140B tokens: short by  110B
  14B parameters need  280B tokens: short by  250B

So the insurer's text supports a model of about 1.5 billion parameters. A 7 billion model would need 140 billion tokens, 110 billion more than the team holds. Training it on the same 30 billion tokens would leave it undertrained, the same problem the 2022 paper found.

Size the model to the text you hold

30B clean tokens

All clean claim notes the team holds.

Divide by about 20

Rough ratio: 20 tokens per parameter.

About 1.5B parameters

Enough text to train it fully.

7B would be short

Needs 140B tokens, 110B missing.

  1. 1The team starts from the text it can use.
  2. 2Dividing gives a model of about 1.5 billion parameters.
  3. 3A 7 billion model would need far more text than it has.
The insurer starts from the 30 billion tokens it holds and divides by about 20 to get a model near 1.5 billion parameters. A 7 billion model would need 140 billion tokens, so on this text it would be undertrained.

The team could still pick the 7 billion model. Then it should find more clean text, or say plainly that the model is undertrained.

Where does the rule stop?

The rule answers one question: what is the best model for this training budget? It doesn't answer what is cheapest to run for years. Training is paid once. Serving a model is paid on every request, so for heavy use that bill can outgrow the training bill.

The Chinchilla paper points the same way. A smaller model needs less compute for fine-tuning and inference, which helps anyone who uses it. So a team that expects heavy use often trains a smaller model on more text than the rule suggests, and accepts the extra training cost.

  • Text supply

    The rule needs enough clean text. When that runs short, the budget stops paying off as well.

  • A fit to past runs

    The numbers come from fitting curves to runs across over 400 models. A new data mix or model design can shift them, so re-check before you rely on them.

  • Training is paid once

    The rule weighs the training bill only. Plan the serving bill next to it.

Tip

In an interview, say the idea first (grow size and text together), then the check you would run, then the limits. That order shows you can use the rule, and where it breaks.

What does the interviewer want to hear?

A strong answer covers

  • A plain definition: spend a fixed budget so model size and training text grow together.
  • The 2022 Chinchilla finding, and the 2020 advice it changed.
  • A worked check: tokens for the size, with the ratio called rough.
  • The limits: text supply, and serving cost after training.
  • Honesty that the rule is a fit to past runs, not a fixed number.

Common traps

  • Trap"Bigger models are always better, so train the biggest one you can afford."

    BetterA bigger model only wins if it has the text to learn from. Check the tokens per parameter first.

  • Trap"Chinchilla proved that 20 tokens per parameter is the law."

    BetterIt's a rough ratio from one model and a fit to many runs. Quote the idea, and flag the ratio as rough.

  • Trap"Always train a small model on lots of data."

    BetterThat ignores the training bill. Small models on huge text pay off mainly with heavy, long use.

Can you spot the mistake?

Spot the mistake

A slide for the claims team proposes the next model. The last model had 7 billion parameters and was trained on 30 billion tokens. Which line is the mistake?

Quick check

A bank's fraud team has 30 billion clean tokens and has not picked a model size yet. Which plan follows the compute-optimal idea?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q019What are scaling laws?10 min
  2. Q018What are parameters (weights)?11 min
  3. Q016Pretraining vs fine-tuning vs instruction tuning?10 min
  4. Q028What is test-time compute?11 min
  5. Q026What is a Mixture-of-Experts model?12 min

Last updated on 27 November 2026

Building an AI product that needs a model?

I design and build AI products and agents, the interface and the system behind it. Book a short call and tell me what you are building and what text you have.