Home » Training Data and Compute: The Massive Scale Behind GPT-3 and GPT-4

The Massive Scale Behind Training GPT-3: Data, Compute, Money

By

–

Training Data and Compute: The Massive Scale Behind GPT-3 and GPT-4

Rewind to 2020, because the numbers still explain the industry. When OpenAI published GPT-3, it was the largest language model anyone had trained: 175 billion parameters. Here’s what it took, on paper, to build it once — 355 years of GPU time and $4.6 million, and that was shopping at the cheapest GPU cloud on the market. In plain terms, the recipe for modern AI was set by arithmetic like this: performance follows a power-law curve in model size, dataset size, and compute. Want a better model? Buy more of all three.

The architecture, intriguingly, was almost boring. GPT-3 kept the same attention-based design as GPT-2, just inflated: eight model sizes from 125M to 175B parameters, with the biggest running 96 attention layers of 96 heads each against the small version’s 12 layers of 12. The leap of three orders of magnitude needed no architectural breakthrough — more layers, wider layers, more data. And the field was compounding: BERT-Large held 355M parameters in 2018, GPT-2 reached 1.5B in early 2019, T5 stretched to 11B by late 2019, and GPT-3 landed at 175B in mid-2020. State-of-the-art size grew roughly tenfold a year, a pace that outran GPU memory and retired the era of “embarrassingly parallel” training; splitting models across chips became unavoidable.

Feeding the beast took 300 billion tokens. Common Crawl, filtered for quality, supplied 180.4 billion of them; WebText2 added 55.1 billion; two book corpora contributed 22.8 billion and 23.65 billion; Wikipedia chipped in 10.2 billion. Compare that with GPT-2’s roughly 10 billion tokens squeezed from 40GB of Internet text, and a curious number appears: GPT-3 packed 1.71 tokens of training data per parameter, where GPT-2 managed 6.66 — raising the honest question of whether these giants were reasoning or memorizing in style. The worry was serious enough that OpenAI scrubbed test sets of anything with a 13-gram overlap against training data. Most benchmark scores barely moved; a few tasks shifted enough to get flagged.

Then there is the compute bill in full. Training demanded 3.14E23 FLOPS. At a theoretical 28 TFLOPS per V100, with the best three-year reserved cloud pricing available, that is 355 GPU-years and $4.6 million for one run; a single RTX 8000, at 15 TFLOPS, would grind for 665 years. Memory was its own wall: 175 billion parameters at four bytes each means 700GB in FP32, more than an order of magnitude beyond the 48GB a top single GPU held, forcing parallelism inside each matrix multiply and across layers. Microsoft supplied the high-bandwidth V100 cluster that made it real.

What did the money buy? A model that skipped the fine-tuning step other systems required. Feed GPT-3 a description of the task, a few dozen sample pairs, and a prompt — “sea otter => loutre de mer” — then “cheese =>” — and it answers “fromage.” One model, every job. It wrote ~200-word articles that human judges spotted only about half the time, roughly 52%, near coin-flip, while the smallest 125M version was caught 76% of the time. The gaps showed too: it could suggest “The Tonight Show” was hosted by Megyn Kelly rather than Jimmy Fallon, it beat fine-tuned state of the art on French and German-to-English translation, yet trailed by 15% on the BoolQ reading task — brute scale bought fluency faster than reasoning.

The practical upshot, six years on: GPT-3 turned a scaling observation into an industry business plan. Every frontier model since has followed the same three dials — parameters, tokens, FLOPS — and the invoices have grown exactly as the power law promised. Understanding 2020’s bill of $4.6 million is understanding why today’s AI budgets look the way they do.

Sources

Get breaking stories first on our Telegram channel.

More stories by

Most read

AI Tools

Artificial Intelligence

Business

World News