SIMETRIUM .COM flop · mac · mfu
C ≈ 6 · N · D
EN|36 languages
FLOPFLOPFLOPFLOPFLOPFLOP×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+×+x →↓ wΣ000072144216288360432504FLOPclock 1.98 GHzSYMBOL PLATE1 MAC = 2 FLOP6 × 6 cells · 72 FLOP per clockIEEE 754-2019 · ISO/IEC 60559:2020
Letter case
Work is recorded in FLOP: “the training cost 3.14·10²³ FLOP”. Speed is in FLOP/s, or FLOPS for short with a capital S: “the GPU delivers 989 TFLOPS”. With a lowercase s, FLOPs is just the plural, that is, volume again, not speed.
Do not confuse
One MAC — a multiplication with an addition — is two FLOP. Many counting tools print the word FLOPs but count MACs, and figures in papers differ by exactly a factor of two. And do not confuse FLOP with TOPS: that is how operations on integers are written, usually in the INT8 format.
Under the cast letters FLOP works the heart of the accelerator — a systolic array of thirty-six compute cells. Golden input numbers slide in from the left, blue weights drop in from the top, and where they meet, the cell flashes: it has multiplied two numbers and added the result to its running sum, that is, done two FLOP. The flashes run in a diagonal wave, finished sums flow out to the right along the bus, and the display below counts seventy-two operations for every tick of the clock.
Unit passport · AI series · amount of computation

FLOP

Floating-point operation
C ≈ 6 · N · D · 1 MAC = 2 FLOP · 1 PF-day = 8.64·10¹⁹ FLOP

Training GPT-3 took 3.14·10²³ operations on fractional numbers. Imagine that all of humanity, eight billion people, dropped everything and did long arithmetic by hand, each doing one operation per second, without sleep or days off. How many years would it take to do the work the GPUs finished in a few weeks? You can check your guess in section 01, and meanwhile here is a hint: longer than our species has existed.

FLOP is one arithmetic operation on floating-point numbers: an addition or a multiplication. A neural network's whole workload is made of such crumbs, and their number is an honest measure of what it costs to train it and what each of its answers costs. There is a surprisingly simple rule: training a model with N parameters on D tokens takes about 6·N·D operations, and one token of an answer about 2·N. This sheet holds a calculator that turns these numbers into days on real GPUs, megawatt-hours and money, an experiment with the “Chinchilla” law, a workshop that shows where the six comes from, and ways to count the FLOP of your own model in code.

What it is
one floating-point operation; a measure of the amount of computation
Notation
FLOP, plural FLOPs; C in formulas; in Chinese 浮点运算
Rate
FLOP/s = FLOPS; TFLOPS = 10¹², PFLOPS = 10¹⁵, EFLOPS = 10¹⁸
Train
C ≈ 6·N·D: two for the forward pass, four for the backward
Answer
≈ 2·N for every token of the prompt and the answer
References
IEEE 754-2019 = ISO/IEC 60559:2020 · EU AI Act, Art. 51: threshold 10²⁵ FLOP
Calculate a training run Build a cluster Where the six comes from
Calculator
Tool · training by the 6·N·D formula

How much compute, how many days and megawatt-hours

Pick a known model or enter your own: the number of parameters and the number of training tokens. Then a GPU, how many of them, and the share of peak speed you manage to squeeze out in practice — it is called MFU, and good teams get about forty percent. The calculator works out operations, time, cluster power, energy and rental; enter the price per hour in your own currency.

Tool · one answer by the 2·N formula

What an answer costs and when answers catch up with training

Every token of the prompt and the answer passes through the model once, forward, and costs about two operations per parameter. Enter the model's active parameters, the length of the prompt and the answer, and the number of answers per day. The GPU is taken from the left-hand calculator: you will see why it reads a prompt in a fraction of a second but writes an answer word by word — limited not by computation but by memory.

Etymology

Floating point, work, and the fifth power of a thousand

Three stories are hidden in the four letters FLOP. The first is about a point that can move along a number like a cork on water, so as to write equally precisely both the mass of an electron and the mass of a galaxy. The second is about the Latin word for “work”, from which grew both the operations of a surgeon and the operations of a processor. And the third is about the Greek numerals with which we now measure GPUs: peta is the fifth power of a thousand, exa the sixth.

floating pointEng.
flotian · to float→punctum · a prick, a point→mantissa × 2ᵉ
Old English flotian, “to stay on water”, and Latin punctum, “a prick”, with which a dot was made. In English the fractional part is separated by a point, in many other languages by a comma, hence two translations of one term. The point “floats”: a number is stored as a string of significant digits and an exponent saying where to put it — 6.02·10²³ or 1.6·10⁻¹⁹ take up the same amount of room.
operationLat. operatio
opus · work, labour→operari · to work→one action
From Latin opus, “work” — the same root as in “opera”, “a composition”. Operatio meant any work, then the action of a doctor, of the military and, at last, of a mathematician. In FLOP an operation is one addition or one multiplication; division and square root cost more, but there are so few of them in neural networks that they are hardly counted.
peta, exaGk. πέντε, ἕξ
pénte · five→1000⁵→PFLOPS
The prefixes peta and exa were adopted in 1975: letters dropped out of the Greek “five” and “six”, giving 1000⁵ and 1000⁶. Tera comes from “monster”, giga from “giant”. A 2024 GPU delivers petaflops, the largest supercomputers exaflops, and the next prefix, zetta, does not yet appear in machine names.
What it is called in other languages
浮点运算 fúdiǎn yùnsuàn — Chinese, “floating-point operation”; the training volume is written 算力, “computing power”
浮動小数点演算 — Japanese; 부동소수점 연산 — Korean: literally the same
عملية فاصلة عائمة — Arabic, “floating-point operation”; in the press, simply FLOPS
operación de coma flotante — Spanish, ponto flutuante — Portuguese, virgule flottante — French
Gleitkommaoperation — German: “sliding comma”; फ़्लोटिंग पॉइंट — Hindi
floating-point operation — Russian; in Mongolia and Indonesia the English FLOP is more common
FLOP · FLOPs
floating-point operation(s), the amount of work
FLOP/s · FLOPS
operations per second, the speed
MAC · FMA
multiply-accumulate, fused multiply-add: a·b + c at once, two FLOP
PF-day
petaflop/s-day: a petaflop/s for a whole day, 8.64·10¹⁹ FLOP
MFU · HFU
model / hardware FLOP utilization: the share of peak that went into real work
TOPS
tera operations per second: integer, usually INT8
01 · Definition and matrix multiplication

Multiply and add, trillions of times

Picture a cashier ringing up a receipt: the price of each item is multiplied by the quantity and added to the total. One line of the receipt is one multiplication and one addition, two FLOP. A neural network does exactly the same. Each of its layers is a table of numbers, a weight matrix, and to pass one token through a layer, every input number must be multiplied by its weight and the results added up. Almost all of a model's work is matrix multiplication, and a matrix of size m × k times a matrix k × n has exactly m · n · k such receipt lines, that is, 2 · m · k · n operations.

Simple rules follow. Every model parameter is one weight, and when a token is read it takes part in one multiplication and one addition: two FLOP per parameter. In training the model first reads a token and then goes backwards to work out how to adjust the weights, and the backward path is twice as expensive as the forward one: corrections must be computed both for the weights and for the inputs of each layer. Two plus four — that is six operations per parameter per token.

N — parameters · D — training tokens · C — FLOP · P — peak FLOP/s · u — MFU · L — layers · d — width · T — context
Interactive · matrix multiplication counter

How many FLOP in one multiplication

On the left the input matrix m × k, on top the weights k × n, bottom right the result. The highlighted result cell is assembled from a whole row on the left and a whole column on top. Pick an example or enter your own sizes.

Reference · benchmark values
3.14·10²³FLOP to train GPT-3 in the 2020 OpenAI report: 6 · 175 billion parameters · 300 billion tokens 989 Tdense TFLOPS in BF16 on the H100 SXM, the main training GPU of 2023–2024 38–43 %the MFU Meta reached training Llama 3.1 405B on 16 thousand H100s 10²⁵FLOP — the AI Act threshold of the European Union: a general-purpose model trained with that much is deemed to carry systemic risk
The riddle solved

A million two hundred thousand years, by hand

Eight billion people doing one operation per second make 8·10⁹ FLOP per second together, and in a year, which has about 3.15·10⁷ seconds, 2.5·10¹⁷ operations. Dividing 3.14·10²³ by that number gives about 1.2 million years. Our species, Homo sapiens, has existed for roughly three hundred thousand years, so humanity would have had to start counting long before it appeared — back in the days of Homo erectus.

And the GPUs managed in roughly a few weeks, because a single V100, the kind GPT-3 was trained on, delivers 125 trillion operations per second — like fifteen thousand humanities at once. Today's H100 is another eight times faster. And still one such card, at the usual training utilisation of forty percent, would take almost twenty-five years to compute GPT-3; the secret is that they are installed by the thousand and made to work as one machine. Build such a cluster in the lab below.

Interactive · three experiments with compute

Build a cluster, split a budget, count the answers

In the “Cluster” experiment you pick a model and GPUs and move their number: each cell on the canvas is a card or a whole rack, and below a training calendar grows along with the electricity bill. In the “Chinchilla” experiment you have a fixed budget of operations and must decide where to put it — into a big model or a long training run; the curves come from the real law derived by DeepMind from four hundred models. In the “Answers” experiment you see how millions of short answers eat up, within a few months, more compute than the whole training did.

Model
GPU
GPUs in the cluster
MFU — share of peak at work
Compute budget
Model size
Model
Tokens per answer · prompt 1000
Answers per day

Chart · training compute
A hundred-million-fold in twelve years
Years along the horizontal, training FLOP up the vertical on a logarithmic scale: each division is ten times more. The dashed line is growth of about 4.5 times a year, as counted by the researchers at Epoch AI. The horizontal lines are thresholds beyond which the law demands special reporting from developers. The ≈ sign marks an estimate by independent researchers, not data from the developer.
year of publicationFLOP, log scale
Chart · GPU peak by format
The shorter the number, the faster the card
The same GPU computes at different speeds depending on how many bits are given to a number: every step down in precision doubles the peak. Manufacturers gladly print on the box the figure “with sparsity” — twice as much again, but it is reachable only if half the weights are zeros. Switch and compare.
number formatTFLOPS, log scale
02 · Orders of magnitude

From one multiplication to 10²⁶

Drag the slider: it moves along a logarithm, and each division is ten times the previous one. Twenty-seven divisions separate a single multiplication in a notebook from the most expensive training runs of 2025. Somewhere in the middle will be your question to a chatbot, and a little to the right everything humanity could count by hand in a year.

left: 1 FLOP · right: 10²⁷ FLOPper developers' reports; the ≈ sign is an Epoch AI estimate
03 · Workshop: where the six comes from

What the FLOP of one token are made of

The 6·N·D formula honestly counts multiplications by weights but forgets attention: each token compares itself with all the previous ones, and this work grows with the context length, not with the number of parameters. Google's engineers, in the PaLM report, added to the six a correction of 12·L·d·T. Pick the model's shape and the context length and see when the correction stops being a trifle. The recompute switch shows one more hidden expense: to save memory, intermediate results are not stored but computed again.

Tool · FLOP per training token
Context length T

Each bar is a context length from 512 to a million tokens; the height is FLOP per training token as a multiple of 6·N. Gold is multiplications by weights, violet is attention, the pale cap is recomputation. With a causal mask, where a token looks only backwards, attention is in fact half as cheap; PaLM does not account for this, and neither do we.
Cheat sheet · how not to go wrong with FLOP
04 · FLOP in code

What to count the FLOP of your model with

There are many counters, and the catch is that half of them call the result “flops” but count multiplications with additions, MACs. If your figure is half of that in a paper, look here: the “counts” column says what the tool actually returns. Tap a row to read the details.

toolcallcounts

For work · counting and MFU

Three snippets worth keeping at hand

The first honestly counts the operations of one step in PyTorch, the second turns the training speed from the log into MFU — the main number by which engineering teams are compared — and the third asks the XLA compiler to estimate a program's work before it is run.

05 · Writing rules
Correct
The volume is in FLOP: “training — 3.8·10²⁵ FLOP”.
The speed is in FLOP/s with a prefix and a format: “989 TFLOP/s, BF16, without sparsity”.
State whether it is MAC or FLOP: “4.1 GMAC = 8.2 GFLOP per image”.
For a mixture of experts count by active parameters: “6 · 37 billion · D”.
Along with MFU, name the peak it was counted against.
Incorrect
“Training took 10²⁵ FLOPS” — that is a speed, not a volume.
Comparing the FP64 of a supercomputer with the FP8 of a GPU as if they were the same flops.
Taking the “with sparsity” figure from the box for a time estimate.
Assuming the card runs at peak: in practice rarely more than half.
Mixing up TOPS and TFLOPS: integer operations are a different count.
06 · Neighbouring units
07 · Historical section
LINPACK · FP641.10EFLOP/s
Frontier, 2022 · 74 cabinets
Note

In May 2022 the American supercomputer Frontier became the first in history to show more than a quintillion operations per second — an exaflop — on the Linpack test. A hall the size of a basketball court was set aside for it, and it consumes about twenty megawatts. And a couple of years later GPU makers began to sell an “exaflop” cabinet the size of a refrigerator. How is that possible if progress could not have sped up seventy-fold?

The answer is that these are different flops. Linpack counts in the FP64 format, where a number takes sixty-four bits and the rounding error is tiny: this is how climate and nuclear reactions are simulated. Neural networks do not need such precision, eight or even four bits are enough for them, and every step down in precision doubles the speed. So when comparing machines, always ask in which format, and with or without sparsity.

FP4 · sparse≈ 1.4EFLOP/s
a cabinet of 72 GPUs, 2024
Series · AI
units of language models

How a neural network is measured

FLOP ties everything together: tokens, parameters and epochs multiply into work, and work divided by the speed of the GPUs turns into time, megawatt-hours and money. On the left is the dossier of a single query to a language model, each line leading to its own sheet; on the right are the sheets of the series.

usage · one request
Catalogue of quantities
the whole index →
the foundation · 7 units

The seven SI base units

on the sheet’s topic · model training and AI
The index lab: a glass of cabbage juice, a burner, a glass of water on a cold plate and a gear train
Index · all quantities on one page
The lab at the entrance to the index

A drop of acid changes the colour of the juice, salt colours the flame, water freezes at a tap. Below them are all Simetrium sheets, by discipline and alphabetically.

Open the index →
08 · Your language
every link is a real page in that locale

Read it in your own language

translated and checkeddraft translationqueued