%3C/text%3E%3C/svg%3E">
💻
💻 Tech & IT

Model Training Compute (FLOPs) & Time Estimator

Results update as you type.

Your numbers

Understanding the model training compute and time estimator — concept and principle

Training a large neural network is measured in floating-point operations (FLOPs). This estimator uses the widely cited rule that training a dense transformer costs about 6 FLOPs per parameter per training token, then divides that total by the throughput your GPUs actually achieve to estimate wall-clock days and total GPU-hours. It is useful for budgeting and sizing a cluster.

Compute and time to train a 7B model on 1T tokens6 × 7 billion parameters × 1 trillion tokens = 4.2 × 10²² FLOPs. 256 GPUs at 989 TFLOPS and 40% utilisation deliver 1.01 × 10¹⁷ FLOP/s, so training takes about 4.8 days or 29,491 GPU-hours.Training compute ≈ 6 × parameters × tokens6×7 Bparameters×1 Ttokens= 4.2 × 10²² FLOPs… × 256 GPUs989 TFLOPS each40% used1.01 × 10¹⁷/s≈ 4.8 days29,491 GPU-hours
4.2 × 10²² FLOPs on 256 GPUs at 40% utilisation take about 4.8 days.

How it is calculated

MFU (model FLOPs utilisation) is the share of the GPU's theoretical peak that goes into useful model computation.

The principle

In a forward pass, each parameter takes part in roughly one multiplication and one addition per token, about 2 FLOPs. The backward pass computes gradients with respect to both activations and weights and costs about twice the forward pass, roughly 4 FLOPs. Together that gives about 6N FLOPs per token. Kaplan et al. (2020) used it in their scaling-law study. It ignores the attention computation that grows with sequence length, which is small for typical context lengths in large models.

Worked example

  1. N = 7 × 10⁹ parameters, D = 1,000 × 10⁹ = 10¹² tokens.
  2. C = 6 × 7 × 10⁹ × 10¹² = 4.2 × 10²² FLOPs.
  3. Effective throughput = 989 × 10¹² × 256 × 0.40 = 1.0127 × 10¹⁷ FLOP/s.
  4. Time = 4.2 × 10²² ÷ 1.0127 × 10¹⁷ = 414,718 s ÷ 86,400 = 4.80 days.
  5. GPU-hours = 4.80 days × 24 × 256 = 29,491 GPU-hours.
How Total compute (FLOPs) changes with Parameters (billions)How Total compute changes with Parameters02e+224e+226e+228e+221e+231.753.55.2578.7510.514Example: 4.2e+22Parameters (billions)
Each point is the calculator re-run with only “Parameters (billions)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Parameters (billions)Total compute (FLOPs)
1.751.05e+22
3.52.1e+22
5.253.15e+22
74.2e+22
8.755.25e+22
10.56.3e+22
148.4e+22

How to read the result

The result is ideal compute time. Real runs also lose time to evaluation, checkpointing, restarts after hardware failures and debugging, so plan a margin. MFU is the most uncertain input: the PaLM paper, which introduced the term, reported about 46%, and poorly optimised setups can be much lower. Multiply GPU-hours by the hourly price for cost.

Common mistakes

Keep in mind: This is an order-of-magnitude estimate for dense transformers. Real training time depends on networking, parallelism strategy, data loading and failures, so test throughput on a short run before committing a budget.

Frequently asked questions

Why 6 and not 2?

2 FLOPs per parameter per token is inference (forward only); training adds the backward pass, about 4 more.

How many tokens should a model be trained on?

Hoffmann et al. (2022) found about 20 tokens per parameter compute-optimal, but many models are trained far longer to be cheaper at inference.

Does fine-tuning use the same formula?

Yes for full fine-tuning, with D as the fine-tuning tokens.

Sources: J. Kaplan et al., Scaling Laws for Neural Language Models, arXiv:2001.08361, 2020 · J. Hoffmann et al., Training Compute-Optimal Large Language Models, arXiv:2203.15556, 2022 · A. Chowdhery et al., PaLM: Scaling Language Modeling with Pathways, arXiv:2204.02311, 2022

Checked 8 Nov 2026. Standard formulas and RFC/IEEE definitions, computed locally in your browser — nothing you type is sent anywhere.

💻 All tech & IT tools →🌍 Calculators by country →