Skip to content
The Inference Engineering Masterclass — Philip Kiely & Ali Taha, Baseten episode artwork

Aug 3, 2026 1 hr 41 min

The Inference Engineering Masterclass — Philip Kiely & Ali Taha, Baseten

from Latent Space: The AI Engineer Podcast Hosted by Latent.Space

Watch the full episode on YouTube: We first covered Baseten last year when DeepSeek mania was at peak hype. Now they have raised a monster $13B round and become one of the new cohort of AI Infra decacorns that are (with Nvidia, Intel, and the semis com...

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

The Inference Engineering Masterclass — Philip Kiely & Ali Taha, Baseten

0:00 1:41:28
of matches

Transcript Auto-generated, may contain errors

Okay, we're here in this video with Philip, a friend from, from, uh, inference engineering, the book as well as base 10 and, uh, everything that you've done, you and I have done before. So I was, Ali, welcome. What a little intern. What a little intern. How did you get?

What a little intern is a handle. I know I think the rebranding happened like mid-March when I saw it was open. I was like, I have to take it. Oh, for God's. The problem is that Ali is really good at his job and is not going to be an intern much longer.

So we have to figure out, you know, who's going to get the handle of us the torch over time. Oh, okay. It can be like, you just pass it to another Waterloo grad. Another wall to enter. Enter.

You should also do like a big graduation ceremony where you choose to handle. Just so. I mean, you guys are good at ceremonies. Clearly, you know, we had a nice, a large other book, very successful. But before we get into all that, I'll start off with a fun question for you.

Okay. Your expert inference engineer, what happens when I send a long query, say 200,000 tokens into base 10s inference. What's the process of query through GPU model, routing, balancing, all that? What is all the stuff that we don't think about? With a long query specifically, the first thing that I'm going to ask is, have you sent me this query before or at least part of it?

I really hope you have because it's going to be a lot easier for me and a lot cheaper for you. So the first thing that we're going to look at is some kind of cash withoutting where we're going to see. We probably have a number of instances, a number of replicas up, serving whatever model you're hitting. We want to send this one to something with number one available pre-fill workers and number two ideally some cached input already there. So that we can skip pre-fill on at least part of these 200,000 tokens.

If you're doing 200,000 tokens, it's probably coding or a multi-tone agent or something where you would expect to have that cached. If you don't, we're going to have to send it to a pre-fill worker. We've at least on certain models, disaggregated pre-fill and decode. So you're going to have one set of GPUs that's solely going to process the input, create that KV cache and get you your first token. And then that's going to be passed over to a separate set of GPUs, which is going to run decode.

We're going to iteratively make those tokens. We're probably going to have some kind of speculative model in front of that. I'm going to assume that you're doing coding. And because of that, our speculative model, which assumes you're doing coding, is going to have a high draft token acceptance rate. If I'm wrong and you're asking me to summarize every Harry Potter book, it's going to be slower.

And then we stream that output to you and account for it, charge you, you know, some number of couple of pennies and say, hey, would you like to send another one? Except these tenders in church by pennies. Well, yeah, we charge. I'm assuming that we're talking about the public model APIs. If you are setting up a dedicated deployment, then, yeah, it's not pennies.

Yeah. I mean, one of the key differentiators when I was talking with B-sen initially was that actually people who want a very, very high volume just need to rent by the box. Because then they start to either figure out how to set you at the box. Unrofting the not is like way cheaper. If you're pushing like millions of tokens per hour, if you just paper out and sort of paper's open.

Yeah, they do. I think that we've increasingly seen a lot of demand for the sort of paper token APIs just because everyone wants to try open models. And then once they find a use case that's really sticky, then they move out to dedicated. They're a best practice on when it's time to swap over. Couple of reasons.

Yeah, well, I believe that's a big one, right? Like they have a very specific use case. They want you to train something specifically for them. Like they want their own spec, like, for instance, for their own traffic. Spectacular, speculatically.

Spectacular, yeah, yeah. Sorry. Basically, if you have a huge model, right? And so the model is going to be generating one token at a time, every single turn, every single forward pass. So we attach this little kind of parasite, this layer that goes on top of the model.

And this model just has to predict it does three very fast, ultra aggressive forward passes. And then you do one forward stage over the entire original model in order to see if those predictions were correct or not. And then you accept them, which you reject them. Now this draft model is traffic specific. So if you like, like, you know, folks, if you're summarizing Harry Potter books, I can train it exclusively that draft model on Harry Potter books.

And I can guarantee you that I'm going to accept the three tokens every single time. And so with that case, I increased your deco speed. I wouldn't be able to provide this to you if you want to share that point. Because I have no idea if you're doing Harry Potter, if you're doing English, like, you don't know. Also, there's a thing in the book that mentioned that they really cared about specific threshold, which I think.

Do you remember that? Yeah, the things that you can do is you can set, you know, a specific, like, batch sizing, a specific, like, parallelism strategy. If you're trying to optimize for, like, throughput versus latency, you can, you know, maybe a NVFP full of quant doesn't pass you benchmarks. And you want to model it higher precision. You can do that.

There's just a bunch of reasons why you might want to have your own endpoint. And the biggest one, of course, just being like, you don't have to deal with someone else doing 100 million of tokens of benchmarking traffic at the end point when you happen to be trying to serve your users. Yeah. I think one thing that is that is a classic journey. You know, it's basically people was asking the what happens when you type Google into the browser.

Two calling is that just, you know, you're generating JSON or is there more complication beyond that? Certain customers that we have, they have their own post-trained models. And so they demand two calling that's not just like, you know, porcelain or, you know, go find the weather. It's something that's very specific. And you have to do post-training on this.

And if the post-training on the model is not good or the quantization after the post-training to get the inference to be fast, the model will struggle reading the JSON file and reading the two calling. But it doesn't trick, it doesn't trick wire its own, like, sandbox. It's not like it's going to use that two calling to, like, escape a sandbox or like, it doesn't have to be contained. It can just be a normal dedicated deployment. The challenge with two calling more and more seems to be that the companies want certain to calling, which is a very sensitive thing to train.

And because you're dealing with all of the JSON outputs, if it doesn't, like, close the end of their question in a very certain manner, you end up with a model that did the tool calling, like, the thinking. And so as a result, it didn't see the result and just how we've seen it as a default. That seems to be the most challenging thing with two calling. Not to be the sandbox as well. Yeah, that's a challenge on the training side.

And then on the inference side, there's work that you can do to scope the possible output. So we published this actually at this point close to two years ago, the solution to this problem, which is you basically make a state machine and you use that to constrain the output to a specific format. So this is the structured output problem. If you remember back in, yeah, the specific grammar is, yeah. Did you know I had this thing?

Yeah. So it's like the old school, like, make sure this is only JSON return only JSON on my grammar. Yeah. It's going to be an F grammar. At some point, opening, I released a thing that was like, yeah, if you want to constrain your output, write B and F grammar back as normal.

In our inference system, it's just a specified output format. And you get the guarantee that your output is going to be structured along that format. And so applying that to tool calls can help cut down on. Obviously, you can still call the long tool or call no tool. It doesn't solve the certainty problem, but it at least solves the output structuring problem with the tool calls.

And NCP is just another form of tool, right? Yeah. Exactly. No special thing there. The thing I'm always explaining to people is the LM is actually not capable of doing anything.

It's only capable of making suggestions of what to do. And then if those suggestions are formatted in a certain way and applied to a system that knows what to do with them, then an action occurs. Yeah. Part of the fun stuff is this is solved outside of tool calling to, like in an agent, if the output is not correct or you're right, like reasoning, tool calling was done in the reasoning style. Just like, oh, I don't know what to do.

Let me just try again. It might get there after a few tries. And on your point of training, sometimes this is harder in smaller models. So do you don't have the same exact quality output when you just swap from big model? Yeah.

I will say that before we, I think we need to go back to inference engineering from it. But I had expected that something would replace JSON because it's hard to stream JSON, because JSON must be completely massive open-inkles brackets and everything. So it's hard to parse something or validate something while it's being streamed. So people invented all sorts of things that are, I forget the name of some of these alternatives, but it's basically something like, oh, something like, yeah, Mo, but JSON seems to be dominant too. The JSON output's not that long, right?

I guess you could have a long, because tool calls also contain the arguments in them and perhaps for certain tool, you might pass a very long argument. But my impression of the sort of median tool call is that it's a relatively small number of tokens, right? So I would expect that speculators are generally fairly good at something as formatted as JSON. And so you would have a pretty fast decode step there and that the streaming wouldn't be as valuable. I can't really respond to that.

The model is going to integrate with the software is both with JSON for the tool calls or the company that your customer says that this is how our software works and their tools are interface with JSON. You can ask them to change their software and say, okay, this is going to be better for the model. But the web training shouldn't be that much of a difference. Also more profitable if it outputs more tokens forward. It depends on your business model.

It really depends. But I will say that as a writer with a generated output, I do try to move from text to JSON text, which is very long JSON, right? Like there's paragraphs in every field because I'm trying to structure it. I want you to first make factual statements and make opinions, then make bullet points on arrays, have dates, have entity references, have your sources for references, all these things. Anyway, so these are things that I think people who really, really experiment with your software output have to really care about.

But let's sort of recurse up the stack a little bit. Before we started recording, you mentioned something which is really cool, which is that there's a lot of engineering that goes on when a new model provider releases a new model. So let's call it GLF 5.2, KIMI-K3. I had previously assumed, especially if it's like, well, GLM5 to 5.1 to 5.2, you know that you've supported them before. Is it that much work?

It's a lot of work. Okay, so a lot of people, all you guys, right, whenever a new model, people rush to say, like, oh, how can you face support this? Firework support, space, space, and support this? No, yeah, support it. But what goes into that?

I think it's more than just supported too, right? It benefits the consumer a lot. Like I think it was with KIMI-K2.5 or GLM5 to the latest. There was sort of an inference war, right? X providers at 90 tokens a second.

The next day we're at 150. I'm going to kick that off with the GLM5 to I want to call about, it got like half a million views. Vist them to number one. Yeah. With the whole.

Got everyone really excited about, hey, how can we, you know, bet tracks a little bit further and there's a difference between support the model as in like, I can make a token out of this model and support a model as in I have a production ready API from this model. Getting to the point of I can make a token out of this model is not that hard because generally the open source, inference engines, your VLMs, SG-Langs of the world, oftentimes even receive weights ahead of time maintainers do or the people making the model merge PRs to ensure support. So you generally can, you know, just kind of get it booking on the standard open source stack without too much pain in most cases.

The challenge is, you know, every influence company is going to have own proprietary stack, you know, some open source components, some in-house stuff. And for any arbitrary model, there's going to be some new stuff. Sometimes you get lucky, like K25 to 26 was like pretty, pretty similar. Yeah, sure. Continue post-training.

Yeah, quickly. Even in those cases, there's still stuff you have to do. You have to redo the quantization work. You're taking the model from generally these models are not released in NVF before and we want them to be in NVF before for maximum black work compatibility. So we have to perform that quantization and, you know, calibrate the quantization to make sure that we're not causing any kind of regression in the models intelligence.

And then we also have to train the speculator, as we've talked about. Generally, we have, obviously we have ZDR0 data attention on our model API. So we don't know exactly the traffic that people are sending us, but we know what's popular. We know that coding use cases are popular. We know that agents are agent use cases are popular.

So we can get public data sets that are representative of that kind of traffic and train general speculators. Now with speculators today, you need to train the speculator using the base model itself, because you're getting hidden states out of the model, fun, money, influence on these specific props. And that is the training data you use to create the speculator. So there was that process which you need the wheel model waits for. And then there was of course just the process of, you know, standing up all the infrastructure behind it, loading all the stuff in, testing it.

And then when there's a new model with a new architecture, I think that like, obviously the deep-seak models tend to be the most challenging as they have like the most novel architectural stuff going on, a model of a model. But every new model has something. I mean, Kimi K2 had, sorry, GLM52 had the DSA, which is from DeepSeak. Yeah, yeah. And, you know, we can copy base and do it.

We had to like build support for that into our runtime. And anyway, like, it actually is really interesting the way that all of these open-source labs follow from each other. For example, like GLM5.2 doesn't have vision. So something that Hayley, a guy on our team, if we could take a look at this, he like kind of grafted the Kimi vision encoder onto GLM5.2. We'll be training the projector.

Exactly. So if you think about like the encoder, there's the encoder which is the part that looks at the image and turns it into latent information. And then there's the projector, which kind of like the space is okay. And then there's the projector that maps it onto the model itself. And then there's the model weights.

You don't want to mess with the model weights because you want a chance of making the model demo something else for the purpose of giving it vision. So instead, Hayley started with just a projector, which is only a handful of millions of four animals. Yeah. And can you show the training room? Like the way it works is maybe you should take it from here.

You can see like he, the way he trains this is really, really cool. The beginning he was training it just like here's a picture of a mountain. Can you describe what's in this mountain? And that calls it just like the first learning walls. Like here, you can see this over time to teach it is to translate the encoded, like it's already taken the encoder from Kimi K8.

It's taken the image. Yeah, frozen frozen frozen. So the understanding the brain is frozen and the eyes are frozen. It's just we're trying to try to line it between the brain. So the projector.

And so you take the tokens and he's like, oh, can you describe what's in this image? And it's like, oh, it's it's a mountain or it's a person or it's a human, whatever the case is. But that didn't cause complete understanding. So he changed it such that every image was associated with the data set of questions. Like does this image have a white nail?

Does this image have birds in the top corner? Does this image have a scientist in it? All that stuff. I don't have to answer questions correctly. And using not just training on describing an image, but being able to answer question, answer question, answer, question, over time.

Like you can see the groking, which is like genuinely insane that retrofitting vision into a large L.M. can learn to that extent. And even for images that doesn't perform well, and for instance, if you ask a picture of Stephen Hawking, who is this, maybe it doesn't get it, but it will say something like this is Albert Einstein. Like it still understands it's a scientist who is a man who has done something actually with all that stuff. So that's like really, really cool.

Yeah. So we've covered how the end before who was the author of the lava paper that did this a while ago. And I think that that's very foundational work for anyone who hasn't done vision work before. Same with the clip and meta clip where you go from just captioning to building out questions about the image and how much better you can you perform it? Yeah.

But what's so exciting about this is if you look at a model like this, now obviously this is a little bit more of a research project. It's not, you know, it got to 56% on MMLEU, I think. So not quite fun to you. But if you're running this model, you haven't suffered any loss on your JLM 5.2 quality. If you don't have an image, it'll just behave exactly the way it used to.

And ultimately, in the inference code, you literally do not include the other part, right? Yeah. I mean, you would just skip the encodal if you don't have an image input. Okay. Just confirm it.

Yeah. A lot on the overall inference either. You're not adding much or adding a very small vision encoder. These are typically like less than a billion. Yeah.

I mean, there's a little bit less standardization among vision encodals. So the sort of support matrix can be a little bit spousal. But overall, yeah, it's a pretty minor component of the overall system. And ultimately, what you get out of the system is all of a sudden you have KimiVision, GLM weights and Deepsea Attention, all in one model. And that's, I think, a lot of the power and beauty of open source is that you can take all of these different components and combine them together into a system that's better than anyone can be individually.

People used to say that you would also do Franklin merges where you would take like layers from each model. No, does anyone do that anymore? To your point previously when you were mentioning like the work that goes into supporting a model when it first comes up, like general factor or main max and three or whatever the case is, sometimes you do have to switch out something. For instance, the main max and three head uses full attention. And with full attention, you end up with this like insane balls and like inspect it because you're doing auto aggressive token generation for three tokens.

And you're doing this like O and squared over all of the tokens that are in your sequence. Your KV cache is like very large because it's not sparse. It's not okay. So we find it better to like, okay, we're going to replace this layer with a layer from another model that's using like GQA for instance. And then just with the right training, you can get it to have the same acceptance rate.

So it is very possible to retrofit layers from other models and very much needed actually if the layer is like inefficient, the training just becomes the challenge. Like how do you ensure that you train properly, which again, to earlier point is like the mesh between training and inference as in like you need very good training in order to do fast inference. That's like I feel like more and more becoming true. Yeah. Anything else on the support side when you say like get it to fully production ready?

Yeah. I think that there's also a question of just, you know, we can test a model to a pretty extensive degree, but we're trying to get it out quickly. And then you see a bunch of other people tested and you get interesting results. There was an issue with GLM briefly where we had some like mode collapses where we just output the same token over and over again for certain farms on certain temperatures. Like once you expose an endpoint to the real world, there's going to be, you know, so many more varieties of things given to it that you're able to, you know, discover and patch things.

So it's not just a, you know, day zero process. It's then like for the first week, for the first month, if a model remains popular, like how do you both fix bugs and then continue to push the envelope on performance? What do you mean you don't want to model opening SSSS? Is there loop detection on that stuff? It happens quite a lot, which is surprising.

We have like in our end point, like if a model was output the same exact token, like four plus times, we just call it the generation, we say, oh, sorry, this is like try again, or like you'll read with the request. Because we know then like if it's four times the same token, it's probably collapsed. Yeah. Is there a way to opt out in case I really actually want that? You're actually.

I think there's a way that we have time. I feel like in certain models, like when they output something like, you can imagine a table for instance, so they want to go like 12 dashes and 12 dashes. Yeah, I think there's a way for that to happen. I think we only do it on certain tokens, like we exclude certain special characters. Yeah.

So like S is the most common almost. Do you like to? Oh, and I think it was. Did you guess before as well? Like you just have like looping issues where like, yeah, it is special.

Especially special. Yes. No, just a few. It seems to be the one token. Yeah.

And it's only temperature zero or even it. No, no, no, no, no, no, no, no, no, no, no. Not in order. It's an inference problem. It's like a software called like oftentimes the image you're on, like a video always an image for instance, and if we will upstream the changes from their latest airl M image into our stack, we'll find that it fixes it or oftentimes this will only happen in an inference engine that you're using as your line.

But if you were to switch to the alarm, that isn't the case. So it seems to be like an extremely non-deterministic kind of software issue on a really model issue. It's not like a weights problem. Like I'll be able to say the goal is probably with the quantity, we did P to Q wrong. Right.

But that isn't, that's the exact way it's used with a different inference engine does not repeat the problem. And sometimes it's the kernels that are being used in the backend have like these very subtle sometimes raised conditions where if you were to use this model hosted on one cluster, you will never get the problem. Oh my God. You host it on a different cluster. You will.

And the reason is the KV cache transfer from a node to node in that one cluster is using a slower node than the node to node in another cluster. So that exposes the race. Whereas another cluster doesn't. So then you end up just like, okay, this model is not going to be hosted on this cluster. We're going to host it on another cluster because that cluster is the problem.

But then it ends up like, okay, is it the software? Is it the model weights or is it the hardware? There is a thing about this with temperature zero still not being deterministic, right? So because of hardware, even at temperature zero, same model you won't always get the same output. Even, but I'm surprised by the race condition one because I thought PyTorch was a graph that guarantees that you had these, you know, execute things in the right order.

I guess I guess I'm not saying that this was, I guess, well, you have things like these all the way up to the right order. You can start a kernel before the end of the previous kernel. And that's like, you want to do that. Exactly. But you don't do it cleanly.

You overlap a little bit of execution. No, I guess it is very possible that the kernel itself, like that one block that is supposed to be running in this instance of time, that kernel itself has a race condition for instance, like I'm missing very often if you're designing a kernel, you want to be very fast. If you don't test it extensively, you'll have certain threads access data points from registers before they've been written to by other threads because your bear is wrong or your synchronization is wrong. But yeah, like the testing itself is very, very difficult. And there's like a borrow checker for rust.

Like rust. If you're trying to have memory safety, it sounds like a comparable problem. Well, yes, but you're working with code on embedded GPUs. Like you just need high level language. It's like, maybe that's what I'm supposed to do.

I don't know. How do you see keeping quality of the model? So you talked about all these steps of, okay, you got to do quantization train your own speculative decoder, run on different hardware. Looking at other model providers, okay, you kicked off an inference speed race on the consumer and what goes into keeping quality the same across them, right? Sure, you can run benchmarks, but like, how do you determine how much quantization are the standards?

Well, it actually goes into, there's a few things on quality. Most inference optimizations are lossless, KV caching, for example. You are just recomputing or preventing recomputing the same values. Speculation, of course, if a draft token is wrong, it gets rejected. The main lossy optimization is quantization.

And that really comes down to number one, data format, number two, which part of the model you choose to quantize, which layers, and number three, like doing a lot of calibration on the quantized weights to ensure that you're sort of preserving all the outliers. There's other sort of tricks that you can do, though. A big one is long context, because one thing you asked at the beginning is, what's going to happen if I send a 200,000 token request in? So obviously with a long input sequence, you need to store a lot more information, you need to process a lot more tokens. And so even if a model has a context of a certain length, you might, as an inference writer, choose to build an API with a shorter context length, and of course a full length one as well, because if someone doesn't need the full million token context, for example, you can get them better performance.

I don't know if that's exactly like quality of the model. The way that I think about quality is, to what degree will we faithfully serving the original model, if you think of a sort of golden implementation of a model that performs exactly the way the model is designed to perform, I think of quality as how close are we getting to that 100% fidelity of the model? You can also, of course, think about quality from the training side and how do you push yourself past 100%, but when I think about purely inference optimizations, it's getting faster while staying as close to that 100% fidelity mark as possible, and certainly our standard internally is that you should not be able to tell the difference between our API and a sort of official API.

I think Kimmy in particular does a good job of vendor benchmarking here. Yes, it may be the most natural thing. Exactly. Because you're accused of some people, Amazon, the other provider that was not doing it very well on Kimmy's. Yeah, so I would reflect on the whole time ago, right?

No, like three months ago, they also happened with, I don't remember which model, but they pulled out quite a few and then they started out a whole chart about this. You need vendor verifier. Yeah. Because you need to press right, like if you're like a common consumer and I'm using Amazon's endpoints, for instance, and I'm using this as bad. I'm not going to say Amazon quantized the model in a bad way.

I'm going to say, okay, so it seems like that. Yeah, take care. Justifiably. Yeah, it's fun. This is probably a stupid question, but just checking, has anything improved from being quantization?

Is quantization always strictly worse? Well, it's a lossy. It's a lossy implementation. It's made in proofs. It's made in proofs.

It's obviously not right. I'm always looking for an inverse scaling loss. It's something I learned from no more on where things that normally act in one direction sometimes do. Well, technically when you run a benchmark because these models are non-automatomatistic, sometimes you have to be full quantized like two basis points higher than yours. Exactly.

That's why I always say within margin of ammo. I actually stop saying that because everyone assumes that what I mean is well within some margin of ammo will barely inside of that to the lowest. So we're saying, yeah, sometimes it just like gives you a high output score. But like Ellie said, that's noise. To my knowledge, you're not necessarily making the results better.

You're just trying to again, like keep your fidelity as close to 100% to the original model. There is two points research that we did on a few are able to pull a tweet. One of our research interns, Joshua, I think it's a tweet on how we have 20% better quantized JLn talk to you than the video. Essentially, what we found throughout this two-month research is quantization is a loss. You're compressing the data from occupying 16 bits to occupying four bits, for instance.

So you're obviously losing some information and you're trying to minimize that. And so when I say that I'm going to quantize the model, my job becomes how do I find the layers that I can quantize and how to find the layers? So not for instance, with image models, I don't quantize modulation layers and I don't quantize out projections because those two are like out projections. What you see as the user, modulation is what the model sees or understands. Exactly.

And so I guess to his paper, do you have the, I guess doesn't have the, yeah, it's a long paper. I don't know if I can find it. If there's a part to search or it's probably in the thread. Yeah. But basically the long, the short is it is very possible that quantizing more of the model makes the results, like if I have a model that I quantize layers, one, five and ten, and another model where I only quantize layers one and two.

It is possible that the model in which I quantize more information is going to perform better because the quantization errors have canceled out. And so what Joshua showed in his mathematical proof where he had a bare-fire in is that you can predict which layers are going to have quantization errors that will cancel out with each other and you choose to quantize those layers. And so the result of doing this mathematical quantization is you end up with a model that's 20% more quantized than another provider. So you got 20% more throughput all that because there's more layers that running on before. So the quality is better than the other quant because the layers that you chose to quantize have the errors cancel out like one layer, scoot to the right, one layer, scoot to the left, one layer, scoot to the right.

Your final logistic distribution is more similar to the original distribution of the models you have better fidelity. And so the way we prove this was with KL version, instead of just scoring on the benchmarks, we scored the KL version between the logistic distribution of the quantized model and the logistic distribution of the original full precision model. And we show that with this technique we get, if you're, you know, if you're progressing on the logistic distribution of the logistic one, select is more of the same as the original model, you're probably going to end up staying true to the original model. So it seems like previously before this, it seemed like the end of the model you quantized the model was just to be, because the more loss you're introduced, that's not exactly not necessarily true. So it doesn't prove it, but cancel.

I think it might be this, but it reminds me a good bit about pruning actually, where you can print off certain layers. But very interesting didn't know this was a whole paper history. It was a fact, it was a 72 pages, and then we decided we can't solve. So it's not 45. Still, still 30 pages.

Very substantive. We talked about you've got all these things and what's possible with the speed up, I guess it's like probably like the number one thing that people do want to care about and it's something that you wrote about in your post. Like official API 70 tokens per second and you push it up to 90, is that like a normal thing. So what's cool about working at Infant, the reason that I think Infant is going to be a useful place to do engineering for a long time, is that if you look at highly optimized domains, like say finance, if you're in finance, you measure how much better you got in basis points. It's like, oh, I got five basis points better, like 120th to 1% better. That's huge news,

because everything is so optimized. When we publish optimizations, it's 20%. It's 100%. So there's still probably like a lot further to go, honestly. You'll know that Infant is pretty much solved when researchers start publishing about how they got 1% faster at something.

Which, by the way, because I am from the finance background, in the 70s, that was the margin at the time. When you did quantitative finance research, you would find... And look at 20%. Yes. Yes.

And that was tiny. For those people, I just say, look up Andrew Lowe's paper. He had a really interesting illustration, a quant distribution narrowing down from those kinds of 20% differences in the 70s down to nothing today, which is very cool. Exactly. And what the beginning of the same type of thing...

Now, benchmarking is hard. I think anyone will tell you that. And benchmarking provider speeds is hard because there's so many variables that go into it. What hardware are you using? How much load do you have on the system? What's the exact nature of the prompts and input and output

sequence links, all that kind of stuff? But overall, when you start stacking these improvements, you're looking at multiples. You can look at it. The most common form, of course, is TPS tokens per second, which is bad naming by us in the industry, because there's actually two tokens per second. There's tokens per second, the throughput number and the latency number.

Total tokens per second out of the GPU as a throughput number. Most people only care about tokens per second as the latency number, which we should call ITL. It's a token latency, but we don't. Anyway, so you can imagine a sort of standard API without many optimizations for one trillion parameter model operating somewhere in the 30 to 50 tokens per second range for a reasonable traffic profile. And we generally see the goal of pushing to 10x that. But not necessarily day zero,

but by stacking enough optimizations, if you have, say, four optimizations, each of which doubles performance, or three optimizations, each of which doubles performance, then you stack that up. That's an 8x gain. That's kind of the order of magnitude that we're working with in this space. We're trying to make things substantially faster, not just over 70 to 90. Are you saying you have that? So let's say you have, as a reasonable baseline, 30 or 40 tokens per second, you can achieve 10x

that. So on GLM 5.2, if you want to get unquantized, perhaps on Hoppos even, and you're just using an off-the-shelf inference engine with no particular optimizations, no speculator, nothing extra around like KV routing, no disaggregation. You're probably looking at that 30 to 40. You think that's a reasonable baseline. To get to something like 10x, there's a lot of trade-offs that you're making. If we're

running at sort of more like a 300, 400 tokens per second range, obviously you are using the best hardware possible. You have a optimized speculator. You have done all of your quantization work. You are seeing a pretty high cache rate. You are running with a reasonably small batch size and a parallelism configuration that is tuned for latency versus throughput, but it is possible. So the spreads that

you see if you go on artificial analysis or you go on open router and you look at the worst provider to the best provider, oftentimes can hit that kind of range. 10x is of course really aggressive. It's oftentimes maybe more of a four to six times improvement, but that's the kind of performance that makes us really excited is when we can get these huge gains, not just go from 70 to 90 tokens. It's also like a root amount. If you obviously have a thing where you're starting to get on just an 8100 and then you throw in the model, you're sure the model goes like four nodes of B200s.

You can definitely increase the speed with just throwing more hard about it. Like normalizing for the same exact order and the same number of GPUs. Yeah, then you're looking at a two to four x, depending on the influence optimizations. So, yeah, some of it's what's the column and some of it's who's the driver. If you break down the two to four x, say the example is run GLM 521 B200s, single node, right?

What's the cost trade off for effort to get the last bit of juice out versus what do people just think of, right? Spectacular quantization. That's like 95%. And how far does that get you? And how easy is that for the average person to do?

So say right now, I want to throw the weights of GLM 521 and node of B200s. How easy is it to find a speculative decoder model or a quality quantized model? How much work goes into it? If you're doing it up front, it's quite a lot of work. If you're doing it today, there's going to be people who have published things that you can just grab some NVF before weights. You can grab a speculator. Yeah, if we're thinking about what are the two

Xs we're stacking, going from VF16 to NVF before is it's not quite a 2x, right? It's like, I think it's about like 30 to 40% from 16 to 8%, and then another 30 to 40% multiplied from 8 to 40. So that doesn't quite get you a 2x, but roughly a 2x. Speculator, roughly a 2x. Disag on top of that if you're able to get enough hardware and put enough traffic through it. Another roughly a 2x. And then you add in some double digit

percent increase from having just a better run time with the latest kernels and stuff behind it. And that's how it stacks up. So building each of those, building the quantized weights is, for someone who really knows what they're doing, hours to days of work, building the speculator, again, hours to days of work, and the Disag set up hours to days. Well, okay. What's happening?

Yeah, getting disagwoking for the first time, I'm saying, of course, is very difficult. But the the marginal implementation is, if you're just grabbing, like, if you're a person, like just a normal consumer who has active, so like a node of V2, hundreds and one, how can I just host it myself? You don't need to quantize them all yourself. There's always going to be like an open source, one-time check, one-time video, so you're not going to push one out if no one else knows. Usually the providers will have their own spec like the fifth chain as well. You don't need to train your own spec like you can just use

that as well. Yeah, like, Kimmy, GLM52 has its own MTP. Right. Right. Multitook and prediction.

For you, in case I get it wrong, you know? Yeah, actually, you should correct it for wrong, but their multi-took and prediction can be used for self-speculative decoding. I'm not sure. Okay. I'm semi-confident in that.

Yeah, yeah. Someone can check. But, you know, it's useful to paint the story of, okay, not just the average person, but say a company wants to switch from serverless inference to, I want to throw this up on, you know, I want to rent some GPS, throw it up. These are the steps you take to do significantly faster than just put it behind VL. I mean, I was waiting for a mention of Dynamo.

I feel like that's supposed to be the baseline that you measure against. I would think of Dynamo as less of a sort of out-of-box system and more of a toolkit for building with. So when we talk about doing KV AWA routing, when we talk about doing KV off-loading, when we talk about doing PD disaggregation, Dynamo fundamentally is, by the way, Dynamo is an open source library from NVIDIA. We've done that part with KA. Cool.

So then your listeners know then that it supports all the different inference frameworks, and it actually is kind of multi-hardware, which is interesting. But it's just a router. It's not like an optimizer. Yeah. All it does, like what Dynamo is good at, it is a library for moving information around your cluster, around your hardware. So if you have KV cache on one place and you need it to be somewhere

else, Dynamo coordinates Nixl for you to move that around. That doesn't mean that out of the box, you just say, keep installed Dynamo, and then you get a massive performance speed up. It's more of a developer toolkit. It comes with a set of defaults that you can then swap out. It does. If the industry at large, I think, was rolling out all of these deployments

standard, then I think it would be a credible baseline. But we've got a benchmark against what we're seeing in the wild. I did want to talk a little bit more about PD Disag, because that's probably like number three after quantizing speculative decoding. In your book, though, I was just going to pull out the book. Yeah.

Like section 522 on Medusa, 523 on Ego, 524 on- It's 5.5 would be, would be Disagligation. Well, I just wanted to dwell a little bit on the other. So what do you choose to include? What do you choose to not include? Because there was all these other techniques, I guess.

Are these still relevant? Because I think they came out like a year and a half ago, maybe. Medusa is quite old. Medusa is old. Is it in the book as a good baseline?

You should know this. I read the paper and I got it. It makes so much sense. Yeah. So with the book, I had a couple goals. One was to give people just a working vocabulary

for the space as a whole. And the other was to give them some intuition about how each of these techniques works. As I mentioned in my AI Engineer Talk, which is kind of the first public addendum to this, the speculation space has moved much faster than everything else. So even at the time that I wrote the book, Medusa, I very much included as a way for people to understand how the space evolved rather than what the most modern technique is. And now, of course, there's D-Flash, D-Spark, there's new techniques, even then Eagle, although Eagle is still very commonly used.

Spector. Yes. Spectacular specialty coding. What? It's paper butcheredal. It's basically doing speculative decoding.

Oh my god. It's literally just another... It's like, yeah, it's almost a product experiment. And it seems like he got non-trivial speedups there, but it seems that the complexity with training, it's almost like, in our mind at least, it's almost like a very delicate balance. And oftentimes, you... It's just this little bit. It's literally speculative.

It's speculative. It's interesting. I wouldn't even expect it to be very particular to train the naive part of me is like, OK, train, speculative decoding. It makes sense. The whole idea of speculative decoding is like, almost like the iPhone auto product version, which you're generating three tokens and you're like, OK, you pre-fallen them.

And so you saved those three turns for your original model. Now, your speculative decoding is doing three turns of auto-gression. So, why not just have an even smaller model? I guess the other question there is, what are the size of speculators? So, say for GLM?

Right. It's like a billion. A billion parameters. Like from the immaxes, it's... Yeah, it's like one layer. It's like one 60th of the original model.

Yeah. Actually, I think we should do a paper when we get back to the office. Speculative speculator of speculator of speculator. No, it does seem like how... When do you stop?

But then it also seems like kind of... If you're able to train spec spec... For instance, right? If you're able to have a small model that is actually protected, what the intermediate speculator is going to predict, that is able to protect what the original target model is going to protect, then why not just use that smallest model directly? Right? Yeah. This is just an arounding problem.

Right. The thing with speculators is one of the practical constraints on using them is that you do have to run a small model on the same hardware that you're running the big model on. There is a orchestration and resource competition problem inherent in that. And that is one of the constraints on speculation in general, is that draft tokens cost resources to create and cost software complexity to manage. And so, if you have infinitely recursive speculators, you add quite a bit of that complexity on the actual implementation within the inference engine as well, not just in the training process.

I was going to say, I wonder if you could do similar distillation and pruning of... It's the same thing as just a model. Can we not just distill a lot of the way to quantize the speculator, but out of my domain? I guess the question that also comes up is, this is all for big server workloads, right? How much of this applies to... Say I have this MacBook, I want to run

Gemma really efficiently. Similar problems, not the same. Pretty different. I talked to Salo about this on his podcast a couple of weeks ago. The difference between inference engineering for the data center and for production workloads versus inference engineering for local AI is that we start with fundamentally different constraints and different goals. With local AI, it's how do I fit this model onto my hardware

and then make it less dumb? And with data center inference, it's how do I load this model and then make it less slow? And obviously, we care about less dumb and they care about less slow. But the local AI inference engineering ecosystem, I think actually has a lot for us to learn from in the data center space. They are experts in various forms of quantization, including dynamic quantization that we just kind of don't touch in the pruning, in the distillation, in the layout removal. There's... There's no more letters less. Yeah, there's pruning really.

Yeah, but there's just a surprising point. There's just a different thing on the laptop. So yeah, I mean, it's an interesting space. Not necessarily that their techniques make sense for us to do in the data center because obviously we have different resources and different goals, but more that the process as well as the openness of that field is something to admire. Yeah, like to your point, certain optimizations that would, like for instance, turbo-contraver, like I made it a huge type on that. And we did like hold deep dive on to our

notes. What is it? How does it work? Why is it good or not? And it took off and it was implemented on local devices because your memory bandwidth is so slow and like I'm back up for instance.

But try putting the same thing on an NVIDIA JQE, on the B200. Turbo-contra would not be used. NVIDIA made it clear that this is multi-grid optimization. We've seen it first time where the overhead of doing de-quantization quantization quantization in the kernel itself, turbo-contronal, it tends to be much slower than the time that you save from doing the bent because only to 100,000, like 3.5, 30 seconds. You don't need to decrease the storage that much.

You don't need to do F before KV cache. You don't need to do specific monitors. There's better optimizations to be made. But on edge devices, it's extremely important to continue as well. So it seems to be different optimizations there, but then they're all uniquely combined.

You want to optimize the model. You want to be certain common prefixes, both principles. They also do a lot of work on model parallelism, especially over heterogeneous topology, where you have some spokes and they're wired together with Ethernet, DJX-spokes. Yeah, this is the XO Labs test. You have a number of Mac minis stacked up. One thing that I think we both have to deal with,

although they have to deal with a lot more, is the internet connect between machines, which is why one thing that we do a lot is with potential parallelism. And that's where you are using all the late GPUs and sharding the model across it. Tensor parallelism is not a good fit for local AI because it assumes a very high bandwidth. They know it connects to like EnvyLink. They might be forced to do something like pipeline parallelism, which we're never going to do unless we're doing some kind of multi-node info. But since you mentioned it, I actually wasn't sure if we're going to cover it.

But let's briefly, it's a parallelism and expert parallelism. Since you have very nice little book. Yeah, let's finish off. Shout out to Luke from base-tense design team for making these beautiful images. Oh, that's actually before we get into this, just one other difference is we talk a lot about the active parameters of a mixture of X-words model. And for local info, it's

folks that matters a lot because if you have a batch size of one, you're only activating that many parameters. When we go through like a MOE model and we host it for an API, we assume that all parameters are going to be active because you're going to hit everything. Cool. So broadly, tensor parallelism, you can do with any model. Ectropicalism, you can only do with MOE models. Effectively, all models today are MOE models

that are large enough that you would care to parallelize them across multiple GPUs. So that nuances is less important now. With export parallelism, the idea is you put the entire export on a GPU. Generally, you have more experts than GPUs, so you might put like n experts per GPU, like 8 experts per GPU or whatever. And then you replicate the router, which is the router is very small across each of the GPUs. And then by moving the generation

from expert to expert with each expert being inside a GPU, they're not competing for resources. You massively increase the throughput that you're capable of doing. And the GPU to GPU connection is not as important because there's not as much communication. Tensor parallelism requires that you are able to do this like all gather all the juice. So you basically show the model across the GPUs entirely. And then for each step, you're combining the results of

each of the GPUs, which is why the interconnect matters a lot. And it is generally, of course, this is a very high level generalization. There's a lot of places where this is not correct. But generally, TP is helpful for latency. And in many cases, you will use some combination of these two parallelisms across the model rather than just picking one or the other.

You want to add some color though? Like, it's not actually explicit. You have to do extra parallelism and do extra parallelism. Pipeline parallelism, less solely, it seems to be like, we never use because of that. Yeah, the only reason you would have to do pipeline parallelism, which is where you separate different layers and you put half the layers on one hardware and half on another, is if you are forced to do multi-node inference, because a model is bigger than you have that. Let's say you're doing a deployment on H100s for whatever reason, and you're putting a trillion

parameter model on there, you have to use multiple nodes of H100. And so because the interconnect is so slow between the nodes, the only viable way to parallelize there is pipeline. But then you would do export and tensile within each node. And the limiting factor for H100 is HBM. Yeah, they just don't have enough. How much is the matching numbers? We need to, like,

100 is 180 gigabytes per GPU. And then a node of 80 is talking about 80 times 8. And we have before each parameter takes half a byte. So that's 800 gigabytes. On a H100, it's like 140?

It's 80. Yeah. I actually remember H100. Yeah, you also want to talk to me about the T4. Let me tell you what it was like to want to model on a T4 back in the day.

Well, one thing I was surprised to see that more people didn't do Jamba. I don't know if you guys remember Jamba from AI21. They would actually specifically pick a hardware, and then they designed the art dimensions for the hardware, and then it would obviously saturate the hardware. Like, it makes sense. And somehow all these models don't do that.

Don't they do this for the training side, though? I don't know. Training for training. Like, starting with a GPU. Yeah, they do.

And with training, it's more like a math. Like, you know what the math is? It's more of an auto-tune. But like, it's basically like, you define that, oh, I have two GPUs. I can do CP1, CP2, if you want EP2, for instance, right?

And you, so that gives you a little bit of combination. And then you just like, you shadow the same traffic, like real logic, and you just see which configuration gives you the best TPM, TPS, and you just use that. I don't like the fact that it's, you cannot reason about which one's going to give you the best performance, or that there isn't one specific configuration that's always best. But it seems like auto-tune is just the way that you find the best one. And with kernels and JPC kernel, that's not just the same after you design your kernel.

And you design your configuration. How many threads do you want? How many, you know, how much you're going to use? You just auto-tune, you just sweep the parameters based on this one, but they're all just un-taught. There's a few bits of training that are kind of like hardware-tuggeted.

If you look at, for example, NVIDIA Nemo-Tron models, they went very, very well on Blackwell. That's unsurprising. So there's some degree of that, but I think that most open labs are trying to make models that can be run on as wide a hardware as possible, rather than targeting just like a single chip. Nice. For usefulness.

Yeah. Okay, one more thing while this chart is still out. I'll get it already, it's expensive. One of the things that is a movement in Silicon Valley is megacronals, just key-fusing kernels. I don't know. Is it that simple?

Well, I mean, like if you're in a kernel can't save you, like here with the tensor parallelism, the half the matrix is one, GPU, and the other half is another. And if I need the entire matrix in order to do like an non-linear operation in the next step, which is for instance, like if I need the softmax, I need to have the entire row. So I need to know what that partial result was from GPU to, and what the partial result was from GPU in order to be able to do the softmax in the next stage. So I have to make a community with each other, even if I had a few kernel, because of the non-linearities within each one. Also with megacronals, I'm very bearish on all the other things.

Please, please. No, it's just like megacronals. It was a good research direction, and it seems like a very intuitively, theoretically, it's nice. Oh, you have a lot of launch overhead from launch. It's one kernel.

Yeah, just keep using it. Just use everything together. But yeah, but like the kernel complexity itself is very difficult to write a very optimized megacronal. It's very, very difficult to do so. And even the, like not to name any companies, but even the companies that have worked out as people that have spoken to work out companies that do fused megacronals.

They very often don't end up running those in production because the CRCL and modular kernels that will launch are faster because you can optimize each individual component, and you can just have them parallelize with each other. With the Rubens, I don't know if you guys saw the Rubens to repost yesterday, but they're also... Rubens, like, no, no, they have a Twitter account for Rubens only. No, no, no, no. I was like, why are you talking about that?

Sorry. One of the tech leads in video is like launch the Twitter button, like we're pulling the curtain on Rubens, and here's the specs. And then the third to each show, like, don't you have to get to technical into it. I need to read it much more, but the GPU is designed in such a way that it basically kills megacronals. You don't need to use megacronals much anymore.

So it seems like an entire research field goes into like, won't they continue? Yeah. Can I speculate about Rubens for a minute? Please go. Um, you know, I've been through now.

In my way, they are covering the book. Yeah. I have a way for the blog post. Yeah. It's going to happen in the future.

And you even had the name of the one to find me. Yeah. It's like, hey, this is going to be an answer. This is very up to date. I got a future proof this thing, okay?

I don't want to publish a new one until like next year or something. Anyway, so we were discussing the degree to which I am old. And, you know, I've now been through three hardware launch cycles. I've been through the Ampere launch cycle, the Hopper launch cycle, and the Blackwell launch cycle. Now, when I say launch cycle, I don't necessarily mean like, the actual shipping of the hardware.

Like, Ampere was wrapped up well before I got in this industry. But there was a lot of time between hardware being wrapped up and hardware being sort of feasible for inputs. So if you look at like the original VL-LAM and SD-LAM, especially like that was written targeting Ampere and then had to be updated for Hopper, updated for Blackwell. With each of these cycles, it becomes faster and more urgent, but also substantially more complicated. When I look ahead to, you know, what's going to be new with with Lubin, I think that like Dynamo gives me a lot of technical hints.

So I'm like, what kinds of work is going to be very valuable? Obviously, we'll continue in some trends from Blackwell, right? NVF before is big. The amount of compute that they have behind NVF before, Tensor cores is massive. We're going to talk about video, I think, at some point, and that's the big barrier there.

You've got much, much faster memory bandwidth, but which was the same thing that made Blackwell so good. But the big thing is more systems thinking. You have more emphasis on the CPU to GPU interconnect, more emphasis on the interconnect between GPUs. And when you look at Dynamo, it's a system entirely designed around. How do I move the KV cache to where it needs to be, when it needs to get there?

So I think that themes around like KV cache offloading, KV aware routing, and disaggregation are going to be substantially more important in the webinar, which means that inference engineering becomes not just a kudakonal problem, but also a very traditional hardware infrastructure problem, which is something we've been building toward for a long time, and something that's very exciting to me, because we're going to see multiple domains colliding, and the ability to reason from the kernel level up to the hardware level and back down is going to be very valuable. I will take what folks said further back into it. I think trending towards becoming exclusively an infrastructure problem, where the problems of PZ Disact Training Specter, but Troi think kernel is not going to be much of a problem, because the GPU is moving more towards being an ASIC, where you're just trying to orchestrate what happens on the GPU, but you're not actually controlling it, thread by thread level.

And you see this with QTalk, you just working at levels of like tiles of data, but you're no longer working at controlling what each thread does on the GPU, that's being taken care of for you. So I guess, do you agree that a GPU and future GPUs are trending more and more towards becoming ASICs that just need to be launched, and then they do the data operation based on your conversations with other people? Oh, I mean, yeah, no, that is a section of the market, and obviously ASICs can do a lot more performance for only their workload, and the gene GPU makes them continue to be very general. Yeah, I think that there's like a spectrum of graphics, but I keep saying this, I have to correct myself in case you come at me for getting the g-wrong.

Yeah, it's like a spectrum, right? Of a very, very general purpose compute to something like a Talis, where you've got the hardware built for a specific set of models. Very way into the chip. Yeah, no loading. I wouldn't say that that will go all the way there.

It's more like, along the spectrum, it's a step in the direction of more specialization within the hardware. Yeah, I'm curious, I feel like he was driving towards something. I guess my point is, being bearish on, like you say, everything else apart from burning the way it's into the chip. Burning the way it's into the chip is like, because you want to find something you want to optimize, you want to quantify, you want to release new checkpoints to the model, it's burned into the chip, the chip is used on the computer. Right? I guess my point is,

how can you not, like seeing in video more and more specialized, like take its GPUs from a general programming paradigm, or just it's a general computer that you can use to program threads. And with every new generation, you're putting more and more specialized instructions, specialized sensor cores, specialized, you know, your main instructions, things that will allow you to just control it almost as an ASIC, almost as a collection of ASICs. How can you look at the trend and then still be bullish on companies that are coming up with ASICs for AI? Yeah, because they're sort of evolving towards that direction. They're almost evolving towards it, like as an Ruben, I guess, compared to Ampere or, you know, T4, Ruben is basically an ASIC, it is basically just the thing that is, is using the program.

It's like, yeah, like you can program, obviously, like, I guess, like, it's very controversial to what an ASIC is, it is a GPU, it is a, it does have threads, I can't write code out to control within changes operations. But it has the solid grades and sensor cores and TMA's and then TMA's and then TMA's. And it has these things that are almost exclusively useful for loading model weights. It has, you know, sensor core instructions that are almost exclusively shaped around the head dimensions of models that exist in the market today. Do you say that you're going to come up with an ASIC, you're going to add something into it, but the next architecture is basically going to be useless?

Yeah, no, no, no. I think that the thing to remember is just how long these hardware cycles are. So if a chip is coming out today, that means the design process for it was kicked off years ago. And they've added NVIDIA, they've done a very good job of predicting where the market is going to go. And, you know, I mean, they have the most information for sure.

Of course. But if you look at, you know, they're being public, open source model, architectures that look more or less like early versions of the one today, Rubens, honestly, the first chip that was fully built in that world. And so you can see a lot of the understanding of the shape of the workload that this chip's going to be asked to do in the way it's designed. Yeah. Okay. So I'm not going to be the best person to directly answer those questions.

I think these are very fair questions that are obviously the first one that's based on Ruben that I've heard articulated so well. I do think that I will make this case for a vertically integrated model lab, ASICs, so like the open AI.com or whatever, Jalapeno chip, which like totally makes sense. Like, so I we first had this on the pod with Martin Casado, where he was like, look, if you have a trillion dollar or $500 billion training run, then take $50 billion of that and make it ASIC. Like it's fine. Like you will get more than 10% efficiency from, from the ASIC.

And that makes sense. Right. So like a model specific chip. Yes. But ASIC companies, the interesting thing is I feel like you are focusing on, like, like you say, like the tiles stuff, they are doing a lot more sort of like surface area engineering or like the actual allocations of memory and hardware and like the communication between trips that probably still won't be touched by Ruben, but I don't know the details.

I say. I say. Typically they often talk about things that I would expect to have bigger orders of magnitude than would be programably accomplished by whatever Ruben does, but who knows? No, I say, I say so. It seems so. Yeah. Like, I mean, you know,

like think about what are the real blockers to 10x to 1000x faster inference. It is not the stuff that can be rearranged just within the existing GPU design. Intercommunication. Yeah. Like these guys are aiming for 300,000 tokens per second.

They're not fucking around. Like, I'm not the problem with some x6. Maybe. I think, you know, it is interesting to me that you're so bearish on so much of this kernel engineering, given how much of it you've been doing. We are looking forward to it. We're just making it. I would also add like,

there's generations of models being out, right? I think on your guys's end, you see a lot of, okay, one day it's GLM, Kimmy, Deepseek, Mini-Max, throw in the others. Some are doing completely different stuff, right? Gemma, no encoder. The latest thinking machines is all from scratch, but when you look at the other side, like how long have we been on the GPT five generation, right? They've been serving that

thing for quite a while. Sure, there's maybe more pre-training. There's different checkpoints, but you actually can squeeze quite a bit out in, you do a multi-billion dollar train run. If you can make it, express it more efficiently, they serve it for a while. Same with, say, the Cloud five family, right? They release a new model, like, they release GPT six now,

whatever, and they're releasing a new model over here. And we don't know, but if we assume that they're changing some bits of the architecture, and not just doing like post-training, like, you're going to be spending $50 billion here every single year coming up with your basics for the model and throwing out the basics of the previous year away. Yeah. Yeah. So I think I would slightly disagree based on my career, again, I'm not thinking on the longevity of a model. There's two people out there using four.

Yeah. Yeah. I'm not, I'm a two, but I still see one of three workloads. Yeah. Because if it's done, if it's trusted, don't cheat it. If it works.

Which is one of the promises of open source, right? Like the whole four out, save for a movement, like, you don't got to have a save, one of three movement. You just got to have an eight, one hundred somewhere. I think at some point, there's also the question of, give a model can do enough and use enough tool calls and be agentic enough. Can it just web search tool search right code? Do you really need to keep squeezing more? We will,

because you guys will make it cheap and fast and smaller and I can swap it in. But at some level, like you give me five to today or say whatever, a hundred twenty be more, I can run with it for quite a while, right? This is assuming like you don't need intelligence. I think there's a lot of things in productivity and predictability. Like I mean, enterprise like this, a tried and tested, it is signed off by like my five thousand stakeholders. Like I'm not fetching it. It

wants a bad job every day. And I like the results. The results are predictable. Yeah. It doesn't make sense to keep using them. Like stuff gets sparse or cheaper, better.

Right. But that doesn't mean that old models, GLM5, all isn't usable, right? If we hit a stall, say, for whatever reason, there's still a lot that can be squeezed out. We're gonna run out of time. I did want to also make, I'm sure. Yes, actually, we happen to have this again.

Compare this versus any service diagram, right? I don't think Edson, Manx have put out public charts yet, but the real estate is very different. Decides very different. Right. This is not way for scale. Right. This is,

there's probably like, I don't know, a few hundred of these on the way for, I don't know how big the comparison is, but like it is a very like real estate imagination difference. A few dozen, I would say. If you just before I move from hardware, I have two quick questions. One, the latest GIMI, which is really big, three trillion doesn't fit on most hardware on single nodes. Yes, you need GB 300. You need GB 300.

Orienty. It's simple math. Nvf4, 2.8 trillion parameters, 1.4 terabytes. The GB 300s have 288 gigabytes each. So across eight of those, you have enough room for the model.

And honestly, like, so the other thing with GPU v-man math is you have to leave space for the KV cache, and that's going to depend on, to some degree, on the context length. So when the model is both has a very large number of parameters and a very long context length, you're kind of like fighting over space, which is why the KV cache offloading would become a more salient topic, I think with these huge models, because you're very crunched for space. With the Rubens, you now have what? NvL72 rack of plenty terabytes. Now, you still have NvL72 on Blackwell as well, but you can't necessarily assume you're going to do inference on that. There's a whole lot more 8x racks in the world than the NvL72s.

I guess my last question on hardware was, do you notice anything with hardware generations for new pre-trained-based models? So one of the things you said for efficiency is you can swap hardware. That's one of the two X-canes. When we see new stuff coming out, training-wise on Rubens, any changes on logs does this affect what type of models we will be seeing when these are more available? And can you- They get bigger. People understand the ceiling that you have in terms of

how many parameters of a model you can run, given the sort of latest infin-sideware, and that kind of forms a ceiling. And so, for example, when DeepSeek O1 came out, it was 671 billion parameters, which at the time was really huge. And I think did a lot to push us to really quickly adopt Blackwell and get good at serving on Blackwell. So, yes, it's mostly in my mind about model size, and then about matching the architecture and the native quantization to the target hardware. We talked about with all Nemo-John models of NvF, for example.

So we talked a lot about LMs. A lot more in the book. What about audio, video? What's the other side of inference engineering? Ali, you're pretty big in video diffusion.

Video diffusion, I think, or there's just shaped a lot of the stuff that you can think about with LMs being autoregressive. With video diffusion, it's not the case. For instance, you don't have to do the batching. Every request comes in on a GPU, and it serves on a GPU. You don't have to shard.

The models are a lot smaller, like one to two, for instance, is a 20 billion perms model. You don't need to worry about... It's like orders of magnitude smaller than the best LMs. And it's one of those spaces where the open-source models are like, with LMs, we see, KMEK3 is almost comparable to, you know, Methyls are like JPC 545. The difference between the best open-source LMs and close-source LMs is very small. Like it used to be six months. I don't think

it's like basically almost on parisite. Video models are definitely not. There's a huge gap. If you look at the best video that you can generate today with an open-source model, like one to other versus something like with cling reveal, difference is like today. So it creates this disparity where media companies will choose to go most of the time to close-source models, for instance. And I were to tell you, hey, I can generate an entire three-hour movie for you,

this model, and optimize it so that you only have to pay $10. But if they were to do it on close-source, it'd have to pay $1,000, which is $100,000, like $100, cheaper. But it's still $1,000. They're still going to choose to do all of their calls with video, I'm playing. So it's like a chicken and next cycle where less demand causes less innovation and the field causes less open-source checkpoint series. And some of the labs that we're releasing open-source models like one will

have close-source their latest levels, like one to seven is not open-source, we're still in one to two. The challenge with video models especially is the number of tokens. So, so, so, video models, you want to generate a high-quality model, a high-quality video. So let's say you're doing 16 frames per second, that's like that. So I'm going to do, and let's see if you'll be like 480p video. So you can think about your dimensions. I think I have like a good, just like a diagram that

shows the number of the sheer number of tokens. Let's say you're looking at like just one video of like, yeah, as far as I'm starting to do that. So let's say we're looking at like four frames, right? Those four frames of that video, if you go just, if you're doing full attention, if you go a little bit of like, you're looking at four ATP by 720 by 81 frames in just five seconds because 16 FPS by five, right? And then you compress it down to 18 space. So you're still doing 30 by like 50 by 21 tokens,

which means that for attention, for just five seconds, you're only attention on 35,000 tokens, right? So that attention becomes such a huge bottleneck. And because it's open-source, if you're doing like, if you extend it to a 10 seconds, well, it's just square 20 seconds, 30 seconds. So to generate a good cut scene of like, one minute, it's almost impossible to do within the same compute time. And it just becomes a piece of what you can't do it. And so you end up moving towards

to the direction, either you decide to do attention on the entire video at once, in which case, you're forced to be sports attention. So if you scroll back down to the original, the video image, like you can see, whereas on the left, for instance, I would be doing full attention where every single token in that sport, if you want to see an attend to every single other token, and you can see the sheer number of liquid patches. On the right, I'm only attending to each token, only attend to like the top 10, 12.5%. That's important to it, which can be like spatial. So like, you know, the token that represents the crown attends to like the head, the face, and then the head on the other frame in the previous frame, temporal, look how it's spatial, look how it's about. This results in terrible video calls and the whole point of the post or the article here is

to show like how you can train and to get all these things, but you will still suffer your calls so that you end up with a few things. Either you bite the bullet, you have huge compute and you do full attention over like a million tokens, because you're trying to generate like two minutes of video, or you move towards ultra aggressive video. Also aggressive video seems to me like that is the pet that the future is going to be making, but there are no good open source auto aggressive video models out there today. And that seems to be if you want to get like an hour movie, if you want to see video models generating like, you know, poly with level movies, they have to be auto aggressive in order to exceed the five second frame, or there has to be some insane leap that happens in compute that allows us to be full attention over like millions of tokens at the same time, in an inefficient manner. Even millions of tokens are like, you're quadratic, so you're going to get there really quick. I think

can you explain the pros and cons trade offs of auto aggressive? So one that comes to mind is, you know, the consistency across frames you will 10 minutes into generating auto aggressive diffusion, you're going to forget. But what are pros and cons of this? Well, like, all your aggressive LMS, you can take a lot of your, sorry, auto aggressive diffusion models, you can take a lot of your optimizations that we discussed with LMS like, spec, and stuff like, and you can apply it there. And you can, if you have a very high quality scaled up model, there is no reason why I can't stream the output as an I can show you the first frame, and then I'm like, kind of like GPT back in like 2020, when you're like, now it's like one shots of text, and then you could read and it's generating as you read with video models, you can watch and it's generating as you watch it, it generates the frames.

And so it took him by token generation, will allow us to scale up and apply the attention mechanisms there. The downside is every single auto aggressive video model is shit. It's just terrible quality. If you put the quality of any opens like one to the two versus any other auto aggressive model, you can see like a video generated onto the two is like, you know, a cat and dog fighting auto aggressive model will give you like, degraded Tom and Jerry quality. The solution to generating one output then becomes, okay, we're not going to use auto aggressive model. We're going

to, if you look at some of the things that like, um, like grok imagine or grok video doesn't, they do really, really well is they'll try to stitch these, you know, seven second chunks together. And so you generate seven seconds and then you're like, okay, I'm going to extend this video and they'll chunk two videos together. Open source doesn't seem to have the tricks that they have there and by definition, so we don't know what they're doing. But the closest you can get is taking the last frame of a video and feeding into like a text and image to video where it will take the text, the prompt and then we'll take the image of the last frame and you'll ask it to generate the next five seconds. And that's kind of like how you can extend this level of model to generate like a move where you just you're constantly streaming from a crank. But you got drift. So you start with like, you take the

image and you generate a video and then that next five second video is like lower quality and the third chunks like even lower and the fourth chunks even lower. And like sometimes you'll see things where like the new video is like just ever so slightly darker than the first one and then actually on the second one until like 25 seconds and you have blacks. Great. It's just, it's, it's, we tried to have a demo that would show this but it was like, it was extremely embarrassing to show like we just decided not to because it seemed like, but it is, it is, um, I think models will get there. They just need to in my mind scale up significantly and move towards being auto aggressive.

But the training techniques don't seem to be clear. For those, on the whole interesting recommendation, we did a part with Ethan from, from that team who dropped a little, a few hints but not, not enough that we can, fully reconstruct everything specifically on this part. He explains a bit of what I say. We talk about memory and longer context and all these things. But first I know there, it's not all too aggressive even though like no one in this room is also aggressive. Yeah, it seems to be the key thing to understand between a auto aggressive

model and a diffusion model is that diffusion attention goes in both directions while auto aggression it only goes forward in the sequence. So that's why you see this sort of like going off the rails behavior both in, if you sort of naively construct a video generation model as simply generating a linear sequence of flames, you can't then go back in that sequence and fix something to make the whole thing consistent. Well, of course, the reason that we need all this latest, well, the video model is like you said, we keep all the tokens in memory. We anyway, over that, that full sequence and you can, you can adjust the past in order to make the future make sense. So if we think about the architecture that's going to get us there to these longer, which are sequences, it's probably like you said, going to be a mix of the auto aggressive and the diffusion working together to do what each piece is good at. Well, you get, like you

sort of get what English friends are just writing languages like it's just left, right, you can stream your, so you can stream your chain of thought, just even as a human, you write, like you're writing and you think about what's the next thing you're generating and you write that and you think about your ideas and you generate forward, I'm sure you can argue that as your rights, you need to go back and you want to edit some things, but you need to do that, you know, less soft than you think, whereas with video, there is no sequential, you know, the pixel in the top left corner of the video and the pixel in the bottom right corner of the video, they both need to attend to each other to understand how the video is going to be almost as equally, whereas with text, you don't need that as much. Sir, parallel to audio, like I'm not 100% confident on this, but there was a point about a year ago where there was audio on land, there's diffusion for audio and auto-aggressive, and for the points you mentioned, mostly on the inference side, even though their shorter clips, you know, most music is three to five minutes, we've basically swapped over to auto-aggressive.

I can't speak to music, but speech is on as aggressive, you effectively, I mean, this was even back with the Ophios architecture a year and a half ago, you just add a bunch of waveforms to the vocabulary, so that the LM can output tokens that represent those waveforms and then you construct speech, and that's how you stream it. That's it, well, that's my AIE talk from 2025. Nice, nice, nice, nice, but audio is not the same challenge, because audio is sold with an LM that generates everything, like with audio, it's still a transfer, you can generate an LM, so your audio model just needs to like transfer it to speech. For music, there was a phase of a trade-off between diffusion for music and auto-aggressive, and they were both pretty on par, there's probably more pros and cons, I just want to post it if you had takes. Yeah, I don't know about music specifically, you know, with what you said about editing, you know, writing, you know, obviously I think my editor would tell me I actually need to do that more often and go back and fix things. I can imagine music or poetry, for example, where you have a

rhyming scheme and you might want to go back and make a change to make it easier to set up a rhyme that you want to make later on. There'll be some advantage to being able to attend in both directions, but yeah, to my knowledge, you know, I very much bifurcate this influence problem into the auto-aggressive models, which have a set of constraints, the techniques and the diffusion models, which have a set of constraints and techniques, and I think of text embedding voice in and voice out as being in the auto-aggressive side and then image and video being in the diffusion side. There's some overlap between the two, it's not a perfect split, but that's the broad categorization I use. I should point out, I think it's confirmed by Nano Banana and GPT image, our auto-aggressive image.

It's kind of this blended approach that we're talking about, but in the image space, it hasn't made its way over to the video space, at least in the open-source world. Yeah, but I assume that's not too far away. If that is possible on the, at least the Quen image guys are trying it. Yeah, with the equivalent Quen image to the open-source set. And I'll also mention on the diffusion for text side, there's been some movements, not a lot. Yeah, we've got Moqui, you host Moqui?

Yeah, obviously, there's Gemma as well, right? Diffusion Gemma's open source. Yeah. And then in the next part, we just have been releasing some virtual cell models that use diffusion as well. Yeah, they have built, it's definitely still in the sort of cheap fast tokens world we're trying to. I think it's the wrong marketing. I've told them this before. I was like,

look, you're not going to beat the optimizations that other elements are going to do, but you can have different APIs. You should be able to use it differently than chat response, chat response. Me also. Because it's diffusion, because you can do like, what is context-free guidance for diffusion look like for text? Give me a poll, give me a plot structure that diffuses into place.

Exactly. So that's why I mentioned with poetry, for example, what you might want to ensure consistency across you. I've done a lot of L1 Sonnets. It used to be one of my go-to benchmarks. And even Moqui, they don't get the syllables, right?

And if you can attend across all of the different tokens, you can get the syllables, right? Yeah. And David Holtz from the Journey was investing in text diffusion. I don't think anything came out of it. But the idea was that you can storyboard a long movie, and then you can generate the scenes with normal video gen. But the idea of coherence across a thing that would just appear where

the end should attend to start, and you should not have this autoregressive path dependency. Does make sense in principle? Just the API should be different. The marketing should be different. One of the most heavily used open source workflows used, if you, but it's not like, it's not point almost like a, it's chicken and egg, because what if you just give it more scale? That's the largest diffusion. I don't think it's very big.

I don't know the parameter on this one, but I understand it's different. I think it's a 20-something. Yeah. Oh, it's like you haven't actually tried it. You haven't given it a big one.

It's like 25 B and that's what I'm saying. It's like for size, it does pretty well in terms of quality. It's also the same challenge with video models. It's like you're comparing it to models that are much larger in scale. Yeah, well, unless you do the whole thing where you do have a text backbone and then you go on some kind of decoder thing that does that. Usually when she started

off the podcast doing this for the inverse direction, from image to text. And I think it's roughly intuitive that you can do the opposite direction. I agree. I mean, we're speculating on research in general. One part that we can end off with this is the topic of your talk where inference engineering used to just be like, let's take an open model, make the GPU go burr, and then that's it. That's

the job of base 10. Now it looks like people are using inference more in post training. Yes. And training inference. It's training for inference and inference for training both have become big topics. Well, inference for training in the sense that you obviously just need to

roll out to when you're doing like oral training ones. And so if your rollouts are taking a long time, you're using a BLM, for instance, I was supposed to say a LMM or if the model that you're trying to train is not supported in a CRLM and you have to fall back to an older inference engine. You're all training slow and you don't want to do training on rollouts that are too off policy. So you have to wait for them. So you've all met your entire training pipeline. And so obviously,

the techniques that we do inference optimizations for will help them there. The training for inference mostly comes down to just the spec training, the UI training, and sometimes post training. For instance, if you want to quantize them all, you will quantize it down to like NVF before. Sometimes you get lucky and you can do KTQ and that works. Sometimes you quantize it down to NVF before and the model is terrible. Like the quality is too bad. And you have to do post training in

order to make it understand that it's going to now be in NVF before and let it still output the same models. You can do this with normal SFT, PCT, quantization, or training, all that stuff. But more and more so we're seeing techniques like in video release, the quantization or distillation paper, where you establish a version of the model that's in NVF before and a version of the model that's in full precision. And then you'll do distillation training based on the voltage of the models in order to make the FV4 model understand. And so more and more of the team of engineers, like over the inference engineers that we're going to see, they have to be very familiar with like training techniques and just being fine, writing, training points forward. Yeah, it just seems like they're a machine.

Together. Well, it's coming together. Yeah, absolutely. I mean, if you think about the ultimate goal potentially of having a continuous improvement system, yeah, I mean, it's kind of funny. But at the same time, it's also kind of happening. And I think within a few months to a couple years,

like a lot of leading agent builders are going to have these loops like really up and running in production, where you are doing influence, learning from the influence. We obviously for a long time have been sort of like learning from influence as it's live and dynamically adjusting the system. You know, any kind of dynamic adjustment is going to be a static configuration across, you know, your exact config across your speculator across that kind of thing. And then the, you know, you can take the traces that you're generating from your product continuously post train the model while those out, a B test, get better signal, get better model, get better product. That loop is really promising. The technologies and the infrastructure to build it are coming along quickly. And so the

sort of unification between training and influence, I think is only going to accelerate. I actually was chuckling, but I wasn't, I didn't think it was funny. Like, it's actually real, one of the big things for AI, well, spare was that, you know, we have our science to AGI, is the rough tech line, which like, yeah, I mean, we have, I saw you pull up a parameter call, like we have models, training models. And the next step is obviously models training, optimizing their own inference, which is kind of funny. I wonder if models will be like on policy, better training themselves than training models that they are unfamiliar with. These are all like

very interesting open areas of research. One big part of my job a couple years ago was for any arbitrary model that came out on hugging face, writing a config for it and kind of getting it up and running. And now that get it up and running config is one shotable. And so, you know, I don't have to do that anymore. Yeah, I mean, that's not exactly a model optimizing its own influence so much as a model, like being able to read the SGLang docs. But yeah, I mean,

we do see it. We do see it with JLEN 5.2, JLEN 5.2 is very, very good at writing GPU kernels. And so for like, it was very funny internally, we had a JLEN 5.2 endpoint that we're using to, like, that we plugged in in our cloud harness. So every engineering team is like a JLEN 5.2. And it will do a forward pass on the JLEN 5.2 instance of the node. And then it will get the profile

trace and analyze it. And it will find the kernels that are the bottlenecks in SGLang. And then it will write the new kernels. And then we'll do another profiling trace. And it's done. It

uploads the image to our thing. And then we can pull that image down and repeat the cycle. And so for quite a bit of time, we had like literally JLEN 5.2. And some of the GPU kernels that run JLEN 5.2 within our inference engine is written by JLEN 5.2. And the trace and the kernels were guided by JLEN 5.2 as the driver. So it seems like, I do see that circle being there. I think

a bit more time is needed. There's definitely other things that I can't do with models just aren't there yet, even though they're like really, really smart. Like they still try to like reward talk the way into like the cheapest or like they're very like they're not good at like decision making almost the same. But yeah, I do. Like a model optimizing its inference is already I think that happens. Do you think JLEN 5.2 was uniquely good at optimizing itself? Or did it

just happen to be the best coding model that we had access to? And it would be equally good job of optimizing deep-seeker or kimmy or something. Well, to success point, maybe it's going to be off policy when it's optimized. What does it say? I really heard deep-seeker.

So for what, if I don't believe that, but it's just, it's just fine. I'm just like, you know, you have more computer meters. Yeah. Any other upcoming trends in inference engineering that we didn't cover? Like right now, you know, you guys are so close to it, you can obviously see it and that what rest of the world doesn't know about. The big ones are obvious. Models get bigger,

hardware gets more powerful. Users get used to a certain level of speed and demand a higher one. I think that some things I'm excited about are systems level. You know, we still have a lot to think about in terms of composing multiple models together. If you think about a voice agent, there's three to five models involved in that and the communication between those models.

There's a lot of new modalities that are coming out. There's like the Cosmos, the new world model. There's more research, speech to speech is still like not entirely a thing, but it's getting, it's getting closer. There's going to be just a lot of new modalities to build around, which is going to be exciting. And then, yeah, I think that the other thing to solve, which is something we've been solving for a long time and I'm not done with yet, is just going to be continuing to operate at another 10x and another 10x scale as an industry. If you think about the

degree of usage that AI has worldwide compared to some of the more mature technologies, both on consumer business, it's pretty clear that there could be multiple 10xs, more of demand. If you look at the infrastructure work industry-wide, obviously, it's been stood up very, very quickly to meet a unprecedented spike in demand and that is not stopping. So, yeah, there's just a lot of problems to solve around long tail reliability and figuring out where we're going to get the next like 10x and 100x of tokens from. I'm going to say it's going to be a really boring answer, but I think the answer is just faster next, like faster network chip communications.

It seems to me that more and more memory is the bottom, like you want to have larger models. Right now, when you're doing serving at large, you have to transfer KV cache from one node to another. But the way that you do that is you find the KV cache, you find where it says you transfer it to another node, you put it on that node's memory and then you transfer it from that node's memory into the GPU, and for like, into the center course of the GPU. So, there's like a two-stage transfer here that makes it such that you're very bottom next with just KV cache transfers at large, which affects the time of decoding PDB. You have to do this because the HBM is somewhat extremely fast, like 4.5, that's per second, as opposed to like, which is like magnitudes better than the next communications beta. If you were to somehow be able to, like this theoretical dream land have extremely fast

next, you could in theory spare that HBM and you could just transfer KV cache transfer directly from one node to another. This would give you like almost 100x of you, when you're doing this like, we had serving between nodes and nodes. I'm not familiar with the technical challenges of making next faster. I'm certain there's a reason why there's like orders of magnitude smaller than like, slower than like HBM. But if someone were to figure that out, it would literally be like a magnitude faster to do the code. That would be my time.

Bigger, cool. I don't know if you have a nomination for things that are trends. I go on. So I think inference engineering for continual learning. So what if you just, like if you just had the idea that you were supposed to learn from everything that you ever process, do you do anything differently? Or do you just have the same paradigm of like, well, stick it in a memory.md and then

like, it somehow gets consuming KV cache and like, this system works, it's not broken. Or like, how do you like reshape inference so that it learns while you inference? Yeah, I think maybe one relevant topic there is you're absolutely best funded in the entire world's world country. The compaction, right? Like what changes?

What changes when you're trying to continue to learn? There's two texts and there's like, like Charlie and I had this sort of argument where the like, continual learning could take one or two paths. It could either be that the model learns and so it's continuously pushing its new knowledge into its weights. In that case, you just need to have like your inference just needs to continually fetch new weights or yeah, you just literally need to do fetch new rights and reads of weights or the other path, which is you do KV cache compaction. And then there's a Laura layer if you just only update Laura's.

Yeah, exactly. Which is the Ngram approach. Yeah. The argument against doing great pushing is that you can only fix one help knowledge as in as you can only feed it a new feature of like, oh, what is the best university in the world? Best university in the world is what?

Well, then a second derivative. That's not changing. That's not changing. Well, like a second derivative question of which university should I hire an intern from? So if you know that the best university in the world is what a little bit, then the answer should be what?

But if I wasn't just one short thing, the question and I was to ask it to like use its knowledge to think and then give me a second answer or like to hire an intern from what I'm like, same. I mean, like, yeah, both are good. Well, I just edited in your knowledge base that was the best. Why didn't you use that to do reason? So that's the fundamental problem with trying to change the fact in MLT within the way.

GV cache compaction fixes that with KV cache or rather not KV cache. But like, if you're able to have something like the still paper which we came out with, which is you're able to sort of make your KV almost infinite and you're able to come back and talk to it that you don't lose any of the knowledge. In that case, you can actually do continue learning. You can actually solve continue learning. And this as a result of this argument that I had that I do can see that his point was correct.

And I do see that KV cache is the way forward. And in that case, I don't think inference is going to change that much because we still use KV cache and then you're just going to update the KV cache. But it's going to be like an additional step. But nothing changes in the way. It's nothing changes in inference time.

Nothing changes in the spec like that. OK. Surprisingly great answer. We have it up on the blog. It's a relatively recent blog.

So people can go and see it. Yeah. Otherwise, this is super enjoyable chat. I know we've already gone two hours. Wow.

I know. I know. It's not as easy. It's not as easy as I didn't even cover. Yeah.

We also want to talk about the book and all that. But you've covered the book. Yeah. I mean, everyone knows about the book. OK.

OK. Highest ROI thing in the history of Bistad. Right? And they are. We've covered that in our meetup, which we can publish separately.

But thank you to you guys for being so generous and sharing a fun conversation that we don't get to have enough. I think inference engineering we never really covered it on. And so to have you guys come on is a treat. It was amazing. Yeah.

Thanks for having us. And hopefully in a year, everything shifts. And we can come back and say everything we were wrong about. Yeah. Yeah.

I'm excited for this mega kernel's coming together. See what people say. We're going to start stuff. So we're going to hide it. I don't really get the mega kernel.

Yeah. One thing I really respect about you is you are not really. Oh, you are not scared to kick the hornet's nest ever. Please not. I don't think it's that controversial.

I don't know. We'll see. We'll see. I'll see. All right.

Thanks, guys. Thank you so much.

Frequently asked questions

How long is this episode of Latent Space: The AI Engineer Podcast?

This episode is 1 hour and 41 minutes long.

When was this Latent Space: The AI Engineer Podcast episode published?

This episode was published on August 3, 2026.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this Latent Space: The AI Engineer Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.