Special Topics in Kernels, RL, Reward Hacking in Agents — Daniel Han, Unsloth

AI Engineer · 140 min · 1554 sentences · from YouTube's caption track

Each timecode opens YouTube at the start of that sentence. Line anchors (#s42) are the cue ids in the WebVTT, and every line carries its start and end seconds. All transcripts has every talk, and the whole corpus as one file.

  1. 00:13Hello everyone.
  2. 00:14Um yeah, thanks so much for coming today.
  3. 00:16Much appreciated.
  4. 00:17Um yes, I'm Daniel.
  5. 00:19I'm from Anslaf.
  6. 00:20My brother is also here today.
  7. 00:22Um but yeah, like you know, thanks for coming.
  8. 00:24Um, so for you folks who don't know us, um, so we actually, you know, we're one of the largest distributors of language models and diffusion models as well.
  9. 00:33So we don't just do language models.
  10. 00:35We upload our models to hugging face.
  11. 00:37Um, and you know, we're on the I think we're number 10 or something on the Oh, no, I don't I don't remember.
  12. 00:42But anyways, we're on the list of the top organizations on Hugging Face.
  13. 00:46Um, we have over 300 million total downloads.
  14. 00:48Um, so definitely check us out on that.
  15. 00:50Um you can run like you know Deepseek, GLM, many other models and we quantize them down using dynamic quantization.
  16. 00:56Um so you can run them on your local computer.
  17. 01:00Um we also do many bug fixes for open source models.
  18. 01:03Um so you know we you know fix many bugs in you know OpenAI's GPUs um you know Meta's models um Google's models deepseas many other models we fix bugs in them.
  19. 01:14Um and so like you know they have many issues sometimes and then we post about them on Twitter.
  20. 01:18um you know we post about our findings um so you know m most of the open source models that you probably guys have used um are most likely fixed by us um and yeah like we collaborate with everyone in the entire world
  21. 01:31um on you know model releases um yeah we also collaborate with hardware providers and you know we really appreciate the collaborations with everyone we also don't just do model fixes and bug you know bugs we also introduce new features
  22. 01:45and we also like you know do fixes for the entire trading stack.
  23. 01:48Um for example, we introduced something called async gradient checkpointing which is used by many organizations.
  24. 01:54Um we also introduced flex attention which is used by many folks.
  25. 01:57Um and we also fixed a gradient accumulation bug fix um which increased accuracy by 1 to 3% um across the entire training stack.
  26. 02:05Um so we don't just like you know do bug fixes for models um it's also like you know whole training stack um fixes and stuff like that.
  27. 02:14So today, you know, the workshop is quite long.
  28. 02:17Um, so there will be multiple sections in the workshop.
  29. 02:20Um, and so after each section, anyone can ask a question.
  30. 02:23Um, and so, you know, please, I guess, if I'm not sure if there's a microphone, but if you could raise your voice and you ask a question, you know, I'm more than happy to answer them.
  31. 02:31Um, but you know, the first section we're going to be talking about is the state of AI.
  32. 02:35So, where is currently language models, AI models, where are they at currently?
  33. 02:40Um so I'm not sure if everyone knows the meter plot.
  34. 02:44Um so this meter plot shows the time horizon of uh models.
  35. 02:48Um if you can you know every single task if it takes a human 16 hours can a model you know finish that task.
  36. 02:56Um and you can see on this plot you know cloud mythos you know preview is very good.
  37. 03:02It can do tasks that humans can do that take you know human 16 hours.
  38. 03:06Um you know opus 4.6 is also there.
  39. 03:08you know all the other models are also there and so you know this plot is very good because it symbolizes the AI models are getting better and better and better over time
  40. 03:18you know recently with the launch of you know GPD 5.6 um you know just well their preview model um you know just on Friday um you know I put the plot so they didn't so me didn't actually update their plot um because they said that the results were not trustworthy enough
  41. 03:34um but you know I just put it on the plot um and so you can see that GBD 5.6 you know is around you know opus 4.6 sixth level I guess with large
  42. 03:43confidence bounds um so it's very you know uncertain about the capabilities of the model um however if you include cheating so if you include that the model sometimes likes to cheat on some of the tasks then it actually goes to 270
  43. 03:57hours um so we're directly and you know if you look at the y-axis I actually did a disjoint graph um so the y-axis is 50 hours skipped to 250
  44. 04:07hours um so if you can imagine the graph is actually very skewed Um when I like made the graph, um GBD 5.6 was like a very big outlier.
  45. 04:15Um so I had to like compress the graph.
  46. 04:17Um but this only you know this graph only works if you consider that GBD 5.6 cheated on some of the tasks.
  47. 04:24Um and so we'll be talking about you know why AI models cheat and how do we like you know solve these issues.
  48. 04:29Um but yeah this plot is very useful to showcase the capabilities of these models.
  49. 04:35So previously this is 50%.
  50. 04:37you know if you could if a model can complete the task with 50% of the ch you know of the time to 50% accuracy if you want to actually oneshot the model so you just ask the model you know implement X or implement Y
  51. 04:49um and you want the model to do very well then you want to look at the 80% success rate if you look at the 80% success rate it kind of drops
  52. 04:58quite a lot um so you can see that previously mythos is around 16 17 hours um now it only can do three hours so if you prompt a model and you want to have like a oneshot example, you know, you just trust the model by just or asking it, you know, implement,
  53. 05:15I don't know, page rank or something, you know, implement some sort of rag system, you know, fine-tune a model or something like that.
  54. 05:20Um, it can only do a task that will take a human three hours to do.
  55. 05:23Um, and so the so that is a problem with AI models.
  56. 05:26Um, generally speaking, if you want to use AI models very well, you need to prompt it at least like, you know, five times or something.
  57. 05:32Um and each of those times assuming they're independent um the success rate is much higher if you're prompted many many times right you can't just call the model once and expect it to do work to do well um you need to call it multiple times
  58. 05:46um and you can also work out the probability of it like succeeding you know if the model is 50% accurate um then it will be 50% failure then it's 1 minus 0.5 to the power of five or something like that you know if you do five turns and then your success rate jumps to like 97%
  59. 06:00or something um so you need call the model at least five times for it to be very effective.
  60. 06:08So previously these are linear you know this is a linear trend you know on the y-axis it's just it's not you know it's just linear um if we log it you know if we log
  61. 06:20the y-axis you can see that it's more exponential progress um so it's actually a straight line fit to the entire progress of AI models on the meter time horizon
  62. 06:30um you know benchmark you can see that you know it's very clear that AI models are getting better and better over time um I als We also added you know GBD 5.6 six with the cheating and no cheating and also claude mythos are you know accentuated that and you can see I you don't need now you don't
  63. 06:45need to like you know fake the y-axis you know you don't need to do like a disjoint y-axis um if you do that you can see that you know models are getting better over time
  64. 06:53um and supposedly you know if this trend continues these models will get better and better and better better and much better um yeah so so the question is if the trend continues you know that's the fundamental question
  65. 07:06Um and it's not just you know one specific task for this benchmark that you can see that models are getting better over time across all benchmarks models are getting better over time right so like you know GPQA
  66. 07:18diamond you know it's kind of plateau you know it's kind of already saturated as a benchmark but over time you know it does very well you know every single benchmark you see models are getting better right live code bench you know maths algorith
  67. 07:30maths tests um you know even Tesla's you know you know self-driving I guess is also has like a doubling time of 17 months.
  68. 07:37Um so every single 17 months the models will get better and better.
  69. 07:41Um you know double double their capabilities.
  70. 07:43Um so over time all these models in every single subject you know every single area it will get better.
  71. 07:51Um so I guess the main question is you know if we assume every single subject every single area the models get 100% like you know approaching 100% accuracy is this AGI?
  72. 08:03Um so that is one of the fundamental questions that people ask you know if we just get better on benchmarks um is this AGI um what happens if we get better on all benchmarks
  73. 08:13you know every single benchmark that human humanity has created it just gets better on all of them.
  74. 08:18Um yeah but so this is a you know very good plot show well I guess chart showing all of the different types of benchmarks and they all get better over time.
  75. 08:28everyone's favorite I guess artificial intell uh you know artificial analysis benchmark showing you know artificial intelligence getting much much better over time as well you know fable I guess is I guess the best for now um
  76. 08:40although not everyone can access it currently but anyways it's for now it's the best um and you can see over time that you know these models are getting better over time as well um and you know like this plot showcases
  77. 08:52um a very useful indication you know like how do we like you know benchmark you know is this benchmark actually good um in terms of like you know showcasing the capabilities of models as well.
  78. 09:01Um and we'll be also discussing about that as well.
  79. 09:04Um on the other hand yes models are getting better over time.
  80. 09:09Um but there are some things which models are not very good at still for example long context is not doing very well.
  81. 09:15Um so you know most models you might say okay Gemini has 1 million context length.
  82. 09:18You know GBD has 1 million context length.
  83. 09:20Claude has 1 million context length.
  84. 09:22But should you actually use all of the 1 million context length?
  85. 09:25Um so there are actually benchmarks to showcase that if you use for example GBD 5.5 um you know if you use 512 context your accuracy reduces to 50%.
  86. 09:36Um so if you use you know 512 context you will only remember 50% of the facts that you wrote in the previous context.
  87. 09:43Um so maybe that's not a good idea to use the full context.
  88. 09:46Um you can see opus 4.7 um 4.6 4.7 is the very last orange line.
  89. 09:53Um so at the context length of 256K it goes to 0%.
  90. 09:57Um so this might be a benchmark flaw.
  91. 09:59Um so maybe don't trust the benchmark too much.
  92. 10:02Um but it's good to look at the benchmark overall.
  93. 10:05You know where is the model's capabilities for long context.
  94. 10:07Um the blue lines I highlighted are open source models.
  95. 10:11You know deepseek gl 5.1 other models.
  96. 10:14Green is Google's models.
  97. 10:16Um but you can see in general you know models are models definitely do degrade over long context.
  98. 10:22Um so if you you know for example if you set like a you know automatic compaction area I would not suggest you to use all 1 million context maybe maximum 600k or something um and then compact it and then continue your you know coding session um but I would yeah but in general
  99. 10:39you know this plot shows that long context still has a very long way to go um and if we want to have long context you know capabilities um labs I guess will have a lot of
  100. 10:50time to fix this problem.
  101. 10:53Yeah.
  102. 10:54So another plot is you know just showing open source versus closed source.
  103. 10:58So open source still has some way to go for this you know long context.
  104. 11:02Um so open source is blue line and the black lines are like you know closed source models.
  105. 11:06Um and you can see in general open source does okay but there's definitely much more room for improvement.
  106. 11:12Um I guess compared to Opus 4.7 it's better.
  107. 11:15Um but you know maybe this benchmark does need maybe there are some flaws in the benchmark as well.
  108. 11:19Um yeah, but overall you know this plot shows that long context definitely still has more room for improvement.
  109. 11:28And also you know like if you looked at the plot previously you know this meter plot um I'm not sure if you can see that before 01 preview there is actually a plateau of performance.
  110. 11:39Um and so if you can see you know GBD4 to GBD40 there's not that much performance improvement.
  111. 11:45Um and so this time frame around one year um was when you know the labs were confused on what is next um you know before 01 preview which showed that reasoning was very important they didn't actually know what to pursue next um and so for one year
  112. 12:01the models kind of plateaued um and so I call this the intelligence plateau the hypothesis that you know you know assume that we never have discovered reasoning then maybe air models would have like plateaued
  113. 12:14um but because we have discovered reasoning you know we have shown that models can do reasoning capabilities we have continued the trend continuously um and so normally I don't know if this is like luck
  114. 12:24um or if this is a self fulfilling prophecy um so I don't know if you guys you know the moor law um you know mos law has continued um not because of the law but because people know that it must continue and so people invest money into the resources to make the law continue
  115. 12:40um and so this kind of like shows that you know we might have been in of the world where models have stopped improving.
  116. 12:47Um but you know with the launch of 01 preview you know I guess models have went back to trend.
  117. 12:53In fact I made a plot showcasing you know assuming we did not discover reasoning or 01 preview.
  118. 13:01Um then the black line was the supposed you know capabilities of the models.
  119. 13:06You can see I made it into a S shape um like a you know a sigmoid type shape.
  120. 13:10Um and if you know if we didn't discover reasoning then models definitely will taper off in terms of capabilities right we'll only have a model that's as capable as
  121. 13:19claw 3.7 sonnet I guess or 01 or something like that um but you know luckily because of reasoning and this new paradigm of scaling you know the green line is the new scaling law
  122. 13:30um and you can see previously the black line the doubling time was actually around seven months so every single seven months the capabilities of the models double um but now it has shrunk to 3.5
  123. 13:41months.
  124. 13:41So every single 3.5 months you just need to wait 3.5 months and the models will get double better, right?
  125. 13:47Better by two times.
  126. 13:48Um and that's quite striking I guess.
  127. 13:51Um so the main question though is will the green line continue as a straight line?
  128. 13:56Um that is a fundamental question that labs are still struggling on.
  129. 13:59you know what happens if the green line again you know the green line again goes as a S shape you know that's possible um but you know we don't actually know if this will happen you know if the green line will continue scaling you know going all the way up to infinity I guess or would it be
  130. 14:15like an S shape um and this is you know many researchers are you know I guess have sleepless nights you know what is the next you know what is the next thing afterwards
  131. 14:24after reasoning after 01 you know what is the next thing afterwards um and you know Many researchers will need to like you know I guess think about this.
  132. 14:32Um yeah but you know this plot is very you know this is one of my favorite plots because it shows that you know AI progress can continue over time with new ideas and innovation.
  133. 14:43Oh yes.
  134. 14:44So does anyone have any questions for the first section?
  135. 14:47Um yes.
  136. 14:48So we came all the way to one trillion right?
  137. 14:52Do you think the next jump if we need do we need like 10 trillion parameters when we'll see the jump or hardware will be the limitation that
  138. 15:00yes that's a great question.
  139. 15:01So the question was you know models we're currently at one trillion parameters do we need to go to 10 trillion parameters or more for models to be even more capable?
  140. 15:09Um so the scaling laws does say that you know if you multiply the parameters and the data size um generally speaking this number if you increase the number you will get the models become more capable.
  141. 15:20So yes you can increase the parameters by 10 times and in general your performance will increase.
  142. 15:26Um however the view is there is going to be diminishing returns.
  143. 15:30Um I feel like you know it's not just the model size times the data set size.
  144. 15:35It's actually a ratio um some sort of like power law when you multiply them.
  145. 15:39So you actually get diminishing returns over time.
  146. 15:41So yes, you're right.
  147. 15:42If you want to have actually I'm not sure the exact law, but if you want to have double capabilities, you do need to 10 times the parameters.
  148. 15:48Um and then if you want another double, you have to 10 times it again.
  149. 15:52So it's 1 to 10 to 100 trillion parameters.
  150. 15:55um if you want maybe that's not a good way to scale.
  151. 15:59Um maybe instead you know instead of making a 100 trillion parameters some sort of new algorithm or new architecture could solve that problem.
  152. 16:08Um but you're right like if you're a lab you want to do something easy and so the easiest path is to just make a 10 trillion parameters.
  153. 16:17Um but I would say like you know maybe a new algorithm will be better.
  154. 16:22Um yeah any other questions?
  155. 16:27Yes.
  156. 16:27So you do think that we are approaching the limitation of next token prediction.
  157. 16:33That is a good question.
  158. 16:34I would say that for next token prediction it's very powerful because you can essentially the human language is extremely powerful and it doesn't have to be human language.
  159. 16:44It can be you know maths coding you can just predict the next word and in order to predict the next word or token you need to know everything about that token or that word right so like I think IA was talking about like you know Ilia Satska he was saying like you know you need to have you
  160. 16:59need to make a weld model in the model in order to like predict the next word so I still think next word prediction still has a lot of way to go for example if you see this plot you know if we didn't have reasoning
  161. 17:11I guess okay maybe it would have plateaued But because we have discovered this new methodology you know reasoning and trying to like scale even more on next word you know next word prediction
  162. 17:21we have you know went back to trend um I feel like so the main question is if we don't have next word prediction what is next um that is the fundamental question most
  163. 17:31I mean I'm not sure like you know I'm not certain what's what's the next thing I feel like next word prediction is just extremely powerful because it's very easy to formulate
  164. 17:40and you can just like you know you can have like you know because attention is very powerful as well.
  165. 17:45You can have, you know, this special cause of attention mechanism and it's very efficient to train.
  166. 17:49So, I'm not sure I think the main question is I'm not sure what's next.
  167. 17:53Um, I guess researchers will like, you know, they're trying to scratch their heads, you know, what is next afterwards?
  168. 17:58Um, yeah.
  169. 18:00I I Yeah.
  170. 18:01Yes.
  171. 18:02Just a follow up on it.
  172. 18:03Do you feel like we are in the same era like how we attention came out?
  173. 18:09Right.
  174. 18:09So, attention like we don't know what's next.
  175. 18:16Yes, that's a fair followup.
  176. 18:18So, um, you were mentioning how it's kind of like LSTMs or the old AI world.
  177. 18:21We don't know what's next afterwards.
  178. 18:23Um, that's a fair point.
  179. 18:24I feel like so like, you know, previously this example, right?
  180. 18:30So, after GBD4, it was just pre-training, some, you know, supervised fine tuning, some ROF, you know, some RL um, and they waited one year until 01 preview.
  181. 18:40So in this one year of fog you know the fog of war we don't know what what was next and so researchers you know were scrambling you know do we do the reasoning
  182. 18:48process do we make pre-training better do we make the model bigger and bigger and bigger you know they tried all these experiments um and reasoning was the one that won I guess um but I think like I think the main question is is the green trend going to continue
  183. 19:04at the current time it looks like it's continuing once we see models starting to taper out in intelligence, you know, in capabilities, then we'll go back to the, you know, olden days of like, you know, this one year waiting period.
  184. 19:16But I think for now, these models seem very powerful.
  185. 19:19Um, yeah.
  186. 19:21So, like I'm not sure if this will, I mean, if you look, okay, if you squint at the plot, I guess maybe we're tapering out.
  187. 19:26Maybe um let's not consider the GBD 5.6 cheating example, right?
  188. 19:30Let's remove that from the plot.
  189. 19:31Um, but you can see the GBD 5.6 Mythos, you know, 4.6. They're kind of all I guess they're kind of tapering.
  190. 19:39Um so maybe as a I mean I don't know if we someone wants to bet on this but you know maybe models have tapered out but we're not sure.
  191. 19:46So we shall wait a few more months and see.
  192. 19:48So let's wait 3.5 months.
  193. 19:50If we wait 3.5 months and see the models do not improve then we have tapered out.
  194. 19:55Um but remember we only need to wait 3.5 months.
  195. 19:57Um so then this law will fail.
  196. 19:59In fact, if you wait seven months, if you wait seven months, so double the time and models have, you know, just assume you know that dotted line that if if the models just follow the dotted line, okay, then we have tape it out.
  197. 20:10And I would agree that, you know, we'll have to design something new in, you know, make some new invention or something like that.
  198. 20:15Um, but for now, you know, for now looks like it's doing fine.
  199. 20:19Um, yeah.
  200. 20:20Okay, next section.
  201. 20:22Um, so every single section we can have questions, so you can ask as many questions as you like.
  202. 20:26Um the next section we're going to talk about is open versus closed models.
  203. 20:30Um so artificial analysis has this very cool plot showcasing the performance of open source.
  204. 20:36So open source is the blue line.
  205. 20:37Um so open source is the blue line and closed source models is the black line.
  206. 20:41Um and you can see that open source does lag.
  207. 20:45You know open source definitely lags over time.
  208. 20:47Um another very good benchmark is called the weird ML benchmark.
  209. 20:51Um this also shows that open source models lag closed source models right the blue line is open source models the green line is closed source models um and you can see over time you know
  210. 21:03the x-axis is release date of the model and the y-axis is performance and you can see that open source models kind of lag close source models and why the weird ML benchmark I'm not sure if you folks actually know about this why the weird ML benchmark
  211. 21:17um it seems like the weird ML benchmark is a very good indicator better than other benchmarks and the reason the reason why is you know previously I mentioned you know previously this graph right
  212. 21:28reasoning the reasoning models are the green line and in the black models are the non-reasoning models and you can see that reasoning models double you know reduce the time of doubling time to 3.5 months previously it was 7 months
  213. 21:41um interestingly on the weird ML benchmark these reasoning models didn't actually do better it didn't actually change the trend um all it did was make slightly better.
  214. 21:51Um and so this weird ML benchmark seems to be more robust.
  215. 21:56Um and that is why you know this benchmark is very useful.
  216. 21:58Um in fact if you go on the Twitter bus um before GLM 5.2 got released um most you know most of the Twitter people said oh you know deepseek you know deepse if you see very if you squint okay I think I have a plot.
  217. 22:11Oh yes if you squint deepseek and Kimmy are in that little corner over there.
  218. 22:16um you know deepseek those three models the three whales are deepseek you know flash deepseek pro I think one of them's max mode or something like that um and also Kim's over there as well so before GLM 5.2 two got released,
  219. 22:28you know, on the Twitter verse, everyone kept saying that open source models are much worse than closed source models, right?
  220. 22:33They're not lagging, you know, they're not just lagging, they're much worse because of this benchmark.
  221. 22:38Um, in fact, if you look very closely of the weird ML benchmark, all of the top models are closed source labs, you know, like Fable, you know, GPD 5.5, whatever, you know, all of these are just very, you know, it shows very clear that
  222. 22:54open source models are not doing very well in terms of this benchmark.
  223. 22:57um until GPD 5.2 came along um you know number 15 is GPD 5.2 and it shows that actually open source has came back um and GPD 5.2 too kind of shocked the world.
  224. 23:08Um that you know I guess open source has not died.
  225. 23:11Um and you know deep yeah so in general this worked very well you know deepse you know GLF2 showed that you know open source does very well still.
  226. 23:23You can also filter out by country.
  227. 23:25So by country you can see that the black line is United States you know the US models.
  228. 23:30Um the dark red line is the Chinese labs.
  229. 23:34Um and you know there's other labs as well.
  230. 23:36um you know French, South Korean labs and stuff like that.
  231. 23:39Um but you know over time it shows that these models um you know the US labs seem to do very well over time.
  232. 23:45You know they they're always at the frontier and then the Chinese labs like to catch up over time.
  233. 23:52Previously you know I mentioned you know the um you know the plateau before you know before 01 preview got released.
  234. 23:58If you actually look at this plot um there is something called the open source draft.
  235. 24:03Um so after 01 preview got released open source labs did not know how to replicate 01 preview.
  236. 24:11They have never you know they don't know what is reasoning.
  237. 24:14So I'm not sure if you okay this is a few years back um but on Twitter you know open kept talking about oh you know 01 preview was extremely powerful
  238. 24:21um you know every single tweet you see every single day you know they show that 01 preview was very powerful.
  239. 24:26Um and so for one I think it was six months to eight months um open source models open source labs they got confused on what to do next.
  240. 24:35Um but then as everyone knows deepseek R1 came along um and they showed that even for open source models you can train these models to do reasoning gpo um reinforcement learning and it does very very well.
  241. 24:48In fact, if you take this plot, you know, the the black line minus the blue line, if you just minus it, you get this plot.
  242. 24:54Um, and you can see this is how many months behind open source is.
  243. 24:59Um, and you know, over time, um, you can see like, you know, after 01 preview got released, um, you know, it kind of skyrocketed.
  244. 25:07Um, you know, the open source models were very, very lagging in terms of, you know, behind closed source models.
  245. 25:13Um and so like when Deepseek R1 got released then the open source labs knew okay we can also do uh 01 type reasoning.
  246. 25:22Um and that is why recently you know the the time between closed source labs and open source labs have started decreasing again.
  247. 25:29Um yeah so this is slightly outdated.
  248. 25:33This is like May.
  249. 25:33Um so I think now it's actually four months with the release of GLM 5.2. It's around four months now.
  250. 25:38Um so open source labs lag behind closed source labs by around four months.
  251. 25:45There was actually a very nice plot you know doing some sort of regression.
  252. 25:48So some sort of like trend extrapolation.
  253. 25:50Um according to this plot um if you extrapolate the trend by December this year open source models will 100% catch up to closed source models by this year December.
  254. 26:00Um but you know who knows I guess maybe maybe open source maybe we can have an open source model as powerful as the best closed source model by December
  255. 26:12um you know if this trend continues um so I guess the question is will the trend continue um it's always about will the trend continue um and you know may
  256. 26:23most of you maybe may know that you know open source some of the open source improvements in technology you know improvements in capabilities are via distillation you know so some of the open source labs what they like to do is they like to call the models you know core the frontier models like opus
  257. 26:38or GPD and then use the traces to train your model um so this is a common methodology that labs like to do um I wouldn't say this is a bad method
  258. 26:47um but it is a method that you know some closed source labs like to look down upon you know they like to stop you know their view is you know we should not allow these open source labs to like do this training
  259. 26:57um and you know get away for free I guess in terms of training cost.
  260. 27:01Um but you don't actually have to do this approach.
  261. 27:04Um so most labs when you do distillation there are two different types of approaches.
  262. 27:08Um the first approach is you need to have the logits.
  263. 27:11You need to actually have access to the full logs.
  264. 27:14Um and unfortunately most labs do not actually have that right.
  265. 27:18So like labs will not give you the full logs.
  266. 27:20Um instead you only get the reasoning traces that are summarized um and the final output.
  267. 27:26Um, and so these, you know, these open source labs, they're not just, you know, they're not just training on the, you know, Opus output, right?
  268. 27:32That's just, that's silly.
  269. 27:34What they do is they use GRPO or reinforcement learning to recreate the traces.
  270. 27:38Um, and so because you you have the final output, which is the answer.
  271. 27:42All you need to do is use GPU and RL to create the reasoning trace automatically.
  272. 27:47Um, and so that's kind of how they train these models.
  273. 27:50Um, and so you don't actually need to like access the logits or the weights of the model.
  274. 27:55um that's not necessary.
  275. 27:56Um yeah, and you know, one of the most important factors of you know, these large models is, you know, as models get bigger and bigger and bigger, you can't run them on your local device anymore.
  276. 28:09Um it's extremely complicated to run.
  277. 28:11Um and so we do something called dynamic quantization where essentially you take a model, you quantize them down to one bit.
  278. 28:17Um but the trick is you don't quantize every single layer to one bit.
  279. 28:22you quantize some important layers to 16 bit or 8 bit or something like that.
  280. 28:27Um and so if you quantize the whole model down to one bit you will get 0% accuracy right 0%.
  281. 28:34Um but the trick is if you do dynamic quantization so if you look on the you know this is a three-bit Deepseek model um a three-bit one you get 75.6%
  282. 28:426% accuracy, a three-bit one.
  283. 28:45In fact, if you do dynamic one bit, um you get 57% accuracy.
  284. 28:49Um so we show that you know if you do something called dynamic quantization where you quantize the model down smartly, you can recover accuracy.
  285. 28:57Um and this methodology will become even more important when models get larger and larger and larger and larger.
  286. 29:04if you plot the paro you know efficiency um there if you don't do dynamic if you do you know some other dynamic quantization methods it does okay um but we showed that if you smartly choose the layers it does even better
  287. 29:17um I'm not sure if you folks have followed but GLM 5.2 we also released dynamic quantizations for that we showed that GLM 5.2 2 can quantize very well.
  288. 29:25So if you look I think this is oh this is an animation.
  289. 29:28Oh it works.
  290. 29:29Um but yes you can show the animation you you can see the animation a one bit GLM 5.2 model and this is one bit um and the one bit model
  291. 29:38is literally 86% smaller.
  292. 29:42Um so it's 86% smaller than the full 1.5 terabytes.
  293. 29:46Um and it still managed to do very well on one of the prompts.
  294. 29:50Um so it shows that the models are not dumb.
  295. 29:52Right?
  296. 29:53If you make the model 86% smaller, it does not get 86% dumber.
  297. 29:58Um, it only gets 14% less dumb.
  298. 30:00Um, and so it shows that, you know, if you do special tricks to compress the model, the model still works very well.
  299. 30:08Um, and we also compared to Opus, you know, we compared to Opus 4.8, we compared to GBD 5.5. And also, you have to notice that for G 5.2, I use high reasoning mode.
  300. 30:20You know, for Opus, it's extra high.
  301. 30:22And for you know GPD 5.5 is also extra high.
  302. 30:25Um and so like you know there are different reasoning modes as well which we can also um see.
  303. 30:30Um and all of these are oneshot um so we do not like prompt the model like you know 50 times or something.
  304. 30:35Um this is just one shot directly.
  305. 30:39Okay so the next I guess the open source versus close source section is done.
  306. 30:44I guess any other questions?
  307. 30:47Yes.
  308. 30:47Um so the question was which parts of the model do we quantize to lower bits versus higher precision.
  309. 30:53Um so in general um we did actually a lot of research on this.
  310. 30:57So if you look at the quen the quen 3.5 architecture there are some layers which is the linear attention layers.
  311. 31:03Um the linear attention layers should never be quantized.
  312. 31:07If you quantize the linear attention layers down you will definitely suffer in long context.
  313. 31:11Um so in general the linear attention layers need to be left in 8 bit or 16 bit.
  314. 31:18Um that's for example um another like if you look at the model layers um some layers can be quantized down heavily to one bit.
  315. 31:27Um and the reason why is because these layers are kind of like filler layers.
  316. 31:31Um and so they don't actually do anything.
  317. 31:33Um and in order to check whether a layer does something or not, you do need some sort of collaboration data set.
  318. 31:39So you need you need to have some sort of like representative data and pass it into the model um and you can get you can get the um outputs after each layer and then you can see okay does this model at this specific layer you know does it change that much um and if it doesn't change that
  319. 31:57much okay maybe just quantize a layer to one bed um but if it does change dramatically then you need to be careful um you you cannot quantize that down to like one bed or whatever um so there are actually many we actually publish a lot of like blog
  320. 32:10research on this.
  321. 32:11Um we show I think there was we also show for example you cannot quantize the vision layers down.
  322. 32:16If you quantize the vision layers down you will make the model really bad.
  323. 32:21Um if you give it a you know if you give it a picture of a train it will say it looks like a beach for example.
  324. 32:26Um and so it's you should never quantize the vision layers, the audio layers.
  325. 32:31Um and only the language the language model layers you can like quantize.
  326. 32:36Um but there are many tricks in order to do that.
  327. 32:38Um yeah
  328. 32:41correct.
  329. 32:41So the question was if you do distillation um you you might have done worse on other topics um but you know only if you for example if you just do coding
  330. 32:51it will just do good encoding and then the rest gets very dumb.
  331. 32:54Um so that's a fair point.
  332. 32:55Um so I think that the main trick is you will need to do many many many examples.
  333. 33:00You will call the model like you know 10 million times.
  334. 33:03Um and so like the trick is once you call the middle model 10 million times with high diversity of questions in general um by using the pre-training argument um the model will do well on other tasks.
  335. 33:16Um so the reason why pre-training does very well um is because it has learned so many tasks that it can interpolate the missing holes.
  336. 33:24Um for example, if you just train if you just pre-train a model with just maths questions um assume you do only maths.
  337. 33:32Okay, maybe it's not going to do very well, right?
  338. 33:34And it's not going to do very well on every other task.
  339. 33:36But the trick of pre-training is it does maths, coding, law, you know, every single imag, you know, every single topic you can imagine.
  340. 33:44And the trick is because it has so much knowledge, it feels the holes of the things that it doesn't know.
  341. 33:50Um, and so for distillation, you also need to do the same approach.
  342. 33:53You need to sample, you need to sample well.
  343. 33:56Um so for example instead of doing 10 trillion tokens sample you know like 1% um and then call the model.
  344. 34:03Um yeah so that's kind of how the labs are doing that.
  345. 34:06Um that is a very good question.
  346. 34:08So instead of doing one big quantization can you instead prune the model like you know delete some layers entirely.
  347. 34:13Um so in general from our research pruning does work.
  348. 34:18There is a very big problem though.
  349. 34:20You need to retrain the model.
  350. 34:22you need to continuously train a model after pruning because you have deleted an entire layer.
  351. 34:27Um and so if you delete an entire layer, you will need to do like you know qat or further fine-tuning to push the other to push the other weights to have more knowledge.
  352. 34:38So that is the only problem where if you delete layers um if you don't delete layers when you do you know dynamic dynamic quantization it's called post training quantization.
  353. 34:48So PTQ you do not need to do any training at all.
  354. 34:51if you do you know quantization um but if you do prove the layers you do need to train um so that is one of the problems um yeah yes that's a great question so the question was you know because open source labs you know they use closed source models
  355. 35:07the gap will never actually go to zero um and so I partially agree and so the main argument was labs open source labs the easiest way is to do distillation
  356. 35:18however you know if you for example if you were an open source app you will only use that approach to firstly enter the market but as longterm you know as long-term safety as a long-term safety net you will not do this approach
  357. 35:30um instead as a you know instead you will do you know for example generate the answer get the question for example you know you will get data from a call or scale whatever you know have some sort of like large data labeling
  358. 35:42army or something I don't know um and so like in general because currently some of the labs so they don't just do distillation right so they're not just going to call the model 10 trillion times
  359. 35:53you know and just do distillation.
  360. 35:54They also augment the training data with their own approach.
  361. 35:57So I will be talking about the GLM approach maybe like later um but they did invent some new approaches to do very good reinforcement learning and GRPO um and
  362. 36:07because GRPO and reinforcement learning um you know is open source these labs just use these methodologies to make the models better.
  363. 36:14So you don't so distillation is only one part of the training system.
  364. 36:18Um and it's not I would say that assume distillation disappeared.
  365. 36:22Okay, maybe open source labs maybe increase you know it's not four four months maybe eight months um but but that's fine because you know we always have some sort of innovative and new approach you know deepseek might invent something new
  366. 36:36um and so like you know GLM ki all of them Google you know even the American open source lab they'll have some new innovation um and so like I think like yes if you stop distillation
  367. 36:47it will increase you know the you know four months to eight months but I still think that is fine Um it's just a delay you know and then the delay will go back to like four months.
  368. 36:56Um yeah good question.
  369. 37:00So the question is if dynamic quantization is always better why do people not always do dynamic quantization?
  370. 37:05Um so it depends on the definition of dynamic quantization.
  371. 37:11So for every single lab they will have different approaches to dynamic quantization.
  372. 37:15In fact, I'm actually going to talk about that.
  373. 37:17Um, I was going to talk about that in the benchmaxing and accuracy minimizing session.
  374. 37:22[clears throat] So, I'll be talking about that.
  375. 37:24Um, so I will your question will be answered later.
  376. 37:28Um, yes.
  377. 37:29Okay.
  378. 37:29One more question.
  379. 37:30Yes.
  380. 37:31Yes.
  381. 37:32So, the question was for consumer grade GPUs, you know, what are the open source models in terms of like, you know, the parameter size capabilities and stuff like that.
  382. 37:39Um, so for the open source community, you know, the most popular models are probably Quen 3.6 6 35 billion um 27 billion GMA you know Gemma's 26 billion um GLM
  383. 37:514.7 flash the smallest type models um and I feel like these small models are actually very powerful um so okay I don't have wait I don't think so I have a plot um but essentially
  384. 38:03these small models the biggest problem oh actually I'm going to talk about this as well the biggest problem of these small models are they fail very bad at tool calling
  385. 38:11because they have tool calling issues um they loop continuously um and the biggest problem is because they're small and that is why they have these problems um but we can counteract this
  386. 38:22um and so one of the things I'm going to talk about later is the model becomes not important anymore it's the harness or the tool that is actually the most important thing um how do you actually call the model um that actually affects the most accuracy of the model um so not actually the model itself
  387. 38:38um but I'll be talking about that as well um yeah okay I will continue on.
  388. 38:43Um, there were always questions after each section.
  389. 38:45Um, uh, yes.
  390. 38:49Oh, yes.
  391. 38:50The next section, the fun section, throughput maxing.
  392. 38:53Oh, actually, I think I did.
  393. 38:54It's supposed to be 2x.
  394. 38:55I don't know.
  395. 38:56Whatever.
  396. 38:56Throughput maxing and and accuracy minimizing.
  397. 38:59I thought it was like accuracy mining, but there's no such thing.
  398. 39:02So, it's called accuracy minimizing for now.
  399. 39:04Um, yes.
  400. 39:08So, this part actually I really like.
  401. 39:11Okay.
  402. 39:11I'm not sure if you guys can see it's a bit oh whatever.
  403. 39:14Um this shows the parade efficiency of cost of the cost of the model.
  404. 39:19So cost is um cost is the x-axis.
  405. 39:22Um and the y-axis is the arena score.
  406. 39:25So this is like you know Ella Marina's arena score.
  407. 39:27Um and this part I really like.
  408. 39:30So I don't really you know maybe you see like arena scores you know Ella Marina scores between each model.
  409. 39:35I don't really like that.
  410. 39:36It's not it's not very easy to see.
  411. 39:38Instead the better approach is to plot every single model on two axes cost versus accuracy.
  412. 39:46Um and you can see Fable does very well right so Fable does very very well on that plot.
  413. 39:50Um but you can see there is a paro trend you know like Gemini 3.1 preview is over here you know Opus 4.6 is over there as well.
  414. 39:58There are some other models as well when Fable got released.
  415. 40:04Okay.
  416. 40:04Well, now it's banned, but anyways, when Fable was released, when you know when people tried it, they noticed that it's not that much better in terms of actual capabilities.
  417. 40:15Um, you can see, you can see, but however, people really liked the front-end design.
  418. 40:21You know, they said if you called Fable, it was very, very good for UI UX front end.
  419. 40:28Um and in fact if you look at the LM Mariners chart you can see it it was a very big shift in terms of front-end design.
  420. 40:35Um GLM 52 is also there if you can see you know it was part of the par paro trend.
  421. 40:40Um but in general for these large models they seem to have they're not going to be do they're not going to be doing that much better on general tasks.
  422. 40:49Um however for UI and designing Fable seems to have done very very well.
  423. 40:55Um, and so you should use Fable for your designing.
  424. 40:57You you should use Fable for designing, for UI, for UX, whatever, HTML, JavaScript, but you should probably not use Fable for the rest of the tasks because it is very expensive.
  425. 41:08Um, so you know, use some other models instead.
  426. 41:12Um, and you know, however, yes, okay, you know, some other models, you know, like, okay, this, you know, this shows that Fable does very well on UI and UX.
  427. 41:23Um but how about over time um you know how what do you know anthropic their view is we need to maximize throughput right maximize throughput but also maximize accuracy
  428. 41:35um you know they want to like you know serve more people um but sometimes it doesn't actually work um sometimes they actually reduce accuracy um and so you can see there is a I don't know if you folks know margin labs um they have this very cool they do they do su bench they benchmark codecs
  429. 41:52they benchmark codecs and clawed code with the models.
  430. 41:55Um, and this is accuracy over time for these models.
  431. 41:59Um, and the dotted lines are the release of the new models.
  432. 42:03Um, so there's actually another um, there was actually a dip in Wait, can you is there Oh, okay.
  433. 42:08The mouse is there.
  434. 42:09Um, I I think it was over here.
  435. 42:10Um, I think it was over here that feeble got released.
  436. 42:13Um, so there was actually another dotted line.
  437. 42:15Um, there was actually very interesting trends you can see.
  438. 42:17The first one is um every single time there is a new model release this this you know daily tracker seems to decrease in accuracy.
  439. 42:29Um and so if you want to predict when a model gets released from anthropic you can use this as an indicator um of when the model gets released.
  440. 42:38it worked very very well.
  441. 42:39Right?
  442. 42:39So like essentially if you were over here the dipped in accuracy over a very long period of time was because fable got released.
  443. 42:45Um and over here I think that's opus 4.8 I think.
  444. 42:49Um I think yeah I think that's opus 4.8. This is opus 4. Uh 7 and so on.
  445. 42:55That's 4.6 I think.
  446. 42:57I whatever um I don't remember exactly but um but you can also see that there is ginormous dips of accuracy.
  447. 43:05Um, and it's not just like one day or two days, it's for a very long period of time.
  448. 43:12This is also Codex.
  449. 43:13Um, so they also do codeex benchmarks.
  450. 43:16Um, and you can also see that over time.
  451. 43:18I don't know if you can squint, but you can see that actually Codeex has been getting worse if you plot the trend, right?
  452. 43:24If you can I don't know if you can squint, but if you draw a line, it seems to be getting worse.
  453. 43:28Um, so I'm assuming OpenAI is investigating this as well.
  454. 43:31Um, okay.
  455. 43:32So this is different model.
  456. 43:34This is codeex.
  457. 43:37So this is using 5.5.
  458. 43:39This is using
  459. 43:40model.
  460. 43:43Correct.
  461. 43:43It's the same.
  462. 43:44So what this benchmark does is you randomly sample 50bench questions.
  463. 43:50Sweet bench is very large.
  464. 43:51So you just sample 50 of them and then you call the model to answer it.
  465. 43:55Um and then you record accuracy.
  466. 43:57Um and so obviously you know every single day there's like you know daily variations.
  467. 44:02Oh, it's not it's not that useful because you're only calling 50 questions.
  468. 44:05Um, so the trick is to look at the trend.
  469. 44:07Um, and the trend uh h maybe open should investigate this.
  470. 44:12Um, and you can see the trend for you know anthropic is also not very good.
  471. 44:16Um, in general oh so sorry this is not the same model.
  472. 44:20Um, these models change my bad.
  473. 44:22Um, so it's the same harness but the model changes.
  474. 44:25Um, so this dotted line is GBD 5.5. Um, so everything over here is GBD 5.5. Everything over here is GBD 5.4. Um I think this is 5.3. Um and so on.
  475. 44:37Um but it seems like the model's getting worse.
  476. 44:39So I don't know.
  477. 44:41This is probably just on this benchmark, right?
  478. 44:43On the Sweet Bench Pro benchmark, it's getting worse.
  479. 44:47Um but you know, I wouldn't really trust these benchmarks.
  480. 44:51The best way is to look at the degradation.
  481. 44:53You know, the sudden drops.
  482. 44:54You know, for example, Codex dramatically dropped over here.
  483. 44:58I don't know why.
  484. 44:58Um and you know clawed you know clawed code was very bad for a few weeks over here or over here right.
  485. 45:08Okay.
  486. 45:09Yes.
  487. 45:12Yes there is a confidence interval.
  488. 45:14I did not plot it but this is 50 tasks.
  489. 45:16So every single day they call a 50 tasks randomly.
  490. 45:20So they will sample 50 tasks.
  491. 45:22Um and so you you should not look at this daily.
  492. 45:24This is daily.
  493. 45:25So every single day is 50 questions.
  494. 45:26Another 50 questions.
  495. 45:27another 50 questions and so on.
  496. 45:29Instead, you should do like a rolling average, you know, some sort of rolling, you know, 7-day average.
  497. 45:34Um, that's a better number.
  498. 45:36Yeah,
  499. 45:40really.
  500. 45:41I can see it from here.
  501. 45:42It's like decreasing.
  502. 45:46It's it's
  503. 45:52if you look at the if you do the seven moving average, I I'll probably get the pot later.
  504. 45:56It actually is decreasing.
  505. 45:57You can see it um if you can see I don't know if you look at the top peaks of the you look at the top peaks and the peaks are decreasing.
  506. 46:09Okay, how about the bottom peaks?
  507. 46:17Okay, I agree there is random noise.
  508. 46:18So the trick is you need to the moving average and if you look at the moving average you can actually see it's decreasing.
  509. 46:23I I'll probably I'll get the plot later.
  510. 46:25Um you can you can search it.
  511. 46:26It's so go to Margin Labs, search in Margin Labs codeex claw code benchmarks and they do show weekly the weekly trend but I'm just saying this is not this is not to say that the model is getting worse.
  512. 46:39This is just to show that accuracy that you know the sudden dips the accuracy of these models can decrease.
  513. 46:47Um and the question is why you know for example why did claude code over a few weeks why did the performance decrease like why that's the fundamental questions.
  514. 47:03So that is one theory.
  515. 47:05A theory is they might have accident you know that before the model release they are doing testing and so they might have like you know act you know some of the
  516. 47:15some of the queries they route to opus 4.8 eight
  517. 47:18or fable or whatever.
  518. 47:20And the problem is they did not.
  519. 47:23So the main question is if you do route to another model, why did the accuracy decrease?
  520. 47:27It should actually get better.
  521. 47:29And so one of the theories is theory one, they forgot to edit the system prompt.
  522. 47:34And so the system prompt for Fable was different, but then they used the wrong system prompt for, you know, for Opus 4.8, and that is why the accuracy decreased.
  523. 47:43Um and then after the model got released the accuracy went back up because they used the correct system prompt.
  524. 47:49That is one theory.
  525. 47:50Um the other theory is the other theory is okay we're actually going to talk about this is it's actually they're doing tricks.
  526. 47:58You know they did quantization but they didn't do dynamic quantization.
  527. 48:02They did some dumb quantization.
  528. 48:03Um you know they some GPUs are broken for example.
  529. 48:07You know they use the wrong GPUs.
  530. 48:08Some of them have like you know bit flips or something.
  531. 48:10I don't know.
  532. 48:11um they have like a new data center and then that data center just by chance has lower accuracy.
  533. 48:17Um in fact there is actually okay I'm going to talk about this actually.
  534. 48:21Um yeah but there are many many theories like you know possibilities why this could reduce an accuracy.
  535. 48:28Um actually I I think it's the next plot.
  536. 48:30Yes the next plot.
  537. 48:31Um oh well the next slides.
  538. 48:34Um so actually when was this?
  539. 48:37I don't remember.
  540. 48:38Um it was a few months ago.
  541. 48:40Someone from AMD actually made an issue on chord code you know during this dip.
  542. 48:45I think it was during the before um a very large dips in accuracy and they actually asked Claude, you know, they asked the Claude team, why is there a noticeable dip in accuracy?
  543. 48:54You know, why why is that?
  544. 48:57And Claude actually wrote a in April 23, they actually provided details on why they had reduced in accuracy, right?
  545. 49:06So they did a postmortem on what happened with Claude.
  546. 49:09Um and the reason why is because the thinking trace got deleted after the second you know when you when you ask call the second time the thinking trace got deleted.
  547. 49:19Um and it had a bad system prompt.
  548. 49:21Um and they found out that that that was why the accuracy got deleted.
  549. 49:26Um so somehow in claude code the second time you ask a question the previous thinking trace got erased.
  550. 49:35Um and I don't know I don't even know how they did not find this but oh wow um according to them now is claude now has this internal benchmark so they will use more internal investigations
  551. 49:46to test okay next time if there's a new model this won't happen ever again um and you know like these things do happen over time um and so like for this specific example
  552. 49:55you know cloud code the harness the harness itself was the problem not the actual model right the harness the thinking trace got deleted and they had a very not a very good system prompt.
  553. 50:06Um and that is why the accuracy actually degra um degraded.
  554. 50:10So that okay so we found one answer why these models got worse.
  555. 50:19They also released in September 2025 right in September 2025 they showed that it was due to okay I didn't okay I didn't put the slide but anyways they showed it was actually due to a hardware problem.
  556. 50:30Um so in their compiler um they used TPUs.
  557. 50:34So so Anthropic likes to use TPUs and GPUs.
  558. 50:38Um they showed that the same software stack for GPUs and TPUs um actually produced different results.
  559. 50:45Um and so for the TPUs it actually was different sampling.
  560. 50:49Um and for the GPUs it was a different sampling mechanism.
  561. 50:52Um and so that is actually why they had decrease in accuracy during September sometime.
  562. 50:56Um because they actually had different hardware.
  563. 50:58And so you need to like Yeah.
  564. 51:00So like once you have different hardware accuracy also changes.
  565. 51:06So I think the main point is the harness the implementation the tool is now the most important.
  566. 51:14It's not the model right the model is useless.
  567. 51:17Most models you know if you look at the model of you know open source versus closed source models are generally the same.
  568. 51:22The difference is how clawed code is made you know how codec is made and used.
  569. 51:28Um and so that is actually the most important factor.
  570. 51:31It's not the model anymore.
  571. 51:33Um and so like you know as we have seen if they have accidentally botched you know if they accidentally botched the harness you will get reduced accuracy.
  572. 51:43Um and so like you know definitely you know for large labs as you know I'm sure they are they know these problems and they're working on it.
  573. 51:50Um but I feel like you know these are probably you know these are still very hard to fix.
  574. 51:54Um yeah so hopefully I answered some of people's questions on the harness you know the accuracy um so there's actually reasons why accuracy got degraded but you know it's not just closource
  575. 52:07labs during bad across open-source model providers the accuracy changes so if you look at this plot so this is from open router um this is deepseek v4 pro um so most labs what they want to do most inference providers what they want to do is they want to serve you the highest throughput,
  576. 52:28right, with the cheapest price.
  577. 52:29They want to give you, you know, 60 tokens, 120 tokens, 1,000 tokens per second, right?
  578. 52:35They want to give you the fastest.
  579. 52:37Um, but did you but did people actually bother to check accuracy?
  580. 52:42So, that is the fundamental question.
  581. 52:43You know, you might be getting 10,000 tokens per second and there is no model.
  582. 52:48Um, so the main question is you need to be careful of what you use from these inference providers.
  583. 52:53Um and so for DeepS v4 you know there are two benchmarks which open router ran you know yeah it's like sorted it's sorted I think on the gray I think it's sorted on tower bench um so it's sorted on tower bench um and the green one is GPQA
  584. 53:09and you can see that in general some of the labs are not you know some of the sorry not labs some of the inference providers are not doing very well
  585. 53:16um so you need to like before you before you use a open source model please check the accuracy before you use the open source model.
  586. 53:24Um and also one of the biggest problems of this is every single time you know for example a cloud code you know claude code and codeex you can benchmark accuracy over time.
  587. 53:36Um and the good thing about closed source labs is they control the supply chain.
  588. 53:41Um the biggest problem of open source is there are so many suppliers and providers of these models um that sometimes what happens is people get turned off and they get very annoyed that the open source models do not work very well.
  589. 53:56Um so everyone you know in the in the ecosystem people keep saying that closed source labs do much better than open source but it's not because of the model it's because of the inference provider right the inference provider is to blame that they are causing the downfall of open source because they're giving a bad name for open
  590. 54:13source um so I would like check you know whatever favorite inference provider you have um so this this benchmark was run I think yesterday um by open router so this is this is daily data by open router.
  591. 54:28Um so whatever favorite inference provider you have please tell them not to you know reduce accuracy that much.
  592. 54:36Um this is GLM 5.2. Um so you know GLM 5.2 as well shows different accuracies.
  593. 54:43Um you can see so the plot on the right shows most model you know most inference provide okay I keep saying model apps most inference providers are throughput maxing
  594. 54:53but they are accuracy minimizing that's where the phrase comes from okay so they do not care about in fact look like you know the highest accuracy is 76.4% and the lowest is 62.4%.
  595. 55:04So there is a 10% gap between the back you know between the highest accuracy and the you know lowest accuracy.
  596. 55:10Um and so like you need to you know as a as a you know as a call out to inference providers you know please increase accuracy you know before trying to make things faster right you do not want a model to be very dumb
  597. 55:24um and it's like you know 10,000 tokens per second right we can make it 1 million tokens per second and there is no model um you know just call a human or something you know make a fake or something so
  598. 55:36yeah so the main point is we need inference providers to do good in terms of accuracy otherwise this will make open source have a very bad look um yeah
  599. 55:47oh okay that's the end of the the second section I guess that was a bit of a rant um any other questions for this yes
  600. 55:55for a new organization that's that wants to use like the open source model do you suggest using a you know inference service provider or do you suggest downloading from hugging face and then using like model or you know some kind server to you know implement
  601. 56:12yourself like what do you suggest if any new organization comes and asks you like how do you use open source model
  602. 56:18that's a great question so when an open source model gets released you know how should you use it in terms of accuracy throughput or whatever um so in general
  603. 56:27um in general open source has come a long way so for example we did report bugs in Jamaa 1 ja 2 llama mistro you know open gdosss every single of those models had bugs Um
  604. 56:39and so the good thing is you know as we will help the labs before they release a model to fix some of the issues.
  605. 56:46So every single model you now have has some of our fixes.
  606. 56:50So that's a good thing.
  607. 56:51Um but in general if you have a open source model I would use Llama CPP for example.
  608. 56:57I think Llama CPP and Llama server is probably the most bugfree system.
  609. 57:03So I would like suggest yes you should download from hugging face.
  610. 57:06use Llama server, use Llama, you know, CLI, I don't know, you can use Unsoft Studio, whatever, whatever is your favorite tool.
  611. 57:14But you should, yes, you should download from Hugging Base.
  612. 57:16Um, in terms of like, you know, if you're a large enterprise, generally speaking, what they like to do is they like to wait one week.
  613. 57:23So most enterprises, they'll wait one week for all the problems to be fixed.
  614. 57:28Um, and then, you know, then they will use the model.
  615. 57:31But in my view, that is not a good approach.
  616. 57:33I would say if you okay if everyone waits one week then like how do we fix the bugs?
  617. 57:39Um because only at scale only at scale then we can see the bugs.
  618. 57:43Um and so like in general we need everyone to start trying these models earlier.
  619. 57:49Um and not like you know wait one week wait one month you know don't do don't do the waiting approach.
  620. 57:54Um but I would say like in general the enterprises what they like to do is just wait one week.
  621. 57:59Um yeah that's like common practice.
  622. 58:01Um, yes.
  623. 58:14So, okay, the question was why would the model performance degrade before a model release?
  624. 58:19Um, these are just hypothetical question hypothetical theories.
  625. 58:25So, every single model has a different system prompt.
  626. 58:29So, opus 4.8 8 Opus 4.8 system prompt is very short.
  627. 58:33Um but Opus 4.7 system prompter was extremely long.
  628. 58:36Um so the theory was this is just a theory that anthropic via claude code accidentally routed some of the models to Opus 4.8 right they use opus 4.8 as testing right they need to test opus 4.8
  629. 58:51But they used Opus 4.7 system prompt.
  630. 58:54So they used the wrong system prompt and that is why accuracy degraded.
  631. 58:58That's one theory.
  632. 58:59Um, another theory is actually I think that's the actually I thought about it.
  633. 59:04That's probably the only theory I had.
  634. 59:06I'm like thinking hm is there another theory?
  635. 59:08Um,
  636. 59:12I guess the harness itself like you know sometimes the harness itself the harness was was designed for Opus 4.7. Um and during when they were going to release 4.8,
  637. 59:25they need to collaborate the harness, right?
  638. 59:28They need to change the harness um for 4 4.8 to make it work.
  639. 59:32But the problem is you're not allowed to publish it, right?
  640. 59:36You're not allowed to publish it and give it to people because otherwise people will like, you know, go into Twitter on LinkedIn, you know, everywhere.
  641. 59:42Oh, I can see 4.8 is going to be released.
  642. 59:44You know, everyone's going to be screaming, you know, 4.8's coming.
  643. 59:474.8's, eights, you know, were getting released and so maybe that's why accuracy decreased.
  644. 59:51It's they update they did not update the harness.
  645. 59:54Um or the other option is they up they already up they silently they silently updated the harness before the new model got released and it regressed you know it reduced accuracy.
  646. 60:05Um I don't know like to be honest I you should probably ask anthropic that question.
  647. 60:09Um or but I think in general in general the dips the dips don't always correspond to like new model releases.
  648. 60:16Some of the dips are actual issues like you know the thinking trace got deleted um the system prompt they wrote a wrong I think for the system it's funny I think for the system prompt they said
  649. 60:27um they tried to reduce verbosity so they tried to make the model less talkative um and it actually made the model dumber um and so I think it was just one word they added one word no one sentence I think one sentence in the system prompt that made the model dumber Um,
  650. 60:46yeah, I don't know if that helps, but I don't know if anyone else has any like theory.
  651. 60:50I don't I don't think so anyone even has that many theories on this.
  652. 60:53Um, obviously the anthropic engineers will know, but I, you know, they're not going to tell.
  653. 60:57So, it's just based on hypotheticals.
  654. 61:00Something to do with the system problems, something to do with the harness.
  655. 61:03Yeah.
  656. 61:03But I think in general, you can also use this plot.
  657. 61:05You know, if the performance decreases, most likely a new model is going to be coming.
  658. 61:09Um, yeah.
  659. 61:10Any other qu?
  660. 61:11Yes.
  661. 61:12Just to add on that Yes, correct.
  662. 61:26Correct.
  663. 61:32Yes.
  664. 61:32Exactly.
  665. 61:33Exactly.
  666. 61:34So before a model release, they use a different system prompt for that new model for the old model.
  667. 61:40And so that is probably why there are some decrease in accuracy.
  668. 61:42they switch the system prompts around or something like that.
  669. 61:45Um and also you know the model itself you know I think 4.8 system prompts is very short.
  670. 61:51Um it's yeah I think it's like very very short and 4.7 was ginormous.
  671. 61:55Um and the reason is 4.7 was like you know I don't know what I don't know what happened but they have this ginormous system prompt and the 4.8 just shrunk it a lot.
  672. 62:02Um so maybe maybe they used the 4.7 system prompt I don't know or 4.8 system the short system prompt for 4.8 eight and then they use it for 4.7
  673. 62:12and that's why it decreased accuracy.
  674. 62:14I don't know.
  675. 62:14Um but yeah, you're correct.
  676. 62:16Um they do release although I think the system prompt they released on the website is for claw.ai.
  677. 62:21So the online chat system um the clawed code system prompt is actually different.
  678. 62:26Yeah.
  679. 62:26So I think you need to actually call you need to call claude code you know what is my system prompt and then you print it to like a text file
  680. 62:35um and then you can like in investigate what the system prompt is and then you can also override it if you want um yes but it's a different system prompt most likely um yeah
  681. 62:47last question if anyone no okay continue on Okay, the next section we're going to be talking about is benchmaxing and cheating.
  682. 63:03Um, I'm not sure if you folks have seen the deep SWE benchmark.
  683. 63:09Um, the deep SWE benchmark is a very popular recent benchmark that shows, you know, the cost is on the X-axis and the Y-axis it is a deep SWE benchmark.
  684. 63:21It's a new benchmark based on like you know a better uncontaminated version of Swebench Pro.
  685. 63:26Um and in general you can see that you know GBD 5.5 does very well with Fable um you know GLM Opus 4.8 in general right it shows you know this plot shows that models are getting you know um these the dots are different reasoning modes um I think this is
  686. 63:43maximum reasoning I think um high extra high you know these are actually different reasoning um reasoning times as well um but in general you can see that there is a parto
  687. 63:54efficiency trend right the best model is the one you know to the right to the top right the better the model to the right to the top is the better the model.
  688. 64:02Um, so you want the models to do better and better over time to that to the top right corner.
  689. 64:09And you know, I just learned I didn't actually know this.
  690. 64:12I just learned that Sweetbench Pro when you run this benchmark you use LL you use language models as a verifier.
  691. 64:21Um, and I was like confused because like for most benchmarks, for most benchmarks, you should never call another language model to check whether your answer is right or wrong.
  692. 64:33And so for Swedebench Pro, you actually call a language model to verify if your language model was right.
  693. 64:40Um, and so that is why SweetBench Pro is not a very good benchmark.
  694. 64:45Um, one of the problems is is do we need to do sampling?
  695. 64:51Like how many verification runs do you need to run to verify if your answer is correct?
  696. 64:56Do you run it one time?
  697. 64:58Do you run it five times?
  698. 64:59You run it 100 times and take like an average.
  699. 65:01Um, so I was actually quite shocked that this is actually what happens.
  700. 65:05I was quite surprised actually.
  701. 65:07Um, the next question is which model is the verifier?
  702. 65:10You know you ask for example you ask opus you know you you benchmark opus 4.8 on swbench pro but which what do you use as a verifier do you use opus 4.8 eight as the verifier to using the same model itself to verify itself.
  703. 65:25Um and so like this I was like quite surprised actually that this is how benchmarks work.
  704. 65:31Um and actually quite disappointed.
  705. 65:33Um but anyways obviously you can go the other approach.
  706. 65:37You can do human verification.
  707. 65:39Um you know everyone in the room I'll give you the bench you know and just tell you guys to verify it.
  708. 65:45Um you could do that I guess.
  709. 65:47Um and also what happens if the verification changes every day?
  710. 65:50Um you know remember previously models you know every single day models get better or worse.
  711. 65:57um what happens what happens if you run what happens if you run the verification when the model was doing very bad right you will actually have different SWE numbers
  712. 66:07um and so like I'm actually quite surprised this is what the industry does um you know run bench pro but using anonymous is verifies that is definitely not a good idea um but anyways people do it whatever
  713. 66:19um in fact according to deepu um if you do if you do verification using language models Sweet Bench Pro has a 8.5% false positive rate.
  714. 66:31Um, and a false positive rate means that the LLM verifier said that the model was correct, but it was actually wrong.
  715. 66:39Um, and so 8.5% of the time it would do this.
  716. 66:43Um, the false negative rate is even worse at 24%.
  717. 66:48Um, this means that the verifier said that the model was wrong, but it was actually right.
  718. 66:54Um and so you can see that SweetBench Pro is a very bad benchmark.
  719. 66:58Um and so Deep Sweet showed that they have in you know they fixed the problem you know um by reducing the false positive rate and the false negative rate to you know 1%.
  720. 67:10Um in fact some examples of cheating um I you know this is actually quite surprising um but in the bench pro benchmark you get you get like a GitHub question you know a GitHub issue
  721. 67:25you call the model to solve that GitHub issue but did you know that in Swebench Pro you get the full Git history so you get the you get the actual answer as well
  722. 67:37um so I'm like I'm actually quite I was actually quite shocked to learn this um that during these models you give the answer and the question like obviously the model will cheat.
  723. 67:47Um and so like this is definitely a very bad benchmark.
  724. 67:51Um you know you should never ever ever ever give the model the answer.
  725. 67:56Um and so very silly.
  726. 67:59Um but yes this happens a lot.
  727. 68:01Um and you do not want the model to literally see the solution, right?
  728. 68:04That is a terrible approach.
  729. 68:06Um the other problems that you get get like false positives is you know the PR tests you know the the GitHub the GitHub issue tests are very weak.
  730. 68:17Um so you know at the final conclusion you know when the GitHub when the GitHub issue is closed with a pull request the tests that the maintainer wrote are not very good.
  731. 68:26Um and so the problem of that is you know if you have tests which are very weak then you know the model does very well not very good.
  732. 68:33Um and obviously the worst part is the model will like bypass some tests.
  733. 68:37It will skip some um and that is not a very good approach.
  734. 68:42In fact um deep suite actually showed how many times a model cheats by looking at the full git history you know directly going to the answer.
  735. 68:52Um you can see opus 4.7. So the purple bars show cheating by models.
  736. 68:59Um ah it looks like Jubilee 5.5 never cheats.
  737. 69:02It looks like it um h okay maybe we should use GP 5.5. Um you know actually this is actually very interesting.
  738. 69:09There are some people which think that if you cheat that's actually good.
  739. 69:14Um and the reason why it's good is it means that Opus 4.7 already know like if you give it the full Git history you should be able to like you gave it to them right you gave Opus the full Git history
  740. 69:26it should find the solution there right it should just directly skip over to the solution.
  741. 69:29So it's that's what people think you know people have a view that the humans gave Opus 4.7 the full gate history so it should cheat right you you you designed it to cheat um so in general
  742. 69:43cord models seem to cheat more um and open AI models seem to cheat less in general um so it depends on you you know if you want a model to cheat or not um and the definition of the word cheat is also very you know charged so I guess it depends on what the word cheating means
  743. 70:02um you know for false negatives remember Swebench Pro calls a language model to verify if your answer is correct um and so sometimes it's not very good you know sometimes you have unrelated
  744. 70:15tests that fail um you forgot you know sometimes when you write tests you forgot about the tests which have helpers you know helper functions and you just skip that um so there are many issues and this
  745. 70:27I think this was 20 yeah so 24% % of the time, 24% of the time, the model says, the verifier says your model was wrong, but it was actually correct.
  746. 70:37So, this is another problem.
  747. 70:40And even worse, the harness itself can change accuracy.
  748. 70:45So, when you benchmark using Swebench Pro, like you need to have one agent or one harness for all models, right?
  749. 70:53How do you create a generalized control environment for these models?
  750. 70:58Um and so you can see like you know for example DeepSu showed if you use clawed code you get 40% accuracy but then if you use their own so it's a special harness
  751. 71:08you can get 50% accuracy um Gemini for example right if you use Gemini CLI you get 20% accuracy but if you use their one you know the the control environment
  752. 71:19you can get 40% accuracy um and so in general for these benchmarks you also need to have a controlled environment.
  753. 71:29Um, and that is also another problem.
  754. 71:32And with Deep Suite, they showed by using this benchmark, by solving, you know, by stopping cheating, you know, by, you know, if we remove cheating, if we remove, you know, these other issues,
  755. 71:44you can see the models, you know, the models are not saturated anymore, right?
  756. 71:49You can see the models are very different in terms of the capabilities.
  757. 71:52According to this benchmark, GBD 5.5 is the best according to this one.
  758. 71:56Um I don't Oh, this is not updated.
  759. 71:58Um for 4.8 I think is over here or something.
  760. 72:00Um but yes, this benchmark shows core taiku is 0%.
  761. 72:06Um accuracy, right?
  762. 72:07It's terrible, I guess.
  763. 72:09Um but yeah, this benchmark just show okay the main question is do you trust this benchmark?
  764. 72:13That is another question.
  765. 72:14Um there is other benchmarks, right?
  766. 72:18So cognition released a frontier code benchmark which also tries to solve the same questions for benchm you know for cheating and benchmarks.
  767. 72:25Um and what they showed is you can fix contamination.
  768. 72:29And how do you fix contamination?
  769. 72:31You ask, you know, you ask Cognition's team, which is full of like, you know, national Olympiads and, you know, international Olympiads.
  770. 72:38They manually checked every single question um themselves, you know, and removed bad questions, you know, bad examples.
  771. 72:46Um and they also showed that their questions are much more diverse, right?
  772. 72:50So, Frontier Code has many different other languages.
  773. 72:53Um and they showed with diversity you know with more diverse programming languages um and by reducing contamination they also have a benchmark um and according to their benchmark opus 4.8 is the best
  774. 73:08right for 14.5% accuracy juby 5.5 is 7.2 to accuracy.
  775. 73:13Um, and this is the diamond one, right?
  776. 73:17So, this is the 50 the 50 hardest questions.
  777. 73:20Um, the main benchmark is 100 questions and the extended is 150.
  778. 73:24Um, and so according to them, you know, Claude does the best according to them.
  779. 73:32But also according to them, Frontier code seems to be better than Deep Suite.
  780. 73:38Right?
  781. 73:38The benchmark that I showed previously, Deepswuite, this one um you know according to Frontier Code, so the cognition team, their benchmark is better than Deepswuite, right?
  782. 73:48According to them, according to them, Deep SW's false positive rate is 44.9%.
  783. 73:54But remember what did Deepswu say?
  784. 73:56They said the false positive rate was I don't remember what what did they say?
  785. 74:02Um they said that it was 0.3%.
  786. 74:06Right?
  787. 74:06So deep said deep said their false positive rate is 0.3%.
  788. 74:11But Frontier code said that Deep SWE's false positive rate was 44.9%.
  789. 74:16Um so you know there is some competition I guess between benchmarking labs um well cognition is not a benchmarking lab but like you know between companies um so the main question is who do we trust you know do we trust
  790. 74:31Frontier codes benchmarks?
  791. 74:33Do we trust Deep Swiss benchmarks?
  792. 74:36Do we trust Bench?
  793. 74:38You know, who do we trust?
  794. 74:39And that is a very important question.
  795. 74:42Um, you know, my take is like, you know, like let's just take an average of everyone.
  796. 74:47Take an average of everyone and you'll probably get the best answer.
  797. 74:50You know, who is actually doing the best.
  798. 74:51Um, yeah, but this is actually very interesting.
  799. 74:54Um, you know, it show Okay, so according to them, the false negative rate for Deep Suite is correct.
  800. 74:58You know, 1.2%.
  801. 74:59But my interest, you know, I probably, you know, my main question is why is the false positive rate so high for deep according to according to Frontier Bench, Deep Sweet is even worse
  802. 75:11than Sweet Bench Pro.
  803. 75:12That's what they're trying to say, I guess, for for the false positive rate.
  804. 75:16Um, yeah.
  805. 75:19And even worse, there is another benchmark called Frontier Math.
  806. 75:23Um, so Frontier Math is by Epoch AI.
  807. 75:27Um so they they have this math benchmark with different tiers you know tier one, tier two, tier three, tier four.
  808. 75:34So tier four is the hardest.
  809. 75:35Um but the benchmark itself was botched.
  810. 75:39Um and so they actually had to release a corrected version of their benchmark.
  811. 75:44Um I think this was one month ago um or something.
  812. 75:48Um so they showed that their benchmark questions were fully wrong.
  813. 75:54Um, and you can see that if you correct the benchmark, if you correct the benchmark, the accuracy for GBD 5.5 jumps from 50% to 80% or something.
  814. 76:02Um, and so now you kind of trust the benchmark.
  815. 76:06And they showed in a tweet, oh, it's June 12.
  816. 76:09Oh, it's only two weeks ago.
  817. 76:11Um, so in June 12, they showed that the reason why they did bad on the benchmarks is they they did the answer extraction incorrectly.
  818. 76:18For example, they did, you know, they had unclear questions.
  819. 76:21They had the incorrect sign.
  820. 76:23So, for example, they said the model said 12, but it should be actually minus 12 and they forgot to cut the minus sign.
  821. 76:29Um, they have one-off errors.
  822. 76:32Um, yeah, there's many problems with the benchmark.
  823. 76:35Um, and so they fixed their benchmark um, just recently.
  824. 76:41In fact, you know, it's actually quite funny.
  825. 76:44This was just two weeks ago.
  826. 76:47Have you guys heard of hugging faces math verify which was one year ago?
  827. 76:52Um and hugging base showed that in fact these benchmarks when you do math questions they always do bad and the reason why is because there's many problems right the formatting is incorrect
  828. 77:04um you know the extraction of the fraction is wrong um you know the sign is failed extraction there's many many many problems of mathematical extraction and to be honest I feel like it's like kind of a reinventing the wheel or you know
  829. 77:16rediscovery um but hugging base actually published this one year ago and epoch just fixed it 2 weeks ago.
  830. 77:23Um so you know benchmarking labs definitely need more you know they need to investigate literature more I think.
  831. 77:31Um in fact according to hugging face math verify you know if you use if you the green bar the green bar is if you do not use hugging faces's verification system you know to fix the benchmark.
  832. 77:45If you do fix the benchmark, you can see accuracy dramatically increases, right?
  833. 77:49For example, for Quen, for Quen, the accuracy was 10%, now it's 25%.
  834. 77:54Um, and so you need to, so that means the open source models are not dumb.
  835. 77:58They just have different they output a different format.
  836. 78:01Um, and so one of the problems is how do we actually actually like, you know, pass these different formats?
  837. 78:08In fact, it's even worse.
  838. 78:10Um, no, I think I tweeted, oh, I tweeted this in August 2024.
  839. 78:15Um, that if you if you use different tokenization, you can also have different accuracy.
  840. 78:20Um, in fact, for MLOU, if you use spaces, you increase accuracy by 0.4%.
  841. 78:26Um, it might not sound like a lot, but the point is by these very dumb things like, you know, using spaces or, you know, minus 12 becomes 12.
  842. 78:37Um and all of these like dumb little small things, the accuracy of these benchmarks can change over time.
  843. 78:44Um and so like the main question is you know how do we make benchmarking labs and benchmarking companies you know how do we make them more reliable um and you know more trustworthy.
  844. 78:57Oh okay that's I guess the section for the benchmarking part.
  845. 79:00Any other questions for that section?
  846. 79:02Um questions.
  847. 79:05Yes.
  848. 79:40That's a great question.
  849. 79:41So the question is how do we how can we trust these benchmarking companies or like what other types of benchmarks can we do to make it trustworthy?
  850. 79:50Um so that is actually a very good question.
  851. 79:52The main question for benchmarks is you need to satisfy two conditions.
  852. 79:56The first condition is the benchmark must not must not be benchmaxable.
  853. 80:01Right?
  854. 80:01How do you make a benchmark that is extremely hard to benchmark, right?
  855. 80:05How do we like not get 100% accuracy?
  856. 80:08And the second question is how do we make the benchmark um verifiable, right?
  857. 80:13So how do we make the benchmark you can you can also verify that the answer is in fact correct, right?
  858. 80:18You remember Swebench Pro is dumb because you call the language model itself to verify itself.
  859. 80:25Um so that is not good.
  860. 80:26Um so the main question is those two questions.
  861. 80:29Um, and so one good example, this is just a dumb example.
  862. 80:36Randomly create maths questions.
  863. 80:39Sample for example.
  864. 80:40Okay, this is okay, this is probably not a good benchmark.
  865. 80:44You automatically create maths questions.
  866. 80:46Um, we can sample infinity, right?
  867. 80:49We can sample infinite maths questions, right?
  868. 80:512+ 2, 4 plus 4, you know, any single number added together.
  869. 80:56That's one question.
  870. 80:58Can you verify this?
  871. 80:59Yes, you can.
  872. 81:00Right?
  873. 81:00You can call a calculator to verify what is 2 plus two.
  874. 81:04Can this be benchmaxible?
  875. 81:07Hard.
  876. 81:08And the reason why hard is because the sampling space is infinity, right?
  877. 81:11It can be 2 plus 2, 1,00 plus 101, right?
  878. 81:14It can you you don't have to do plus, right?
  879. 81:17You can do 1,00 times 1,00.
  880. 81:19And so that's one way make a benchmark which is very hard to cheat but also easy to verify.
  881. 81:26So some sort of math question.
  882. 81:27Um, the other one, for example, is um, okay, maybe this is not a good example.
  883. 81:33I'm just making this one up on the spot.
  884. 81:35Tell the model to create a poem in 70 words and you must use the word happy.
  885. 81:44Can you verify this?
  886. 81:45Yes, you can.
  887. 81:46Is happy in the, you know, generation?
  888. 81:49If yes, plus one.
  889. 81:51Also, you can count how many words, right?
  890. 81:53You can count, okay, is there 70 words?
  891. 81:55Um, so you can do these type of approaches.
  892. 81:58And is this benchmaxable?
  893. 81:59No. It's it's very hard to benchmark because you can say 70 words, 69 words, 68 words, 102 words, 1,000 words, right?
  894. 82:09It doesn't have to be happy.
  895. 82:10It can be you must have two words, you must have three words.
  896. 82:13Um, so some some sort of benchmark where it's very hard to benchmark.
  897. 82:19Um yeah, in my view I think that's that's probably going to be the most important benchmark and I don't I don't think so anyone has actually made this yet.
  898. 82:28Um I don't know maybe someone in the audience or you know you guys can go as teams I don't know make a startup or something you know do that.
  899. 82:34Um and I feel like that benchmark will be very very important.
  900. 82:37Um yeah
  901. 82:45benchmarks we can trust today none of them.
  902. 82:49take an average of all of them.
  903. 82:50To be honest, probably the best approach is just vibe uh vibe checking.
  904. 82:55Try all of them and see which one you like the best.
  905. 82:57Um to be completely honest, I just you know like these benchmarks h like the main the main issue I have with benchmarks is for example um you know I mean like this one right
  906. 83:11this one I mean even every single day the benchmark can change.
  907. 83:16So we can't trust the benchmarks anymore.
  908. 83:18So my fundamental view is do not trust any benchmarks.
  909. 83:22Take an average and then okay then main question is who's taking the average?
  910. 83:25I guess artificial artificial analysis has some average.
  911. 83:29The only problem is they have some weightings for the weight.
  912. 83:31Um you know each benchmark has a weight.
  913. 83:34So now the question is you know what is the waiting of each benchmark.
  914. 83:37You know you can't just take like a dumb average.
  915. 83:39Um you know you can't just say you know 10 benchmarks divided by 10.
  916. 83:44Um that's probably not going to work.
  917. 83:45So the main question is how do you even do the waiting?
  918. 83:47That's another problem.
  919. 83:48Um, so I think in general it's based on vibe checking, I guess.
  920. 83:53Yeah, I guess I don't have an answer for that.
  921. 83:56Um, any other questions?
  922. 83:58Yes.
  923. 84:43question.
  924. 84:54Yes.
  925. 84:55So that way Good matter.
  926. 85:03You're correct.
  927. 85:04So the question was in terms of because we bench pro for example you call a model.
  928. 85:09The question is what model?
  929. 85:11Could it be 4.8?
  930. 85:12Could it be GB 5.5 and you call this model to verify the benchmark?
  931. 85:17Um you and so the question was can you use an open source model instead?
  932. 85:21So then now you you have a controlled environment.
  933. 85:24So yes you can.
  934. 85:25But remember there is a problem because even open source models itself have bugs times you know the inference engines have bugs times the inference providers have bugs and accuracy degradation.
  935. 85:38So it's you're correct.
  936. 85:40Um so the main question is we need to have some one or some organization you know some person or some whatever committee that we can investigate you know which engine did you use do not update the engine you know the engine must be the same you know the weights must have not changed so there's many many many
  937. 85:59problems with this approach um but I do agree as open you can use an open source model but it's not it doesn't solve the other problems um yeah does that
  938. 86:09Okay.
  939. 86:10Um, so the next section I'm going to be talking about is cyber security and regulation.
  940. 86:14Um, this is a interesting topic.
  941. 86:17Um, so I'm not sure if you have all folks have seen this plot.
  942. 86:20It shows the AI security institutes.
  943. 86:22Um, I think this is from the UK.
  944. 86:24Um, they show the performance of models based on some cyber security task.
  945. 86:28Um, and they show that mythos preview seems to be the best.
  946. 86:33Um, you know, with GBD 5.5 cybar, you know, preview and so on.
  947. 86:37Um, they show this benchmark.
  948. 86:39Uh and again previously as I mentioned weird ML is a better ben in my view okay this is just my take weird ML is a better benchmark in general
  949. 86:51for benchmarking intelligence on models and the reason why is because it doesn't actually it doesn't actually follow the trend of reasoning versus non-reasoning remembering reasoning previously I think I okay I don't have it um reasoning
  950. 87:04um the reasoning models doubling time reduced by half to 3.5 months So remember, you just need to wait 3.5 months and the models capabilities will double.
  951. 87:13Um and the non-reasoning was 7 months.
  952. 87:16Um so you need to wait seven months for the models to double in capability.
  953. 87:20Um but weird ML did not actually have this trend.
  954. 87:22Um the weird ML benchmark showed that actually the trend was like there is no trend.
  955. 87:27Um, and I think I'll just talk about this, you know, like one of the biggest problems of benchmarks is you need to constantly reinvent yourself and do reweings of
  956. 87:38combinations of benchmarks.
  957. 87:40For example, artificial analysis just recently released, you know, their new v4.1 benchmark and they showed the waiting of the benchmarks.
  958. 87:48Um, you know, GDP vow is 20%, terminal bench is 16% and so on.
  959. 87:52Um and so they they designed these numbers as waitings for each of those benchmarks and then they've averaged it up together.
  960. 87:59Um so the main question is how do you actually determine these numbers?
  961. 88:02Um and so this is more like a human approach.
  962. 88:04You know you have to determine these numbers.
  963. 88:06um you know arc AGI kind of saturated on ARC AGI 1 and so that's why we have ARC AGI 2 and that is also why we have ARC AGI 3 and my you know I guess once ARC AGI 3 is saturated then we have ARC AGI 4 5 6 7 whatever
  964. 88:22um and the main point is once you have benchmarks is it called good art I don't remember um the good the benchmark itself becomes useless because you know models will start benchmarking on this
  965. 88:34so one of the biggest problems of these larger models for cyber security for example um is mythos actually dramatically went out of the trend um and that is why you know
  966. 88:46many people are afraid of these you know mythos you know GPD 5 point 5.6 you they're afraid of these models because it went out of trend um you can see that mythos dramatically went out of trend um
  967. 88:58and you know even you know you know GP 5.6 didn't really release that many benchmarks because it was in preview mode.
  968. 89:04Um, so this is from their system card.
  969. 89:06They showed for cyber security that Guby 5.6 does very very well.
  970. 89:10Um, in fact because Guby because Guby 5.6 they I think they only did terminal bench as their benchmark.
  971. 89:18They did not benchmark on anything else.
  972. 89:20Um, they did have in their system card they did have one benchmark which is very important.
  973. 89:25Um, and this is called the internal research debugging evaluation.
  974. 89:28Um, and this is OpenAI's own set of set of questions.
  975. 89:33So, you know, the custom open source, you know, if you want to, it's their own set of 10 questions or whatever that they benchmarked GBD 5.6 on.
  976. 89:41Um, and according to them, it does very very it does better.
  977. 89:45Okay, I was going to say very, very well, but it's not.
  978. 89:46Um, it does better.
  979. 89:48Um, and you can see that GBD, it's actually kind of interesting.
  980. 89:51GBD 5.5 did worse than GBD 5.5 a four um for OpenAI's own internal um research evaluation um and you know GBD 5.6 definitely does much better right you can see that the G GBD 5.6 soul, you know, if you extend it, it does much better.
  981. 90:08Um, but interestingly, Terara does better um somewhat sometimes.
  982. 90:13Um, yeah.
  983. 90:17And, you know, one of the biggest problems of these models that are getting getting better and better and better is I don't know if you guys know that, you know, open-source
  984. 90:26exploits are getting worse and worse and worse.
  985. 90:28Um and so the high exploit ratio you know number of critical vulnerabilities that were discovered has skyrocketed you know recently you know every single week or day some sort of open source package gets compromised
  986. 90:42um and they actually you know this plot shows that it's getting very problematic um and so you know claude mythos was released at this dotted line where you know most people they're not sure if it's because of claude mythos that these vulnerabilities
  987. 90:56are increasing most likely it's because open source you know we use lots of models call them many many many many times and we can you know automatically find exploits in these models
  988. 91:08but you know there is actually another point so in hacken news someone posted about this um is it just mythos and juby 5.6 six that do good on finding cyber security issues.
  989. 91:20It's not actually open source models also do very well.
  990. 91:24Um open source models do extremely well in finding cyber security threats and issues.
  991. 91:30Um you know there is some discussion on hacker news you know is this actually true or false?
  992. 91:34Um but you know according to some you know some researchers and cyber security people the main reason why you know mythos looked like it was very good on cyber security is because they bothered to actually check the open source code.
  993. 91:48Um and so if you actually give the open source models the full code base of these open source libraries they will find the bugs you know they will find cyber security issues.
  994. 91:58Um and all you need to do is core the model.
  995. 92:01Um and so I feel like you know that's the fundamental problem is mythos seems very powerful not because the model is powerful but because they actually bothered to test on all open source repos.
  996. 92:12Um and so if you do you know if you call all these open source models to detect for bugs for cyber security issues you will find bugs and you know as as you know recently
  997. 92:25you know as everyone knows fable is still banned for the majority of everyone.
  998. 92:30Um, and GBD 5.6, you know, is delayed a staggered release, right?
  999. 92:34So like Guby 5.6 preview was on Friday, right?
  1000. 92:37So like a few days ago, and they said they're not going to be releasing to everyone.
  1001. 92:40Um, and the main questions are, you know, in the open source world, in the clos world, people are asking, do we need a license to use these AI models
  1002. 92:51for everyone?
  1003. 92:52You know, like everyone in this room now, we have to have a license to use the models, like a driver's license.
  1004. 92:58Um, do we need to get that?
  1005. 92:59um is there going to be a delay in all of these releases?
  1006. 93:03So every single time when a new model gets released only the trusted providers get these models.
  1007. 93:08Um the next most important question how about open-source models you know okay the government the US government currently is like you know trying to like control Fable GPD 5.6
  1008. 93:21The main question now is what do we do about open source models?
  1009. 93:25You know, open models, open weight models.
  1010. 93:27What will the government do to control the open source space?
  1011. 93:32To be completely honest, I was quite surprised the government acted this early um in doing GBD 5.6 and fable control, right?
  1012. 93:39I thought it was like maybe the end of the year or next year, but it seems like it's now.
  1013. 93:42Um so the next question is what will happen to open source models?
  1014. 93:46Will the government start controlling open source models?
  1015. 93:49Um and the fundamental question is what defines frontier intelligence like the reason why the government is you know they're controlling these models is because they're very very powerful.
  1016. 94:00Um so the main question is what actually defines intelligence?
  1017. 94:03You know which benchmark do we use?
  1018. 94:06Is it just based on one trillion parameters like you know how do we define whether a model can be banned or unbanned?
  1019. 94:12Um and that is a very very important question.
  1020. 94:14Um and we will we have a dark web of open models now you know do we need to torrent open models?
  1021. 94:21Um and the most important question what is inference what are inference providers going to do now you know assuming assuming that the government has some sort of regulation on even open models.
  1022. 94:32Um what is the inference prov what are they going to do?
  1023. 94:35You know what are the inference providers going to do?
  1024. 94:37Do they need to have license?
  1025. 94:39Do they need to check that everyone has a license before you can use the model?
  1026. 94:43Um or something like that.
  1027. 94:44Um and so like you know these are very important questions that you know the government is currently like you know and the industry you know the entire AI ecosystem and industry we are trying to like you know what are the answers to these questions.
  1028. 94:56Um and obviously you know if you were the government if I was the government it makes sense you know they do not want their critical infrastructure to be hacked.
  1029. 95:04You know, remember open- source exploits are skyrocketing.
  1030. 95:08If you change that y-axis, you know, not open source exploits, but like critical infrastructure exploits, you know, obviously the government's scared.
  1031. 95:15Um, so it makes sense for them to like stagger the release.
  1032. 95:18Um, but the main question is, you know, we're still in this we're still in this fog of war type approach, you know.
  1033. 95:25Okay, not fog of war, just fog, a foggy, you know, we don't know what will happen for regulation.
  1034. 95:30Um, yeah, that's very problematic.
  1035. 95:32Um yeah.
  1036. 95:34Oh okay.
  1037. 95:35Anyone have any questions for cyber security regulation policy or whatever?
  1038. 95:41Um or any takes as well questions?
  1039. 95:45Yes.
  1040. 96:02That is a good question.
  1041. 96:03So is it is open source so the scare of open source models is it because you know anthropic keeps screaming about open source is bad open source is bad you know every single day open source is bad
  1042. 96:14um yes and no I feel like it's true that you know there are some players in the closed source industry they want to shut down the open source ecosystem
  1043. 96:25their view is if you give open source to anyone they will start hacking you know critical infrastructure they will start doing bad behavior.
  1044. 96:34Um, and so that's kind of their view.
  1045. 96:36Um, so yes, I agree that some of the closed source labs have caused this problem.
  1046. 96:42Um, but it's actually kind of funny because currently the government is regulating them first and open source is still a question mark.
  1047. 96:50Um, and so like it's kind of like I don't know, they probably stabbed themselves in the foot or something.
  1048. 96:54I don't know whatever whatever the phrase is.
  1049. 96:56Um but I feel like it's they did cause some controversy in terms of like saying open source is bad but in general open source models are actually good.
  1050. 97:05Um so you could I mean theoretically you can use an open source model and you know run this on all repos and you will be able to find exploits
  1051. 97:18and you can exploit.
  1052. 97:20So they're not wrong.
  1053. 97:21Um but I feel like you know who has the infrastructure to do this?
  1054. 97:25um you know, GitHub might automatically detect you and ban you or something.
  1055. 97:28I don't know.
  1056. 97:29There's many there's many um layers of security for each section.
  1057. 97:34Um and so like I I don't know.
  1058. 97:36I I feel like it's somewhat overblown, but it is it is it's not 0% probability.
  1059. 97:41So it is a problem.
  1060. 97:42Um yeah, if that answers your question, but okay.
  1061. 97:47Yes.
  1062. 97:48So now we're going to be talking about kernels.
  1063. 97:50Um so previously you know this is my favorite plot as usual.
  1064. 97:55Um you know if we were in a different future you know if we were in a different timeline that we did not discover 01 preview models would have plateaued.
  1065. 98:05I think that's the fundamental point of this plot.
  1066. 98:07It shows that if we have never discovered reasoning we have never discovered 01 whatever we will have plateaued.
  1067. 98:15We will have plateaued in terms of accuracy.
  1068. 98:17Um and that is not good.
  1069. 98:18Um and because we have discovered this new paradigm of scaling, you know, models have continuously scaled even further.
  1070. 98:25Um but my take is the reason why we have stopped scaling um based on you know the old approach is because the old approach only focused on hardware optimizations.
  1071. 98:37We now have to move over to software optimizations and algorithmic optimizations.
  1072. 98:42Um we you know we need to have new inventions of how do we scale AI even further.
  1073. 98:47Um and we can't just rely on doing 10 trillion parameters or you know making the model bigger and bigger and bigger bigger.
  1074. 98:52Um for example you know we have to do float a reinforcement learning.
  1075. 98:56Um so if pytorch has this methodology where you can do floatate float for different precisions to make training faster.
  1076. 99:03Um and that is one way.
  1077. 99:04Um another way for example as a software approach for example as I previously said we found some bit you know issues in gradient accumulation.
  1078. 99:11Um so when you do gradient accumulation um it was actually it was not calculated correctly during the loss calculation.
  1079. 99:18Um and you can actually increase accuracy by 1 to 3% if you fix this small little issue.
  1080. 99:24Yeah.
  1081. 99:25So like you know the universal gradient accumulation bug fix was a software fix.
  1082. 99:29It is not a hardware fix.
  1083. 99:30Um and so the fundamental view is you need to do more and more software changes.
  1084. 99:36Right?
  1085. 99:36Another one for example Snowflake we collaborated them to make context long context fine-tuning 500k contact length this was all software improvements um another one is you know 12 times faster MLB training
  1086. 99:47this is another software improvement um deepseeek you know they released something called deep spark which was just a few days um and they showed that they can make inference
  1087. 99:57you know 50 50 to 600% faster so six times faster than just normal MTP um and so this is a software ware methodology, right?
  1088. 100:07Not a hardware methodology.
  1089. 100:09And you know, diffusion Gemma, right?
  1090. 100:12Gemma released a new diffusion model showcasing that you can get 2,000 tokens per second by using a new architecture, right?
  1091. 100:18So using diffusion LLMs to do faster inference and again this is a software change.
  1092. 100:25And my main point is is that in general, hardware innovations are getting less and less important.
  1093. 100:32Um and hardware innovations are actually slowing down.
  1094. 100:35Um so it's actually kind of interesting intelligence you know the scaling of you know intelligence in general it's kind of like Mo's law um it's kind of like a there is a relentless
  1095. 100:48progress relentless approach to increase intelligence and the same with Mo's law um and so like in general you can see that you this is Mo's law over here the number of transistors
  1096. 100:58has continuously increased um but you know single performance is not increasing it has staggered Um and so this is kind of like you know this kind of reminds me of
  1097. 101:09you know this plot right scaling intelligence in terms of parameters probably has plateaued most likely you know hardware performance pre-training whatever we now need to go into this new reasoning paradigm to scale even further um so it kind of is like similar to the moors law
  1098. 101:26type graph um kind of um and you can see if you see on this side the number representation of GP so my GPU is getting faster and faster and faster, right?
  1099. 101:36It's not actually the GPU itself that's getting faster and faster and faster.
  1100. 101:39Um, it's the represent number representation, right?
  1101. 101:43So like they changed from float 32 all the way to float 4. Um, and this made GPUs 32 times faster.
  1102. 101:50Um, so it's not eight times faster, right?
  1103. 101:52It's not 32 divided by 4 is eight times faster.
  1104. 101:55It's 32 times faster.
  1105. 101:57And the reason why is because of tensores, um, you know, the smaller mantesses, um, and so on.
  1106. 102:02Um, and so like you can actually see, you know, even tensors with the introduction of tensores, it made the GPUs 12 times faster and so on.
  1107. 102:12Actually, if you made the GPU smaller and smaller and smaller, it only made it three times faster.
  1108. 102:16It's not even that important anymore.
  1109. 102:17Um, and if you look at this plot, we are now at float 4. So most of the GPUs that we have now are at float four.
  1110. 102:27What is next?
  1111. 102:28Are we going to be having float three, float two, float one?
  1112. 102:32Are we going to have float zero?
  1113. 102:34Okay, no such thing.
  1114. 102:35But anyways, the point is hardware is kind of at its limits, right?
  1115. 102:39We're already at float 4. What is next?
  1116. 102:42There is nothing next.
  1117. 102:43Um, and so the so the answer to this question is there is nothing next.
  1118. 102:47Um, and so now we need to move over to software, right?
  1119. 102:49How do we make new algorithms?
  1120. 102:51How do we make new methodologies to continue scaling?
  1121. 102:54Um, I also made this table, right?
  1122. 102:56I previously said why is you know you use float 32 um we change it to float 4 why is it why is it not eight times faster um and instead it's 32 times faster right why is it 32 times faster and the reason is because when you use when you do floatingoint precision you have an exponent and
  1123. 103:14a menta um and the transistor space the transistor space is the exponent plus the menta squared um and so the trick is if you make them in Tesla smaller and smaller and smaller,
  1124. 103:28you square their number of improvements, right?
  1125. 103:31So, float 32, float 32, you needed 537 transistors around, right?
  1126. 103:37537 transistors.
  1127. 103:38Um, to go from float 32 to float 16, you only need 105 transistors.
  1128. 103:44So, actually you made you made the number of transistors five times more, right?
  1129. 103:49So, not two times, it's five times.
  1130. 103:52Um, and so on so on so on.
  1131. 103:54Um, so you know, I guess you can go to 1.58 bit.
  1132. 103:59I guess you can do that.
  1133. 104:00Um, but it's actually kind of interesting because 1.58 bit um is actually not that much faster.
  1134. 104:05Um, so 1.58 bit is actually not that much faster um than float 8. Um, if you use um, you know, seven seven exponent and Messa 2. Um, there is another 1.58 bit which you use float 4. Um, so float 4 is 179 times faster than float 32.
  1135. 104:21Um and the main question is we are already at three transistors right we are already around three transistors what are we going to do next two transistors or like one transistor so don't like you know most likely GPUs are not going to be getting faster um that's the fundamental question of this plot so GPUs are not going
  1136. 104:38to be getting faster instead we need to focus on kernels right how do we make better kernels better algorithms how do we scale this instead right don't do don't do hardware optimizations
  1137. 104:52anymore.
  1138. 104:53Instead, how do we do, you know, these optimizations?
  1139. 104:57Um, and so one of my favorite tools to use, you know, everyone should use this is just use torch compile.
  1140. 105:02Um, so in my, you know, it's the modern, you know, the modern time, do not, as advice, do not learn how to write custom kernels.
  1141. 105:13That is advice.
  1142. 105:14Do not do kernel writing.
  1143. 105:16Um and the reason why is because torch compile will take over all of kernel writing.
  1144. 105:21Um so you can see for example this plot um torch compile was a red line right performance it doesn't look like it's doing very well right it does not look like it's doing very well versus handwritten
  1145. 105:33kernels right handwritten kernels are the other ones right so torch compile doesn't look like it's doing very well but that's because that's an old PyTorch version if you have a newer PyTorch version torch compile wins
  1146. 105:46dramatically right that's the orange line um and all of these are handwritten kernels.
  1147. 105:52Oh, the okay the black line is torch compile plus no fusion.
  1148. 105:55Um so that's another torch compile method.
  1149. 105:57Um but the red line, the green line and the blue line okay the the blue line is just no torch compile just normal PyTorch.
  1150. 106:05Um but the green line and the black the green line and the red line are handwritten kernels and you can see it does even worse than torch compile.
  1151. 106:14So like my viewers like what's the point of writing kernels?
  1152. 106:17Torch compile does even better than you.
  1153. 106:19Um so the main point is you should always firstly look at torch compile right before you write a kernel use torch compile first do not start learning how to do triton or you know cuda or whatever is your favorite coding language for kernels
  1154. 106:35don't do that instead use torch compile um even worse like you know this this was RMS norm um you know this is layer norm torch compile wins dramatically um you know versus handwritten kernels.
  1155. 106:49So I would not you know definitely only use torch compile as your first try.
  1156. 106:54Um do not write kernels first.
  1157. 106:57Use torch compile.
  1158. 107:00So the main takeaway is algorithms are much more important than hardware or whatever handwritten kernels.
  1159. 107:06Right?
  1160. 107:06Remember deepseek released deep you know deep you know deep spark you know there's other algorithms for speculative decoding like MTP D flash DSpark whatever all of these are algorithmic
  1161. 107:19improvements and these made inference two times to six times faster right it wasn't like new some new hardware it wasn't some new hardware which made inference faster it was algorithms
  1162. 107:30which made inference faster right flash attention flash you know FA2 FA3 three, flash attention four, flash attention five, six, seven, whatever, right?
  1163. 107:40All of these are algorithmic improvements, right?
  1164. 107:44Flash attention was essentially a trick to do memory movement much better.
  1165. 107:48Um, so how do we like orchestrate memory movement and use the caching structure of the GPUs much better?
  1166. 107:54Um, and so flash attention is also a algorithm.
  1167. 107:57Gradient checkpointing, you know, one of the most important algorithms for training is gradient checkpointing.
  1168. 108:04Um, and all it does is you do not save all the activations.
  1169. 108:07You do a trick where you only save the activations for every single layer.
  1170. 108:11Um, and then you skip all the intermediate activations in each layer.
  1171. 108:15Um, and then you recomp compute the activations.
  1172. 108:18Um, and gradient checkpointing saves memory by dramatic amounts by like 70%.
  1173. 108:22Um, 70% memory reduction with no change in accuracy.
  1174. 108:27And okay, training is a little bit slower maybe by 10% to 15%.
  1175. 108:31Um and you know grading check checkpointing was an algorithm.
  1176. 108:35Um and you know like in general you should also try to understand you know what is the new data processing tricks you know how do we like you know stagger data you know do we do
  1177. 108:46do we do curriculum learning or something like that I don't know um what you know how do we clean the data set before we actually pre-train the model there are many tricks you can employ for data processing
  1178. 108:55um and obviously you know there is still a group of people I don't know I take an opposite view there is a group of people who think mega kernels are the latest and greatest for kernels.
  1179. 109:06You know what is a mega kernel?
  1180. 109:07A mega kernel is when you take an entire you take an entire implementation of a model and it's just one kernel like one large kernel.
  1181. 109:15Um ah maybe it's useful who knows um you know you know Nvidia you know Nvidia has a acquired Grock or something um and you know their view is for example you have two different
  1182. 109:28systems right the LPU which is the Grock system does the decoding right so like the MLP layers the layers does the decoding and then the GPU so the Nvidia GPUs
  1183. 109:39does the attention and the prefield um and so in general you know we might even have a future We have different types of hardware systems you know we have asex which are you know specially designed chips for you know computation
  1184. 109:53and we have generalized systems like GPUs.
  1185. 109:56Um and these asex and GPUs will collaborate with each other.
  1186. 109:59Um so for example the attention you know the the attention will be for the GPUs and they will transfer over to the LPU to do you know the MLPS
  1187. 110:11and so on.
  1188. 110:11Um and then this is like a dance you know between them and you can also do like pipelining right you can imagine that there's like many many many replicas of this and they can like you know serve
  1189. 110:21you know 20 people or you know 1,000 people in one go.
  1190. 110:24Um and yeah so this is like another approach and you know this in my view this is kind of an opposite approach of mega kernels.
  1191. 110:32So as a mega kernel your view is you want to combine the goal is to make the goal of a mega kernel is to make one kernel for the full forward path of a language model.
  1192. 110:43Um and once you make one once you once you are able to make the language model the forward path into one kernel you can now make the entire language model with 32 layers as one kernel.
  1193. 110:56Right?
  1194. 110:56You can extend this and because the whole language model is one kernel you can even further extend it.
  1195. 111:02Right?
  1196. 111:02the prediction of the second token, the third token, the fourth token, the sixth token can all be just one kernel.
  1197. 111:07Um, and unfortunately, this is very hard to do.
  1198. 111:11It's very hard because attention is the problem, right?
  1199. 111:14Attention has to see the tokens in the future.
  1200. 111:18See the tokens in the past, not the future.
  1201. 111:20That's cheating.
  1202. 111:20Um, you have to see the tokens in the past.
  1203. 111:23And that is a fundamental problem.
  1204. 111:24Um and it's very hard to you know it's very hard to make a mega kernel to combine attention and the MLE or MLP layers.
  1205. 111:32It's extremely complicated.
  1206. 111:34So in general what what people do is they will make two kernels right one kernel for the attention part and the other kernel for the rest.
  1207. 111:42Um and so you will see there are two kernels.
  1208. 111:45Um and yeah so it's very hard to make one mega kernel but you can make two kernels.
  1209. 111:52Yes.
  1210. 111:53Okay.
  1211. 111:53Any other questions?
  1212. 111:54Any questions for kernels?
  1213. 111:55So the main takeaway for Yes, a question.
  1214. 111:57Yes, that is a very good question.
  1215. 111:59So the question was because there's so many knobs for torch compile like 1,00 or something.
  1216. 112:04How do we reduce the experimentation time to like you know find which knob is the best?
  1217. 112:08Um so luckily we have something called bisection or binary search.
  1218. 112:14That's the trick.
  1219. 112:14So what we'll do is instead of checking every single 10,00 combination randomly sample.
  1220. 112:19So random you do randomize bisection.
  1221. 112:22You randomly sample 50% of the, you know, flags.
  1222. 112:25You turn it on versus turning it off and then benchmark which one is better.
  1223. 112:31And whichever one is better, you then narrow down the search.
  1224. 112:34You again do 50% and 50% and 50% and 50%.
  1225. 112:38So it's actually log two of 10,00.
  1226. 112:40I don't know what that what is log 2 of 10,000.
  1227. 112:42I don't know what that is.
  1228. 112:43Um two times I don't know.
  1229. 112:47Anyways, log 200.
  1230. 112:48I think you need to do 30 steps, I think.
  1231. 112:50I don't know.
  1232. 112:51I don't remember whatever 2 to the^ of something is equal to 1,00 then log it.
  1233. 112:55Um so you you only need to do you don't need to do you don't need to check all 1,00 knobs.
  1234. 113:00You only need to check a few steps and then you will know which flag is the best.
  1235. 113:06Um so the trick is to use binary search or bisection to do this approach.
  1236. 113:10Um yeah.
  1237. 113:13Yeah.
  1238. 113:13Any other questions?
  1239. 113:17Yes.
  1240. 113:19What are your thoughts on So your question was what do I think about asex like you know cerebras gro sanova I don't know even startups new chips they do design their own chips I I feel like so the problem of ASEX
  1241. 113:52is is it AS6 or ASX or whatever the problem of specialized chips is the architecture itself needs to be hardcoded in some of the chips and that is the problem.
  1242. 114:05If you hardcode some of the chips you know hard code the infra hardcode the architecture labs always like to change the architecture and so every single time when the lab changes the architecture
  1243. 114:16you need to update the chip.
  1244. 114:18Um but as a GPU the G the trick of GPUs is Nvidia has made it you know Nvidia, AMD, Intel whatever the GPU is extremely powerful because it has generalized
  1245. 114:30asex inside of the GPU right the GPU is in fact a combination of ASEX.
  1246. 114:36Um and the ASICH is just one large ASICH.
  1247. 114:39Um so I think like in general a GPU is much better because you can customize what goes inside the GPU.
  1248. 114:46you can disable stuff that goes inside the GPU and such.
  1249. 114:49Yeah.
  1250. 114:50So on so my view is I don't know I don't I don't want to say anything but like in general I don't think like you know previously as I mentioned
  1251. 115:00you know hardware there is nowhere else to go you know we are at float four unless if the hardware providers invents float I don't know float zero then maybe we get four you know another four times faster but in general I think I think just people are focused too much on hardware and they have not looked
  1252. 115:18that actually the biggest improvements is not hardware, it's software, right?
  1253. 115:22Numerical precision, numerical precision was 32 times faster.
  1254. 115:27Hardware is only three times faster, right?
  1255. 115:29So hardware only contributed three times faster.
  1256. 115:32Um oh actually d okay the die size you make the you make the GPU bigger, you get two times faster.
  1257. 115:37That's that's kind of cheating.
  1258. 115:38So I wouldn't really say that's improvement.
  1259. 115:40Um but essentially if you make the hardware faster, you only get three times faster.
  1260. 115:44Um so in my view hardware is probably overblown.
  1261. 115:48you know hardware is actually not that important.
  1262. 115:50The software was the trick that Nvidia, you know, Nvidia, AMD, Intel, all of these, you know, hardware providers, they banked on the fact that numerical precision was a trick and tensor,
  1263. 116:01tensor, numerical precision, sparsity, you know, these software tricks.
  1264. 116:07Um, okay.
  1265. 116:08Well, tensor is not really software trick, but you know, a tensor is kind of an ASICH inside of the GPU.
  1266. 116:13Um, and so like I feel like that's Yeah.
  1267. 116:15So my view is I don't I don't really see a future for ASEX.
  1268. 116:18That's my view.
  1269. 116:18Um I think that ASEX are like instead, you know, to be honest, I'm actually quite surprised.
  1270. 116:24We have lots of asset companies, but we have very few algorithm companies.
  1271. 116:28Um and the reason why is because ASEX you can sell, right?
  1272. 116:32Every single year you can upgrade.
  1273. 116:34You know, this year you pay $1,000 to ASICH version one and the next year you have to upgrade, right?
  1274. 116:41The problem with algorithms is algorithms is very hard to you know force the user or whatever to pay again and so that is why hardware is very popular because hardware is a very easy business model but for algorithms it gets more complicated right how are we going to monetize grading checkpointing
  1275. 116:58I don't know right that's very hard um so but the main point is the large labs themselves I think like open air announced collaboration broadcom and suras whatever you know each lab themselves
  1276. 117:10are going to the hardware provider and designing the chip with them.
  1277. 117:14Um, so my view is like maybe we'll have more of these like collaboration approaches, but I feel like standalone standalone assets, I don't think they're going to last.
  1278. 117:22Um, yeah, that's my take, I guess.
  1279. 117:26Any other questions?
  1280. 117:28Yes.
  1281. 117:46Oh, you mean what are the types of kernels or
  1282. 117:55Oh, okay.
  1283. 117:56Okay.
  1284. 117:56Okay.
  1285. 117:56Um, so the question was what are the you know what are the changes for kernels or optimizations or stuff that is like interesting I guess for kernels.
  1286. 118:03Um so most kernels when you write kernels the majority of them are are focused on memory movement reduction.
  1287. 118:12How do we reduce memory movement?
  1288. 118:14That's the majority of kernels.
  1289. 118:15Um for example there's there's a trick called um you know there's a trick called fuse cross entropy loss where instead of making instead of the last layer of cont instead of materializing
  1290. 118:26the full logs there is a trick you can do it in batches right you can do rowby row materialization.
  1291. 118:32Um and so this will reduce memory by like a lot by like I don't know 10 GB or something if you have long context or even more.
  1292. 118:39Um that's one way.
  1293. 118:40Um the other kernels most kernels are called kernel fusion where you you have this like long pietorch function and all you do is you just write one kernel to do this whole pietorch function
  1294. 118:53and torch compile will do this for you.
  1295. 118:56So torch compile is very very good at doing kernel fusion right you give torch compile a function it will write a kernel a try kernel or whatever kernel and it will just fuse everything um it's very very effective for that um but I think in general
  1296. 119:10kernels are just reducing memory movement um and so like I you know to be honest I don't really like to call it kernels most algorithms so most algorithms you either make training faster
  1297. 119:22or reduce memory usage um but kernels in my view kernels is reduce memory movement.
  1298. 119:28Um, and so most kernels is just memory movement, you know, memory movement optimization, right?
  1299. 119:33How do we how do we use the caching structure of the GPUs?
  1300. 119:36Um, you know, how do we not load the same variable twice or three times or whatever?
  1301. 119:41Um, yeah, I'm not sure if that answer your question, but next reinforcement learning.
  1302. 119:46Um, and after this will be reward hacking the agents.
  1303. 119:49Um, so as a primer to I'm assuming most people know, do most people know reinforcement learning or do I need to prime people?
  1304. 119:56Okay, I'll give a very fast primer for reinforcement learning.
  1305. 119:59Okay, fast primer for reinforcement learning.
  1306. 120:02Um, what is reinforcement learning?
  1307. 120:04You have this environment such as this Pac-Man game.
  1308. 120:07Um, and your goal is as the player, you know, to maximize reward.
  1309. 120:13You want to eat all of the cookies, right?
  1310. 120:15You want to eat all of the cookies, but also escape away from your the monsters.
  1311. 120:19I don't actually know what they're called.
  1312. 120:20Enemies, monsters, whatever, whatever they're called.
  1313. 120:23Um, and your goal as Pac-Man is you want to maximize the amount of cookies that you eat.
  1314. 120:27Um, and that is your reward.
  1315. 120:30The reward is the cookies.
  1316. 120:32Um, and the action is whether you go up, left, down, or right.
  1317. 120:36Um, and the environment is the game.
  1318. 120:40Another good example, you know, another way I like to explain reinforcement learning is the goal of reinforcement learning is you want to have more good and less bad um during training.
  1319. 120:50Um so for example, at the very beginning of training, you ask the model what is 2 plus two?
  1320. 120:55Um the answer is clearly four.
  1321. 120:58Um but when the model starts training, it will be very dumb.
  1322. 121:02It will be very bad.
  1323. 121:03it will see B, you know, the model would just say B, D, cat, dog, house, mouse, whatever.
  1324. 121:10Um, and the trick is for all of the bad responses, you want to decrease, you don't want you want to like negatively reward this or penalize it.
  1325. 121:19You want to penalize the model if it says something bad and you want to increase the reward if it says the correct answer.
  1326. 121:25Um, so that is the trick of reinforcement learning.
  1327. 121:28You just want more good answers, less bad answers.
  1328. 121:32Um, and if it's like, you know, very close to the correct answer.
  1329. 121:35So, you know, three is very close to the correct answer.
  1330. 121:37Um, you want to reward, you want to negatively reward this a little bit less, right?
  1331. 121:42Because three is much closer to four than B or D. Um, so if you do B or D, you want to negatively reward it massively.
  1332. 121:52In reinforcement learning, the trick is you have a verification system, right?
  1333. 121:57You have a verifier to verify if the model is doing good or bad.
  1334. 122:01Um so you'll call the model many many many times.
  1335. 122:04Um and each of these examples you give a verification number right?
  1336. 122:08So for example um the first example is very good so you give it a plus 10 score.
  1337. 122:13Um the next example is like okay so you give it a minus5 score.
  1338. 122:17Um and then the last example is very bad so you give it a minus 100 score.
  1339. 122:22Um and reinforcement learning allows you to assign scores to each of those answers and questions.
  1340. 122:28Um and so that's kind of reinforcement learning verifies.
  1341. 122:32Um and the trick of reinforcement learning is my favorite phrase is patience is all you need.
  1342. 122:38Um at the very beginning of training your model will do very bad, right?
  1343. 122:44Your your reward will be 0000 you know 0000.
  1344. 122:48You wait for a very long time and then you will get the correct answer.
  1345. 122:52Right?
  1346. 122:52So for example this example you ask the model what is 2 plus2 right?
  1347. 122:56You start pre-training the model.
  1348. 122:57you start pre-training the model, the model doesn't know what is two plus two, but after 10 years it will say four.
  1349. 123:04Um, okay, obviously not 10 years, I'm just exaggerating.
  1350. 123:06But after 10 years, you wait 10 years, the model will then say four.
  1351. 123:10Um, and that is why my favorite phrase is luck is all you need for reinforcement learning.
  1352. 123:17You know, maybe by chance you will get four very quickly.
  1353. 123:21Um but you know maybe you just have to wait and wait and wait and wait for eternity until reinforcement learning works.
  1354. 123:28Um and so in general your reward will be zero for a very long time and then you will get you know you will increase reward um after the zero
  1355. 123:38and you know for reinforcement learning there is a very simple algorithm for reinforcement learning and the trick of reinforcement learning is remember you know the final answer you want to you for example
  1356. 123:51you know what is 2 plus two you know the answer is four but the problem is you don't know what is the reasoning trace, you know, did was the reasoning trace good or bad?
  1357. 124:00So, for example, this example is, you know, to tell the model to create a fast matrix multiplication algorithm.
  1358. 124:05Um, and the trick is if the answer is right, you reward every single line as plus 10 score.
  1359. 124:11Um, and if it's wrong, you reward every single score as minus 100.
  1360. 124:18Um, and you know, Andre said, you know, in a Darkash podcast, reinforcement learning is kind of like sucking supervision bits through a straw.
  1361. 124:27um you know we actually have stickers for them if you like.
  1362. 124:29Um so you can get one of your stickers which we can distribute at the end.
  1363. 124:32Um so Audrey's quote is this um you know and the main point is reinforcement learning is terrible but everything else is even worse.
  1364. 124:40Um and so like you know reinforcement learning is the only tool we currently have that just works.
  1365. 124:46It works but it's not very efficient.
  1366. 124:48Um and okay actually okay that's the next section.
  1367. 124:52Um but the main point is okay that's a reinforcement learning primer.
  1368. 124:55Um I guess does anyone have questions on reinforcement learning primer?
  1369. 124:59No. Okay, I'll skip to Okay, one question.
  1370. 125:02Yes.
  1371. 125:07I will mention that in the next section.
  1372. 125:09Um there is there is like you know better RL methods.
  1373. 125:14Um but in general reinforcement learning seems to do very well for now.
  1374. 125:17Last I think this is the last topic or maybe not.
  1375. 125:20Reward hacking and agents.
  1376. 125:23The most fun one I guess.
  1377. 125:24Um so okay for reinforcement learning reinforcement learning can only work if the probability of a good answer is more than zero.
  1378. 125:35If it is less than zero reinforcement learning will never work.
  1379. 125:38So that is a fun that is a constraint of reinforcement learning.
  1380. 125:42The probability of a good answer must be more than zero.
  1381. 125:44It can never be zero.
  1382. 125:46Um and there are many many many problems of reinforcement learning not working.
  1383. 125:51You know the formatting could be wrong.
  1384. 125:54you know, you need to do some sort of priming or warm up.
  1385. 125:56So, you have to do like some sort of trick to teach the model a little bit about, you know, about the thing that you're trying to maximize.
  1386. 126:03Um, you have to do supervised finetuning.
  1387. 126:06So, one of the tricks of reinforcement learning is you actually need to do SFT or fine-tuning to make the model not dumb, right?
  1388. 126:12To make the probability of zero not zero, the probability of a good answer not zero.
  1389. 126:16Um, you need to do good pre-training.
  1390. 126:19Um and then the other problem is that you know during reinforcement learning it's just way too out of distribution that reinforcement learning is just very bad.
  1391. 126:27Um so there are many many problems of reinforcement learning and I think we just you know for the trajectories reinforcement learning can assign incorrect rewards to the trajectory right remember the simple trick of reinforcement learning is we assign the reward to every single line as the same number right either this is good or this is bad
  1392. 126:49and this is not good because why right you ask the model I need to find what is 2 plus two the answer is correct Right?
  1393. 126:56The answer is four.
  1394. 126:58The model says it's four.
  1395. 126:59So you reward this whole thinking trace as plus 10.
  1396. 127:03But this is wrong because as you can see in the thinking trace it says 2 plus 2 is equal to 10.
  1397. 127:09Imagine you know in all of training because the trick of reinforcement learning is we just literally assign 10 to every single line or minus 100 to every single line.
  1398. 127:18We missed this bad you know bad thing.
  1399. 127:22Um so you can imagine when we keep training the model the model might hack or do reward hacking or you know make gibberish it will do gibberish in between do some do some sort of like new machine language
  1400. 127:35which we can't read and it will assign high score to that.
  1401. 127:39Um and so this is a very big problem of reinforcement learning and the way to solve this or fix this is something called process supervision.
  1402. 127:49Um and process supervision what you do is you manually check every single line not you don't just assign plus 10 to the final you know the answer is correct right the answer is correct plus 10 assign every single line as plus 10 you don't do this instead what you do is you assign every single line as a
  1403. 128:05different number right you assign some lines as plus 30 some lines is plus zero whatever the bad lines is minus 100 right this works very very well um unfortunately
  1404. 128:20process vision cannot scale and it's extremely expensive to do right who's going to label this it's the you know the humans I guess right we have to label this data right we have to manually label for the labs I guess that's why labs sometimes like you know they go to scale call whatever right they ask people to
  1405. 128:40label the data you know is this good is this bad is this good is this bad um and so on um but the trick is you can also use a language model, right?
  1406. 128:49You can use LLM as a judge.
  1407. 128:50You can you can call a language model to label every single line.
  1408. 128:56And you know, my view is like, you know, large labs are going to be doing this process more.
  1409. 129:00They will call their own model iteratively to re-review itself.
  1410. 129:05Um, and that is one way their view is they can reach AGI, right?
  1411. 129:09Just by by re-reviewing itself, right?
  1412. 129:11re-evaluating itself, re-checking, doing doing you know automatic LLM as a judge process supervision something like this.
  1413. 129:20Um but remember there is a problem because even if you do process supervision the model you are using the same model to evaluate the model right the same problem as we bench pro right su bench pro you use the LLM as a verifier to verify the LLM which is definitely not good
  1414. 129:38um and the reason why is because you can do reward hacking um a very good example of reward hacking is your model starts cheating um so for example when you want to make a fast matrix multiplication
  1415. 129:51algorithm.
  1416. 129:52All it does is it deletes the timer.
  1417. 129:55Um right remember you give the goal to max to reduce the time.
  1418. 129:59Right?
  1419. 129:59Reduce the time of the matrix multiplication algorithm.
  1420. 130:02Um so all it will do is just delete the timer.
  1421. 130:04Let's delete the timer.
  1422. 130:06Set the timer to be zero and then there we maximize a reward.
  1423. 130:10Um obviously this is not correct, right?
  1424. 130:12Because the trick is you also have a correctness check, right?
  1425. 130:15You check if the matrix multiplication is actually correct.
  1426. 130:18Um but there is another way the model will edit your two matrices to be just zero.
  1427. 130:24Um and what is 0 time 0?
  1428. 130:26Zero.
  1429. 130:27Um and so the correctness checks also fail.
  1430. 130:30Um and so reward hacking becomes a very very big problem because these models can cheat and do special tricks to go around your actual model um your intent of the reward function.
  1431. 130:43Another very problematic example is it's not just about reward hacking.
  1432. 130:48It can actually destroy your computer.
  1433. 130:50Right?
  1434. 130:51By bad luck your model might output you know some sort of corruption methodology you know deleting you know doing rm-rf on your entire computer and bye-bye your computer's dead.
  1435. 131:02Um and so like you know sometimes this also does happen.
  1436. 131:04Um so it's not just reward hacking also trust of your tool cause you know trust of whether the model is actually doing good or bad is also a very big problem
  1437. 131:14and remember this plot that I showed you know if you include GPD 5.6 cheating on the benchmarks you know looking at the answer you know remember the previously su bench
  1438. 131:24uh bench pro and deep show that models also cheat by looking at the final answer you know you can see that with GBD 5.6 If you cheat, it does very well.
  1439. 131:32But if you remove the cheating examples, it does, you know, within trend.
  1440. 131:38And then, you know, maybe you might be thinking, oh, this reward hacking thing is like, oh, it's like very rare, you know, very rare.
  1441. 131:44It's not going to happen in real world.
  1442. 131:45Um, well, GLM 5.2 during its training methodology, they specifically mentioned they have this new methodology for reinforcement learning called anti-hacking.
  1443. 131:54Um, so GLM 5.2 introduced a method to stop, you know, reward hacking.
  1444. 132:00Um and what they do is they added a link checker.
  1445. 132:04Um so remember previously we mentioned how SweetBench Pro um the model will cheat and look at the answer.
  1446. 132:10Um and so what GLM did is they had this check.
  1447. 132:14Um so during reinforcement learning they will check every single tool call you make.
  1448. 132:18Um and if the website if the website went to the answer you would stop that from happening.
  1449. 132:25Um and so like GLM essentially outed this like you know filtering system for the entire reinforcement learning process.
  1450. 132:30Um and you know according to them it worked very well and remember this plot about cheating examples.
  1451. 132:36Um you know opus it seems like claude's models like to always cheat.
  1452. 132:40Um and Jubet's models don't like to cheat.
  1453. 132:42Um but the main takeaway is models will cheat because you are you are telling it you know like you know I want to maximize reward AB CDE EFG.
  1454. 132:52Um and so the model will it will maximize it but it won't actually follow your intent.
  1455. 132:57Um so you have to be very careful on this.
  1456. 132:59Um in fact for GBD 5.1 during its training OpenAI mentioned that they had something called calculator hacking.
  1457. 133:06Um and so in GBD 5.1 when they were training um they wanted to reward web tool use right so like you want to reward the model to use the web tool.
  1458. 133:16Um but instead it didn't use the web tool it used the calculator to fake the web tool.
  1459. 133:21Um and so during the training of GBD 5.1 this happened.
  1460. 133:24Um and so like you know there's many many many many problems.
  1461. 133:28I think they show yeah they showed calculator hacking.
  1462. 133:31You know you lie about which tool you used.
  1463. 133:33Um you know you conceal uncertainty you make facts up.
  1464. 133:37Um so there's many many many problems with um reward hacking.
  1465. 133:41And this is not fake right?
  1466. 133:43So reward hacking is already in large labs training runs right?
  1467. 133:46This is just 5.1. Um I don't think so they mentioned GB 5.2 or whatever.
  1468. 133:51Yeah, but in general they showed that you know this thing does happen in real world um you know I don't know if you guys know GPU mode um but GPU mode does you know this leaderboard
  1469. 134:01um for you know making faster kernels so if you do want to write your own kernels definitely post on GPU modes hackathon challenges um they're very very helpful and very useful um but you know someone
  1470. 134:11managed to hack reward hack the GPU mode kernel competition um and remember in the Matrix multiplication example.
  1471. 134:22There are two there are two there are two checks that we need to do right make the matrix multiplication algorithm faster but also it needs to be correct right there are two checks the correctness check and the timing check.
  1472. 134:35Um and GPU mode also had timing check.
  1473. 134:40Um and so what do you think the model did when the model the model knew the model actually knew that it was being evaluated on the correctness check right it learned
  1474. 134:50oh I'm being evaluated on the correctness check I will now make correctness correct right so it will output the correct kernel and then the model knew that it was getting timed
  1475. 135:03and what it what did it do it just it just did the algorithm once and then saved it and it skipped all the another 15 um you know tests.
  1476. 135:12Um and so that's what the model did.
  1477. 135:13So essentially the model learned the model learned that there were two tests, the correctness check and the timing check.
  1478. 135:20And the model only did the correctness check correctly and then once it went into the regime of timing, it cheated.
  1479. 135:27Um to be honest, it's actually quite scary.
  1480. 135:30So essentially the model learned that you're doing these tests and the model actually knows you're doing the benchmarks.
  1481. 135:35Um and so this is actually very interesting.
  1482. 135:37Um and you know, oh yeah, this is this is more an you know, larger example.
  1483. 135:42The correctness check was fine, but the timing check it cheated.
  1484. 135:46Um and all it did is it launch, you know, there was supposed to be 15 calls in the first call.
  1485. 135:51In the first core, it did all 15 of the entire process, right?
  1486. 135:56It did all of the 15 runs.
  1487. 135:57Um and then core two to 15, it just did a Python dictionary look up.
  1488. 136:01Um, yeah.
  1489. 136:02I don't know if you know about this.
  1490. 136:04Reminds me of Volkswagen where they initi.
  1491. 136:08Yes, I someone did tell
  1492. 136:10someone told me about it.
  1493. 136:11Um,
  1494. 136:12this is very similar.
  1495. 136:13It's like, oh, I'm not doing this.
  1496. 136:14Turn this off and
  1497. 136:18Yeah, exactly.
  1498. 136:18So, like, you know, it's not just models, I guess, that cheat.
  1499. 136:20Even humans cheat, I guess.
  1500. 136:22Yes.
  1501. 136:23But I think it's called Goodart's law.
  1502. 136:24That's the one.
  1503. 136:25Like, if you have a benchmark, then the benchmark becomes Is it good law?
  1504. 136:29I don't remember.
  1505. 136:30Yes.
  1506. 136:30Okay.
  1507. 136:31Yeah.
  1508. 136:31The benchmark essentially becomes useless because people just cheat to maximize reward.
  1509. 136:35Um yes, I guess humans also cheat.
  1510. 136:38Um yeah.
  1511. 136:39Okay.
  1512. 136:40Oh, my favorite example is um so on other labs, you know, you see on Twitter, on wherever, they say they made kernels 10 times faster.
  1513. 136:51Um no, no, no, that's not correct.
  1514. 136:54They did not make kernels 10 times faster.
  1515. 136:56In fact, if you look through the code, they have no, you know, no ops, so no operations.
  1516. 137:01They also edit the timer.
  1517. 137:03You know, they, as I literally described, you know, I described, they, you know, over here, um, you know, they edit the timer, they made matrices go to zero, they cheated.
  1518. 137:13Um, and so like, you know, this actually happened in real world.
  1519. 137:17So some, you know, some of the labs, they published papers claiming that they made kernels 10 times faster.
  1520. 137:23But actually if you read through the code and the examples they these examples all cheated.
  1521. 137:29Um and so you know they you know this is not very good in terms of you know reward hacking.
  1522. 137:34You know reward hacking is a very big problem.
  1523. 137:36Um and you know for example what some of the examples of kernel reward hacking you know not generating real CUDA code instead it cause or some sort of like you know already written
  1524. 137:47system.
  1525. 137:48um you have no up kernels which is essentially making the you know making the A and B matrix just zero.
  1526. 137:53All it does is just doesn't do anything, right?
  1527. 137:55It just the kernel is empty.
  1528. 137:57Um, and you have like memory reuse, so you reuse the same answer over and over again.
  1529. 138:02Um, you have timing synchronization issues.
  1530. 138:05So that's cheating on the timer.
  1531. 138:07Um and my view is like you know if you do publish faster kernels or faster you know matrix if you think that your AI agent has made kernels 10 times faster please verify
  1532. 138:19you know please look through the code before publishing because it is a very it's not a very good look um and so and also the biggest issue that I feel like people are getting forgetting is
  1533. 138:31you know you made kernels 10 times faster you made matrix multiplication 10 times faster There is a theoretical limit for matrix multiplication, right?
  1534. 138:42Matrix multiplication, you know, it's not you can't make a faster because there's mathematical limits on how to make a faster, right?
  1535. 138:48And so like, you know, matrix multiplication at the very very very olden times, you know, it's O of N cubed.
  1536. 138:54You know, every single time researchers have make it faster and faster and faster and faster and faster.
  1537. 138:58You know, it's now O of N to the^ of 2.371339, I guess.
  1538. 139:03you know researchers every single year are trying to like make this number smaller and smaller and smaller and smaller.
  1539. 139:08Um you know I guess like you know 1 1552 to 1339 is not that small you know not that big I guess.
  1540. 139:14Um but you know they're having progress but the main point is you know these researchers you know they show with mathematical limits you cannot go faster than this and so how can you do reward hacking that is even faster than that.
  1541. 139:27Um and so like the fundamental point is please verify you know to like the people who do research papers and stuff like that please confirm your model is not reward hacking.
  1542. 139:36It is a very big big big problem.
  1543. 139:38Um and you can see oh I think I only had one plot.
  1544. 139:41Um but yes in general please do not do please check your I guess models.
  1545. 139:46Um I guess that's all for the talk.
  1546. 139:49Um you know yeah thank you everyone for coming.
  1547. 139:52Oh more questions as well.
  1548. 139:54Um okay thank you.
  1549. 139:55Thank you.
  1550. 139:55We also have
  1551. 139:57[applause]
  1552. 139:58Oh, yes.
  1553. 139:58We have a whole bunch of stickers that you can take in the box over there and some pins and stuff.
  1554. 140:16[music]