Pastime | Episode
Pastime

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

Latent Space: The AI Engineer Podcast | Aug 03 2026 | 01:41:29

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 complex) chief beneficiaries of the Inference Inflection.

We return to Baseten at the peak of the 2026 edition of Open Weights debate. Ali has published a viral breakdown of Kimi K3:

And since you last saw him, Philip has spoken at AI Engineer and written the definitive book on Inference Engineering spotted all over SF:

Three years ago, inference engineering barely existed as a category.

Today, it is one of the most critical disciplines in AI. Inference engineering inherently tackles a different question than standard model training: “How do you turn those weights from training into a product that is fast, reliable, and affordable at scale?” Focusing on these creates an entirely new optimization problem.

In one recent GLM-5.2 experiment, quantizing more of the model actually preserved its benchmark quality while increasing throughput by 20%, because the errors introduced in different layers could cancel each other out.

Inference is no longer just the final step after training. It is becoming its own engineering discipline, with its own research problems, infrastructure, and increasingly specialized roles.

In this episode, Baseten’s Philip Kiely and Ali Taha join swyx and Vibhu to explain what actually happens after a new open model is released and what it takes to turn “we generated a token” into a fast, reliable, production-ready API.

We go deep on cache-aware routing, disaggregated prefill and decode, quantization, speculative decoding, KV-cache movement, model parallelism, GPU kernels, and the race to make frontier models up to 10× faster. Philip and Ali explain why inference optimizations can still produce gains of 20%, 100%, or even 200%; how quantization errors can cancel one another out; why identical weights can behave differently across clusters; and how Baseten grafted a Kimi vision encoder onto GLM-5.2 without changing the underlying language model.

The conversation then expands beyond LLMs into NVIDIA Dynamo, mega kernels, Rubin, AI-specific chips, local inference, video generation, diffusion versus autoregressive models, and the enormous compute barrier to generating coherent long-form video. Finally, we explore the convergence of training and inference, continual learning through persistent KV cache, and the emerging loop where models help optimize the infrastructure that runs them.

We discuss:

* What happens when a 200,000-token request enters an inference system

* Cache-aware routing and reusing previously computed KV cache

* Why prefill and decode are increasingly handled by different GPUs

* When dedicated deployments become cheaper and more reliable than shared APIs

* How speculative decoding uses a smaller model to accelerate a larger one

* Tool calling, structured outputs, and what LLMs actually do

* What it takes to support a new open model on day zero

* Grafting Kimi’s vision encoder onto GLM-5.2

* Retrofitting inefficient model layers with components from other architectures

* Why models sometimes collapse into repeating the same token

* How hardware, kernels, and race conditions create nondeterministic failures

* Preserving model fidelity while making inference faster

* How quantization errors can cancel each other out

* Why inference optimizations still deliver gains of 20%, 100%, and 200%

* How optimized serving can make a model up to 10× faster<…