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.”
— Andrej Karpathy, Conference keynote, 2022 · at 1:50:48
Andrej Karpathy: Andrej Karpathy on GPT From Scratch: How ChatGPT Works

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…

Read the full transcript of Conference keynote, 2022

Topics

What others said about artificial intelligence

More questions about Andrej Karpathy

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.

Search every transcript
Open the full search page →