Autonomy as Data Engine
What Tesla taught Karpathy about real-world AI.

“The North Star for the team is something we internally somewhat jokingly refer to as operation vacation…”conference talk, 2018 · 8:06
The lesson
Karpathy’s main shift at Tesla was to see autonomy less as a hand-coded driving program and more as a learned system whose behavior is shaped by data. In his Software 2.0 framing, the learned part of the system is not authored line by line in traditional code; optimization finds it inside neural network weights, and the dataset becomes a central programming surface1234. That changes the core question from “what rule should we write?” to “what examples, labels, and training setup will produce the behavior we want?”56.
This is especially important for driving because Tesla built Autopilot around vision and learning from raw video rather than relying on lidar or high-definition maps78. Once you choose that route, a large fraction of the problem becomes perception at scale: collecting the right scenes, training models that make many coordinated predictions, and improving them as new failures appear89. Karpathy’s broader lesson is that for hard real-world pattern-recognition problems, you often get farther by designing less of the solution manually and leaving more to optimization1011.
That does not make the work simpler; it relocates the difficulty into the data engine. Karpathy argues that the people defining labels and curating examples are effectively shaping the program, because their decisions determine what the model learns to do122. In autonomy, this means progress depends on a loop: deploy models, observe where they fail, gather or target more data for those cases, relabel carefully, retrain, and ship again. The model improves not mainly because of one clever architecture change, but because the entire loop gets better and faster56.
Scale then becomes unavoidable. Tesla’s autonomy stack involved many networks, many outputs, heavy training cost, and constant iteration, so the challenge was not just inventing a model but operating a system that can keep improving without regressions913. Karpathy’s internal “operation vacation” north star captures the ambition: move toward systems that can learn more of the stack with less manual patching, while the organization builds the tooling and compute needed to support that process1415. The deeper takeaway is that real-world AI becomes a full lifecycle discipline: data collection, labeling, training, evaluation, deployment, and infrastructure are all part of the product155.
4 principles from Andrej Karpathy
Treat the dataset as part of the program
In Karpathy’s view, learned systems are programmed through optimization over examples, so the dataset is not auxiliary; it directly shapes behavior. When a model underperforms, look first at whether the data and labels express the behavior you want.
“…code—that code is not written in C++. It's written in weights of a neural network.”
Design less, optimize more on hard perception problems
For problems like vision in driving, hand-built rules and features hit limits. A better approach is to define the objective and training setup well, then let optimization discover more of the solution.
“Let's forget about all that stuff that humans have designed with all their ingenuity, and let's try to just have a single kind of blob of compute…”
Build a failure-mining loop, not just a model
Autonomy improves through repeated cycles of deployment, finding misses, collecting examples, relabeling, and retraining. If that loop is slow or weak, model improvements will stall even if your architecture is strong.
“…this is a whole new way of designing software and we need tooling for it.”
Plan for scale from the start
Real autonomy is not a single network trained once; it is a large, expensive, multi-model system that must be updated repeatedly without regressions. That means infrastructure, compute, and tooling are core parts of the AI system.
“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.”
Moments to watch
In his own words
The quotes behind the lesson, word for word from the transcripts. Numbers match the lesson above.
“The optimization really writes the code; we only identify a region where we should search.”
“…your data set is really the code.”
“…code—that code is not written in C++. It's written in weights of a neural network.”
“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.”
“…there's really nothing that helps you write the 2.0 code…”
“…we don't use lidar and we don't use high-definition maps…”
“…everything that we built for the autopilot is basically based on computer vision, machine learning, on the raw video streams…”
“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.”
“…design less, and leave more to the optimization.”
“Let's forget about all that stuff that humans have designed with all their ingenuity, and let's try to just have a single kind of blob of compute…”
“…the labelers are kind of the programmers…”
“So if you had a single node with 8 GPUs, you would be training for a year…”
“The North Star for the team is something we internally somewhat jokingly refer to as operation vacation…”
“As you'll notice here on the bottom, we have a GPU cluster. The hardware team is also working on a project we call Dojo. And a Dojo is a neural network training computer and a chip. And so we hope to do the exact same thing for training as we did for inference: improve basically the efficiency by roughly an order of magnitude at a lower cost. But I'm not ready to talk about more details in that project just yet. So in summary, I talked about the full lifecycle of developing these neural hours for the autopilot and how we own everything in-house.”
Reflect
- Think of a system you work on that currently relies on rules or manual judgment. What would it mean to treat its examples, labels, or feedback traces as part of the code?
- Where in your work do failures get noticed but not systematically turned into better training data or evaluation cases?
- If your model had to improve every week without regressing, what tooling or process would you need before trying a new architecture?
Check your understanding
Go deeper
Andrej Karpathy on PyTorch at Tesla2018 · 11 min · full transcript
Andrej Karpathy on Software 2.0: Data Is the New Code2018 · 55 min · full transcript
Andrej Karpathy on Software 2.0: Scaling Autonomy at Tesla2019 · 33 min · full transcript
Andrej Karpathy on AI and Robotics: Models, Agents, and Education2024 · 44 min · full transcript
Andrej Karpathy on Software 2.0: Data Is the Code2017 · 18 min · full transcript