liveBook · Manning

Floating-point operation count

As explained in Introduction to Generative AI, Second Edition

FLOPs are floating-point operations used to quantify computational work performed by a system or model.

How much computation does it take to train a large language model? A floating-point operation count, or FLOP count, estimates the mathematical operations performed during training. It measures work, not speed: floating-point operations per second (FLOPs/s) describes how quickly hardware performs that work. section 11.3

Training GPT-3 took roughly 10²³ FLOPs; many newer models use around 10²⁵, about 100 times as many. Such workloads can involve many GPUs running for hours in data centers that consume electricity and require cooling. A FLOP count is therefore useful context for resource demands, but it is not itself a measure of electricity use. section 11.3

The European Union also uses training compute as a policy threshold: under its AI Act framework, a general-purpose AI model trained with at least 10²⁶ FLOPs is classified as having systemic risk, bringing additional evaluation, risk-management, cybersecurity, and incident-reporting obligations. The threshold is practical, but imperfect. Data and training choices can let smaller models outperform larger ones, so operation count is a proxy for capability rather than a direct test of it. section 10.30

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Defines FLOPs and FLOPs/s, then gives scale comparisons and policy caveats without deriving operation counts.
Examples
Compares GPT-3’s roughly 10²³ training FLOPs with newer models near 10²⁵ and an EU threshold of 10²⁶.
What it assumes
Introduces FLOPs through mathematical operations and distinguishes total work from operations per second.
What you can do after
Evaluate/understand training-compute comparisons and why a compute threshold cannot directly establish model capability.
How it connects
Links FLOP counts to GPU performance, LLM training, data-center resource demands, and AI risk regulation.

Also explained in

Compare how 2 books explain floating-point operation count →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.