Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Vanishing Gradients

Vanishing Gradients artwork

If Developers Build on Chinese Open-Weight Models, Who Leads AI?

Aug 3, 20261 hr 18 minAudio
ShareXLinkedInFacebookWhatsAppEmail

“It would be sad if local models were not an option and there were only proprietary models. It’s good to have alternatives. Competition is good for business.” - Sebastian Raschka, on open-weight AI Kimi K3’s weights landed about an hour before Hugo Bowne-Anderson and Sebastian Raschka went live. Sebastian had already updated his architecture diagram. That speed captures his approach to the current model wave: wait until the weights exist, run the model in the harness where it will actually work, then inspect the architecture closely enough to understand what changed. The conversation arrived during a larger fight over who supplies the models underneath global software. Three days earlier, twenty-five companies including NVIDIA, Meta, Microsoft, Hugging Face, and IBM published Open Weights and American AI Leadership. Their argument closely matches Sebastian’s practical case for local models: open weights create competition, reduce dependence on a single provider, and let organizations choose a model at the right capability and cost. Update: Four days after we recorded, DeepSeek released V4 Flash 0731, a re-post-trained API model for agentic coding. Developers are already reporting that it can debug multi-project codebases and stay on task across very long contexts. You can find the full episode on Spotify, Apple Podcasts, and YouTube. 👉 The next cohort of Master Agentic Data Science starts August 4. Hugo is teaching it with Thomas Wiecki and Luca Fiaschi from PyMC Labs. You will build agents that explore data, run predictive and causal workflows, challenge one another’s conclusions, and produce analysis humans can inspect and reproduce. Podcast listeners get 20% off with code MADSAGC20. Join the cohort. 👈 In This Episode * Kimi K3’s weights landed about an hour before we went live. Sebastian had already updated his architecture diagram, then walked us through how Kimi Delta Attention and its mixture-of-experts design turn Kimi Linear’s research architecture into a production model. * When a local model is already good enough. Sebastian separates everyday coding and private workloads from problems where the strongest available model, extra reasoning time, and higher cost are justified. * Why the model and harness must be evaluated together. The same open-weight model behaves differently across Qwen Code, Claude Code, Codex, Pi, and other harnesses because context handling, compaction, tool conventions, and post-training all affect the result. * The harness should choose the model and its reasoning effort. Sebastian describes a router that uses the task, conversation history, context, and previous loops to make that decision automatically. * How long agent contexts are changing model architecture. Sebastian moves through grouped-query attention, multi-head latent attention, sparse attention, mixture-of-experts, DeltaNet, and Mamba-style hybrid layers. * The implementation does not lie. A from-scratch model can be checked against open reference weights tensor by tensor, and the first divergence exposes the missing RoPE scaling detail, RMSNorm variant, or architectural assumption that prose left out. * When fine-tuning earns its cost. A specialized task performed thousands of times a day creates different economics from a task performed eight times, so the decision depends on quality, volume, latency, and token cost. * Sebastian keeps the creative work and gives agents the tedious checks. He uses Codex and Claude to check links, enforce editorial conventions, and compare notebook code with the corresponding book manuscript. About Sebastian Raschka Sebastian Raschka is an independent AI researcher, author, and educator focused on large language models, reasoning models, deep learning, and practical machine-learning systems. He created Ahead of AI and is the author of Build a Reasoning Model (From Scratch) and Build a Large Language Model (From Scratch). Resources * Build a Reasoning Model (From Scratch): podcast listeners get 45% off the ebook or print edition with code 45VGraschka2. * Sebastian Raschka’s LLM architecture gallery * Kimi K3 in the architecture gallery * Build a Large Language Model (From Scratch) * Ahead of AI * Using Local Coding Agents * Open Weights and American AI Leadership * Anthropic’s position on open-weight models Listen or Watch You can find the full episode on Spotify, Apple Podcasts, and YouTube. 👉 The next cohort of Master Agentic Data Science starts August 4. Hugo is teaching it with Thomas Wiecki and Luca Fiaschi from PyMC Labs. You will build agents that explore data, run predictive and causal workflows, challenge one another’s conclusions, and produce analysis humans can inspect and reproduce. Podcast listeners get 20% off with code MADSAGC20. Join the cohort. 👈 How You Can Support Vanishing Gradients Vanishing Gradients is a podcast, workshop series, blog, and newsletter focused on what you can build with AI right now. More than 70 episodes with expert practitioners from Google DeepMind, Netflix, Stanford, and elsewhere. Hundreds of hours of free, hands-on workshops. All independent, all free. If you want to help keep it going: * Become a paid subscriber, from $8 per month * Share this episode with a builder who would find it useful * Subscribe to the Vanishing Gradients YouTube channel * Join another Vanishing Gradients workshop Get full access to Vanishing Gradients at hugobowne.substack.com/subscribe

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

SPEAKER_00I think local models are important because we also want to be prepared for a case where maybe we have to use them one day. It would be sad if they were not an option and there are only proprietary models and let's say the prices go up like crazy and then you are kind of locked out or you have to pay a lot of money and you always have these local models then as an alternative. It's good to have alternatives is what I'm maybe trying to say here. Competition is good for business.

SPEAKER_01That was AI researcher Sebastian Rajka explaining why local models matter. If access to proprietary models becomes too expensive, too restrictive, or simply unavailable, open weights preserve an alternative. Three days before we recorded, 25 companies, including Nvidia, Meta, and Microsoft, published an open letter called Open Weights and American AI Leadership. They argued that American leadership also requires weights people can download, adapt, and run themselves. Like Sebastian. Who has been ahead of the curve.

SPEAKER_01They tied open weights to competition, lower lock-in, and matching each job to a model at the right cost. Chinese labs are already releasing increasingly capable models as downloadable infrastructure. Kimi K3's weights landed about an hour before we went live. If developers around the world build their products on Kimi, Kuen, DeepSeek, and GLM, does America still lead AI because an American company has the smartest clothes model? Four days after we recorded, DeepSeq released a version of V4 Flash, a re-post train model for agentic coding,

SPEAKER_01and developers are already reporting that it can debug multi-project code bases and stay on task across enormous contexts for a fraction of frontier model prices. The verdict is early, people, but the acceleration Sebastian describes is happening. Sebastian is an independent AI researcher, the creator of Ahead of AI, and the author of Build a Large Language Model from Scratch and Build a Reasoning Model from Scratch. In this conversation, he dropped an extraordinary amount of practical knowledge about Kimi K3, Quen, Deep Seek, GLM, and the agent harnesses around them.

SPEAKER_01He explains what changed and why the same model behaves differently across QuenCode, ClaudeCode, Codex, and other harnesses. He also shows us when a local model is already good enough, why the harness should choose the model and its reasoning effort, and when fine-tuning or a more expensive Frontier model has earned its cost. Sebastian also traces the current open-weight wave from the original transformer into new attention mechanisms and hybrid architectures. His method is to implement one component at a time, compare it with the reference model tensor by tensor, and follow the first place the outputs diverge.

SPEAKER_01As he puts it, the implementation does not lie. I'm also incredibly excited about the next cohort of Master Agentic Data Science, which I'm co-teaching with Thomas Vicky and Luca Fiasci from PyMC Labs. We'll build agents that explore data, run predictive and causal workflows, challenge one another's conclusions, and produce analyses Welcome to Vanishing Gradients.

SPEAKER_01We are live, Sebastian. So welcome back to Vanishing Gradients, my friend.

SPEAKER_00Yeah, thanks for having me back, I guess. I honestly don't know how long it's been, but it feels like ages have passed because so much stuff is happening every day. It feels like it could have been three years, but it was probably like three months. Well, exactly. But thanks for having me back.

SPEAKER_01It's such a pleasure. And it had been a couple of years between podcasts before, but it has only been three months, but so much has happened, including today. So I'm just going to do a bit of housekeeping or bookkeeping and welcome everyone. And then we'll jump in. Just everyone joining. Thanks for joining our live stream for Vanishing Gradients with Sebastian to, among other things, celebrate Sebastian's new book, build a reasoning model from scratch. So first of all, many congratulations, Sebastian.

SPEAKER_00Oh, thank you. Also, yeah, I'm here in this Zoom call, so I can't see the people live, but if someone just joined, yeah. Hi, everyone. So thanks for joining this. And yeah, and thanks for mentioning my book too. Oh, such a pleasure. I just got like the hard copies like a few, two weeks ago. And you know what? This one is in color. This took me a lot of effort talking to the publisher, but I don't know if you can see it, but it has color figures everywhere.

SPEAKER_00Incredible. And the quality of the print is... So this is kind of like almost twice as thick as the previous book, built a large language model from scratch, but it's also almost the same number of pages, about 400. It's much better paper quality and color, which is one thing I was really excited about, besides the content and so on.

SPEAKER_01Beautiful. And also something I hope we get to talk about is all the wonderful color transformer architecture diagrams you're building for your gallery. And we'll talk about the new Kimi K3 one today as well. I just want to let everyone know Manning and Sebastian are super... We do that so we can continue the conversation afterwards because we can't always get to everything in YouTube. And just the obligatory...

SPEAKER_01If you enjoy the conversation, like and subscribe and share it with friends. And we have a whole bunch of workshops coming up, including a Building AI Agents First Principles workshop later this week. So check out the description there. And Manning is very kindly and Sebastian very kindly not only giving 45% off the book to everyone, but we're going to give away five free copies to the best questions. So please do ask questions in the Discord as well.

SPEAKER_00That is a tough one. What is the best question? Like, what is the criterion, right? It's almost like, yeah, we need e-belts for that, I guess.

SPEAKER_01Well, maybe we can build them live, particularly if we're going to, you know, look at Kimi K3's weights. So this actually, Sebastian, last time we spoke, I think QN 3.5 was one of the most exciting models at the time. And we were hoping DeepSeek V4 would... And now just an hour before we went live, Kimi K3 waits in the open. So what is happening, man?

SPEAKER_00Well, to be honest with you, I have not looked at Kimi K3 until today. And the reason was, it's like my, just to stay sane, there are so many things coming out there every day or in general. So I only look at those once the open weights are on the model hub. You know, like the announcement for Kimi K3 was like a few weeks ago, but I was like, okay, I will wait until The model weights are actually out. And today they were just released on the model hub.

SPEAKER_00And so I thought it was like one hour before we recorded, but luckily it was a few hours before. So I spent my afternoon here. So you're in Australia, so you just woke up to it. But for me, yeah, I spent my afternoon looking at the architecture based on data, very nice technical report. I was like speed reading that, looking at the architecture and making a diagram. And luckily, Really luckily, it was not that much different from Kimi Linear. You know, like some things were bigger. Oh yeah, there it is. I just uploaded this maybe 20 minutes ago.

SPEAKER_01And I've linked to it in the Discord as well. And it's part of your wonderful gallery.

SPEAKER_00Yeah, and so that is kind of like the summary. And it is overall very similar to Kimi Linear. So I could almost copy paste the architecture. So it was still, of course, you had to double check everything. The only difference here based on what is shown is Kimi Linear, I think, had 27 layers. This has 93 layers. And the other thing that is kind of like not shown here because it's too crowded is it has instead of the MOE, it has a late MOE. I'm not showing it here, but if you're interested in that latent MOE,

SPEAKER_00I think it's the Mnemotron 3 Ultra architecture has that as well. So I do have a figure of that in the Mnemotron architecture. So if you scroll up a bit, so yeah. So it's basically chemilinear, bigger with latent MOE.

SPEAKER_01Great. And we did discuss Mnemotron in the last podcast.

SPEAKER_00Yeah, that's the Nano. That's the Nano. The Ultra should have that. It's a bit later. It came a bit later. You can also do Ctrl F and just search for Nemotron.

SPEAKER_01Yeah, I was. Okay. Yeah, there are multiple Nemotrons, I think. Weird.

SPEAKER_00I think you have to search Nemotron 3. Yeah, here we go. Yeah, yeah, okay. Oh, this is for the comparison, sorry. Ah, okay. There's another search field below. Sorry, before the first architecture starts. Of course. Well, just, yeah, like that. The space, yeah.

SPEAKER_01Nearly there. There. Oh, yeah, fantastic.

SPEAKER_00So if you are listening to the audio version, we are just looking at a Mnemotron 3 Ultra. And this one has like a latent ME, which is essentially like multi-hat latent attention. And a multi-hat latent attention is... It's like attention, but you have a latent vector that is like a compressed state. It's almost like LoRa, where you go from a big, like a matmul, like from a bigger vector to a smaller vector, like the bottleneck, basically.

SPEAKER_00It's kind of like that. And yeah, so, and the idea here in Elegant, Attention is to the KV cache to store smaller KNVs. So you compress the KNVs into a smaller shared form, and then you store that in the KV cache instead of the full-size KNV. And so it's basically, it's more like an efficiency tweak. And the latent MOE is kind of similar, where you have latent experts that are smaller, essentially.

SPEAKER_00Yeah. It's been a while since I looked at Pneumotron 3 Ultra, though. But yeah, that's the main idea. It's like the compression.

SPEAKER_01And I am very excited to get into kind of what we've seen in the past three months with open weight models. I did, and I messaged you about this on WhatsApp before we spoke. But because I don't know if you recall, we actually did our first podcast in 2018. And so you and I have done, this is our fourth podcast. And so what I did was I vibe-coded eight years of conversation from scratch with Hugo and Sebastian, which you can see here. And what we actually have, and I actually chatted with Fable about it,

SPEAKER_01and we decided to visualize it as a transformer. The first one was on, as you see, on biology and deep learning, then LLMs from scratch, architecture and agents, and this is what we're doing now. And what we pulled out is what the constants were. So four things that we've always talked about are learned by implementing practical trade-offs over hype, teaching in public, and open source and community. Those are through lines over the eight years of conversations. And if we go down, look,

SPEAKER_01we've got, you know, this is when we're talking about Biopandas and ML Extend, and you're working on genome assembly and proteins and molecules. So quite different. But if we now go to... Steve Bowne- Our conversation a couple of years ago, you can see we and people should dive into this architecture and pre training deployment and monitoring updating continued retraining and something I found interesting we dove into Laura. Steve Bowne- DPO and RLHF and then if you go to our.

SPEAKER_01Most recent one, you'll see we jumped into a lot of RLV earlier this year, reasoning from Verifiable Rewards to DeepSeek R1, longer reasoning, parallel sampling, all types of hybrid architectures, sparse attention, So anyone who wants to check these things out, please do jump in and have a look. But there's so much meat on the bone there. I'm wondering if, you know, we can think through kind of the arc of our conversations and what we discussed last time. And I'd love your thoughts on what are the most important things that have happened since.

SPEAKER_00Yeah, I think to be honest with you, it's everything we talked about before, except the So if you go back to, I'm sorry, I found an interesting thing in there

SPEAKER_01right now.

SPEAKER_00So everything that we talked about before, like the LLMs from scratch and everything, is still relevant as the basis. So if you want to dive into all these topics, I think that's still the common denominator. But then everything, I wouldn't say it gets more complex, but it does. It's not so scary if you do it like one step at a time, but everything we see here, still it builds on the basic, let's say, GPT-2 model. But like in the lower right side here, you say, or the title says hybrid architectures.

SPEAKER_00And I think that is the most... I mean, everything we see here is still being used, but that is, I think, the most recent trend if we look at architectures. Like the QN3 next, the gated deltanet there, Nemotron Mamba 2, all of those are going from the standard attention to like a more linear type of attention that is faster. We've just talked about Kimi K3, and I kind of glanced over it and said, well, it's very similar to Kimi Linear, but I don't want to diminish it.

SPEAKER_00Kimi Linear was like a research prototype. Now this is a production model. And this model has the Kimi Delta attention, which is very similar to Gated DeltaNet, which we've just seen there. So... It is all about making models bigger, but then also kind of like keeping in mind it's not all brute force anymore. It's kind of really sophisticated now. Also the latent MOE, for example, like they're all like tweaks in there. Or the one thing that I think we also glanced over is what's it called?

SPEAKER_00The residual attention. You know, like it's yet another trick where you add, it's like kind of like a computing softmax and attention approach. Over previous blocks, and you add that as a residual instead of just an addition. And that one also, I mean, it's not like a huge improvement in terms of modeling quality. This is not an efficiency tweak, it's a modeling quality tweak. But it's also like all these kind of little knobs people are tuning. And this one, for example, I think it's based on the Kimi Linear paper.

SPEAKER_00It added like... Four or five percent training cost and like two or three percent inference cost. But yeah, if you combine all these things nowadays, I would say if we think back of the K3 architecture we just looked at, it's still the transformer, but it's like all these wires and connections coming off. Getting more sophisticated and complicated. I think we are kind of leaving the realm where you can understand everything by just looking at the code of one architecture.

SPEAKER_00Like with GPT-2, you could have everything in like two, three lines of code. Maybe less if you... Simplify things, but let's say a comfortable two to three hundred lines of code and understand it at once. Now, if you look at something like Kimi K3, I think it would be thousands of lines of code unless you have modules in different files. Let's say in PyTorch, but all the modules like residual attention, latent MOE and everything in one file, there would be thousands of lines of code. And I think it would be very overwhelming.

SPEAKER_00I don't think a single person can really do that anymore. And that is maybe the time where we partner with LLMs, but also we just take what we have. So no one starts this from scratch. What you would do is you would take an existing one and then just add that one thing to it. So for K3, They started with Kimi linear and added latent MOE. They already had the other things. And so you do one thing at a time and then it's doable. But we are still, I think the biggest trend is we are now adding all these kind

SPEAKER_00of modifications everywhere to the transformer. It's kind of interesting. Yeah. There's like a graphic, I think it was from SpaceX, where they started with the original rocket launcher engine, whatever, and it was all these weird wires, and then it got simpler and simpler. But now with Transformers, it's the opposite. You start kind of simple, and now it's all complicated, like a lot of things attached to it, left and right, and there and here, and it's interesting. Yeah, if you do go from one architecture to the next in a chronological order, you learn about one component or two components at a time.

SPEAKER_00And then again, it does make sense. It's almost like a timeline, like understanding transformers as a timeline. Because I think if you today start looking at Kimi K3 and have never seen a transformer before, I think my brain would explode at least. So yeah.

SPEAKER_01Well, that's heartening to know your brain would explode, because mine definitely did. It kind of already has this morning in a lot of ways, in all honesty. But yeah, it's heartening to know that. So last time we spoke, we talked about when models... And I love you presented as a timeline. So I am wondering...

SPEAKER_01Maybe we can take Kimi K3 today, the open weights, and think through, let's say someone hadn't really looked at a Transformer before, what would you suggest they start at and build up all the way to Kimi K3?

SPEAKER_00I do think it's still GPT-2, starting with GPT-2. Luckily, I think it got rid of the Rope, the rotational position embeddings. So you don't have to really worry about that anymore. They have the no positional embeddings. Like, well, I wouldn't really like, okay, what is the transformer block? What is attention? And then, oh, they did something interesting with attention. They have the multi-head latent attention, like really like top to bottom. Then the residual attention thing, attention residuals, they have a standalone paper on that. That's a tough one to,

SPEAKER_00I think it's a relatively straightforward concept and it's like maybe 50 lines of code, but it is again like, okay, we are doing something here. I would probably leave that. And then because that is kind of like this cross connection. And yeah, I mean, I would really, if you see something like latent MOE and you have never heard about MOEs, I would start with MOEs, the same with Multi-hat-latent attention. If this is a new concept attention, then starting with regular attention and then looking at multi-hat-latent attention

SPEAKER_00in DeepSeq version 3, for example. And then was it, yeah, version 3 had that already, DeepSeq. And so there are shared components over time. And yeah, I mean, doing it like that, basically going from, so in the gallery from top to bottom almost, yeah.

SPEAKER_01Super awesome. And what I've actually done is a conversation you and I had several years ago, at the end, what you did was you showed me how to fine-tune GPT-2, actually, and prepare the classification data set and tokenize it for GPT-2. So I just shared that in the Discord as well for people who want to check that out. So this is all in the spirit of peeking under the hood. Now I'm wondering... When we plug these new models the past few months from GLM 5.2, Kimi K3, and so on,

SPEAKER_01and DeepSync V4, since we last spoke, into harnesses, it seems like the open weight models are really... So historically, open weight models have been maybe six to nine months between Frontier releases, and it seems like that's really shrinking. So I'm wondering how you think about their performance with respect to our API, VendorLabs and FrontierLabs.

SPEAKER_00Yeah, I would say for most, you know, like the frontier, state-of-the-art proprietary models, you know, like the ChatGPT's and Claude's and so forth, and even Grock and Gemini. I think Gemini is due to release one of the big models. So they are currently, it's always like the latest model is always the best model for like a few weeks. And then it's like leapfrogging almost.

SPEAKER_01And there are these rounds of waves, right? That suddenly, in the space of a few weeks, it's like bzzz.

SPEAKER_00yeah. I do always think they have some models ready that are still... They could stop training and release them, but they would rather wait a bit. But then if someone else releases it, okay, let's just two weeks from now release our model early. But I think... I don't know how... I mean, this is really hard to know, but I don't know how much the models improve really versus... They improve on the benchmarks and everything and everyday usage, but I don't know how much of that is because they are like...

SPEAKER_00Smarter in that sense, or whether they just have better, like how to use tools to get their job done or like how to interpret the harness constraints and more like that, like more like not the pre-training and everything, but more like the fine tuning in the environment, it's going to get used. So like if the model is better at doing web search, it will be much better at giving you the right results, you know, without hallucination. But really like how much of it It's almost like polishing versus training,

SPEAKER_00like the rough edges, issues users have when they run the model and fine polishing those compared to, I mean, they're still training models from scratch and fine tuning and RLHF and extending everything. But I think the improvement is almost more like on a product level, if that makes sense. Like new features in Codex, for example. And I think, to be honest with you, if you ask me what is the most impressive thing about the recent releases, I wouldn't necessarily... I mean, 5.6 is better than 5.5, but you know what?

SPEAKER_005.5 was already very good. So for me, I would rather say things like it can use your computer now, you know, like in Codex. You can say, well, I don't use my... Email a client and do something there. You know, like it would physically use a mouse, take screenshots of your screen. Whether you want that or not is a different question, but more like as a proof of concept, this works. Like you can do it and it actually navigates things on your computer and automate workflows like that, like visual stuff. And I feel like that's an impressive product feature. Like it's like a next, I guess, step for LLMs.

SPEAKER_00They can do things they can't do before, but not really because they are smarter. It's more about the product, like how that's implemented this process. Image take, I mean, it has like multimodal support, so it can extract from the images what it's seeing and it just, but it's more like a product implementation rather than mathematical training procedure that is different from the previous one, if that makes sense.

SPEAKER_01Makes perfect sense. And I totally agree. One thing that I've really liked in, particularly in Codex, but also in AMP, I think some of the other, Pi does it okay, some of the other labs are behind, is steering. So the ability to, if it's working, put another prompt in and have the ergonomics of it actually steering quite nicely and not kind of stopping and shuddering.

SPEAKER_00And I think that's getting... Oh yeah, I do that all the time too. Where I say something just to get going and then while it's doing it, it's like, oh, let me just be more concise

SPEAKER_01or like more, you know,

SPEAKER_00like, let me add details basically is what I'm usually doing. Like while it's working. Because for me, it's like too tedious to type it all out. I just, okay, start and then I will give you more things later basically. But yeah, I think it's probably better to do it all up front. But it's like a workflow we all developed at that point. Like where it's like, yeah, you just... It's almost like, yeah, it's kind of live. You do it live. It's not like you think about something, write it down, submit it, wait. You kind of interact with it live, basically. You interject, you insert things.

SPEAKER_00And that comes all down then to how the harness also works, right? I mean, how the harness supports contexts and how it works. Managers context also. And that is also one thing. I don't know, you may know more about that than I do, because I am not very, let's say, I do try different things, but I have my habits also. So muscle memory, but I tend I tend to use, for example, but in that sense, I'm a bit different. I do use or try to use the harness that comes with a model. You know, like for Gwen, I use the Gwen code harness.

SPEAKER_00For Kimi, I would use the Kimi code harness and so forth. Although you can use models also in I was going to mention this. I think it's getting worse. I think models and harnesses are maybe overfitting to each other. So you mean, I see, I see. So they perform better in benchmarks,

SPEAKER_00but then on other tasks that are not benchmark tasks, they're all interesting.

SPEAKER_01Yeah. And I suppose I'd love you. I didn't quite think of this, but your thoughts on whether the models are kind of RVR'd on their own harnesses and it just gets baked into the...

SPEAKER_00Into the white. Yeah. Yeah. And see, that is one thing that is not so clear is how people fine tune on their harnesses, like the models. If you look, I may have to look into Laguna, the recent one, because they are also having a really good... Transparency level of like technical reports. So the poolside Laguna model. And if they described it maybe, but based on what I know from colleagues, I mean, I don't know the proprietary information at how Frontier Labs do. But I think it's mostly,

SPEAKER_00like you said, RLVR on their own harness just for the trajectories to get going to train something, you know, like the model to make it intelligent. But then later at the end of that, you do the fine tuning on harnesses, like some adjustments with a supervised fine tuning SFT basically. That is like at the very end. So during the training, basically, most of it was RLVR, right? And that was in one harness. And so it has seen a lot of that harness, basically. But yeah, you might be overfitting to some extent, yeah.

SPEAKER_00But if you say that they are overfitted to the harness... What would be like a hallmark of that? Would they be using the wrong tools all the time? Or how would that manifest, I would say, on a harness level compared to models memorizing things?

SPEAKER_01Yeah, it's a good question. And I think, yeah, incorrect tool use, but perhaps also longer reasoning loops as well. Because you can imagine something which uses its tool, like it may be the correct tool, but it may use it far too many times and chew too many tokens or something like that as well.

SPEAKER_00Yeah, Cloud Code is also notorious for that. I tried to use, for example, Qwenn 3.6 in other harnesses besides Qwenn Code. And I remember Cloud Code was using two or three times as many tokens as other harnesses. But I think it's It's also about, in that case, not necessarily overfitting. It's also just how efficient the harness compacts information, how much context it provides. And I think, yeah, that is almost like a consideration itself compared to what LLMs do. I use for efficiency, like to get something done efficiently.

SPEAKER_00What's the sweet spot, the Pareto Frontier? The same is true for the harness. Like how much info, do I really need everything from that repo in context or do I only need a few files and managing that? And yeah, it's like a whole thing. It gets complicated if you want to optimize along these different dimensions, right? Like the good combination of model and harness. And then you do use that for a few months and then the next model comes and you have to start all over again.

SPEAKER_01And measuring what is... So I honestly don't really benchmark things myself.

SPEAKER_00I just use them and you kind of get a feeling, okay, this is not working well, this is working well. I do look at public benchmarks, but I'm not rerunning any of them because it would be also very expensive, like thousands of dollars for what you basically... So I'm just usually trying things out, using them and you kind of... I would say after half a day or a day, you get a feeling of like... Well, this is really bad or maybe I'm not using it well or something like that. I don't know.

SPEAKER_01The other thing that you mentioned is the ability to speak to these models with images. And I can tell you a huge amount of my workflow with agents involves voice. So I speak to it a lot and then dragging and dropping images and then I get it to speak back to me in motion. HTML, Markdown, whatever it is. And HTML, because, you know, we're all sick of reading so many tokens and words at the moment. So getting it to generate images can be useful. But so GLM 5.2 was really the first model that when it came out,

SPEAKER_01the first Openweight one where I was like, oh, this is really close. This feels really close to Frontier Lab stuff based on Vibes. I couldn't drag and drop images into it, of course. I could with DeepSync V4 before that, but then Kimi K3, I can drag and drop images to it. Exactly. So thinking about just the experience, and this is between model and product as well, it does feel like with those types of affordance, the open-weight models are getting even closer as well, right?

SPEAKER_00Yeah, but also I would say Kimi K3 is 2.8, I think, and GLM 5 is like 700 billion. So it is magnitudes bigger too. So four times as big also, you know,

SPEAKER_01it's 2.8, right? I think so.

SPEAKER_00I mean, just my brain is also from looking at numbers today. But yeah, so it is also the trend. Things are getting now to the, I would say this is an outlier, but I think we are also moving towards models that are not super local anymore. So it's like, yeah, you probably ran it through Open Router or their own API, right? And so it's also, they are open weight models,

SPEAKER_00but it's also open weight doesn't mean running things locally, you know, even though that is also appealing. That's yet another level for that. For that, actually, for local models, I just, this weekend, I tried Laguna. I just briefly mentioned that. It's Laguna S 2.1, I think. And so this is a nice model because I, to be honest with you, I don't, I think it doesn't feel much better than, let's say, Quen 3.6, the 35 billion MOE, but I have not used it enough, so it might be better.

SPEAKER_00So basically, on benchmarks, it suggests it's better, but it feels about the same. I don't know. But it is interesting because it's kind of like maxing out what you can do on, let's say, DGX Spark. The DGX Spark has about 120... Thank you so much.

SPEAKER_00Speed-wise, it's two times slower, of course, but I feel like there's still like 20, 30 tokens per second. I think it's still plenty fast. It's like using ChatGPT, basically. It's also 20, 30 tokens per second. So I feel like that is like a level where, yeah, it is usable. It's not prohibitively slow or something like that. So like a comfortable speed, basically. Of course, faster is better, but for agents, especially if you have longer loops and stuff like that. But I feel like 20 tokens per second is okay.

SPEAKER_01Yeah, totally. And I'm really glad you mentioned the distinction between open awake models and ones that you can run locally as well, because we've asked people to send in questions and we actually have a lot of questions about small language models and what you can do locally. And Pierre has actually asked a series of questions, which I'll kind of summarize, because I think it captures the spirit of what people really want to know. So the question really revolves around, what would you recommend in terms of a setup for running small language models,

SPEAKER_01like QN 3.59B? I'll take that up to the 32 or 35 QN model. And besides coding agents, what other use cases have you tested, SLMs for, or think about And related to all of these things, do you think SLMs are getting closer to Frontier Lab models as well?

SPEAKER_00I think everything is moving in lockstep. So I would say the frontier models are getting better. And at the same time, the small language models are getting better. But I think they're kind of like, you know, like moving in parallel. I don't think there will be an intersection where they at some point meet or where it's like the slope is the same almost, I would say. But this is without any scientific measurement. It's just like a gut feeling. It feels like... Yeah, right. It feels like, yeah,

SPEAKER_00it feels just like, you feel like, okay, QAN 3.635B is so much better, closer to a frontier level than the previous one, but then you look at where the frontier models move towards. But then also... What changed, though, is I feel like what is good enough? Before, like two years ago, maybe like a LAMA 3 model that you ran locally was not enough. You could barely do anything with that. But you could do a lot of useful things with a Frontier model. Nowadays, you can do a lot of useful things with a GRAND 3.635B model. It can do basically most of the coding pretty well.

SPEAKER_00But then you can even do better things with a frontier model, like more sophisticated things. Like we have seen with these incidences that they're more like marketing almost, but it really happened that Hugging Face got hacked, right? It's like something like that. I mean, I'm not saying this is like... People should be using the Frontier models for that. But just showing, like I was saying, they are also pretty capable of things nowadays, where the GLM 5.2 model was able to find out a bit in terms of what happened.

SPEAKER_00And I don't know, that is anecdotal. We don't know if you had used a Quint 3.6 35B model, if it could have told you similar things. So that I don't know because that is also expensive, right? So when we use these models, we don't really A, B test, right? So when you work on a daily, on a task, you don't say, oh, let me try this model, but let me also try the other model. And then everything takes twice as long in your everyday life because you are always running things multiple times. So no one really does that outside benchmarks.

SPEAKER_00Ideally, we should probably be doing that occasionally, but that is, this is why it's hard to say really why, how different they are. Especially also I have, I'm kind of, you know, In an ideal world, I would use Gwent 3.6 for more things, but I'm also kind of biased in terms of, oh, I think it won't solve that, so I'm already using this GGB model, for example, the latest one, because I feel like, okay, I know for sure this will get it done, and I I have only so much time. So let me just throw the thing on there.

SPEAKER_00I think it will change in the future, though, when right now, I mean, they are pretty well subsidized, you know, the token, the plans, especially the subscriptions. I think it will change at some point where... You will probably run into your limits sooner. And then that will be the point where you will automatically also use more local models. Right now I use local models. I have to be honest here. I'm using them for just for fun because it kind of feels Feels fun to use them. It feels satisfying.

SPEAKER_00It's like, oh, it's on my computer. I have the Spark machine sitting there. I also, I mean, I could run them on my Mac Mini, but I don't want it to get too hot, to be honest. And I also, I have the version. Luckily, I got it. I did it like one and a half years ago now before the RAM prices were high, but I have the maxed out RAM version, the 64 gigabytes. So I can run the Gwent 3.6 model on that. But then it kind of slows down your computer and I'm doing other things on that computer too. You know, it's like my main work machine. So I usually run these models only on the separate DJX Spark.

SPEAKER_00And it's just fun though. It's like you sometimes hear the fan going on. It's like, oh, I'm actually getting... My bang for the buck here. I'm using my own hardware. It kind of feels cool. It's like people working on their car in their garage. You don't have to. It's like a hobby, but it's kind of satisfying. It's fun. I wanted to prefix that. I'm still using a lot of non-open-weight models, but also because the Subscriptions are relatively, in quotation marks, cheap. You know, where it's like you get a lot for the subscription where until I reach the limits

SPEAKER_00in terms of API usage, sorry, subscription usage, I am not forced to use local models. The only exception is if I want to do something where I feel like, oh, I don't want them to have my data in that case. You know, like I don't want... I don't know, let's say medical questions. Of course, you probably shouldn't ask all important medical questions to LLMs, but talk to a doctor in addition. But, you know, sometimes you want to know things and like your own research and maybe you don't want them to have your whole medical history, right?

SPEAKER_00So in that case, it's like a mix between, you know, curiosity. Like as a researcher, I do like to use them also to kind of stay up to date and it's fun. Things that are proprietary or sensitive data, I wouldn't feed to the proprietary LMs, but I have to admit I use both. It's not that I think proprietary models are also bad, but I think local models are important because we also want to be prepared for a case where maybe we have to use them one day.

SPEAKER_00It would be sad if they were not an option and there are only proprietary models and let's say the prices go up like crazy and then You are kind of locked out or you have to pay a lot of money and you always have these local models then as an alternative. It's good to have alternatives. That's what I'm maybe trying to say here. Absolutely. And competition is good for business.

SPEAKER_01Very much so. And I've been using Quinn35 a lot more locally with Pi, actually. I was inspired by people watching may know this, but I do this series called Show Us Your Agent Skills. It's really people showing us how they use agents, not just skills. And we had Tomas Tungus, the... The VC on the show. And he showed us how he uses Quen 3.5. You can see his stack here locally with Pi. And besides like big code-based changes, he can get away with using it for nearly everything.

SPEAKER_01And, you know, 128. He has 120 tokens per second. He has a system. He's built his own whisper flow essentially with 300 millisecond dictation latency.

SPEAKER_00A short question or a quick question, sorry. What hardware does he use for the 120 tokens per second? Do you know?

SPEAKER_01Yes. So Mac, these notes say a Mac M. I don't know. Yeah. Yeah.

SPEAKER_00I think it comes close, yeah. I think for the M4, I'm getting maybe 60, 80, I think 80, around 80. But I'm also like not, mine is probably not super optimized. But although I'm using the MLX version. But yeah, you know, that makes sense. That's pretty cool. 120, that is. So it's, I think it's faster than like, let's say, GPT 5.6 or even 5.5. So it is. And you said he's using it for pretty much everything.

SPEAKER_01That's Exactly. Yeah. And I was inspired to use it for a lot of my work. I also, it works for a lot of the code I need. And I'm on a, I've got a MacBook Pro, it's the M4 Max, but I've got 128 gigs of unified memory. And it's so powerful. But I also do a lot of like... Freeform text with my coding agents. So even, you know, to reason over the three podcasts we've done over the past eight years or, you know, all this stuff Tomas showed us,

SPEAKER_01it helps to have, I've found Frontier models better at that than Quint 35B. Okay, quick word from our sponsor, which is, well, me. Vanishing Gradients is a podcast, workshop series, blog, and newsletter focused on what you can build with AI right now. Over 70 episodes, hundreds of hours of free hands-on workshops, all independent, all free. If you want to help but keep going, you can become a paid subscriber on Substack, starting at $8 a month, or share this episode with someone who'd get something out of it.

SPEAKER_01Links are in the show notes. Alright, let's get back into it.

SPEAKER_00Yeah, so when we go back to the beginning of the podcast, you showed me this graphic, the overview, not the transcript, but like a timeline of things. And that was with the proprietary one?

SPEAKER_01Yeah, so that was with Fable and then

SPEAKER_005.6 actually. And see, this is the thing where... Yeah. Yeah. Yeah. Yeah. Get the job done. But I think for, let's say, 90% of the tasks, Gwent 3.6 model is probably sufficient.

SPEAKER_00And Gwent 3.6, if we think about it, is almost ancient. It's like April, something like that, like four months old. And it's pretty good. I mean, it's like you said, the one person you talked to, the

SPEAKER_01Oh yeah, Tomas, Tomas

SPEAKER_00Tungus. Tomas Tungus. Yeah, he does most of it, almost everything with it. And it's pretty impressive with a four-month-old model. So we are getting to a point where... Models are still getting better, but it's not always needed is maybe the right answer. It's like for those cases where we really need the extra power, if you want to solve a new, let's say, math Olympiad style problems or unsolved theorems, or not theorems, but like conjectures and stuff like that.

SPEAKER_00Yeah. Yeah. Yeah.

SPEAKER_01Without a doubt. And something I do, even when I don't use the hardcore frontier models every day, and the frontier models are getting better at routing. I mean, Fable is a fantastic orchestrator and great at routing things to tasks to, you know, the correct model, whether it's Opus or Sonnet or... Funnily, I actually just chatted with Chip Gwen this morning, who's coming on our Show Us Your Agent Skills later this week, and she's built a runner inside Claude Code for herself or adjacent to Claude Code, which will... Get Fable to send tasks to GBT models, among other things as well.

SPEAKER_01So it's pretty powerful that you can do that, don't you think?

SPEAKER_00Yeah, yeah. That is also maybe a good segue. I think you asked me at some point. What is kind of like coming or like the trends. And so I think it's interesting. I remember when GPT 5.5 came out, there was this auto mode, like routing to, or like at least setting the infant scaling budget, like the effort level for a And I think they moved away from that again. So I haven't seen that in the UI anymore. At least in my UI, it's not there anymore.

SPEAKER_00You have to manually select the effort level. And so just to also... Go back a step. So you have basically now for like a proprietary model like Cloud or GPT, you have different model sizes. They're all like independently trained except the smaller ones are kind of distilled from the larger ones. But you have like... As a user, you have to choose between, do I use Sol, Terra, Luna, different sizes? They have different costs and tokens per second. And of course, also performance in terms of solving the problem.

SPEAKER_00But then for each of them, you also have efforts Levels like medium, high, extra high, ultra, and so forth. And so there are basically two levers moving forward, like making bigger models, but then also the effort level can be controlled with RLVR. It depends on Mechanisms where you can set a penalty for length. Kimi K3, based on the report I just skimmed today, they do it. For example, they have a budget, a token budget. So they say, for example, you can only have so and so many tokens.

SPEAKER_00If you exceed that, you get a reward of minus one in the RLVR. And the model is discouraged from doing that. But then they have different, they call them specialists. They have one for very long, high effort, very long outputs, some for medium, some for light. And then they distill that down into one final model. And then you as a user, you can select that with a system prompt. I mean, this is not new. Most of the models do that. Even back the GPT-OSS model from OpenAI had that in the system prompt. You as the user, you kind of have to decide is what I'm trying to say.

SPEAKER_00So you have to decide what size, even if you are staying within one provider, what size do I use? What effort do I use? And you have to develop, I mean, we kind of through using it have like a kind of a gut feeling like when you said you use So if you used Claude for this one timeline, you kind of intuitively know, okay, this is like a high-end model task. But I don't, like you said, Chip has now an automatic mode. I think, yeah, it is tedious to, well, not tedious, but it's maybe also not And that's not optimal because we human have biases where we have a gut feeling.

SPEAKER_00It can be a very good gut feeling, but we might also be just wasting compute on simple problems by just always using the most expensive model. And the other way around, you know, we may think we get away with that. It's usually easier to correct because if you start with a simple model, you get bad results, you just switch to the bigger one and hope, fingers crossed, that it works. I think that is more natural. The other way is more the blocker. You use the most expensive model because you only You think that solves it. And then you just waste a lot of waiting time on the results and money and usages and stuff.

SPEAKER_00And I think that is something I do think would be best handled in the harness itself. Like the harness should, based on the context. So not like the user turning the knob. It should be a harness feature, in my opinion, like where the harness... Based on how many loops, like could be a different model, could be a heuristic or a mix, I think ideally a mix of the two, where based on the task, but also not just the task, but the history, the context and everything to decide what model to use.

SPEAKER_00And then, of course, change it inside the, even like inside a loop. Like we can steer an LLM. You can also basically notice me, okay, this was not powerful enough. And you have the context from the LLM. You can just pass it to the other model or you change the system prompt. Like with steering, you can say from low effort to high effort. We still use the same model, you know, but that I think is something no one is doing yet as far as I know. Maybe please correct me if I'm wrong, but I think because it's hard, right?

SPEAKER_00It's not easy. It's not trivial, but I think that is a good optimization in the future.

SPEAKER_01Yeah, I haven't seen that yet. I'd be very excited to. The other thing when we're talking about product around models with harnesses around them is it seems like the models and harnesses are understanding a bit more about where they're situated now. And let me be very explicit. Previously, Codex or Claude wouldn't know about the right-hand panel where it displays HTML. It just wouldn't know what you're talking about. And when you say, actually, can you display this not in line in the right-hand panel? Now it knows about that.

SPEAKER_01So it's aware of the user experience, I think, which is actually a really important affordance for these products.

SPEAKER_00It's also impressive how it can, I'm still surprised how, but it is not good at making images, in my opinion, but how good it is at understanding images, for example, like even like subtleties, because ultimately it is in a multimodal LM, it's chopped up, you know, like smaller patches, but how well attention works to, you know, like understand the big picture. For example, if you have a diagram, Like, let's say, take the Kimi K3 diagram.

SPEAKER_00I'm pretty sure you could ask an LLM to, if I do something wrong there, I do that sometimes. I throw it in there and then, oh, you forgot that arrow there or you have a wrong connection there. It can't draw for you, but it can point out or it's not always right. You have to think about it still, but it's impressive because it goes over multiple patches and it's like it has to kind of, there are so many things going on. It has to kind of reconcile the connection and that attention is, yeah, I mean, it's ultimately attention, but it is actually working.

SPEAKER_00So that's kind of still fascinating to me how well it works. We know it works for tokens and words and code and everything, but beyond that, it's just pixels. I don't find it very fascinating.

SPEAKER_01It is fascinating. So we've got a couple of, we've got lots of great questions in the discourse. Yeah, we have been just

SPEAKER_00rambling here. Yeah, exactly.

SPEAKER_01Well, no, no, no. But we'll definitely get to a couple of them. Latvia has a great question. With models reaching as large as, you know, several billion parameters, what are the challenges to self-hosting and how do we get around them? And Latvia said even renting GPUs doesn't always seem possible. They're always out.

SPEAKER_00Yeah, I think that is a very challenging question because, yeah, the problem is for the bigger models, you just can't host them on a single hardware. You need multiple. And then also even as a consumer, you can't just buy a server. I mean, they are also, I mean, even if they were out of stock and even then they would be very expensive. And even then, if you could afford it, you probably don't want them at home. I had, when I was at the university in 2018, my office, I had a lot of Yeah.

SPEAKER_00Yeah. Yeah. It was so loud and so hot. It was very uncomfortable. You know, like it was like if I had office hours, I could barely hear this. I mean, it was just you go crazy.

SPEAKER_00And so, yeah, it's really challenging. And these GPUs get hotter and louder and bigger. And so it would be really If you have a basement, yeah, there would be an option to have them in your basement, but basements can flood. So it's like, do you want that expensive hardware at home? You can put them in a server room somewhere. I think there are places where you can run as an individual person, like small server rooms. You could buy something and stick it in there. But then at that point, is it really...

SPEAKER_00Worth it. I don't know. You could technically just rent also an AWS instance at that point. But then they're also out and expensive. Absolutely. I mean, I'm not affiliated with any of those. But like you said, open router for now, where it's like... The difference is it's not fully local. It's going through something and you don't know exactly what happens to your data, for example. But if you don't have sensitive data, if it's more like things you are comfortable giving to ChatGPT or Cloud,

SPEAKER_00I think that's probably similar to OpenRouter. I think OpenRouter is still a bit different because there's OpenRouter itself and then they do partner with other inference providers and they pick the one that is currently most, I guess, available and cost efficient. So you have multiple... Stepped on multiple companies involved in that. And so, yeah, I would probably, I mean, I honestly don't know. They might be handling your data super well and stuff. But to me, it's always like just like a rule of thumb if, you know, if it's not on you,

SPEAKER_00if it leaves, if it goes So the internet, it's not fully safe and private to me, at least. It's like a more like a common sense thing. So I think if you are a bank or like a very sensitive medical information, you probably can't or shouldn't use those models. But, you know, for tinkering, like let's say a fix. My website is public anyway. I think that's a good alternative to use open weight models. They're not local. I mean, the question was about local models, but that would be one way to test models at least. And then I think that's also one thing. I do use...

SPEAKER_00My local models on my DJX, but I also don't want to download and install each model because they're large. I mean, I think it has four terabytes, but you also at some point, I also have a lot of data from experiments on there, like checkpoints and stuff. So I'm not like unlimited in space there. And if you just want to test out a new... Let's say the Laguna model, it's roughly, the billions of parameters is roughly, I guess, the gigabytes in storage it takes. It's another 100 gigabytes. And it takes two hours to download it.

SPEAKER_00I mean, in this case, I downloaded it because I did know that I wanted to use it, but I wouldn't do it just for all the models because that would take a long time to download and you have to switch them. So it's just easier to, if you want to just quickly check something to just use OpenMouter, I guess, to quickly try something out. And if you find, oh, this is worthwhile, Then switching to it locally, if you can run it locally, I would say.

SPEAKER_01Absolutely. And I do think something I'm hearing there, which is a big philosophy of mine, is explore the art of the possible. Like when Frontier Labs... Release new models. Go and see what you can do with them. Don't necessarily put them in every workflow you have, but similarly with Kimi K3, explore what is possible with an open router endpoint or Base 10. I've had a lot of fun with Base 10 in the past, and they're great. I'm not affiliated with them, by the way. They have sponsored some of my courses, but I do think.

SPEAKER_01And then if you feel like it could really work for you, think about if you want to host it yourself in these types of things.

SPEAKER_00It's just also the hosting itself, it's somehow fun. I don't know. It's just like, it's just fun. Yeah.

SPEAKER_01It's fun and it's empowering. And this is, we discussed this last time, right?

SPEAKER_00Maybe that's the right word for it. Like, it's like, it gives you, I don't know, it just makes you feel good. I don't know.

SPEAKER_01Yeah. And last time I did ask you, I asked you, like, why do you think there are hundreds Yeah, yeah.

SPEAKER_00Yeah, I think that is absolutely true. It gets trickier with the larger models where you probably can't do this with Kimi K3 because it's 2.8 trillion. But you could scale it down and implement it and see if it works, you know. And there is something about, I don't know, there is like, It's usually frustrating, but if it doesn't work, I think that's the best feeling if it doesn't work or if you don't understand it and then it works and then you understand it. It's just like this pure joy, dopamine hit, I guess.

SPEAKER_00I don't know. And that's the same with running a local model. You have the setup. And you don't fully know, you download it. And then you ask it a simple prompt. I usually do, I don't know why, but I do usually do one plus, what is one plus one? I don't know why. It's just like the thing. And then I use it as my first prompt. And it starts answering. I'm like super happy. Like, well, it actually works. You know, it did it. Yeah. I think the one plus one is actually, it's a stupid prompt, but it is actually also quite useful because you, if we go back a few years, a model would just say two.

SPEAKER_00But then if we go forward a few years and maybe we are in, let's say, 2025, beginning of 2025, and if you ask a model what is 1 plus 1, it would not say 2. It would give you a whole 2,000 token answer like a DeepSeq R1 model. And so it's actually not a super stupid problem because you can test how efficient is the model actually. Because the newer models, again, they would answer 2, you know, like the smarter reasoning models. But the first generation of reasoning models, they would really... Be a 2,000 token answer. And that's also not good. So you want a model that can be also efficient when it needs to be.

SPEAKER_01Without a doubt. I love that.

SPEAKER_00Or use a tool also, in that case, by the way.

SPEAKER_01Well, exactly. I mean, get it to write some... Python code and to execute it. In a sandbox, of course. Everyone's YOLO these days, actually, in any way. But I love the idea of doing 1 plus 1 kind of as a timeline to see what the responses are over the course of LLM history. We have a great question from Pastor, which is after analyzing all the architectures you have, and of course, rebuilding many of them, where do you think, what can be improved? What's next?

SPEAKER_00Yeah, I do think we talked about it a bit briefly earlier, like the residual path. It's just a trivial thing, but it's like something that has not changed in a long time, like the residual connections. And then it was not invented, I would say, by DeepSeq version 4, but they popularized it. I think they had another paper on that before, like a prototype. They always have like a prototype paper and then their production model, but Like the highway connections, I think they're called.

SPEAKER_00And it's like you have, instead of one residual path, you have multiple. I think in that case, there were four. And that was one way to improve residual connections. And then right now, Kimi K3 from Kimi Linea, the... Residual attention is it called, I think. Yeah, residual attention. They also have standalone paper, but like looking at components, we have not tweaked before, you know, like little things. But again, they are like little tweaks. They're not fundamentally new tweaks.

SPEAKER_00Oh, there was also another one that was interesting. Let me think. One of the, well, I did look at six architectures this weekend, so I forgot which of the six it was, but there was one architecture that used the looped transformer style where you, I mean, it's simple, again, very simple things, but they had 22 transformer blocks and They looped back to them. So they had two times 22. So you have twice the compute because you go now through 44 layers,

SPEAKER_00but you don't increase the size of the model. For the 22 layers, you use the same set of weights for the second time when you loop through the 22 layers. So it's like a tweak again. I don't think they had a nice ablation study in the paper. So I don't know how much that actually improved, but it was worth it to actually do it. And so I think right now we see a lot of these things, but most of them are, at the very beginning, we talked about hybrid attention.

SPEAKER_00Most of the bang for the buck comes from the hybrid attention. Each one has some flavor of it. Nemotron has more like Mamba 2 layers, and then the gated delta net in Quen 3, and then in Kimi, the Kimi delta attention, which is very similar to gated delta net. These are kind of complicated components if you look at them. Compared to the normal attention, but they're not super complicated. It's almost like swapping out that module. And yeah, and I think that's a lot of incremental progress.

SPEAKER_00It's not really throwing everything out there like what we already have. And it's not replacing everything. It's just very targeted, you know, like replacements. Like if you have a car, you don't reinvent the car. It still has four wheels, but you swap out the engine. You know, like now you have electric motors instead of gasoline motors. You know, like it's like... Targeted replacement, if that makes sense.

SPEAKER_01That does make sense. And I am wondering that, like, early on in this trajectory, we saw a lot more of a focus on pre-training. And in the past year, more, like, gains can be had in post-training and inference time scaling and these types of things. And it seems like maybe we're going back to putting a certain focus on pre-training as well. So I'm just wondering how you see...

SPEAKER_00I just talked about the architecture, right? But... The reason why I also talk a lot about the architecture is because that's known and for the training, not everything is so transparent. Some articles share quite some information,

SPEAKER_01but it's not what it used to be back in

SPEAKER_00academia 20 years ago where everything was fully reputable and So some of the stuff is mentioned, but it's not always even, sometimes it's ambiguous. They say it in a sentence, but it's not 100% spelled out. What I explained with these specialists, the effort levels, I remember there It was one of the papers, they just said they had these specialists, but they didn't even say, like, so I think for Community K3, they were, when I recall correctly from speed reading it, they were pretty clear. They had three specialists for the effort levels,

SPEAKER_00like levels of specialists, and then for each domain, like math, coding, and general knowledge. So they had nine in total. But there were papers where they said, well, and we trained these specialists, but you don't know, was it like three by three, or was it Like in that case, six specialists could also be six, could be a light, medium, hard effort, and then it could be math, coding, and so on. So like, is it combined? And so a lot of that is speculation also sometimes. But like you said, pre-training is still very important.

SPEAKER_00I think what's changed is there's like a lot of more good stuff in the pre-training data. So for example, five years ago, four Yeah. Yeah. Yeah. Synthetic data is not necessarily bad in certain amounts. It's almost like kickstarting the model in a sense that if you have the messy data,

SPEAKER_00you learn everything from scratch from messy data. But if you have a portion of high quality data, even if it's synthetic, and I mean, this is the common discussion. If we only train on synthetic data, we will never improve. It's kind of like going in circles. But I do think it helps the model to Initially to get really good, I guess, formatting and style and what is what we want the model to produce compared to just really messy data. And so if you mix it right, you can...

SPEAKER_00You probably not get the model to outperform the models that have been trained on bigger pre-training sets with more, let's say, added on post-training, but you can get to a baseline quicker. You need fewer iterations, fewer data to get to a certain baseline level, and then you can focus more on the post-training also, where you free up the compute, you Yeah, you're basically less wasteful with pre-training. But at the same time, the pre-training data sets also get larger. I don't recall from the Kimi report,

SPEAKER_00it was just too many numbers, but it might have been 30 trillion tokens. Sorry, if they mentioned it, or maybe I'm conflating it with another recent model I looked at, but I think 30 trillion is currently like the plus minus common size nowadays, which is about two to three times. Bigger than last year, for example. And so, yeah, we are still increasing, or I'm saying we, the big labs, are still increasing the pre-training data sets. But at the same time, it's also better pre-training data, more synthetic in there, better mixes.

SPEAKER_00And it's all being improved at the same time. So it's not just making it bigger, like multiple levers to pull. And then, of course, the post-training. And so for the post-training, it used to be just also like supervised fine-tuning and then on long-context fine-tuning and stuff like that. Because you don't have infinite long-context data that is good quality. But now with agents, You know, like you have a lot of trajectories you can train on. And I mean,

SPEAKER_00the agent harness is also like we talked before, RLVR, like just if it can solve the problem, but then for the fine tuning, you use the, it's kind of like a distillation. The longer collected successful traces from other models or even your own model, you also use SFT for that. And there are multiple stages going back and forth now. Again, too, you have RLVR, then going back You may go back to SFT for effort modes, some distillation, then doing another preference tuning with RAHF, and you may do another RLVR round.

SPEAKER_00So it's not a new technique in there in a sense, but it is more complicated. It's a complicated pipeline. It's more steps. Amazing. And so it does do a lot, I think, yeah.

SPEAKER_01Yeah, very much so. And I suppose I am, it'll be time to wrap up in a minute. So your first book on these types of things, and you've got many preceding it. We're not going to go all the way back to heat maps in R today, though. Oh, yeah. Your first book on these types of things was Build a Large Language Model from Scratch. Everyone should check that out if you haven't. You've just put out Build a Reasoning Model from Scratch and everyone watching the code to get 45% off is in the Discord and will be giving away five free copies

SPEAKER_01and will email people afterwards or message them. These are huge tasks that the whole community is incredibly, including me, of course, incredibly grateful for that you're helping to democratize all these amazing skills and ways of thinking. It's a lot of work. And my next question is, were you to do a third book in this series, what would it be? In terms of the time you need to put into it as well.

SPEAKER_00I think the answer is obvious, in a sense. Sorry, I don't mean it as a way to... I mean it more for myself. So I'm not saying it should be obvious to you. It's obvious for me I know what I should do, but I don't know when and if yet. So I'm saying that smiling a bit because if you think about the progression, like... LLMs from scratch is the foundation, like mostly the architecture and some pre-training. And also I try with the books, you know, I don't try to cover research papers or anything.

SPEAKER_00I write about them on my blog or social media because they're very time-consuming. Yeah. Yeah. Yeah. Like you said, it is a lot of work, especially like the from scratch part and doing it well and testing. And there are so many experiments also to run. And so each of the two books,

SPEAKER_00it took me a year, but also hard work, not just like a few hours each day. It was like really a lot of work. So I do think I need a bit of a break after that. So just to recover a bit, you know, like it was... It is a big undertaking in a sense. But I did have this one figure in, I think, the Components of Coding Agents blog post I had where I just try to explain to people how things connect. And then this is why I was saying, oh,

SPEAKER_00this should be obvious to me because I saw, okay, this is actually three books here. This is like the progression. It's like you have the LLM that is the engine of a car, for example. But just the engine. And then you have the reasoning model book, which is like the beefed up engine. It's like Formula One race car engine. I mean, the analogy is basically LLM. Reasoning LLM is a more capable LLM. It's still an LLM. But then where do you put this engine, right? And so that would be the agent harness, essentially. So I think that that would be the most natural progression,

SPEAKER_00like the next book, probably something with agents. But... Yeah, I had that blog post a few months ago where I got super excited about the components of coding agents. I started writing my own harnesses. But while there are so many harnesses out there that, yeah, so this article or my harnesses, Harness is more like a proof of concept. What are things to consider? But of course, it's not something you use. It's not Hermes or Hermes, and it's also not Open Claw. It is a very simple harness.

SPEAKER_00It's for education purposes. And I think... That might be a nice potential topic. Although people ask me about multimodal LLMs too. And I do have actually, I have too many things and not enough time. So there are other interesting directions too. But first of all, I think re-energizing because yeah, writing a book is fun, but it was an intense year, yeah.

SPEAKER_01I can only imagine. And look, it wasn't quite obvious to me, but in my head, I was hoping that would be the answer as well, because with everything you've done with these two books, it is very much, especially for what's important to people, Mm-hmm.

SPEAKER_01So you heard it here first, people. It seems like at some point Sebastian may entertain the idea of writing a build coding agent from scratch. And let us know in the comments if this is something you'd like to see as well. It is time to wrap up. I'm wondering, so I've linked to your substack. Everyone, I mean, if people here don't subscribe, I presume most people do, check it out. Always wonderful, enlightening posts and material there. Sebastian's on Twitter at Reddit and... Are there any other places people can connect or follow you?

SPEAKER_01Those are the main...

SPEAKER_00Good question. I think that's the main... That's where I usually like to hang out. It's like the happy places, you know, like the AI community, like where I... When I get excited about, let's say, K3, that's where I would read about it and chime in, basically.

SPEAKER_01Awesome.

SPEAKER_00I'm always thinking about it, like, where are... Because I think each other also has a different kind of... Perspective, which is also always interesting. Twitter is very fast-paced. On LinkedIn, you have really... I always get really good questions from people. Things like, oh yeah, I should explain that or I should mention that. And Substack is, in my case, people who kind of already are very deep into things. I mean, of course, Twitter and LinkedIn too, but it's more verbose in that sense.

SPEAKER_00So it's almost like from quick to quick. More detailed to very detailed. I don't know if that makes sense, but yeah.

SPEAKER_01It makes perfect sense. And I do, I have one final question for you. We've covered so much ground, but if you were to take Let's say giving builders, people working with LLMs and agents, one piece of advice.

SPEAKER_00Yeah, I think I try to do this to myself in a sense. It's like a mantra almost like where, yeah, it's not running away. It's like, it's kind of, it's really cheesy, but it's a marathon, not a race or not a sprint where, to be honest with you, there are so many always new things coming out. And I think there's no rush. Right. I mean, for some people there is because it's like a work deadline, but I do think, or if you are a frontier lab,

SPEAKER_00of course you have to release the next model, but just for keeping up, I do think it's more like a long-term schedule. Because, yeah, you may even skip certain things, architecture. You don't have to learn about each architecture because some are more important than others. I think what just makes sense is to kind of like the building blocks, focusing on those and trying not to get overwhelmed is I think just to make it healthy and long-term successful, like to not overdo it in a sense, yeah.

SPEAKER_00Yeah.

SPEAKER_01I couldn't agree more. And I do compare it. So I ocean swim a lot, even through winter at the moment. And I compare it to it. The waves can be pretty wild, right? And sometimes in terms of not being overwhelmed, sometimes you just got to let it wash over you as well and do what you can because it just keeps on coming. I do want to point out, though. I totally agree with you, and I try to practice that philosophy myself, but Kimmy K3 released its weights today, and you've already published... Yeah, this is what

SPEAKER_00I was saying. I'm not always... This is 100% where I felt like, ideally, this would be something I would sit down and do in a few days, you know, but like, I... I wanted to do this for the podcast in a sense like, oh, let's just have something to talk about. But here, see, it wasn't as hard because there was already a chemilinear. And it's like things built on each other. And so if you follow the more like the building block things, yeah, it goes a long way.

SPEAKER_00You are not starting from the ground up, for example. So for example, in that case, There was a lot of cool new stuff, but it is already all very familiar, if that makes sense. It was put together differently. But of course, there is a lot of detail in the report. It's, I think, 50 pages of formulas and everything where... That can be overwhelming, but if you get the big picture itself, it's not overwhelming, if that makes sense. It's building on other things that you've already seen.

SPEAKER_00For example, the multi-latent attention might be overwhelming, but it is essentially from DeepSig version 3, which is a long time ago. And then in that case, it's not that overwhelming anymore because it's, oh, this is a component from back then.

SPEAKER_01And I love that this brings us kind of full circle to what we talked about earlier. If you really want to understand Kimmy K3, of course, you can go and look at the most recent techniques that have been used. But if you want to go back and start with GPT-2 and then go through Sebastian's architectural diagrams and everything he's written to build these things out completely. And of course, that involves checking out Build a Reasoning Model from scratch as well. So congratulations once again, Sebastian.

SPEAKER_00Oh, thank you. Yeah, it was a lot of fun. Yeah, it was like one of the big projects. So I thank you for, you know, I hope you like it also. Yeah.

SPEAKER_01Oh, absolutely.

SPEAKER_00I'm still processing that this is done. I mean, I just got the copies like one and a half weeks back and I'm still like, wow, I actually did this. Yeah.

SPEAKER_01What a beautiful moment. Awesome. Well, I'd just like to thank everyone for joining. All the great questions. We've had over 100 people join throughout and many more will watch it afterwards. So I appreciate everyone joining in real time and always love our

SPEAKER_00conversations.

SPEAKER_01Sebastian, so thank you for your time and expertise, Sebastian.

SPEAKER_00Yeah, and thank you again for having me. Usually the saying goes, all good things go in threes, but we should probably do it with fives now, right? I think so, right? Yeah.

SPEAKER_01Beautiful. And everyone, if you're still watching, please do share it with a friend as well. That's the best way you can support the podcast. And we'll see you in the next episode. And scene.

SPEAKER_00Thanks for tuning in, everybody.

SPEAKER_01And thanks for sticking around until the end of the episode. I would honestly love to hear from you about what resonates with you in the show, what doesn't and anybody you'd like to hear me speak with along with topics you'd like to hear more about. The best way to let me know is currently on LinkedIn and I'll put my profile in the show notes. Thanks once again and see you in the next episode.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. The Science and Engineering of Agent Work

    Oct 12, 20262 hr 22 minAudio

    Hilary Mason, CEO of Hidden Door, works with agents across software development and creative projects. Drawing on Richard Hamming’s distinction between science and engineering, she describes agents as “bringing the...

    Credit the people on this episode

  2. The State of Agentic Data Science

    Oct 5, 202659 minAudio

    Agents can write the code, run the analysis, and produce a convincing explanation. How do you check that they’ve answered the right question, used the data appropriately, and reached a conclusion you can act on? I...

    Credit the people on this episode

  3. How to Build a Coding Agent with Nico (Amp Code)

    Sep 15, 20261 hr 53 minAudio

    “It’s an LLM, a loop, and enough tokens.” - Nicolay Gerold, Amp Code So why does a coding agent forget your instructions, keep reading tiny pieces of a file, or struggle with an edit another model handles easily?...

    Credit the people on this episode

  4. The Rise of the AI Scientist

    Sep 4, 20261 hr 11 minAudio

    “If you feel that a product is hard to eval, or you feel like, ‘I don’t even know how to eval this,’ it’s a strong smell that your product isn’t good.” - Hamel Husain, on AI product design An AI data agent tells you...

    Credit the people on this episode

  5. Four Months Inside a Production AI Agent: What Real Users Changed

    Jul 25, 20261 hr 5 minAudio

    When ML/AI Engineer William Horton last joined me, Maven Assistant had reached its first external users the day before. The healthcare AI agent was available to 20 percent of Maven Clinic’s users, and the team had...

    Credit the people on this episode