LLM Training FLOPs Calculator
Training compute ≈ 6 × parameters × tokens. A 70B model on its Chinchilla-optimal 1.4T tokens needs 5.88e23 FLOPs, about 413,000 H100 GPU hours at 40% MFU, or 16.8 days on 1,024 GPUs (Kaplan 2020, Hoffmann 2022, NVIDIA H100 datasheet; checked 23 October 2026).
How to use
- Enter the parameter count and the training tokens, both in billions. The Chinchilla optimal token count is shown for reference.
- Pick a GPU or type its peak dense BF16 TFLOPS, then set the number of GPUs and the model FLOPs utilization (MFU).
- Optionally enter a price per GPU hour to get the cost.
How it works
Training FLOPs ≈ 6 × N × D, where N is parameters and D is training tokens: 2 for the forward pass and 4 for the backward pass per parameter per token (Kaplan et al., arXiv 2001.08361).
Compute-optimal tokens ≈ 20 × N (Hoffmann et al., Chinchilla, arXiv 2203.15556): 70B parameters with 1.4 trillion tokens.
GPU hours = FLOPs ÷ (peak TFLOPS × 10^12 × MFU) ÷ 3,600. Peak dense BF16: H100 SXM 989 TFLOPS, A100 312 TFLOPS from NVIDIA datasheets (the 1,979 figure for H100 includes sparsity). Days = GPU hours ÷ GPUs ÷ 24.
MFU is an assumption: large runs typically report 30 to 50 percent. The price per GPU hour is your own number. Restarts, evaluation and failed runs are not included. Sources checked 23 October 2026.
Sources: Scaling Laws (arXiv 2001.08361) · Chinchilla (arXiv 2203.15556) · NVIDIA H100 datasheetLast reviewed 2026-10-23
FAQ
How many FLOPs to train a 70B model?
With the Chinchilla 1.4 trillion tokens, 6 × 70e9 × 1.4e12 = 5.88e23 FLOPs, about 413,000 H100 hours at 40 percent MFU.
How long does that take on 1,024 H100s?
About 16.8 days at 40 percent MFU, without restarts.
Why is my real number higher?
Real runs add evaluation, checkpointing, failures and experiments. Meta reported about 1.46 million H100 hours for Llama 3.1 8B, more than the formula for its 15 trillion tokens.
Does this work for fine-tuning?
Yes for full fine-tuning: use the fine-tuning tokens as D. For LoRA the backward pass is cheaper, so 6ND overestimates.