How does Andrej Karpathy compare GPT-3 scale to the model he built in the lecture?
Andrej Karpathy said the architecture is nearly identical, but the scale is radically different. He contrasted his roughly 10 million-parameter Shakespeare model trained on about 300,000 tokens with GPT-3's 175 billion-parameter models trained on 300 billion tokens. His point was that the core idea is the same, but industrial-scale training requires massive data and thousands of GPUs.
“But otherwise, these hyperparameters should be fairly recognizable to you, and the architecture is actually like nearly identical to what we implemented ourselves. But of course, it's a massive infrastructure challenge to train this. You're talking about typically thousands of GPUs having to, you know, talk to each other to train models of this size. So that's just a pre-training stage now.”

Key takeaways
- The same Transformer design can scale from tiny demos to frontier models.
- Model size and training data both grow by orders of magnitude.
- Training large language models is as much an infrastructure challenge as an algorithmic one.
Context
In the latter part of the 2022 keynote, Karpathy compared the toy GPT he built live with GPT-3's training setup. The quote above is taken word for word from the recording's transcript.
In the transcript
…of different sizes, but the biggest Transformer here has 175 billion parameters. Uh, so ours is again 10 million. They used this number of layers in the Transformer; this is the n; med; this is the number of heads; and this is the head size; and then this is the batch size, uh, so ours was 65 and the learning rate is similar. Now, when they train this Transformer, they
But otherwise, these hyperparameters should be fairly recognizable to you, and the architecture is actually like nearly identical to what we implemented ourselves. But of course, it's a massive infrastructure challenge to train this. You're talking about typically thousands of GPUs having to, you know, talk to each other to train models of this size. So that's just a pre-training stage now.
After you complete the pre-training stage, uh, you don't get something that responds to your questions with answers and is not helpful and etc. You get a document completer, right? So it babbles, but it doesn't babble Shakespeare; it babbles internet. It will create arbitrary news articles and documents, and it will try to complete documents because that's what it's trained for. It's trying to complete the sequence. So when…
Topics
What others said about artificial intelligence
More questions about Andrej Karpathy
- Why did Andrej Karpathy say the model he built is decoder-only?
- What did Andrej Karpathy say about whether reasoning models can generalize beyond math and code?
- What did Andrej Karpathy say changes when you move from bigram models to transformers?
- What did Andrej Karpathy say about why tokenization causes strange LLM behavior?
- What did Andrej Karpathy say about ownership of AI models as a personal exocortex?
- What did Andrej Karpathy say about why deep learning felt more compelling than traditional AI?
All Andrej Karpathy answers · All Andrej Karpathy recordings
How this answer was made: the quote is checked word for word against the transcript of the recording and confirmed as the speaker's own words; the summary above it was drafted with AI from that transcript and quality-checked. Methodology and corrections.