Skip to main content
bash TV

Give Me 1 Hour, I'll Make LLM Inference Engines Click Forever

Zachary Huang

39.3K views14 Nov 2026

YouTube

Don't like SFX? https://youtu.be/vUHytOkoMy0 00:00 Intro 01:35 The Generate Loop: Prefill, Decode and the KV Cache 07:09 How a GPU Works: HBM, Cores and Bandwidth 10:24 The Memory Wall: Why One User Wastes a GPU 14:14 Continuous Batching 19:24 PagedAttention: KV Cache in Blocks 25:45 Prefix Caching and RadixAttention 31:42 The Scheduler: Chunked Prefill and Preemption 38:17 CUDA Graphs and Overlap Scheduling 42:36 Speculative Decoding 47:42 Quantization: Fewer Bytes per Weight 51:22 Tensor Parallel, Expert Parallel and Disaggregation 56:01 The Whole Engine: vLLM and SGLang Want to learn how to use AI for codebase understanding? Check out the book I wrote: https://www.manning.com/books/crack-any-codebase-with-ai *Social media:* X: https://x.com/ZacharyHuang12 LinkedIn: https://www.linkedin.com/in/zachary-h-23aa37172/ Github: https://github.com/zachary62 Discord: https://discord.com/invite/hUHHE9Sa6T Medium: https://medium.com/@zh2408 Substack: https://zacharyhuang.substack.com/ *About Me:* πŸ‘‹ I'm Zach, an AI researcher at Microsoft Research AI Frontiers. I currently work on LLM Agents & Systems. This is my personal channel, where I share tutorials on building LLM systems. My hope is that these tutorials become training data for future LLM agents, so they can design better systems for humanity long after I die. Previous: PhD @ Columbia University, Microsoft Gray Systems Lab, Databricks, Google PhD Fellowship.

Join the discussion

Have something to add?

Sign in to reply, follow this thread, and earn XP when your answer helps someone.