Skip to content

Free tool

LLM Training Compute Calculator

Estimate how much compute an LLM training run needs, how long it takes on a given cluster, or how many GPUs you need to hit a deadline. Based on the standard 6 × parameters × tokens rule of thumb.

ShareLinkedInXEmail

Your training run

GPU
billion
billion

2,000 billion = 2 trillion

TFLOPS

Dense BF16, no sparsity (NVIDIA published spec)

%

30–50% is typical for large runs

Solve for
GPUs

compute ≈ 6 × parameters × tokens = 8.40e+23 FLOPs

GPU-hours
589,821
Training time
24 days
On 1,024 GPUs
Nodes (8 GPUs each)
128
Training state memory
1.1 TB
At least 10 H200 GPUs to hold it, before activations

128 nodes of H200 is inside our buy box (16–256 nodes). We can stand it up in a Tier III US data center on a 12–48 month term.

Need this cluster?

Request H200 capacity →

Rule-of-thumb estimate for dense transformer training. Real runs vary with architecture, sequence length, parallelism and failures; add headroom for restarts and evaluation.

The formula behind it

For dense transformer models, total training compute is commonly estimated as 6 × N × D floating-point operations, where N is the number of parameters and D is the number of training tokens. The 6 covers the forward pass and the backward pass for each parameter and token.

Dividing that compute by the useful throughput of your cluster gives the time to train. Useful throughput is the GPU's peak throughput at your precision multiplied by model FLOPs utilization (MFU), the share of peak a real training run achieves. Large runs commonly land between 30% and 50% MFU depending on model, parallelism and network.

Memory: why GPU choice matters

Training with mixed precision and the Adam optimizer needs roughly 16 bytes of GPU memory per parameter for weights, gradients and optimizer state, before activations. That sets a floor on how many GPUs a model needs. GPUs with more HBM, like H200 (141 GB), B200 (192 GB) and B300 (288 GB), hold more of the model per GPU and reduce how far it must be sharded.

Turning the estimate into a cluster

  • Add headroom for restarts, evaluation and data pipeline stalls: 10–30% is common.
  • Round up to whole 8-GPU nodes, and check the network: large runs need a non-blocking InfiniBand fabric to keep MFU high.
  • Plan checkpoint storage alongside compute: checkpoints of large models are large and frequent.

Frequently asked questions

How many GPUs do I need to train an LLM?
It depends on parameters, tokens, GPU throughput, utilization and your deadline. Total compute is about 6 × parameters × tokens; divide by useful throughput per GPU and your target time to get the GPU count. The calculator does this for you.
What is model FLOPs utilization (MFU)?
MFU is the share of a GPU's peak throughput that a training run actually achieves. It accounts for communication, memory movement and idle time. 30–50% is typical for large, well-tuned runs.
Why is B300 throughput left blank?
Enter the dense throughput for your precision from your vendor's datasheet. We prefill H100, H200 and B200 with NVIDIA's published dense BF16 figures without sparsity.
Is the 6 × N × D estimate exact?
No. It is a widely used rule of thumb for dense transformers. Mixture-of-experts models, long sequence lengths and other architecture choices change the real number.