vazazon

Untitled

Jun 20th, 2025
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.87 KB | None | 0 0
  1.  
  2. Search in video
  3. Intro
  4. 0:01
  5. please welcome former director of AI Tesla Andre Carpathy
  6. 0:07
  7. [Music] hello
  8. 0:14
  9. [Music] wow a lot of people here hello
  10. 0:22
  11. um okay yeah so I'm excited to be here today to talk to you about software in the era of AI and I'm told that many of
  12. 0:30
  13. you are students like bachelors masters PhD and so on and you're about to enter the industry and I think it's actually
  14. 0:36
  15. like an extremely unique and very interesting time to enter the industry right now and I think fundamentally the
  16. 0:42
  17. reason for that is that um software is changing uh again and I say again
  18. 0:48
  19. because I actually gave this talk already um but the problem is that software keeps changing so I actually
  20. 0:54
  21. have a lot of material to create new talks and I think it's changing quite fundamentally i think roughly speaking
  22. 0:59
  23. software has not changed much on such a fundamental level for 70 years and then it's changed I think about twice quite
  24. 1:06
  25. rapidly in the last few years and so there's just a huge amount of work to do a huge amount of software to write and rewrite so let's take a look at maybe
  26. 1:13
  27. the realm of software so if we kind of think of this as like the map of software this is a really cool tool called map of GitHub um this is kind of
  28. 1:21
  29. like all the software that's written uh these are instructions to the computer for carrying out tasks in the digital
  30. Software evolution: From 1.0 to 3.0
  31. 1:26
  32. space so if you zoom in here these are all different kinds of repositories and this is all the code that has been written and a few years ago I kind of
  33. 1:33
  34. observed that um software was kind of changing and there was kind of like a new type of software around and I called
  35. 1:39
  36. this software 2.0 at the time and the idea here was that software 1.0 is the
  37. 1:44
  38. code you write for the computer software 2.0 know are basically neural networks and in particular the weights of a
  39. 1:50
  40. neural network and you're not writing this code directly you are most you are
  41. 1:55
  42. more kind of like tuning the data sets and then you're running an optimizer to create to create the parameters of this neural net and I think like at the time
  43. 2:02
  44. neural nets were kind of seen as like just a different kind of classifier like a decision tree or something like that and so I think it was kind of like um I
  45. 2:09
  46. think this framing was a lot more appropriate and now actually what we have is kind of like an equivalent of GitHub in the realm of software 2.0 And
  47. 2:15
  48. I think the hugging face is basically equivalent of GitHub in software 2.0 and
  49. 2:20
  50. there's also model atlas and you can visualize all the code written there in case you're curious by the way the giant circle the point in the middle uh these
  51. 2:28
  52. are the parameters of flux the image generator and so anytime someone tunes a on top of a flux model you basically
  53. 2:35
  54. create a git commit uh in this space and uh you create a different kind of a image generator so basically what we
  55. 2:41
  56. have is software 1.0 is the computer code that programs a computer software 2.0 are the weights which program neural
  57. 2:48
  58. networks uh and here's an example of Alexet image recognizer neural network now so far all of the neural networks
  59. 2:55
  60. that we've been familiar with until recently where kind of like fixed function computers image to categories
  61. 3:01
  62. or something like that and I think what's changed and I think is a quite fundamental change is that neural
  63. 3:06
  64. networks became programmable with large language models and so I I see this as
  65. 3:12
  66. quite new unique it's a new kind of a computer and uh so in my mind it's uh
  67. 3:18
  68. worth giving it a new designation of software 3.0 and basically your prompts are now programs that program the LLM
  69. 3:25
  70. and uh remarkably uh these uh prompts are written in English so it's kind of a very interesting programming language
  71. 3:33
  72. um so maybe uh to summarize the difference if you're doing sentiment classification for example you can
  73. 3:39
  74. imagine writing some uh amount of Python to to basically do sentiment classification or you can train a neural
  75. 3:46
  76. net or you can prompt a large language model uh so here this is a few short prompt and you can imagine changing it
  77. 3:51
  78. and programming the computer in a slightly different way so basically we have software 1.0 software 2.0 and I
  79. 3:57
  80. think we're seeing maybe you've seen a lot of GitHub code is not just like code anymore there's a bunch of like English
  81. 4:03
  82. interspersed with code and so I think kind of there's a growing category of new kind of code so not only is it a new
  83. 4:09
  84. programming paradigm it's also remarkable to me that it's in our native language of English and so when this
  85. 4:14
  86. blew my mind a few uh I guess years ago now I tweeted this and um I think it
  87. 4:20
  88. captured the attention of a lot of people and this is my currently pinned tweet uh is that remarkably we're now programming computers in English now
  89. 4:28
  90. when I was at uh Tesla um we were working on the uh autopilot and uh we
  91. 4:34
  92. were trying to get the car to drive and I sort of showed this slide at the time where you can imagine that the inputs to
  93. Programming in English: Rise of Software 3.0
  94. 4:41
  95. the car are on the bottom and they're going through a software stack to produce the steering and acceleration
  96. 4:47
  97. and I made the observation at the time that there was a ton of C++ code around in the autopilot which was the software
  98. 4:52
  99. 1.0 code and then there was some neural nets in there doing image recognition and uh I kind of observed that over time
  100. 4:58
  101. as we made the autopilot better basically the neural network grew in capability and size and in addition to
  102. 5:05
  103. that all the C++ code was being deleted and kind of like was um and a lot of the
  104. 5:12
  105. kind of capabilities and functionality that was originally written in 1.0 was migrated to 2.0 so as an example a lot
  106. 5:19
  107. of the stitching up of information across images from the different cameras and across time was done by a neural
  108. 5:24
  109. network and we were able to delete a lot of code and so the software 2.0 stack quite literally ate through the software
  110. 5:32
  111. stack of the autopilot so I thought this was really remarkable at the time and I think we're seeing the same thing again
  112. 5:37
  113. where uh basically we have a new kind of software and it's eating through the stack we have three completely different
  114. 5:42
  115. programming paradigms and I think if you're entering the industry it's a very good idea to be fluent in all of them
  116. 5:48
  117. because they all have slight pros and cons and you may want to program some functionality in 1.0 or 2.0 or 3.0 are
  118. 5:53
  119. you going to train neurallet are you going to just prompt an LLM should this be a piece of code that's explicit etc so we all have to make these decisions
  120. 6:00
  121. and actually potentially uh fluidly trans transition between these paradigms
  122. 6:05
  123. so what I wanted to get into now is first I want to in the first part talk
  124. LLMs as utilities, fabs, and operating systems
  125. 6:10
  126. about LLMs and how to kind of like think of this new paradigm and the ecosystem and what that looks like uh like what
  127. 6:16
  128. are what is this new computer what does it look like and what does the ecosystem look like um I was struck by this quote
  129. 6:23
  130. from Anduring actually uh many years ago now I think and I think Andrew is going to be speaking right after me uh but he
  131. 6:29
  132. said at the time AI is the new electricity and I do think that it um kind of captures something very
  133. 6:34
  134. interesting in that LLMs certainly feel like they have properties of utilities right now so
  135. 6:41
  136. um LLM labs like OpenAI Gemini Enthropic etc they spend capex to train the LLMs
  137. 6:47
  138. and this is kind of equivalent to building out a grid and then there's opex to serve that intelligence over
  139. 6:53
  140. APIs to all of us and this is done through metered access where we pay per
  141. 6:58
  142. million tokens or something like that and we have a lot of demands that are very utility- like demands out of this
  143. 7:03
  144. API we demand low latency high uptime consistent quality etc in electricity
  145. 7:08
  146. you would have a transfer switch so you can transfer your electricity source from like grid and solar or battery or
  147. 7:14
  148. generator in LLM we have maybe open router and easily switch between the different types of LLMs that exist
  149. 7:20
  150. because the LLM are software they don't compete for physical space so it's okay to have basically like six electricity
  151. 7:26
  152. providers and you can switch between them right because they don't compete in such a direct way and I think what's
  153. 7:31
  154. also a little fascinating and we saw this in the last few days actually a lot of the LLMs went down and people were
  155. 7:38
  156. kind of like stuck and unable to work and uh I think it's kind of fascinating to me that when the state-of-the-art LLMs go down it's actually kind of like
  157. 7:45
  158. an intelligence brownout in the world it's kind of like when the voltage is unreliable in the grid and uh the planet
  159. 7:52
  160. just gets dumber the more reliance we have on these models which already is like really dramatic and I think will
  161. 7:58
  162. continue to grow but LLM's don't only have properties of utilities i think it's also fair to say that they have
  163. 8:03
  164. some properties of fabs and the reason for this is that the capex required for
  165. 8:09
  166. building LLM is actually quite large uh it's not just like building some uh power station or something like that
  167. 8:15
  168. right you're investing a huge amount of money and I think the tech tree and uh for the technology is growing quite
  169. 8:22
  170. rapidly so we're in a world where we have sort of deep tech trees research and development secrets that are
  171. 8:28
  172. centralizing inside the LLM labs um and but I think the analogy muddies a little
  173. 8:34
  174. bit also because as I mentioned this is software and software is a bit less defensible because it is so malleable
  175. 8:40
  176. and so um I think it's just an interesting kind of thing to think about potentially there's many analogy
  177. 8:46
  178. analogies you can make like a 4 nanometer process node maybe is something like a cluster with certain max flops you can think about when
  179. 8:53
  180. you're use when you're using Nvidia GPUs and you're only doing the software and you're not doing the hardware that's kind of like the fabless model but if
  181. 8:59
  182. you're actually also building your own hardware and you're training on TPUs if you're Google that's kind of like the Intel model where you own your fab so I
  183. 9:05
  184. think there's some analogies here that make sense but actually I think the analogy that makes the most sense perhaps is that in my mind LLM have very
  185. 9:12
  186. strong kind of analogies to operating systems uh in that this is not just
  187. 9:17
  188. electricity or water it's not something that comes out of the tap as a commodity uh this is these are now increasingly
  189. 9:23
  190. complex software ecosystems right so uh they're not just like simple commodities
  191. 9:29
  192. like electricity and it's kind of interesting to me that the ecosystem is shaping in a very similar kind of way
  193. 9:34
  194. where you have a few closed source providers like Windows or Mac OS and then you have an open source alternative
  195. 9:40
  196. like Linux and I think for u neural for LLMs as well we have a kind of a few
  197. 9:46
  198. competing closed source providers and then maybe the llama ecosystem is currently like maybe a close
  199. 9:51
  200. approximation to something that may grow into something like Linux again I think it's still very early because these are
  201. 9:57
  202. just simple LLMs but we're starting to see that these are going to get a lot more complicated it's not just about the LLM itself it's about all the tool use
  203. 10:03
  204. and the multiodalities and how all of that works and so when I sort of had this realization a while back I tried to
  205. 10:09
  206. sketch it out and it kind of seemed to me like LLMs are kind of like a new operating system right so the LLM is a
  207. 10:15
  208. new kind of a computer it's sitting it's kind of like the CPU equivalent uh the context windows are kind of like the
  209. 10:21
  210. memory and then the LLM is orchestrating memory and compute uh for problem
  211. 10:26
  212. solving um using all of these uh capabilities here and so definitely if
  213. 10:32
  214. you look at it looks very much like operating system from that perspective um a few more analogies for example if
  215. 10:39
  216. you want to download an app say I go to VS Code and I go to download you can download VS Code and you can run it on
  217. 10:46
  218. Windows Linux or or Mac in the same way as you can take an LLM app like cursor
  219. 10:53
  220. and you can run it on GPT or cloud or Gemini series right it's just a drop down so it's kind of like similar in
  221. 10:59
  222. that way as well uh more analogies that I think strike me is that we're kind of like in this
  223. The new LLM OS and historical computing analogies
  224. 11:04
  225. 1960sish era where LLM compute is still very expensive for this new kind of a
  226. 11:10
  227. computer and that forces the LLMs to be centralized in the cloud and we're all
  228. 11:15
  229. just uh sort of thing clients that interact with it over the network and none of us have full utilization of
  230. 11:22
  231. these computers and therefore it makes sense to use time sharing where we're all just you know a dimension of the
  232. 11:28
  233. batch when they're running the computer in the cloud and this is very much what computers used to look like at during
  234. 11:33
  235. this time the operating systems were in the cloud everything was streamed around and there was batching and so the p the
  236. 11:40
  237. personal computing revolution hasn't happened yet because it's just not economical it doesn't make sense but I think some people are trying and it
  238. 11:46
  239. turns out that Mac minis for example are a very good fit for some of the LLMs because it's all if you're doing batch
  240. 11:52
  241. one inference this is all super memory bound so this actually works and uh I think these are some early
  242. 11:58
  243. indications maybe of personal computing uh but this hasn't really happened yet it's not clear what this looks like maybe some of you get to invent what
  244. 12:05
  245. what this is or how it works or uh what this should what this should be maybe
  246. 12:10
  247. one more analogy that I'll mention is whenever I talk to Chach or some LLM directly in text I feel like I'm talking
  248. 12:16
  249. to an operating system through the terminal like it's just it's it's text it's direct access to the operating
  250. 12:23
  251. system and I think a guey hasn't yet really been invented in like a general way like should chatt have a guey like
  252. 12:30
  253. different than just a tech bubbles uh certainly some of the apps that we're going to go into in a bit have guey but
  254. 12:36
  255. there's no like guey across all the tasks if that makes sense um there are
  256. 12:42
  257. some ways in which LLMs are different from kind of operating systems in some fairly unique way and from early
  258. 12:48
  259. computing and I wrote about uh this one particular property that strikes me as
  260. 12:54
  261. very different uh this time around it's that LLMs like flip they flip the
  262. 12:59
  263. direction of technology diffusion uh that is usually uh present in technology
  264. 13:05
  265. so for example with electricity cryptography computing flight internet GPS lots of new transformative technologies that have not been around
  266. 13:11
  267. typically it is the government and corporations that are the first users because it's new and expensive etc and
  268. 13:18
  269. it only later diffuses to consumer uh but I feel like LLMs are kind of like flipped around so maybe with early
  270. 13:23
  271. computers it was all about ballistics and military use but with LLMs it's all
  272. 13:28
  273. about how do you boil an egg or something like that this is certainly like a lot of my use and so it's really fascinating to me that we have a new
  274. 13:34
  275. magical computer and it's like helping me boil an egg it's not helping the government do something really crazy
  276. 13:39
  277. like some military ballistics or some special technology indeed corporations are governments are lagging behind the
  278. 13:45
  279. adoption of all of us of all of these technologies so it's just backwards and I think it informs maybe some of the
  280. 13:50
  281. uses of how we want to use this technology or like where are some of the first apps and so on
  282. 13:56
  283. so in summary so far LLM labs LLMs i think it's accurate language to use but
  284. 14:03
  285. LLMs are complicated operating systems they're circa 1960s in computing and we're redoing computing all over again
  286. 14:10
  287. and they're currently available via time sharing and distributed like a utility what is new and unprecedented is that
  288. 14:16
  289. they're not in the hands of a few governments and corporations they're in the hands of all of us because we all have a computer and it's all just
  290. 14:21
  291. software and Chaship was beamed down to our computers like billions of people
  292. 14:26
  293. like instantly and overnight and this is insane uh and it's kind of insane to me that this is the case and now it is our
  294. 14:33
  295. time to enter the industry and program these computers this is crazy so I think this is quite remarkable before we
  296. Psychology of LLMs: People spirits and cognitive quirks
  297. 14:39
  298. program LLMs we have to kind of like spend some time to think about what these things are and I especially like
  299. 14:45
  300. to kind of talk about their psychology so the way I like to think about LLMs is that they're kind of like people spirits
  301. 14:52
  302. um they are stoastic simulations of people um and the simulator in this case happens to be an auto reggressive
  303. 14:58
  304. transformer so transformer is a neural net uh it's and it just kind of like is
  305. 15:04
  306. goes on the level of tokens it goes chunk chunk chunk chunk chunk and there's an almost equal amount of compute for every single chunk um and um
  307. 15:13
  308. this simulator of course is is just is basically there's some weights involved and we fit it to all of text that we
  309. 15:19
  310. have on the internet and so on and you end up with this kind of a simulator and because it is trained on humans it's got
  311. 15:25
  312. this emergent psychology that is humanlike so the first thing you'll notice is of course uh LLM have
  313. 15:31
  314. encyclopedic knowledge and memory uh and they can remember lots of things a lot more than any single individual human
  315. 15:36
  316. can because they read so many things it's it actually kind of reminds me of this movie Rainman which I actually
  317. 15:42
  318. really recommend people watch it's an amazing movie i love this movie um and Dustin Hoffman here is an autistic
  319. 15:47
  320. savant who has almost perfect memory so he can read a he can read like a phone book and remember all of the names and
  321. 15:54
  322. phone numbers and I kind of feel like LM are kind of like very similar they can remember Shaw hashes and lots of
  323. 15:59
  324. different kinds of things very very easily so they certainly have superpowers in some set in some respects
  325. 16:05
  326. but they also have a bunch of I would say cognitive deficits so they hallucinate quite a bit um and they kind
  327. 16:12
  328. of make up stuff and don't have a very good uh sort of internal model of self-nowledge not sufficient at least
  329. 16:18
  330. and this has gotten better but not perfect they display jagged intelligence so they're going to be superhuman in
  331. 16:23
  332. some problems solving domains and then they're going to make mistakes that basically no human will make like you
  333. 16:29
  334. know they will insist that 9.11 is greater than 9.9 or that there are two Rs in strawberry these are some famous
  335. 16:34
  336. examples but basically there are rough edges that you can trip on so that's kind of I think also kind of unique um
  337. 16:41
  338. they also kind of suffer from entrograde amnesia um so uh and I think I'm
  339. 16:47
  340. alluding to the fact that if you have a co-orker who joins your organization this co-orker will over time learn your
  341. 16:52
  342. organization and uh they will understand and gain like a huge amount of context on the organization and they go home and
  343. 16:58
  344. they sleep and they consolidate knowledge and they develop expertise over time llms don't natively do this and this is not something that has
  345. 17:04
  346. really been solved in the R&D of LLM i think um and so context windows are really kind of like working memory and
  347. 17:10
  348. you have to sort of program the working memory quite directly because they don't just kind of like get smarter by uh by
  349. 17:15
  350. default and I think a lot of people get tripped up by the analogies uh in this way uh in popular culture I recommend
  351. 17:22
  352. people watch these two movies uh Momento and 51st dates in both of these movies the protagonists their weights are fixed
  353. 17:28
  354. and their context windows gets wiped every single morning and it's really problematic to go to work or have
  355. 17:34
  356. relationships when this happens and this happens to all the time i guess one more thing I would point to is security kind
  357. 17:41
  358. of related limitations of the use of LLM so for example LLMs are quite gullible uh they are susceptible to prompt
  359. 17:47
  360. injection risks they might leak your data etc and so um and there's many other considerations uh security related
  361. 17:54
  362. so so basically long story short you have to load your you have to load your
  363. 17:59
  364. you have to simultaneously think through this superhuman thing that has a bunch of cognitive deficits and issues how do
  365. 18:05
  366. we and yet they are extremely like useful and so how do we program them and
  367. 18:10
  368. how do we work around their deficits and enjoy their superhuman powers
  369. 18:15
  370. so what I want to switch to now is talk about the opportunities of how do we use these models and what are some of the biggest opportunities this is not a
  371. Designing LLM apps with partial autonomy
  372. 18:22
  373. comprehensive list just some of the things that I thought were interesting for this talk the first thing I'm kind of excited about is what I would call
  374. 18:29
  375. partial autonomy apps so for example let's work with the example of coding you can certainly go to chacht directly
  376. 18:36
  377. and you can start copy pasting code around and copyping bug reports and stuff around and getting code and copy
  378. 18:42
  379. pasting everything around why would you why would you do that why would you go directly to the operating system it makes a lot more sense to have an app
  380. 18:48
  381. dedicated for this and so I think many of you uh use uh cursor i do as well and
  382. 18:54
  383. uh cursor is kind of like the thing you want instead you don't want to just directly go to the chash apt and I think
  384. 18:59
  385. cursor is a very good example of an early LLM app that has a bunch of properties that I think are um useful
  386. 19:06
  387. across all the LLM apps so in particular you will notice that we have a traditional interface that allows a
  388. 19:12
  389. human to go in and do all the work manually just as before but in addition to that we now have this LLM integration
  390. 19:18
  391. that allows us to go in bigger chunks and so some of the properties of LLM apps that I think are shared and useful
  392. 19:24
  393. to point out number one the LLMs basically do a ton of the context management um number two they
  394. 19:31
  395. orchestrate multiple calls to LLMs right so in the case of cursor there's under the hood embedding models for all your
  396. 19:37
  397. files the actual chat models models that apply diffs to the code and this is all
  398. 19:42
  399. orchestrated for you a really big one that uh I think also maybe not fully appreciated always is application
  400. 19:49
  401. specific uh GUI and the importance of it um because you don't just want to talk to the operating system directly in text
  402. 19:55
  403. text is very hard to read interpret understand and also like you don't want to take some of these actions natively
  404. 20:01
  405. in text so it's much better to just see a diff as like red and green change and you can see what's being added is
  406. 20:07
  407. subtracted it's much easier to just do command Y to accept or command N to reject i shouldn't have to type it in
  408. 20:12
  409. text right so a guey allows a human to audit the work of these fallible systems
  410. 20:17
  411. and to go faster i'm going to come back to this point a little bit uh later as well and the last kind of feature I want
  412. 20:24
  413. to point out is that there's what I call the autonomy slider so for example in cursor you can just do tap completion
  414. 20:30
  415. you're mostly in charge you can select a chunk of code and command K to change just that chunk of code you can do
  416. 20:36
  417. command L to change the entire file or you can do command I which just you know let it rip do whatever you want in the
  418. 20:42
  419. entire repo and that's the sort of full autonomy agent agentic version and so you are in charge of the autonomy slider
  420. 20:48
  421. and depending on the complexity of the task at hand you can uh tune the amount of autonomy that you're willing to give
  422. 20:54
  423. up uh for that task maybe to show one more example of a fairly successful LLM app uh perplexity um it also has very
  424. 21:03
  425. similar features to what I've just pointed out to in cursor uh it packages up a lot of the information it
  426. 21:08
  427. orchestrates multiple LLMs it's got a GUI that allows you to audit some of its work so for example it will site sources
  428. 21:16
  429. and you can imagine inspecting them and it's got an autonomy slider you can either just do a quick search or you can do research or you can do deep research
  430. 21:22
  431. and come back 10 minutes later so this is all just varying levels of autonomy that you give up to the tool so I guess
  432. 21:28
  433. my question is I feel like a lot of software will become partially autonomous i'm trying to think through
  434. 21:33
  435. like what does that look like and for many of you who maintain products and services how are you going to make your
  436. 21:38
  437. products and services partially autonomous can an LLM see everything that a human can see can an LLM act in
  438. 21:45
  439. all the ways that a human could act and can humans supervise and stay in the loop of this activity because again
  440. 21:50
  441. these are fallible systems that aren't yet perfect and what does a diff look like in Photoshop or something like that
  442. 21:56
  443. you know and also a lot of the traditional software right now it has all these switches and all this kind of stuff that's all designed for human all
  444. 22:03
  445. of this has to change and become accessible to LLMs so one thing I want to stress with a lot
  446. 22:09
  447. of these LLM apps that I'm not sure gets as much attention as it should is um we
  448. 22:15
  449. we're now kind of like cooperating with AIS and usually they are doing the generation and we as humans are doing the verification it is in our interest
  450. 22:22
  451. to make this loop go as fast as possible so we're getting a lot of work done there are two major ways that I think uh
  452. 22:29
  453. this can be done number one you can speed up verification a lot um and I think guies for example are extremely
  454. 22:34
  455. important to this because a guey utilizes your computer vision GPU in all
  456. 22:39
  457. of our head reading text is effortful and it's not fun but looking at stuff is fun and it's it's just a kind of like a
  458. 22:46
  459. highway to your brain so I think guies are very useful for auditing systems and visual representations in general and
  460. 22:53
  461. number two I would say is we have to keep the AI on the leash we I think a
  462. 22:58
  463. lot of people are getting way over excited with AI agents and uh it's not useful to me to get a diff of 10,000
  464. 23:04
  465. lines of code to my repo like I have to I'm still the bottleneck right even though that 10,00 lines come out
  466. 23:10
  467. instantly I have to make sure that this thing is not introducing bugs it's just like and that it's doing the correct
  468. 23:16
  469. thing right and that there's no security issues and so on so um I think that um
  470. 23:22
  471. yeah basically you we have to sort of like it's in our interest to make the
  472. 23:28
  473. the flow of these two go very very fast and we have to somehow keep the AI on the leash because it gets way too overreactive it's uh it's kind of like
  474. 23:35
  475. this this is how I feel when I do AI assisted coding if I'm just bite coding everything is nice and great but if I'm
  476. The importance of human-AI collaboration loops
  477. 23:40
  478. actually trying to get work done it's not so great to have an overreactive uh agent doing all this kind of stuff so
  479. 23:47
  480. this slide is not very good i'm sorry but I guess I'm trying to develop like many of you some ways of utilizing these
  481. 23:53
  482. agents in my coding workflow and to do AI assisted coding and in my own work I'm always scared to get way too big
  483. 23:59
  484. diffs i always go in small incremental chunks i want to make sure that everything is good i want to spin this
  485. 24:06
  486. loop very very fast and um I sort of work on small chunks of single concrete thing uh and so I think many of you
  487. 24:13
  488. probably are developing similar ways of working with the with LLMs um I also saw a number of blog posts
  489. 24:19
  490. that try to develop these best practices for working with LLMs and here's one that I read recently and I thought was
  491. 24:25
  492. quite good and it kind of discussed some techniques and some of them have to do with how you keep the AI on the leash and so as an example if you are
  493. 24:32
  494. prompting if your prompt is vague then uh the AI might not do exactly what you wanted and in that case verification
  495. 24:38
  496. will fail you're going to ask for something else if a verification fails then you're going to start spinning so it makes a lot more sense to spend a bit
  497. 24:45
  498. more time to be more concrete in your prompts which increases the probability of successful verification and you can
  499. 24:50
  500. move forward and so I think a lot of us are going to end up finding um kind of techniques like this i think in my own
  501. 24:56
  502. work as well I'm currently interested in uh what education looks like in um together with kind of like now that we
  503. 25:01
  504. have AI uh and LLMs what does education look like and I think a a large amount
  505. 25:07
  506. of thought for me goes into how we keep AI on the leash i don't think it just works to go to chat and be like "Hey
  507. 25:13
  508. teach me physics." I don't think this works because the AI is like gets lost in the woods and so for me this is
  509. 25:18
  510. actually two separate apps for example there's an app for a teacher that creates courses and then there's an app
  511. 25:24
  512. that takes courses and serves them to students and in both cases we now have this intermediate artifact of a course
  513. 25:31
  514. that is auditable and we can make sure it's good we can make sure it's consistent and the AI is kept on the leash with respect to a certain syllabus
  515. 25:37
  516. a certain like um progression of projects and so on and so this is one way of keeping the AI on leash and I
  517. 25:44
  518. think has a much higher likelihood of working and the AI is not getting lost in the woods
  519. 25:49
  520. one more kind of analogy I wanted to sort of allude to is I'm not I'm no stranger to partial autonomy and I kind
  521. 25:56
  522. of worked on this I think for five years at Tesla and this is also a partial autonomy product and shares a lot of the
  523. Lessons from Tesla Autopilot & autonomy sliders
  524. 26:01
  525. features like for example right there in the instrument panel is the GUI of the autopilot so it's showing me what the
  526. 26:07
  527. what the neural network sees and so on and we have the autonomy slider where over the course of my tenure there we
  528. 26:13
  529. did more and more autonomous tasks for the user and maybe the story that I wanted to tell very briefly is uh
  530. 26:21
  531. actually the first time I drove a self-driving vehicle was in 2013 and I had a friend who worked at Whimo and uh
  532. 26:27
  533. he offered to give me a drive around Palo Alto i took this picture using Google Glass at the time and many of you
  534. 26:33
  535. are so young that you might not even know what that is uh but uh yeah this was like all the rage at the time and we
  536. 26:39
  537. got into this car and we went for about a 30-minute drive around Palo Alto highways uh streets and so on and this
  538. 26:45
  539. drive was perfect there was zero interventions and this was 2013 which is now 12 years ago and it kind of struck
  540. 26:52
  541. me because at the time when I had this perfect drive this perfect demo I felt like wow self-driving is imminent
  542. 26:59
  543. because this just worked this is incredible um but here we are 12 years later and we are still working on
  544. 27:04
  545. autonomy um we are still working on driving agents and even now we haven't actually like really solved the problem
  546. 27:10
  547. like you may see Whimos going around and they look driverless but you know there's still a lot of teleoperation and
  548. 27:16
  549. a lot of human in the loop of a lot of this driving so we still haven't even like declared success but I think it's
  550. 27:22
  551. definitely like going to succeed at this point but it just took a long time and so I think like like this is software is
  552. 27:29
  553. really tricky I think in the same way that driving is tricky and so when I see
  554. 27:34
  555. things like oh 2025 is the year of agents I get very concerned and I kind of feel like you know this is the decade
  556. 27:41
  557. of agents and this is going to be quite some time we need humans in the loop we need to do this carefully this is
  558. 27:47
  559. software let's be serious here one more kind of analogy that I always think
  560. The Iron Man analogy: Augmentation vs. agents
  561. 27:52
  562. through is the Iron Man suit uh I think this is I always love Iron Man i think
  563. 27:58
  564. it's like so um correct in a bunch of ways with respect to technology and how it will play out and what I love about
  565. 28:04
  566. the Iron Man suit is that it's both an augmentation and Tony Stark can drive it and it's also an agent and in some of
  567. 28:10
  568. the movies the Iron Man suit is quite autonomous and can fly around and find Tony and all this kind of stuff and so this is the autonomy slider is we can be
  569. 28:17
  570. we can build augmentations or we can build agents and we kind of want to do a bit of both but at this stage I would
  571. 28:23
  572. say working with fallible LLMs and so on i would say you know it's less Iron Man
  573. 28:29
  574. robots and more Iron Man suits that you want to build it's less like building flashy demos of autonomous agents and
  575. 28:35
  576. more building partial autonomy products and these products have custom gueies and UIUX and we're trying to um and this
  577. 28:43
  578. is done so that the generation verification loop of the human is very very fast but we are not losing the
  579. 28:48
  580. sight of the fact that it is in principle possible to automate this work and there should be an autonomy slider in your product and you should be
  581. 28:54
  582. thinking about how you can slide that autonomy slider and make your product uh sort of um more autonomous over time but
  583. 29:01
  584. this is kind of how I think there's lots of opportunities in these kinds of products i want to now switch gears a
  585. Vibe Coding: Everyone is now a programmer
  586. 29:06
  587. little bit and talk about one other dimension that I think is very unique not only is there a new type of programming language that allows for
  588. 29:12
  589. autonomy in software but also as I mentioned it's programmed in English which is this natural interface and
  590. 29:19
  591. suddenly everyone is a programmer because everyone speaks natural language like English so this is extremely
  592. 29:24
  593. bullish and very interesting to me and also completely unprecedented i would say it it used to be the case that you need to spend five to 10 years studying
  594. 29:31
  595. something to be able to do something in software this is not the case anymore so I don't know if by any chance anyone has
  596. 29:37
  597. heard of vibe coding uh this this is the tweet that kind of
  598. 29:42
  599. like introduced this but I'm told that this is now like a major meme um fun story about this is that I've been on
  600. 29:49
  601. Twitter for like 15 years or something like that at this point and I still have no clue which tweet will become viral
  602. 29:56
  603. and which tweet like fizzles and no one cares and I thought that this tweet was going to be the latter i don't know it
  604. 30:01
  605. was just like a shower of thoughts but this became like a total meme and I really just can't tell but I guess like it struck a chord and it gave a name to
  606. 30:08
  607. something that everyone was feeling but couldn't quite say in words so now there's a Wikipedia page and everything
  608. 30:17
  609. this is like [Applause]
  610. 30:25
  611. yeah this is like a major contribution now or something like that so um so Tom Wolf from HuggingFace shared
  612. 30:32
  613. this beautiful video that I really love um these are kids vibe coding
  614. 30:42
  615. and I find that this is such a wholesome video like I love this video like how can you look at this video and feel bad
  616. 30:48
  617. about the future the future is great i think this will end up being like a
  618. 30:53
  619. gateway drug to software development um I'm not a doomer about the future of the
  620. 30:59
  621. generation and I think yeah I love this video so I tried by coding a little bit
  622. 31:05
  623. uh as well because it's so fun uh so bike coding is so great when you want to build something super duper custom that
  624. 31:11
  625. doesn't appear to exist and you just want to wing it because it's a Saturday or something like that so I built this uh iOS app and I don't I can't actually
  626. 31:19
  627. program in Swift but I was really shocked that I was able to build like a super basic app and I'm not going to explain it it's really uh dumb but uh I
  628. 31:26
  629. kind of like this was just like a day of work and this was running on my phone like later that day and I was like "Wow
  630. 31:31
  631. this is amazing." I didn't have to like read through Swift for like five days or something like that to like get started
  632. 31:37
  633. i also vipcoded this app called Menu Genen and this is live you can try it in menu.app and I basically had this
  634. 31:44
  635. problem where I show up at a restaurant I read through the menu and I have no idea what any of the things are and I need pictures so this doesn't exist so I
  636. 31:51
  637. was like "Hey I'm going to bite code it." So um this is what it looks like you go to menu.app
  638. 31:58
  639. um and uh you take a picture of a of a menu and then menu generates the images
  640. 32:04
  641. and everyone gets $5 in credits for free when you sign up and therefore this is a
  642. 32:09
  643. major cost center in my life so this is a negative negative uh revenue app for
  644. 32:15
  645. me right now i've lost a huge amount of money on menu
  646. 32:21
  647. okay but the fascinating thing about menu genen for me is that the code of
  648. 32:28
  649. the v the vite coding part the code was actually the easy part of v of v coding menu and most of it actually was when I
  650. 32:35
  651. tried to make it real so that you can actually have authentication and payments and the domain name and averal deployment this was really hard and all
  652. 32:41
  653. of this was not code all of this devops stuff was in me in the browser clicking
  654. 32:47
  655. stuff and this was extreme slo and took another week so it was really fascinating that I had the menu genen um
  656. 32:54
  657. basically demo working on my laptop in a few hours and then it took me a week because I was trying to make it real and
  658. 33:01
  659. the reason for this is this was just really annoying um so for example if you try to add Google login to your web page
  660. 33:07
  661. I know this is very small but just a huge amount of instructions of this clerk library telling me how to
  662. 33:13
  663. integrate this and this is crazy like it's telling me go to this URL click on this dropdown choose this go to this and
  664. 33:19
  665. click on that and it's like telling me what to do like a computer is telling me the actions I should be taking like you
  666. 33:25
  667. do it why am I doing this what the hell
  668. 33:31
  669. i had to follow all these instructions this was crazy so I think the last part of my talk therefore focuses on can we
  670. Building for agents: Future-ready digital infrastructure
  671. 33:39
  672. just build for agents i don't want to do this work can agents do this thank you
  673. 33:46
  674. okay so roughly speaking I think there's a new category of consumer and manipulator of digital information it
  675. 33:53
  676. used to be just humans through GUIs or computers through APIs and now we have a completely new thing and agents are
  677. 34:00
  678. they're computers but they are humanlike kind of right they're people spirits there's people spirits on the internet
  679. 34:05
  680. and they need to interact with our software infrastructure like can we build for them it's a new thing so as an
  681. 34:10
  682. example you can have robots.txt on your domain and you can instruct uh or like advise I suppose um uh web crawlers on
  683. 34:18
  684. how to behave on your website in the same way you can have maybe lm.txt txt file which is just a simple markdown
  685. 34:23
  686. that's telling LLMs what this domain is about and this is very readable to a to an LLM if it had to instead get the HTML
  687. 34:31
  688. of your web page and try to parse it this is very errorprone and difficult and will screw it up and it's not going to work so we can just directly speak to
  689. 34:37
  690. the LLM it's worth it um a huge amount of documentation is currently written for people so you will see things like
  691. 34:43
  692. lists and bold and pictures and this is not directly accessible by an LLM so I
  693. 34:50
  694. see some of the services now are transitioning a lot of the their docs to be specifically for LLMs so Versell and
  695. 34:56
  696. Stripe as an example are early movers here but there are a few more that I've seen already and they offer their
  697. 35:03
  698. documentation in markdown markdown is super easy for LMS to understand this is
  699. 35:08
  700. great um maybe one simple example from from uh my experience as well maybe some
  701. 35:13
  702. of you know three blue one brown he makes beautiful animation videos on YouTube
  703. 35:19
  704. [Applause] yeah I love this library so that he
  705. 35:25
  706. wrote uh Manon and I wanted to make my own and uh there's extensive
  707. 35:30
  708. documentations on how to use manon and so I didn't want to actually read through it so I copy pasted the whole
  709. 35:35
  710. thing to an LLM and I described what I wanted and it just worked out of the box like LLM just bcoded me an animation
  711. 35:41
  712. exactly what I wanted and I was like wow this is amazing so if we can make docs legible to LLMs it's going to unlock a
  713. 35:48
  714. huge amount of um kind of use and um I think this is wonderful and should should happen more the other thing I
  715. 35:55
  716. wanted to point out is that you do unfortunately have to it's not just about taking your docs and making them appear in markdown that's the easy part
  717. 36:00
  718. we actually have to change the docs because anytime your docs say click this is bad an LLM will not be able to
  719. 36:06
  720. natively take this action right now so Verscell for example is replacing every occurrence of click with an equivalent
  721. 36:13
  722. curl command that your LM agent could take on your behalf um and so I think this is very interesting and then of
  723. 36:20
  724. course there's a model context protocol from Enthropic and this is also another way it's a protocol of speaking directly
  725. 36:25
  726. to agents as this new consumer and manipulator of digital information so I'm very bullish on these ideas the
  727. 36:30
  728. other thing I really like is a number of little tools here and there that are helping ingest data that in like very
  729. 36:37
  730. LLM friendly formats so for example when I go to a GitHub repo like my nanoGPT repo I can't feed this to an LLM and ask
  731. 36:43
  732. questions about it uh because it's you know this is a human interface on GitHub so when you just change the URL from
  733. 36:49
  734. GitHub to get ingest then uh this will actually concatenate all the files into a single giant text and it will create a
  735. 36:55
  736. directory structure etc and this is ready to be copy pasted into your favorite LLM and you can do stuff maybe
  737. 37:01
  738. even more dramatic example of this is deep wiki where it's not just the raw content of these files uh this is from
  739. 37:08
  740. Devon but also like they have Devon basically do analysis of the GitHub repo and Devon basically builds up a whole
  741. 37:14
  742. docs uh pages just for your repo and you can imagine that this is even more
  743. 37:19
  744. helpful to copy paste into your LLM so I love all the little tools that basically where you just change the URL and it
  745. 37:25
  746. makes something accessible to an LLM so this is all well and great and u I think there should be a lot more of it one
  747. 37:31
  748. more note I wanted to make is that it is absolutely possible that in the future LLMs will be able to this is not even
  749. 37:38
  750. future this is today they'll be able to go around and they'll be able to click stuff and so on but I still think it's very worth u basically meeting LLM
  751. 37:46
  752. halfway LLM's halfway and making it easier for them to access all this information uh because this is still
  753. 37:51
  754. fairly expensive I would say to use and uh a lot more difficult and so I do think that lots of software there will
  755. 37:58
  756. be a long tail where it won't like adapt apps because these are not like live player sort of repositories or digital
  757. 38:04
  758. infrastructure and we will need these tools uh but I think for everyone else I think it's very worth kind of like
  759. 38:09
  760. meeting in some middle point so I'm bullish on both if that makes sense so in summary what an amazing time to
  761. Summary: We’re in the 1960s of LLMs — time to build
  762. 38:17
  763. get into the industry we need to rewrite a ton of code a ton of code will be written by professionals and by coders
  764. 38:23
  765. these LLMs are kind of like utilities kind of like fabs but they're kind of especially like operating systems but
  766. 38:30
  767. it's so early it's like 1960s of operating systems and uh and I think a
  768. 38:35
  769. lot of the analogies cross over um and these LMS are kind of like these fallible uh you know people spirits that
  770. 38:42
  771. we have to learn to work with and in order to do that properly we need to adjust our infrastructure towards it so
  772. 38:48
  773. when you're building these LLM apps I describe some of the ways of working effectively with these LLMs and some of
  774. 38:54
  775. the tools that make that uh kind of possible and how you can spin this loop very very quickly and basically create
  776. 39:00
  777. partial tunneling products and then um yeah a lot of code has to also be written for the agents more directly but
  778. 39:06
  779. in any case going back to the Iron Man suit analogy I think what we'll see over the next decade roughly is we're going
  780. 39:12
  781. to take the slider from left to right and I'm very interesting it's going to be very interesting to see what that
  782. 39:18
  783. looks like and I can't wait to build it with all of you thank you
Advertisement
Add Comment
Please, Sign In to add comment