A deep-dive podcast episode with Baseten engineers Philip Kiely and Ali Taha covering the full lifecycle of inference engineering for large language models. Topics include cache-aware routing, disaggregated prefill and decode, speculative decoding, quantization strategies (including how quantization errors can cancel out for better fidelity), retrofitting vision encoders onto existing LLMs, nondeterministic failures caused by GPU kernel race conditions, model parallelism, NVIDIA Dynamo, diffusion vs. autoregressive video generation, and the convergence of training and inference. Key insight: Baseten demonstrated 20% better throughput than NVIDIA's own quantization by mathematically selecting layers whose quantization errors cancel each other out, validated via KL divergence on logit distributions.

1h 50m read timeFrom latent.space
Post cover image
Table of contents
We discuss:Show NotesPhilip KielyAli TahaTimestampsIntroduction: Baseten, Waterloo Intern, and Inference EngineeringLong Context Requests, KV Cache, and Cache-Aware RoutingPublic APIs vs. Dedicated DeploymentsSpeculative Decoding and Custom SpeculatorsTool Calling, JSON, and Structured OutputsWhat It Takes to Support a New Open ModelQuantization, Speculators, and Production ReadinessRetrofitting Vision into GLM-5.2Open Source Model Grafting and Franken-MergesLoop Detection, Race Conditions, and Non-DeterminismQuantization Quality and Vendor FidelityLayer Selection, KL Divergence, and Better QuantizationInference Speedups and BenchmarkingStacking Optimizations: NVFP4, Speculation, and DisaggregationDynamo, KV Routing, and Disaggregation ToolkitsSpeculative Decoding Methods: Medusa, EAGLE, n-Gram, and Spec-SpecLocal AI vs. Data Center InferenceTensor, Expert, and Pipeline ParallelismHardware-Aware Inference and Auto-TuningMega Kernels, Rubin, and the Future of GPU SystemsGPUs, ASICs, and Specialized HardwareModel Longevity, Open Source, and Enterprise ReliabilityKimi Scale, GB300, and KV Cache LimitsVideo Diffusion, Attention, and Autoregressive VideoAudio, Diffusion Text, and Cross-Modality LessonsTraining for Inference and Inference for TrainingModels Optimizing Their Own InferenceFuture Trends: Modalities, Scale, Networking, and Continual LearningKV Cache Compaction and Continual LearningClosing: The Book, Baseten, and Inference Engineering
193 Impressions