AI Researchestimator

Training compute budget

A training run spends a fixed number of floating-point operations. A common estimate is C ≈ 6ND, where N is the number of parameters and D the number of training tokens. For a given C you can trade size for data: a bigger model on fewer tokens, or a smaller one on more.

Compute-optimal split

For 5.76 × 10²³ FLOPs, this fit puts the lowest loss at 40.3B parameters trained on 2.38T tokens.

Predicted loss1.918Compute-optimal split
Outside the range the fit was measured on

This law was fitted on 70M to 16B parameters and 5B to 500B tokens. These numbers extrapolate beyond it, so treat them as a trend, not a measurement.

1.851.91.9522.0510B31.6B100B316BModel size (parameters, log scale)Predicted lossOptimum

Inputs

Start from

Type a value such as 5.76e23.

Real budgets

Besiroglu et al. 2024, Chinchilla Scaling: A replication attempt. Fitted on 70M to 16B parameters and 5B to 500B tokens.

Compute-optimal parameters40.3B40,310,496,396 for 5.76 × 10²³ FLOPs
Compute-optimal tokens2.38T2,381,513,714,346 tokens
Tokens per parameter59.1The common rule of thumb is 20
Predicted loss1.9181.693 irreducible + 0.103 from model size + 0.122 from data

What it shows

Training spends a fixed number of floating-point operations, C ≈ 6ND. For a given C, you trade model size N against training tokens D.

The tool applies three published scaling-law fits to find the split with the lowest predicted loss. You can also enter your own N and D to see how far your run is from that split.

How to read it

  • Compute-optimal parameters and tokens are the split with the lowest fitted loss at your budget. Tokens per parameter is their ratio.
  • Predicted loss splits into an irreducible part and the parts left by finite model size and finite data.
  • Loss describes the paper’s dataset and tokenizer. Compare it between splits, not with your own training curves.
  • The curve shows loss against model size at one budget. Its bottom is flat, so sizes near the optimum cost little loss.
  • A note appears when your numbers fall outside the range the fit was measured on. They then extrapolate.
  • Different fits give different answers for the same budget. Compare them before relying on one.

Questions

Where does the 20 tokens per parameter rule come from?

It is a rounded reading of the Chinchilla results, where the best models at several budgets were trained on roughly 20 tokens for every parameter. It is a rule of thumb. The fitted laws put the ratio somewhat above or below that depending on the fit and the budget.

Why do the three fits disagree?

A replication attempt re-fitted the same functional form to data read from the paper’s figures and found different constants, and rounding the printed exponents moves the frontier a long way. This tool defaults to the unrounded constants of the original fit, offers the rounded printed ones and the replication, and lets you compare.

Is C = 6ND exact?

No. It counts the matrix multiplications against the weights and leaves out attention, which grows with context length. It is a good estimate when the context is short relative to the model width and a poorer one for long contexts.

Should I train a model to the compute-optimal point?

Compute-optimal minimises loss for training cost only. A model that will serve many requests can be worth training on more tokens than optimal, because a smaller model costs less to run. The distance-from-optimal view shows what that trade costs in training loss.

Sources

Explore further

Last updated

More tools

All tools

Your first senior-level
lesson is free.

Choose a course, open a free lesson, and explore an idea you’ve wanted to understand.