Andrej Karpathy on Scaling And Compute
Karpathy sees AI progress as coming less from hand-written cleverness and more from scaling optimization over data and compute, then turning the learned weights into practical systems.
- The core move in modern AI is to let optimization discover the program instead of hand-writing most of it.
- Scaling works because pretraining compresses huge amounts of data into neural network weights, which then carry capabilities and knowledge.
- Compute is not a side detail: training frontier systems and real-world autonomy stacks is a major infrastructure problem.
- As systems scale, the bottleneck often shifts from model design to data curation, tooling, and iteration.
- He expects the next phase to be agents, but making them reliable will require more than just bigger models.

Scaling means handing more of the system to optimization
Karpathy’s basic view is that modern AI improves when humans specify the objective and search space, then let training discover the solution. In that frame, the learned system is not mainly a hand-authored program; optimization is doing the writing. That is why he repeatedly contrasts traditional code with learned weights and argues that the right direction is to design less and allow more to be found by training.1234
This is his broader Software 2.0 picture. Instead of relying on manually engineered rules for hard perception and intelligence problems, you move toward a larger learned system and let scale do more of the work. He even describes the trend as replacing intricate human design with a more uniform mass of compute.6
What scaling produces is compressed capability in the weights
Karpathy explains large models in very concrete terms: an LLM is basically weights plus the code that runs them. The important artifact is the weight file, because that is where the training process stores what it has extracted from data. In his view, pretraining compresses internet-scale text into parameters, and that compression is what gives the model its usable knowledge and behavior.789
This helps explain why bigger training runs matter. If the model is a learned artifact whose competence lives in its parameters, then more data and more optimization can produce a richer internal store of patterns and abstractions. He describes the result as a strange synthetic object rather than something brain-like in any simple sense, which is part of why he talks about these systems as alien artifacts.1011
Compute is a real bottleneck, not an accounting detail
Karpathy treats compute as central because training advanced models is an infrastructure challenge at every level. On language models, he points out that pretraining at meaningful scale involves large distributed systems with thousands of GPUs coordinating during optimization. The architecture may be understandable, but the act of training it at scale is a separate hard problem.13
He says the same from autonomy work. Tesla’s systems involved dozens of networks, thousands of predictions, and extremely expensive training loops that must be repeated without regressions. His examples make the point that scaling intelligence is inseparable from hardware, memory, kernels, throughput, and the engineering needed to keep iteration fast enough.141517
As models scale, data and iteration become the programming work
A key implication of Karpathy’s view is that once optimization writes more of the behavior, the dataset becomes a major programming interface. He says the dataset is the code, and in practice the people who label and curate examples are shaping model behavior much like programmers shape ordinary software. Scaling is therefore not just about larger models; it is also about better data engines.18199
This changes where effort should go. Tooling, evaluation, data collection, relabeling, and retraining become first-class engineering problems, yet he notes that the ecosystem is still immature for writing this kind of learned code. That is why scaling successful systems requires not only more compute but also stronger pipelines for finding failures and feeding them back into training.620
Bigger models are powerful, but agents need more than scale alone
Karpathy expects agents to define the next decade, but he does not present that as a simple story of just making models larger. He says the field is entering a long buildout phase where systems must become reliable enough to act like employees or interns, which current models still cannot do consistently. So scale matters, but product-grade agency needs additional ingredients beyond a larger pretrained model.2122
Part of the gap is that today’s models restart from scratch each session and lack a robust analogue of continual consolidation into weights. He also suggests that pretraining is a rough bootstrap process, useful but incomplete, and that future progress may require isolating a stronger cognitive core rather than only accumulating more stored knowledge. That makes his scaling view pragmatic: scale is the engine of progress so far, but not the whole recipe for dependable agents.242526
Karpathy on scaling and compute, in his own words
“…design less, and leave more to the optimization.”
“So if you had a single node with 8 GPUs, you would be training for a year…”
Where to watch
Andrej Karpathy on Software 2.0: Scaling Autonomy at Tesla2019 · 33 min · full transcriptBest single overview of why more data and compute push more of the stack from hand-written rules into learned systems.
Andrej Karpathy on Software 2.0: Data Is the Code2017 · 18 min · full transcriptThe clearest statement of his Software 2.0 view: optimization writes the code and datasets become the programming medium.
Andrej Karpathy on Large Language Models: from pretraining to agents2024 · 60 min · full transcriptShows how scaling looks in LLMs specifically: pretraining as compression into weights, then practical deployment through fine-tuning.
Andrej Karpathy on PyTorch at Tesla2018 · 11 min · full transcriptGrounds scaling in a real production system where compute, iteration speed, and training cost become unavoidable constraints.
Andrej Karpathy on Agents and AI Progress: why it’s a decade2024 · 146 min · full transcriptExplains why the next stage is agents and why scaling alone will not instantly make them dependable workers.
Andrej Karpathy on GPT-2 Reproduction: Rebuilding 124M From Scratch2022 · 241 min · full transcriptUseful if you want the concrete mechanics of the model being scaled, and why training those architectures becomes an infrastructure challenge.
Questions people ask
- How expensive is it to train Andrej Karpathy's Autopilot networks at Tesla?
- How small did Andrej Karpathy think powerful AI models could become?
- What does Andrej Karpathy mean by the 'cognitive core' in LLMs?
- Why does Andrej Karpathy say AI agents will take a decade to work like employees or interns?
- Why does Andrej Karpathy think current AI models lack continual learning?
- How does Andrej Karpathy compare GPT-3 scale to the model he built in the lecture?
Sources
Every quote above, word for word from the transcripts. Numbers match the text.
“The optimization really writes the code; we only identify a region where we should search.”
“…design less, and leave more to the optimization.”
“Software 1.0 is things like C++.”
“The code is now written in the weights of a neural network.”
“…this is a whole new way of designing software and we need tooling for it.”
“…a large language model is just two files…”
“…we kind of understand that they build and maintain some kind of a knowledge database…”
“…code—that code is not written in C++. It's written in weights of a neural network.”
“I think of it as a very complicated alien artifact.”
“…this network then dreams internet documents…”
“…everything here is just the other weights and biases and everything else of this Transformer…”
“So if you had a single node with 8 GPUs, you would be training for a year…”
“But all in all, if you're trying to train all of the neural networks for the autopilot, it is actually a fairly expensive task. In particular, today we would train 48 different networks that make 1,000 different predictions—just if you count the number of output tensors—and it takes 70,000 GPU hours to train to compile the autopilot. It leaves the neural network stack. So if you had a single node with 8 GPUs, you would be training for a year. So it's a lot of networks and a lot of predictions, and a lot of them must work and none of them can regress ever. And then you're not just training this once—you have to iterate on this.”
“Flash Attention is a kernel fusion operation…”
“…your data set is really the code.”
“…the labelers are kind of the programmers…”
“…there's really nothing that helps you write the 2.0 code…”
“…this is more accurately described as the decade of agents…”
“My reaction is we'll be working with these things for a decade. They're going to get better, and it's going to be wonderful. I was just reacting to the timelines of the implication. What do you think will take a decade to accomplish? What are the bottlenecks? Actually making it work. When you're talking about an agent, or what the labs have in mind and maybe what I have in mind as well, you should think of it almost like an employee or an intern that you would hire to work with you. For example, you work with some employees here. When would you prefer to have an agent like Claude or Codex do that work? Currently, of course they can't.”
“These models, when you boot them up and they have zero tokens in the window, they're always restarting from scratch where they were. So I don't know in that worldview what it looks like. Maybe making some analogies to humans—just because I think it's roughly concrete and interesting to think through—I feel like when I'm awake, I'm building up a context window of stuff that's happening during the day. But when I go to sleep, something magical happens where I don't think that context window stays around. There's some process of distillation into the weights of my brain. This happens during sleep and all this stuff. We don't have an equivalent of that in large language models. That's to me more adjacent to when you talk about continual learning and so on as absent.”
“I think that's probably holding back the neural networks overall because it's getting them to rely on the knowledge a little too much sometimes. For example, I feel agents, one thing they're not very good at, is going off the data manifold of what exists on the internet. If they had less knowledge or less memory, maybe they would be better. What I think we have to do going forward—and this would be part of the research paradigms—is figure out ways to remove some of the knowledge and to keep what I call this cognitive core. It's this intelligent entity that is stripped from knowledge but contains the algorithms and contains the magic of intelligence and problem-solving and the strategies of it and all this stuff. There's so much interesting stuff there.”
“…we're not building animals. We're building ghosts or spirits…”
How this guide was made: drafted with AI from the full transcripts of the recordings cited, then checked: every quotation must match a transcript word for word and be the speaker's own words, and an independent review gates accuracy. Methodology and corrections.

