GPT-3 › The Scale of GPT-3
Language AI HandbookAll chapters GPT-3 › The Scale of GPT-3One section · Sections in this chapter2 / 25 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
GPT-3's defining characteristic is its size. At 175 billion parameters, it dwarfed all previous language models. To understand what this means in practice, it helps to compare it with its predecessors and to think carefully about what parameters represent.
Each parameter is a single floating-point number, a weight in a matrix that the model adjusts during training to minimize its prediction error. Parameters encode the model's learned knowledge about language: grammar, facts, reasoning patterns, stylistic conventions, and conceptual associations. More parameters mean more representational capacity, which in principle allows the model to store and manipulate more complex patterns. The question GPT-3's creators asked was whether simply scaling up the number of parameters, together with proportionally more data and compute, would yield qualitatively new capabilities rather than just marginal improvements.
The answer, as the table below shows, involved a dramatic escalation across every architectural dimension:
The jump from GPT-2 to GPT-3 represents more than a linear improvement. With 96 transformer layers, a hidden dimension of 12,288, and 96 attention heads, GPT-3 can represent far more complex patterns and relationships. The context length of 2,048 tokens means the model can consider roughly 1,500 words of context when making predictions. Each of these numbers reflects a deliberate design choice about where to invest capacity. The hidden dimension controls how rich the representation of each token can be. The number of layers controls how many successive transformations the model applies before producing its output. The number of attention heads determines how many different "perspectives" the model can use when looking at relationships between tokens. GPT-3 pushed all of these dimensions far beyond what had been tried before.
Think of the hidden dimension as the vocabulary of internal concepts the model works with. GPT-1's 768-dimensional hidden state can represent 768 independent directions of variation in token meaning. GPT-3's 12,288-dimensional space offers 16 times as many dimensions, allowing much finer distinctions. A word like "bank" can be represented differently depending on whether the surrounding context involves rivers, money, or aviation, and a higher-dimensional space gives the model more room to encode these distinctions precisely.

Training Data and Compute
GPT-3's training data, while not publicly disclosed in full detail, was substantially larger than GPT-2's WebText. The choice of training data matters as much as its size. Raw internet text contains an enormous quantity of low-quality content: spam, duplicate pages, garbled text, and offensive material. Simply collecting more text does not automatically produce a better model. OpenAI's team invested significant effort in filtering and weighting sources to prioritize quality while retaining diversity.
The training corpus included five sources, each chosen for different reasons:
- Common Crawl: A filtered version of web pages (410 billion tokens, weighted to contribute 60% of training). This provides the breadth necessary for general language understanding, but required aggressive quality filtering to remove noise.
- WebText2: An expanded version of GPT-2's Reddit-curated dataset (19 billion tokens). The original WebText dataset used Reddit upvotes as a proxy for quality: only pages linked from Reddit posts with significant engagement were included. WebText2 extends this collection further.
- Books1 and Books2: Two internet-based book corpora (12 billion and 55 billion tokens). Books provide long-form coherent text with complex narrative structure and reasoning, along with specialized vocabulary that is rare in web text.
- Wikipedia: The English Wikipedia (3 billion tokens). Despite being small relative to other sources, Wikipedia contributes dense factual content with reliable, encyclopedic coverage of thousands of topics.
The total training corpus contained approximately 499 billion tokens, though the model saw roughly 300 billion tokens during training due to dataset weighting that favored higher-quality sources. Notice that the weighting here is deliberate: Common Crawl contributes 410 billion tokens but is weighted to only 60% of training samples. Meanwhile, Books1 and Books2 together contribute about 67 billion tokens but are sampled at much higher rates than their raw token count suggests. The intuition is straightforward: a well-written book paragraph is more valuable for learning coherent language than a mediocre web page, even if you have far more web pages available. This selective weighting is one of the reasons GPT-3 produces unusually fluent and coherent text compared to what you might expect from internet-scraped data alone.


GPT-3 required approximately floating-point operations (FLOPs) to train, roughly 1,000 times more compute than GPT-2. At 2020 cloud computing prices, the estimated training cost exceeded $4 million. This figure does not include the cost of failed runs, hyperparameter searches, or preliminary experiments that informed the final training configuration.
The compute required for training grew even faster than the parameter count. This wasn't just about having more parameters; each parameter needed more training data to be utilized effectively. A rough estimate of training compute for a language model is:
where:
- : total floating-point operations (FLOPs) for training
- : number of model parameters
- : number of training tokens
- The factor of 6 accounts for the forward and backward passes (approximately 2 FLOPs per parameter per token for the forward pass, and 4 for the backward pass, since the backward pass computes gradients with respect to both activations and weights)
For GPT-3 with parameters trained on tokens, this yields FLOPs, matching the reported training compute. This observation, later formalized in scaling laws, showed that optimal training balances model size with data quantity and training compute. You cannot simply make a model very large and train it briefly; the performance improvements from size only materialize when the model sees enough data to fill its representational capacity.