AI & Computing

Chinchilla Compute-Optimal Model Size Calculator

Enter a compute budget to get the compute-optimal parameter count and training tokens.

Your numbers

%

Your results

Compute-optimal parameters
Compute-optimal parameters
—
Training tokens
—
Compute budget (FLOPs)
—

Chinchilla Compute-Optimal Model Size Calculator by TheCalcTools

How the Chinchilla Compute-Optimal Model Size Calculator works

The Chinchilla study (Hoffmann et al., 2022) found that for a fixed compute budget, model size and training data should grow together, with about 20 training tokens per parameter.

Combining C = 6ND with D = 20N gives N = √(C ÷ 120). Models meant to serve many users are often trained on more tokens than this to make them smaller and cheaper to run.

The formula

N = √(C ÷ (6 × r)), D = r × N (r ≈ 20)

Worked example

Using the default values shown in the calculator:

Budget given asTotal FLOPs
Compute budget (FLOPs, e.g. 1e23)1e+23
GPU-hours100000
Peak TFLOPS per GPU989
Utilisation (MFU)40 %
Tokens per parameter20
  1. 10²³ FLOPs ÷ 120 → N = 28.9 billion parameters trained on 577 billion tokens.

Result:

Compute-optimal parameters28.9 billion
Training tokens577 billion
Compute budget (FLOPs)1e+23

Frequently asked questions

Is Chinchilla-optimal always best?

It minimises training loss for the compute spent. If inference cost matters, a smaller model trained longer can be better overall.

Sources and further reading

More in AI & Computing · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.