Training compute is approximately FLOPs for parameters and tokens. The Chinchilla result suggests a compute-optimal ratio of about . (a) For FLOPs, what and are compute-optimal? (b) How many tokens and how much compute does a compute-optimal B model need? (c) How much compute does a B model trained on T tokens use?
Sequence models and transformers, Scaling laws
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can combine the cost rule with the ratio and do the arithmetic.
Key idea
Substitute into : , so and .
Steps
- Forward and backward passes cost about and FLOPs per token, so in total.
- (a) , about billion parameters.
- Then , about billion tokens. Check: .
- (b) gives billion tokens. FLOPs.
- (c) FLOPs. This is the Chinchilla budget itself, where .
- Comment: models trained on far more than tokens (for example a small model on trillions) are not compute-optimal, but they are cheaper to serve per query, which can justify the extra training.
Common mistakes
- Forgetting the factor of and using .
- Solving without the square root.
- Treating as a law of nature; it is a fitted rule for one setup.
How long your answer should be
Short derivation and three numbers; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Sequence models and transformers: In BERT's masked language modelling, of tokens are chosen for prediction. Of those, become [MASK], become a random token and stay unchanged. What fraction of all tokens are in each case? Why not simply use [MASK] every time?
Next in Sequence models and transformers: Two finished hypotheses have token probabilities and . Which one does beam search prefer by raw log-probability? Which by average log-probability, and which by GNMT length normalisation ? What bias does this show?