Inference Engineering

XVIII. Learning Resources

Books, courses, learning paths, and long-form writing for going deeper.

68 entries · 7 subsections

Editor’s pick

XVIII.1 Books 10

  1. Programming Massively Parallel Processors (5th ed.) Book

    Standard textbook on GPU programming, memory hierarchies, and parallel patterns; the 2026 edition adds LLM workloads.

    commercial

  2. How to Scale Your Model Book

    Full textbook behind the Start Here inference chapter, covering rooflines, TPU and GPU anatomy, sharding, and transformer math.

    MIT · 1.5k stars · Updated 2026-10

  3. Machine Learning Engineering Open Book Book

    Stas Bekman's field notes on accelerators, networking, storage, debugging, and inference for running large models on GPU clusters.

    CC-BY-SA-4.0 · 20k stars · Updated 2026-11

  4. AI Systems Performance Engineering (O'Reilly) Book

    Profiling-first book on tuning GPUs, CUDA kernels, PyTorch, and multi-node systems for training and inference, closing with an optimization checklist.

    commercial

  5. Hands-On LLM Serving and Optimization Book

    O'Reilly book from 2026 on designing LLM serving systems, balancing latency against throughput, and hosting models cost-effectively at scale.

    commercial

  6. The Ultra-Scale Playbook Book

    Interactive Hugging Face book on data, tensor, pipeline, context, and expert parallelism on GPU clusters, with benchmarks for each strategy.

  7. AI Engineering Book

    Chip Huyen's book on building applications on foundation models, with a chapter on inference optimization and serving trade-offs.

    commercial

  8. Machine Learning Systems (Harvard CS249r) Book

    Open textbook from Harvard CS249r on the whole ML systems stack, including model compression, hardware acceleration, benchmarking, and operations.

    CC-BY-NC-ND-4.0 · 30k stars · Updated 2026-11

  9. Efficient Processing of Deep Neural Networks Book

    MIT textbook by Sze, Chen, Yang, and Emer on dataflows, data reuse, and metrics for designing and comparing DNN accelerators.

    commercial

  10. Efficient Deep Learning Book

    Free draft chapters by Menghani and Singh on compression, efficient architectures, and training techniques for smaller models, predating LLMs.

XVIII.2 Courses 8

  1. MIT 6.5940: TinyML and Efficient AI Computing Course

    Song Han's Fall 2026 course on pruning, quantization, distillation, and LLM deployment, with slides, videos, and labs posted for each lecture.

  2. CMU 15-442/642: Machine Learning Systems Course

    Spring 2026 course by Tianqi Chen and Zhihao Jia on ML frameworks, GPU acceleration, memory and parallelism, and LLM serving case studies.

  3. CMU 11-868: Large Language Model Systems Course

    Spring 2026 course that goes from CUDA basics and a MiniTorch homework track to FlashAttention, vLLM, SGLang, and disaggregated serving.

  4. Stanford CS336: Language Modeling from Scratch Course

    Students build a language model end to end, including Triton kernels, parallelism, scaling laws, and inference, with lectures on YouTube.

  5. GPU MODE Lectures Course

    Slides and code for the community lecture series on CUDA, Triton, CUTLASS, profiling, and inference kernels; recordings are on YouTube.

    Apache-2.0 · 7.1k stars · Updated 2026-09

  6. UCSD CSE 234: Data Systems for Machine Learning Course

    Hao Zhang's Winter 2025 course on ML frameworks, GPUs, parallelism, and LLM serving with paged attention, batching, and speculative decoding.

  7. MIT 6.S894: Accelerated Computing Course

    Fall 2025 graduate course on performance engineering for accelerators, with weekly CUDA labs that build toward fast GPU kernels.

  8. Stanford CS149: Parallel Computing Course

    Fall 2025 course on parallel architectures and programming, from SIMD and multicore CPUs to GPUs and domain-specific accelerators.

XVIII.3 Learning Paths 4

  1. ML Systems Onboarding Reading List List

    Annotated reading list from GPU MODE that says where to start on attention, serving optimizations, quantization, long context, and parallelism.

    1.2k stars · Updated 2026-02

  2. Triton Puzzles Course

    Notebook puzzles that teach Triton from first principles, building from vector ops up to matmul and FlashAttention with a visual debugger.

    Apache-2.0 · 2.7k stars · Updated 2026-04

  3. Mojo GPU Puzzles Course

    Progressive puzzles that teach GPU programming in Mojo, from threads and shared memory to warp-level code, tensor cores, and profiling.

    Apache-2.0 · 446 stars · Updated 2026-11

  4. NVIDIA Accelerated Computing Hub Course

    Open notebooks and syllabi from NVIDIA for CUDA C++, CUDA Python, and CUDA Tile, runnable on cloud GPUs or Colab.

    Apache-2.0 + CC-BY-NC-SA-4.0 · 2.2k stars · Updated 2026-11

XVIII.4 Deep Dives & Essays 21

  1. How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance Article

    Worklog that takes a naive SGEMM through coalescing, shared-memory tiling, and warptiling, profiling each step against cuBLAS.

  2. Large Transformer Model Inference Optimization Article

    Survey essay on distillation, quantization, pruning, sparsity, mixture of experts, and architecture changes that cut inference cost.

  3. Inside NVIDIA GPUs: Anatomy of High-Performance Matmul Kernels Article

    Builds from GPU memory hierarchy and PTX/SASS up to Hopper matmul kernels that use TMA, wgmma, and warp specialization.

  4. Outperforming cuBLAS on H100: A Worklog Article

    Hopper follow-up to the Boehm worklog that grows a dependency-free GEMM in one CUDA file, adding TMA, wgmma, and warp specialization step by step.

  5. tcgen05 for dummies Article

    Plain CUDA C++ and PTX walkthrough of Blackwell's tcgen05 Tensor Core instructions, building a B200 matmul that approaches cuBLAS.

  6. CUTLASS Tutorial: Mastering the Tensor Memory Accelerator (TMA) Article

    Explains Hopper's TMA unit for asynchronous bulk copies, including loads, stores, and multicast, and how to drive it through CuTe.

  7. CUTLASS Tutorial: Fast Matrix Multiplication with WGMMA on Hopper Article

    Shows how warpgroup-level wgmma instructions work on Hopper and how CUTLASS and CuTe expose them in a GEMM mainloop.

  8. Deep Dive on CUTLASS Ping-Pong GEMM Kernel Article

    Walks through a warp-specialized Hopper FP8 GEMM in which producer and consumer warpgroups alternate so math overlaps with epilogues.

  9. GPUs Go Brrr Article

    Hazy Research essay on what keeps an H100 busy, from tensor cores and TMA to async pipelines, and the ThunderKittens design built on it.

  10. Optimizing Parallel Reduction in CUDA Article

    Classic NVIDIA slide deck that refines a sum-reduction kernel through seven versions, a template for reasoning about bandwidth limits.

  11. LLM Inference Performance Engineering: Best Practices Article

    Defines latency, throughput, and model bandwidth utilization, then measures how batch size, tensor parallelism, and quantization trade off.

  12. LLM Inference Speed of Light Article

    Derives the memory-bandwidth floor on per-token decode latency and checks how close a hand-written inference engine gets to it.

  13. How Continuous Batching Enables 23x Throughput in LLM Inference Article

    Explains why static batching wastes GPU time during decoding and benchmarks iteration-level scheduling across serving frameworks.

  14. Continuous Batching from First Principles Article

    Derives continuous batching step by step from attention and the KV cache, covering ragged batches and chunked prefill along the way.

  15. Flash-Decoding for Long-Context Inference Article

    Introduces splitting the KV sequence across thread blocks during decode and merging partial softmax results so small batches still fill the GPU.

  16. Accelerating Generative AI with PyTorch II: GPT, Fast Article

    Shows how far plain PyTorch goes for LLM decoding with torch.compile, int8 and int4 weights, speculative decoding, and tensor parallelism.

  17. Fast LLM Inference From Scratch Article

    Builds a single-GPU inference engine in C++ and CUDA without libraries, profiling each step from a naive CPU loop to fused kernels.

  18. vLLM V1: A Major Upgrade to vLLM's Core Architecture Article

    Design notes on vLLM's rewritten core, covering the unified scheduler, a separate engine-core process, prefix caching, and piecewise CUDA graphs.

  19. Optimizing AI Inference at Character.AI Article

    Shows how multi-query attention, hybrid local-global layers, cross-layer KV sharing, and int8 shrink KV memory for long conversations.

  20. DeepSeek-V3/R1 Inference System Overview Article

    First-hand account of serving V3/R1 with cross-node expert parallelism, a prefill-decode split, compute-communication overlap, and load balancing.

    CC0-1.0 · 8.1k stars · Updated 2025-05

  21. Deploying DeepSeek with PD Disaggregation and Large-Scale Expert Parallelism Article

    Reproduces DeepSeek-style serving in SGLang on 96 H100s by combining prefill-decode disaggregation, DeepEP, two-batch overlap, and EPLB.

XVIII.5 Talks & Videos 8

  1. Why Inference Matters 12x More Than Training (YC Paper Club) Video

    Engineers from Together AI, Ollama, Luminal, and SGLang trace a token through routing, caching, scheduling, kernels, and hardware.

  2. GPU MODE (YouTube) Video

    Recorded community lectures on CUDA, Triton, CUTLASS, profiling, and inference kernels, often given by the people who wrote them.

  3. The Inference Engineering Masterclass (Latent Space) Podcast

    Podcast episode with Baseten's Philip Kiely and Ali Taha on the practice of inference engineering for autoregressive and diffusion models.

  4. vLLM Office Hours Video

    Biweekly livestream from the vLLM team with release updates and guest deep dives; past sessions are archived with recordings and slides.

  5. SGLang Learning Materials Video

    Official collection of SGLang slide decks, blog links, and talk recordings from meetups, conferences, and vendor tech briefings.

    MIT · 908 stars · Updated 2026-01

  6. AI Performance Engineering (YouTube) Video

    Recordings of Chris Fregly's monthly meetup, with practitioner talks on GPU profiling, low-precision formats, disaggregated serving, and accelerators.

  7. Multi-GPU Kernels, Intelligence per Watt, and Heterogeneous Inference (YC Paper Club) Video

    Talks on Parallel Kittens multi-GPU kernels, intelligence per watt for local inference, AI-written kernels, and heterogeneous serving.

  8. Inference, Diffusion, World Models, and More (YC Paper Club) Video

    Opens with a talk on Speculative Speculative Decoding (arXiv 2603.03251), followed by papers on diffusion control and world models.

XVIII.6 Communities & Newsletters 7

  1. GPU MODE Discord Community

    Open Discord server for GPU programming with channels per kernel language and vendor, reading groups, lectures, and kernel competitions.

  2. vLLM Forums Community

    Official discussion board for vLLM deployment, performance, and hardware-backend questions; real-time developer chat happens on the project Slack.

  3. SGLang Slack Community

    Community workspace linked from the SGLang README where maintainers and users discuss deployments, kernels, and upcoming features.

  4. r/LocalLLaMA Community

    Subreddit for running open-weight models on your own hardware, with frequent comparisons of quantizations, runtimes, and multi-GPU builds.

  5. AI Performance Engineering Meetup Community

    Monthly meetup run by Chris Fregly, with chapters in many cities and livestreamed talks on GPU performance, inference, and AI systems tuning.

  6. PyTorch Developer Discussions Community

    Forum where PyTorch core developers post design notes and updates on torch.compile, Inductor, export, and distributed internals.

  7. Latent Space Community

    AI engineering newsletter and podcast with recurring interviews on inference providers, serving stacks, and GPU economics.

XVIII.7 Conferences & Venues 10

  1. MLSys Event

    Annual conference on machine learning and systems, where serving, kernel, and quantization papers such as FlashInfer, AWQ, and XGrammar appeared.

  2. OSDI Event

    USENIX symposium on operating systems design that published Orca, DistServe, Sarathi-Serve, and other LLM serving systems.

  3. SOSP Event

    ACM symposium on operating systems principles, annual since 2023, where PagedAttention and vLLM were first published.

  4. NSDI Event

    USENIX symposium on networked systems, covering cluster scheduling, collective communication, and datacenter-scale serving.

  5. EuroSys Event

    European ACM SIGOPS systems conference with a growing share of LLM serving, scheduling, and KV cache papers; the link points to the 2027 edition.

  6. ASPLOS Event

    Conference spanning computer architecture, compilers, and operating systems, a frequent home for accelerator and ML compiler work.

  7. Hot Chips Event

    Annual symposium at Stanford where vendors present new GPUs, accelerators, and interconnects at the level of architecture detail.

  8. NVIDIA GTC Event

    NVIDIA's developer conference; most sessions, including CUDA and inference talks, are later free to stream on NVIDIA On-Demand.

  9. PyTorch Conference Event

    Linux Foundation conference for the PyTorch ecosystem, with sessions on compilers, kernels, and inference engines such as vLLM and SGLang.

  10. vLLM Conference Event

    First vLLM conference, held with Ray Summit in San Francisco in August 2026, on the roadmap, hardware backends, and production inference.