How expensive is it to train Andrej Karpathy's Autopilot networks at Tesla?

Karpathy says training Tesla's Autopilot stack is extremely expensive and operationally complex. At the time, Tesla trained 48 different networks making about 1,000 predictions, and the whole stack took about 70,000 GPU hours to train. He emphasizes that many predictions must work reliably, none can regress, and the team has to keep iterating on the 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.”
— Andrej Karpathy, conference talk, 2018 · at 7:23
Andrej Karpathy: Andrej Karpathy on PyTorch at Tesla

Key takeaways

  • Expect autonomy training to be computationally expensive at scale.
  • When a system has many outputs, reliability and regression testing become central.
  • Continuous iteration matters because the stack must keep improving after deployment.

Context

In the same Tesla talk, Karpathy is describing the scale of training required for the Autopilot system and why it is hard to run efficiently. The quote above is taken word for word from the recording's transcript.

In the transcript

…make sense is to actually have a pool of tasks, and some of the tasks are doing objects, some of the tasks are doing road layout—sorry—some of the workers might be doing depth, and so on. And these are all very heterogeneous workflows, but they coexist and they're training different pieces of the network at the same time. And then you can arrange them in synchronous asynchronous way or play

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.

at scale to get this to actually work. And then we are automating a lot of the workflows. It's not just about the neural network training itself but everything surrounding that. So in particular, we have to calibrate all the different thresholds. We have a process for that. We have a lot of in-the-loop valve, from our loop validation, other type of validation and evaluation to make sure that none…

Read the full transcript of conference talk, 2018

Topics

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 →