FLOPs
Every number a model learns or predicts arrives through multiplications and additions on floating-point values. Count them and you have FLOPs — the currency in which training runs are budgeted, quoted and compared.
A count, not a speedThe same four letters get used for two different things, and the distinction decides whether a sentence makes sense. FLOPs is a total: the work a job requires. FLOP/s is a rate: the work a chip delivers per second. A training run costs a fixed number of operations, and dividing that by what your hardware actually sustains gives the wall-clock time and, at cloud prices, the bill.
The arithmetic you can do on a napkinTransformer compute is predictable enough to estimate before anything is launched:
- Training costs about 6 × parameters × training tokens operations — two for the forward pass, four for the backward. A 7-billion-parameter model on 2 trillion tokens therefore lands near 8 × 1022 FLOPs.
- Generating one token costs about 2 × parameters, which is why inference looks cheap per request and becomes the dominant cost at volume.
Scaling laws are written in these terms: Chinchilla asked how to split a fixed FLOP budget between parameters and training tokens and found most large models were badly under-trained. Hardware is sold the same way — an H100 quotes close to a thousand teraFLOP/s at bf16 — while a real run captures 30–50% of that, a gap tracked as model FLOPs utilisation. A compute budget, not an idea, is what usually caps a model's size.
FLOPs are floating-point operations — the unit in which the compute cost of a model is counted. Training a transformer takes roughly six times its parameter count times its training tokens; generating one token costs about twice the parameter count. Keep it distinct from FLOP/s, the rate a chip delivers. FLOP budgets drive every sizing decision: scaling laws, hardware choices and the price of a run are all expressed in them.
Think of petrol. You can describe a journey by the litres it burns, whoever happens to be driving. FLOPs are the same idea for computers: a count of the tiny sums and multiplications a machine has to perform. Training a language model means doing an almost unimaginable number of them, which is why these systems are built by organisations that can afford warehouses of chips and the electricity to run them. The count also explains the bill for using one: every word a chat assistant writes costs another small pile of these operations, so long answers cost more than short ones.