Chinchilla Compute-Optimal LLM Training FLOPs, Tokens & GPU-Days Calculator

Apply C = 6ND to size LLM training FLOPs, tokens, and H100 GPU hours.

Cluster Training Duration (Days) 24.8 days
Total Compute Budget (×10²¹ FLOPs) 96 ZettaFLOPs
Tokens-per-Parameter Ratio 250 tok/param
Chinchilla 20× Optimal Token Target 160 B tokens
Inputs
Try:
B params
Model parameter count (N) in billions.
T tokens
Total pre-training dataset tokens (D) in trillions.
TFLOPS/GPU
Effective achieved TFLOP/s per GPU (after MFU).
GPUs
Number of GPUs in training cluster.
Results & Graph
Cluster Training Duration (Days)
24.8 days
Total Compute Budget (×10²¹ FLOPs)
96 ZettaFLOPs
Tokens-per-Parameter Ratio
250 tok/param
Chinchilla 20× Optimal Token Target
160 B tokens

Cluster Training Duration (Days)

Graph 1 • How the inputs feed Chinchilla Scaling Law
Chinchilla Compute-Optimal LLM Pre-Training FLOPs & Token Ratio Calculator • Custom Domain Schematic (AI & LLM Infrastructure) modelPartrainingOut Model Parameters Billions: 8 B params • Training Tokens Trillions: 2 T tokens CLUSTER TRAINING DURATION 24.8 days • Total Compute Budget (: 96 ZettaFLOPs • Tokens-per-Parameter R: 250 tok/param Eq: Compute_FLOPs = 6 × Parameters_N
Graph 2 • Cluster Training Duration (Days) as Model Parameters Billions changes (40% to 160% of current)
0 days 21.82 days 43.65 days 9.92 3.20 14.88 4.80 19.84 6.40 24.80 8 29.76 9.60 34.72 11.20 39.68 12.80
Graph 3 • Model Parameters Billions and Training Tokens Trillions together Compares Cluster Training Duration (Days) when Training Tokens Trillions is shifted +25% (solid) vs. −25% (dashed).
0 days 22.16 days 44.33 days --- Training Tokens Trillions @ 75% 21.70 -30% 26.35 -15% 31 +0% 35.65 +15% 40.30 +30%
Summary: Pre-training an 8B model on 2T tokens requires 96.00 × 10²¹ FLOPs, taking 24.8 days across 128 GPUs.
Summary: Pre-training an 8B model on 2T tokens requires 96.00 × 10²¹ FLOPs, taking 24.8 days across 128 GPUs.
Interactive chart & math engine powered by CalculatorGraph

Formula: Chinchilla Scaling Law Systems Engineering Formula

ComputeFLOPs = 6 × ParametersN × TokensD
GPUHours = FLOPs / (GPUTFLOPS × 10¹² × MFU × 3600)
Compute_FLOPs = 6 × Parameters_N × Tokens_D; GPU_Hours = FLOPs / (GPU_TFLOPS × 10¹² × MFU × 3600)
  • modelParametersBillions: Model Parameters Billions (B params)
  • trainingTokensTrillions: Training Tokens Trillions (T tokens)
  • sustainedGpuTflops: Sustained Gpu Tflops (TFLOPS/GPU)
  • clusterGpuCount: Cluster Gpu Count (GPUs)

Frequently Asked Questions

How does the Chinchilla Compute-Optimal LLM Pre-Training FLOPs & Token Ratio Calculator compute capacity?

It evaluates Compute_FLOPs = 6 × Parameters_N × Tokens_D; GPU_Hours = FLOPs / (GPU_TFLOPS × 10¹² × MFU × 3600) directly in your browser and plots three custom SVG diagrams.

What should I put in sustained TFLOPS if I only know the GPU's peak rating?

Multiply the peak dense rating for your training precision by the utilisation you expect to achieve, then enter that product. The calculator has no separate MFU field, so this one number has to carry it. If you enter the advertised peak directly, the days estimate will be far too optimistic, often by a factor of two or more.

Does the 6ND formula count FLOPs or FLOP per second?

Total floating point operations for the whole training run, not a rate. The calculator then divides that total by the cluster's sustained operations per second to get time. For the defaults the total is 96 zettaFLOPs. Do not confuse it with the TFLOPS input, which is a per-second throughput for each GPU.

Why does the ratio line show 250 when Chinchilla says 20?

Because the default trains 8 billion parameters on 2 trillion tokens, and 2 trillion divided by 8 billion is 250 tokens per parameter. The Chinchilla line next to it, 160 billion tokens, is what the 20 tokens per parameter rule would recommend for this size. The gap between them is the over-training choice the default is illustrating.

Is a compute-optimal model always the best choice?

No. Compute-optimal means the lowest loss for a fixed training budget. If the model will be used heavily, a smaller model trained on more tokens can be cheaper to serve while still performing well. If the model will barely be used, sticking close to the Chinchilla ratio wastes less training compute. The calculator shows the numbers but not that decision.

Can I enter fewer than a billion parameters?

Yes, use a decimal. A 350 million parameter model goes in as 0.35, and a 160 billion token dataset as 0.16 in the trillions field. Keep the two units in mind: parameters are in billions and tokens in trillions, so mixing them up changes the answer by a factor of a thousand.

Does the estimate apply to mixture-of-experts models?

Only if you enter the active parameters per token rather than the total. In a mixture-of-experts model each token passes through only some of the experts, so the compute per token follows the active count. Entering the full parameter count would overstate the FLOPs, and the Chinchilla target line was derived for dense models in any case.

How do I turn the days result into GPU-hours?

Multiply the days by the number of GPUs and then by 24. That gives GPU-hours, the unit most cloud providers price by. Because the calculator holds no prices, multiplying GPU-hours by your own hourly rate is a separate step. Remember to add margin for restarts, evaluation and idle time, which the days figure leaves out.

Why did doubling parameters double the days?

Because compute is six times parameters times tokens, and with tokens and hardware held fixed, time is proportional to compute. The presets show it: 4.8, 8 and 12 billion parameters on 2 trillion tokens take 14.88, 24.8 and 37.2 days. Doubling the token count instead would have the same effect.

Does training on repeated data count toward the token figure?

Yes. The token field should hold every token the model processes, including repeats from multiple epochs, because each one costs the same compute. What the formula cannot capture is that repeated tokens usually teach the model less than new ones. If you plan many passes over a small dataset, the loss you reach may disappoint.

Is 128 GPUs a sensible default to plan around?

It is a mid-sized cluster that makes the default run land in a few weeks, which is easy to reason about. Real teams use anything from a handful of GPUs for small models to many thousands for the largest. Change the count to match what you can actually access, and lower the sustained TFLOPS if you expect efficiency to fall at larger scale.

Why is the compute line labelled in zettaFLOPs?

Training budgets for billion-parameter models are so large that ordinary units become unreadable. A zettaFLOP is 10 to the 21 floating point operations, so the default budget of 96 zettaFLOPs is 96 followed by 21 zeros. The interpretation sentence writes the same figure as 96.00 times 10 to the 21, which is the same number in a different notation.

8B parameters, 2T tokens, 24.8 days

With the defaults, an 8 billion parameter model trained on 2 trillion tokens on 128 GPUs that each sustain 350 TFLOPS, the calculator answers 24.8 days of wall-clock training. Behind that it reports a compute budget of 96 zettaFLOPs, a ratio of 250 tokens per parameter, and a Chinchilla target of 160 billion tokens.

Those last two lines are worth reading together. The default run uses more than twelve times the token count that the Chinchilla rule would call compute-optimal for a model this size. That is not an error in the preset. It mirrors how many recent small open models have been trained, and it is one of the more interesting things this page lets you explore.

The rest of this guide walks through where each number comes from, what the sustained TFLOPS field really means, and what the estimate leaves out when you use it to plan a real run.

Where 96 zettaFLOPs comes from

The compute line uses the standard approximation C equals 6 times N times D, where N is the parameter count and D the number of training tokens.

The 6 has a simple origin. For each token, each parameter takes part in about one multiply and one add in the forward pass, which is 2 floating point operations. The backward pass costs roughly twice the forward pass, adding 4 more. Two plus four makes six.

For the defaults, 6 times 8 billion times 2 trillion is 96 times 10 to the 21, or 96 zettaFLOPs. One zettaFLOP is 10 to the 21 operations, so the unit on the result line is honest, even if the size is hard to picture.

The approximation ignores the extra work done by attention over long sequences, which grows with context length, and it ignores embedding lookups and other small terms. For models in the billions of parameters with ordinary context lengths, those extras are usually a modest share of the total. For very long context training they can matter more, and the true budget will be higher than this line shows.

Sustained TFLOPS already includes utilisation

This is the field most likely to be filled in wrongly. It asks for sustained throughput per GPU, meaning the useful model FLOPs each chip actually delivers during training, averaged over the run.

That is not the number on the spec sheet. A data centre GPU's advertised peak assumes every unit is busy every cycle. Real training loses time to communication between GPUs, memory traffic, pipeline bubbles and data loading. The fraction of peak you really achieve is called model FLOPs utilisation, or MFU.

The page description mentions MFU, but there is no separate MFU field. The calculator expects you to have applied it already. If you know your hardware's peak and expect a certain utilisation, multiply them and enter the product. Entering the raw peak will make the run look several times faster than it will be.

The default 350 TFLOPS is a sustained figure, not a peak. Cutting it to 240 TFLOPS stretches the estimate from 24.8 to 36.17 days, which shows how strongly the answer depends on getting utilisation right. A few points of MFU either way can move a long run by weeks.

The Chinchilla 20 tokens per parameter rule

The Chinchilla work from DeepMind asked a specific question: with a fixed training compute budget, how should you split it between model size and data? Their answer was to scale both together, at roughly 20 training tokens per parameter.

The calculator turns that into the Chinchilla 20x Optimal Token Target line. For 8 billion parameters it is 160 billion tokens. Set the token field to 0.16 trillion to match it and the ratio line reads 20 tokens per parameter, the compute falls to 7.68 zettaFLOPs, and training takes 1.98 days on the default cluster.

The same rule describes the original Chinchilla model itself: 70 billion parameters and 1.4 trillion tokens. Enter those and the ratio comes out at exactly 20, with a compute budget about six times the default's.

Compute-optimal is a narrow idea. It means the best final loss for a given training budget. It does not mean the best model for a given use, and that distinction explains the default preset.

A related point is that the 20 tokens per parameter figure is an approximation from one family of experiments. Later work with different data and setups has found somewhat different optimal ratios, so treat 20 as a rough anchor rather than a precise target. The calculator uses it only to give a reference line, and the days and compute figures do not depend on it at all. You can ignore the Chinchilla line entirely if you have already decided on a token budget for other reasons.

Why 250 tokens per parameter is a choice, not a mistake

A model trained far past the Chinchilla point spends extra training compute to make a smaller model better. That costs more up front, but the model is cheaper to run every time someone uses it, because inference cost scales with parameter count rather than with how many tokens were seen in training.

If a model will serve a great many requests, paying more once during training to get a smaller, stronger model can be the cheaper path overall. That is the logic behind training small models on token counts many times the Chinchilla target, as the default does at 250 tokens per parameter.

The presets show the trade-off. The Lower preset at 4.8 billion parameters, still on 2 trillion tokens, reaches 416.67 tokens per parameter and needs 14.88 days. The Higher preset at 12 billion parameters sits at 166.67 tokens per parameter and needs 37.2 days. Holding data fixed, compute and time scale directly with model size.

What the calculator cannot tell you is whether those extra tokens are worth it. Returns from over-training diminish, and the right ratio depends on your data quality, the model's intended use and how much inference you expect.

Checking a published training run against 6ND

One practical use of the page is sanity-checking claims. Model reports often give the parameter count, the number of training tokens and the hardware, and sometimes the total compute or the training time. The calculator lets you see whether those figures fit together.

Enter the parameter count and tokens, and the compute line should land close to any FLOP figure the report gives. If it is far off, the model may be a mixture of experts, where only some parameters are active per token, or the report may be counting something extra, such as long-context training or several stages.

Then enter the GPU count and adjust the sustained TFLOPS until the days line matches the reported training time. The TFLOPS value you end up with is the effective throughput the team achieved. Dividing it by the chip's peak gives an implied utilisation, which tells you how efficient their setup was.

This works in reverse for planning. If you know the utilisation a similar team achieved on similar hardware, you can use it to set the sustained TFLOPS field for your own run instead of guessing.

Doubling the cluster halves the clock, on paper

The days figure is the compute budget divided by total cluster throughput, which is sustained TFLOPS times GPU count. Double the GPUs and the estimate halves: twice the default count gives 12.4 days.

Real clusters do not scale that cleanly. As you add GPUs, more time goes to communication between them, and the sustained TFLOPS per GPU usually drops. If you expect lower efficiency at a larger scale, reduce the sustained figure when you increase the count, rather than assuming it stays at 350 TFLOPS per GPU.

Scaling up can also force changes to the batch size and the learning rate schedule, which may change how many tokens you need. The calculator keeps tokens fixed and lets you see the pure hardware effect, which is the right starting point but not the end of the planning.

Things the days estimate does not include

The 24.8 days is uninterrupted compute time. A real run also loses time to hardware failures and restarts, checkpoint saving, evaluation passes, and occasional loss spikes that send you back to an earlier checkpoint. Allowing some margin on top of the estimate is wise.

It covers pre-training only. Fine-tuning, preference training and any distillation step need their own compute, usually far smaller, but not zero. So do the many small experiments people run before committing to a full-size job.

It also says nothing about cost in money. To turn days into a budget, multiply the days by the GPU count and by 24 to get GPU-hours, then by whatever your provider charges per GPU-hour. The calculator does not do this step or hold any prices.

Finally, the token count is the number of tokens the model trains on, counting repeats. If your dataset is smaller than D and you plan several passes, the formula still uses the total tokens seen, but repeating data does not help the model as much as fresh data would.