Lex Fridman PodcastGeorge Hotz: Comma.ai, OpenPilot, and Autonomous Vehicles | Lex Fridman Podcast #31
EVERY SPOKEN WORD
150 min read · 30,032 words- 0:00 – 15:00
The following is a…
- LFLex Fridman
The following is a conversation with George Hotz. He's the founder of Comma.ai, a machine learning based vehicle automation company. He is most certainly an outspoken personality in the field of AI and technology in general. He first gained recognition for being the first person to carrier unlock an iPhone and since then, he's done quite a few interesting things at the intersection of hardware and software. This is the Artificial Intelligence podcast. If you enjoy it, subscribe on YouTube, give it five stars on iTunes, support it on Patreon, or simply connect with me on Twitter @lexfridman, spelled F-R-I-D-M-A-N. And I'd like to give a special thank you to Jennifer from Canada for her support of the podcast on Patreon. Merci beaucoup, Jennifer. She's, uh, been a friend and an engineering colleague for many years since I was in grad school. Your support means a lot and inspires me to keep this series going. And now here's my conversation with George Hotz. Do you think we're living in a simulation?
- GHGeorge Hotz
Y- yes, but it may be unfalsifiable.
- LFLex Fridman
What do you mean by unfalsifiable?
- GHGeorge Hotz
So if the simulation is designed in such a way that they did like a formal proof to show that no information can get in and out, and if their hardware is designed to, for the, anything in the simulation to always keep the hardware in spec, it may be impossible to prove whether we're in a simulation or not.
- LFLex Fridman
So they've designed it such that it's a closed system, you can't get outside the system?
- GHGeorge Hotz
Well, maybe it's one of three worlds. We're either in a simulation which can be exploited, we're in a simulation which not only can't be exploited but like the same thing's true about VMs. Um, a really well-designed VM, you can't even detect if you're in a VM or not.
- LFLex Fridman
(laughs) That's brilliant. So we're, uh, it's, yeah, so the simulation's running on a, on a virtual machine?
- GHGeorge Hotz
Yeah. But now i- in reality all VMs have ways to detect.
- LFLex Fridman
That's the point. I mean, is it, uh, y- you've done quite a bit of hacking yourself, uh, and so you should know that, uh, really any complicated system will have ways in and out.
- GHGeorge Hotz
So this isn't necessarily true going forward. I spent my time away from Comma, I learned, uh, Coq.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
It's a dependently typed, like, uh, it's a language we're writing math proofs in.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
And if you write code that compiles in a language like that, it is correct by definition. The, the types check its correctness.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
So it's possible that the simulation is written in a language like this, in which case, you know...
- LFLex Fridman
Yeah, but that, that can't be sufficiently expressive a language like that.
- GHGeorge Hotz
Oh, it can.
- LFLex Fridman
It can be?
- GHGeorge Hotz
Oh, yeah.
- LFLex Fridman
Okay. Well so you, uh, hm, all right, so-
- GHGeorge Hotz
The simulation doesn't have to be Turing-complete if it has a scheduled end date. Looks like it does actually with Entropy.
- LFLex Fridman
I, uh, I don't think that, uh, a simulation as, that results in, uh, something as complicated as the universe wo- would have a form of proof th- of correctness, right? Uh, it's possible of course, uh...
- GHGeorge Hotz
We have no idea how good their tooling is, and we have-
- LFLex Fridman
True.
- GHGeorge Hotz
... no idea how complicated the universe computer really is. It may be quite simple.
- LFLex Fridman
It's just very large, right?
- GHGeorge Hotz
It's very, it's definitely very large.
- LFLex Fridman
But the fundamental rules might be super simple.
- GHGeorge Hotz
Yeah. Conway's game of life kind of stuff.
- 15:00 – 30:00
I'm not even sure…
- LFLex Fridman
at the distribution of, of smart people, smart people are generally good. And then this other person, I was talking to Sean Carroll, the physicist, and he was saying, "No, good and bad people are evenly distributed amongst everybody." My sense was good hackers are in general good people and they don't want to mess with the world. What's your sense?
- GHGeorge Hotz
I'm not even sure about that. Like, I have a nice life. Crime wouldn't get me anything. But if you're good and you have these skills, you probably have a nice life too, right? Like-
- LFLex Fridman
Right, you can use to further things. But is there an ethical... Is there some... Is there a little voice in your head that says, uh, "Well, yeah, if you could hack something to where you could hurt people and you could earn a lot of money doing it, though. Not hurt physically perhaps, but disrupt their life in some kind of way." I- isn't there a little voice that says-
- GHGeorge Hotz
Um, well, two things. One, I don't really care about money.
- LFLex Fridman
Right.
- GHGeorge Hotz
So like the money wouldn't be an incentive. The thrill might be an incentive.
- LFLex Fridman
The thrill.
- GHGeorge Hotz
But when I was 19, I read Crime and Punishment.
- LFLex Fridman
Right. Good.
- GHGeorge Hotz
That was another, that was another great one that talked me out of ever really doing crime.
- LFLex Fridman
(laughs)
- GHGeorge Hotz
Um, 'cause it's like, "That's gonna be me. I'd get away with it," but it would just run through my head. Even if I got away with it, you know? And then you do crime for long enough, you'll never get away with it.
- LFLex Fridman
That's right, in the end. That's a good reason to be good.
- GHGeorge Hotz
I wouldn't say I'm good.
- LFLex Fridman
(laughs)
- GHGeorge Hotz
I would just say I'm not bad.
- LFLex Fridman
You're a talented programmer and a, a hacker in a good positive sense of the word, word. You've, uh, played around, found vulnerabilities in various systems. What have you learned broadly about the design of systems and so on from that, from that whole process?
- GHGeorge Hotz
You learn to not take things for what people say they are.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
But you look at things for what they actually are.
- LFLex Fridman
Hmm. Yeah.
- GHGeorge Hotz
I understand that's what you tell me it is, but what does it do?
- LFLex Fridman
Right. And you have nice visualization tools to really know what it's really doing.
- GHGeorge Hotz
Oh, I wish... I'm a better programmer now than I was in 2014. I said, "Cura, that was the first tool that I wrote that was usable." I wouldn't say the code was great. I still wouldn't say my code is great. It's better.
- LFLex Fridman
So how was your evolution as a programmer except practice? You went... You started with C, at which point did you pick up Python? 'Cause you're pretty big in Python now.
- GHGeorge Hotz
Now, yeah. In, uh, in college. Uh, I went to Carnegie Mellon when I was 22.
- LFLex Fridman
Nice.
- GHGeorge Hotz
Um, I went back, I'm like, "All right, I'm gonna take all your hardest CS courses and we'll see how I do," right? Like, did I miss anything by not having a, a real, uh, undergraduate education?
- LFLex Fridman
Yeah.
- GHGeorge Hotz
Took, uh, operating systems, compilers, AI, and their like, uh, freshman reader math course. Um, and som-
- 30:00 – 45:00
Well, first time I…
- GHGeorge Hotz
I can gather a data set and train this net in, in, in weeks." And I did.
- LFLex Fridman
Well, first time I tried the implementation of MobileEye in a Tesla, I was really surprised how good it is.
- GHGeorge Hotz
Mm-hmm.
- LFLex Fridman
Uh, it's quite incredibly good 'cause I thought it's... Just 'cause I've done a lot of computer vision, I thought it'd be a lot harder to create a system that that stable. Uh, so that, I was personally surprised. It's, you know-... uh, I have to admit it 'cause I was kind of skeptical before trying it 'cause I thought, uh, uh, it would go in and out a lot more, it would get disengaged a lot more, and it's pretty robust. Uh, so what's... how, how, how hard was the problem when you t- t- uh, when you tackled it?
- GHGeorge Hotz
So I think AP1 was great, like, uh, Elon talked about disengagements on the 405, down in LA where like the lane marks were kind of faded, um, and the Mobileye system would drop out.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
Uh, like, I had something up and working that I would say was, like, the same quality-
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
... in three months.
- LFLex Fridman
Same quality? But how do you know? You, you, you say stuff like that-
- GHGeorge Hotz
Yeah.
- LFLex Fridman
... confidently, but you can't... uh, and I love it, but, uh-
- GHGeorge Hotz
Well-
- LFLex Fridman
... the question is, you can't... you, you're kind of going by feel 'cause you tested it out.
- GHGeorge Hotz
You're going by feel, absolutely.
- LFLex Fridman
Yeah.
- GHGeorge Hotz
Absolutely. Like, like I would take... I had, I borrowed my friend's Tesla.
- LFLex Fridman
Yeah.
- GHGeorge Hotz
I would take AP1 out for a drive.
- LFLex Fridman
Yep.
- GHGeorge Hotz
And then I would take my system out for a drive.
- LFLex Fridman
And it seems reasonably like, uh, the same. (sighs) So the 405, how hard is it to create something that could actually be a product that's deployed? I mean, uh, I've, I've read an article where Elon dis-, uh, responded, said something about you saying that, um, to build autopilot is, uh, is more complicated than a single-
- GHGeorge Hotz
Mm-hmm.
- LFLex Fridman
... George Hodgs-level job. How hard is that job to create something that would work across the, globally?
- GHGeorge Hotz
Um, I don't think global is the challenge, but Elon followed that up by saying, "It's gonna take two years and a company of 10 people."
- LFLex Fridman
Yeah.
- GHGeorge Hotz
And here I am, four years later with a company of 12 people, and I think we still have another two to go.
- LFLex Fridman
(laughs) Two years? So yeah, so what do you think, um, what do you think about, uh, how Tesla's progressing with autopilot V2, V3?
- GHGeorge Hotz
I think we've kept pace with them pretty well. I think Navigator and autopilot is terrible. We had some demo features internally of the same stuff, and we would test it, and I'm like, "I'm not shipping this even as, like, open source software to people."
- LFLex Fridman
Why do you think it's terrible?
- 45:00 – 1:00:00
Right. …
- GHGeorge Hotz
- LFLex Fridman
Right.
- GHGeorge Hotz
But overall, mostly, yeah.
- LFLex Fridman
That's so cool that you know all this stuff. That's, uh... I don't, uh, often talk to people that... 'cause it's such a rare car, unfortunately, currently.
- GHGeorge Hotz
We, we, we bought one-
- LFLex Fridman
Yeah.
- GHGeorge Hotz
... explicitly for this. We, we-
- LFLex Fridman
That's awesome.
- GHGeorge Hotz
... lost like, like 25K in the deprecation, but I feel it was worth it.
- LFLex Fridman
I was very pleasantly surprised that, uh, GM system was so innovative, uh, and really, uh, that, that it wasn't advertised much, wasn't talked about much.
- GHGeorge Hotz
Yeah.
- LFLex Fridman
Um, and I was nervous that it would die. (laughs) That it would disappear.
- GHGeorge Hotz
Well, I-
- LFLex Fridman
And that-
- GHGeorge Hotz
They, they put it on the wrong car. They should've put it on the Bolt and not some weird Cadillac that nobody bought. Um-
- LFLex Fridman
I think that's going to be into... uh, they're saying, at least, it's going to be into their entire fleet. So what do you think about... and if... as long as we're on the driver monitoring, uh, what do you think about Elon Musk's claim that driver monitoring is not needed?
- GHGeorge Hotz
Normally, I love his claims. That one is stupid. That one is stupid, and, you know, he's not going to have his level 5 fleet by the end of the year. Hopefully, he's like, "Okay, I was wrong. I'm going to add driver monitoring." Because when these systems get to the point that they're only messing up once every thousand miles, you absolutely need driver monitoring.
- LFLex Fridman
So let me play dev- 'cause I agree with you, but let me play devil's advocate.
- GHGeorge Hotz
Sure.
- LFLex Fridman
One possibility is that without driver monitoring, people are able to monitor, uh, s- uh, self-regulate, monitor themselves. You know, that... so your idea is obviously-
- GHGeorge Hotz
You're seeing all the people sleeping in, in Teslas? Uh...
- LFLex Fridman
Uh, yeah. Well, I'm a little skeptical of all the people sleeping in Teslas because, um, I, I've, I've stopped paying attention to that kind of stuff because I want to see real data. There's too much glorified... it's doesn't-
- GHGeorge Hotz
Yeah.
- LFLex Fridman
... feel scientific to me. So I want to know, you know, what... how many people are really sleeping in Teslas versus sleeping... I've... I was driving here sleep-deprived in a car with no automation.
- GHGeorge Hotz
Yeah.
- LFLex Fridman
I was falling asleep.
- GHGeorge Hotz
I agree that it's hype-y. It's just like... you know what? If you want to put driver monitoring, I, I, okay, I rented a... my last autopilot experience was I rented a Model 3 in March-
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
... and drove it around. The wheel thing is annoying. And the reason the wheel thing is annoying, we use the wheel thing as well, but we don't disengage on wheel. For Tesla, you have to touch the wheel just enough-
- LFLex Fridman
Yeah.
- 1:00:00 – 1:15:00
Yeah. …
- LFLex Fridman
and perception is similar to what you're describing, which is really turning into a... not some kind of modular thing, but really do... formulate it as a learning problem-
- GHGeorge Hotz
Yeah.
- LFLex Fridman
... and solve the learning problem with scale. So how many years... uh, point one is how many years would it take to solve this problem or- or just how hard is this freaking problem?
- GHGeorge Hotz
Well, the cool thing is I think there's a lot of value that we can deliver along the way.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
I think that you can build lane keeping assist, actually, plus adaptive cruise control, plus, okay, looking at Waze, extends to, like, all of driving.
- LFLex Fridman
Yeah, most of driving, right?
- GHGeorge Hotz
Right? Oh, your adaptive cruise control treats red lights like cars. Okay.
- LFLex Fridman
So let's jump around, which you mentioned that you didn't like, uh, Navigator and Autopilot.
- GHGeorge Hotz
Yeah.
- LFLex Fridman
What advice... how would you make it better? Do you think as a feature that if it's done really well, it's a good feature?
- GHGeorge Hotz
I think that it's too reliant on like hand-coded hacks for like h- how does Navigate on Autopilot do a lane change? It actually does the same lane change every time, and it feels mechanical. Humans do different lane changes.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
Humans sometimes will do a slow one, sometimes do a fast one. Navigate on Autopilot, at least every time I used it, it did the identical lane change.
- LFLex Fridman
How do you learn... I mean, this is a fundamental thing, actually.
- GHGeorge Hotz
Yeah.
- LFLex Fridman
Is, uh, the braking and then accelerating something that's still, uh... Tesla probably does it better than most cars, but it still doesn't do a great job of creating a comfortable, natural experience. And Navigate on Autopilot is just lane changes and an extension of that. So how do you learn to do a natural lane change?
- GHGeorge Hotz
So we have it, and I can talk about how it works. So I feel that we have the solution for lateral. Uh, we don't yet have the solution for longitudinal. There's a few reasons longitudinal is harder than lateral. The lane change component, the way that we train on it very simply is like, our model has an input for whether it's doing a lane change or not.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
And then when we train the end-to-end model, we, w- hand label all the lane changes 'cause you have to.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
I've, I struggled a long time about not wanting to do that, but I think you have to 'cause y- or-
- LFLex Fridman
For the training data.
- GHGeorge Hotz
For the training data, right? Uh, we actually, we have an automatic ground truther which automatically labels all the lane changes.
- LFLex Fridman
Is that possible?
- GHGeorge Hotz
To automatically label lane changes?
- LFLex Fridman
Yeah.
- GHGeorge Hotz
Yeah, detect the lane. I c- when it crosses it, right? And I don't know if they get that, that high percent accuracy, but it's like 95, good enough.
- LFLex Fridman
Okay.
- GHGeorge Hotz
Now, I set the bit when it's doing the lane change in the end-to-end learning. And then I set it to zero when it's not doing a lane change. So now if I wanted to do a lane change at test time, I just put the bit to a one and it'll do a lane change.
- 1:15:00 – 1:16:34
Oh, don't trust me.…
- LFLex Fridman
believe you, but I have to take it with a grain of salt because, I mean, you, you are an inspiration because you basically don't care about a lot of things that other companies care about. You don't try to bullshit, in, in a sense, like make up stuff, so d- drive up valuation. You're really very real and you're trying to solve the problem. I admire that a lot. What I don't necessarily fully, can't trust you on-
- GHGeorge Hotz
Oh, don't trust me. That's true.
- LFLex Fridman
... with all due respect, is how good it is, right? I can only ... But I also know how bad others are. And so (laughs) that-
- GHGeorge Hotz
I'll say two, I'll say two things about d- trust but verify, right?
- LFLex Fridman
Yeah.
- GHGeorge Hotz
I'll say two things about that. One is try, uh, get in a 2020 Corolla-
- LFLex Fridman
Yeah.
- GHGeorge Hotz
... and try OpenPilot 0.6 when, when it comes out next month. Um, I think already, you'll look at this and you'll be like-
- LFLex Fridman
Damn.
- GHGeorge Hotz
... "This is already really good." And then I could be doing that all with hand labelers and all with, with, like, like the same approach that, like, MobileEye uses.
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
When we release a model that no longer has the lanes in it, that only outputs a path-
- LFLex Fridman
Mm-hmm.
- GHGeorge Hotz
... then think about how we did that machine learning and then right away, when you see, and that's going to be in OpenPilot, that's gonna be in OpenPilot before 1.0, when you see that model, you'll know that everything I'm saying is true, because how else did I get that model?
- LFLex Fridman
Good. This-
- GHGeorge Hotz
You'll know that what I, what I'm saying is true about the simulator, right?
- LFLex Fridman
Yeah, yeah. That's super exciting.
- GHGeorge Hotz
Yeah.
- LFLex Fridman
That's super exciting. And, um ...
- GHGeorge Hotz
But, like, you know, I listened to your talk with Kyle, and Kyle was originally building, uh, the, the aftermarket system, and he gave up on it because of technical challenges.
Episode duration: 1:59:36
Install uListen for AI-powered chat & search across the full episode — Get Full Transcript
Transcript of episode iwcYp-XT7UI
Get more out of YouTube videos.
High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.
Add to Chrome