Advanced

Scaling laws II: Chinchilla & compute-optimality

Chinchilla’s iso-compute experiments rebalanced parameters against tokens for a fixed training budget; applying their fitted ratio to a later model is a planning scenario, not evidence about its undisclosed training run.

Updated

01 · Concept

Concept

A colleague sees that Qwen3.8-27B has 27 billion parameters, remembers the famous “twenty tokens per parameter” rule, multiplies, and announces that the model was trained on about 540 billion tokens. It is a natural inference, the arithmetic is right, and the conclusion is unsupported by the published evidence. Understanding why requires knowing exactly what Chinchilla measured, what it optimized, and what has changed since.

Kaplan-style laws made planning predictable, but their compute-optimal allocation was not the last word. In 2022 Hoffmann and collaborators revisited the question with a broader set of iso-compute experiments and produced the model called Chinchilla. The interesting output was not a checkpoint. It was a different answer to “how large should the model be, and how many tokens should it see?”

For a fixed training budget CC, a dense model faces the approximate constraint CNDC\propto ND, with NN parameters and DD tokens. An iso-compute curve fixes CC, picks several values of NN, trains each for the corresponding DD, and compares validation loss. Too large a model starves for data; too small a model lacks capacity despite abundant tokens. The bottom of that U-shaped curve is the best balance at that budget. Repeat across several budgets, fit how the optimal NN and DD grow together, and you have a rule. Hoffmann et al. concluded that in their measured setting, parameters and tokens should scale at roughly equal rates. Their headline comparison trained a 70-billion-parameter Chinchilla on 1.4 trillion tokens against the larger 280-billion-parameter Gopher on 300 billion tokens, at the same stated training compute, and Chinchilla won on the reported suite. That ratio, 1.4 trillion over 70 billion, is where “about twenty tokens per parameter” comes from.

Now do the arithmetic your colleague did, but carefully. At twenty tokens per parameter, a 27-billion-parameter dense model would be trained on

D=20×27×109=5.4×1011 tokens,D = 20\times 27\times 10^{9}=5.4\times 10^{11}\ \text{tokens},

and the training compute, using the 6ND6ND estimate from lesson 5.4, would be

C6×(27×109)×(5.4×1011)=6×1.458×1022=8.75×1022 FLOPs.C\approx 6\times(27\times 10^{9})\times(5.4\times 10^{11})=6\times 1.458\times 10^{22}=8.75\times 10^{22}\ \text{FLOPs}.

That is a real number and a useful anchor: it tells you the order of magnitude of a compute-optimal 27B run. It is also entirely our construction. No token count, compute figure, or training budget is published for Qwen3.8-27B. There is no technical report; the model card documents architecture, licence, sampling presets, and vendor-reported benchmarks. So treat 8.75e22 FLOPs as “what a Chinchilla-optimal 27B would have cost”, never as “what this model cost”.

Two refinements before moving on. The NN in these fits is non-embedding parameters, and lesson 5.3 showed that roughly 2.54 billion of this model’s parameters live in the embedding and untied output head, with more in the vision tower — so a strict application would use something closer to 24 billion and shrink the estimate by around 10%. And 6ND6ND was calibrated on uniform attention stacks, whereas 48 of this model’s 64 layers are Gated DeltaNet. Both corrections point the same way: these are order-of-magnitude planning figures, and quoting them to three significant digits is false precision.

The conceptual correction Chinchilla delivered was undertraining. A parameter earns its keep through many varied token contexts; building more parameters while starving each of data is worse than training a smaller network longer. After 2022, “tokens per parameter” became planning shorthand — but a single ratio cannot capture data quality, architecture, or a shifted loss regime.

That something is deployment. Chinchilla’s question ends the moment training stops. If a model will serve billions of requests, a smaller model trained longer costs more once and less forever. Push our 27B past the compute-optimal point to an illustrative 150 tokens per parameter — again, our assumption, not a published fact — and the budget becomes

D=150×27×109=4.05×1012 tokens,D = 150\times 27\times 10^{9}=4.05\times 10^{12}\ \text{tokens}, C6×(27×109)×(4.05×1012)=6.56×1023 FLOPs,C\approx 6\times(27\times 10^{9})\times(4.05\times 10^{12})=6.56\times 10^{23}\ \text{FLOPs},

roughly 7.5 times the Chinchilla-optimal budget for the same parameter count. From a training-only viewpoint that is waste. From a serving viewpoint it is a purchase: those extra tokens push a 27-billion-parameter model toward quality that would otherwise have required a much larger one, and the smaller model then reads 54 GB of weights per forward pass instead of several hundred, for every token of every request, for the life of the deployment. Lesson 5.6 turns that trade into an explicit objective and separately examines the serving consequences of the published Qwen3.8-27B architecture, without claiming that the team trained it under this token-budget rationale.

The methodological lesson outlasts the numbers. A famous scaling recommendation changed because experimental coverage and fitting improved, and it will change again. Plan a large run from controlled pilot evidence, attach uncertainty, refit when the pipeline or architecture moves — and remember that compute-optimality answers the question it was asked. “Bigger model” and “more training” compete for the same training budget. Neither of them decides the lifetime economics of a deployed system, which is where this track goes next.

02 · Analogy

Analogy

A farm has a fixed fuel budget for one tractor season. Buying a huge tractor leaves little fuel to cross the field; buying a tiny one permits many passes but limits work per pass. Earlier measurements favored a larger tractor. Chinchilla-style iso-compute trials tested several tractor sizes at the same total fuel and found a more balanced pairing of machine and distance.

03 · Teach it back

Teach it back

Explain the iso-compute method, compute the hypothetical Chinchilla-style point for a 27-billion-parameter dense model, and state what remains unknown for Qwen3.8-27B.

Minimum: 80 characters and 15 words. Your writing stays only in this browser.

Waiting for your explanation.

Compare with a model answer

Iso-compute experiments train several model sizes under the same FLOP budget, varying token count inversely, and take the lowest-loss point at each budget. Hoffmann et al. found parameters and tokens should grow at roughly equal rates in their measured regime, popularly summarized as about twenty tokens per parameter. Applying that approximation to 27 billion parameters gives roughly 540 billion tokens and, under 6ND, about 8.7e22 FLOPs. Those are hypothetical planning figures for a dense 27B model. Qwen3.8-27B publishes no token count, training compute, scaling study, or rationale, so its actual position relative to the Chinchilla curve is unknown.

04 · Check your understanding

Check your understanding

01At a Chinchilla-style twenty tokens per parameter, roughly how many training tokens would a 27-billion-parameter dense model use, and what is the 6ND compute estimate?
Answer and explanation

About 540 billion tokens and about 8.7e22 FLOPs — 20 x 27e9 = 5.4e11 tokens; 6 x 27e9 x 5.4e11 = 8.748e22 FLOPs. There is no technical report for Qwen3.8-27B, and its real token count is not public.

02Lesson 5.4 warned about extrapolating a fitted power law. What is the equivalent error with the twenty-tokens-per-parameter figure?
Answer and explanation

Treating a ratio fitted at 2022 scale, corpus, and architecture as a constant that determines any later model's token count — It is a fitted optimum for one regime and one objective, not a law; both the fit and the objective it optimizes have moved since.

03What is held approximately fixed on an iso-compute curve?
Answer and explanation

Total training computation — Different parameter/token combinations are compared under a common training-compute budget.

Complete the teach-back and answer the quiz correctly to finish this lesson.

◎ · Evidence marker

Sources

  1. Jordan Hoffmann et al. (2022). Training Compute-Optimal Large Language Models.
  2. Qwen Team (2026). Qwen3.8-27B Model Card.