Pidoku
30Landmark Papers, Explained
On this page

Landmark Papers, Explained

Module 3025 lessons~16h 20m

Lessons, in order

30.a Roofline (2009)It is the oldest paper in this module and the only one that is not about machine learning. It is here because every other paper in the module is, at bottom, an argument about where a … 35 min 30.b Attention Is All You Need (2017)In 2017 the best translation systems were RNNs with attention bolted on (Google's GNMT) or convolutional models (Facebook's ConvS2S). RNNs have one deep flaw for hardware: they are … 40 min 30.c Megatron-LM (2019)It is a training paper. It is in an inference module because the same split, unchanged, is how every engine in 2026 runs a model across the GPUs of one server. 40 min 30.d MQA (2019) and GQA (2023)MQA is a short single-author note with code in it. GQA, four years later, is what made the idea mainstream. 35 min 30.e GShard (2020) and Switch Transformer (2021)The MoE layer itself is older (Shazeer et al., 2017, for LSTMs). These two papers put it inside the Transformer and showed how to train it across thousands of chips. 40 min 30.f FlashAttention (2022)FlashAttention-2, -3 and -4 are covered in 30.n. The kernel itself is taught in 13.l. 40 min 30.g Orca (2022)In 2021–22 the standard way to serve a GPT model was a general server (NVIDIA Triton) that formed batches and handed them to an engine (FasterTransformer) that ran the batch to completion. … 35 min 30.h LLM.int8() (2022)This is the first paper in the module's quantization thread. GPTQ (30.i), SmoothQuant (30.k), AWQ (30.m) and QuaRot (30.u) all respond to the outlier problem it described. 35 min 30.i GPTQ (2022)LLM.int8() (30.h) halved memory but did not speed anything up. To run OPT-175B or BLOOM-176B on one GPU you need about 3–4 bits per weight. At that precision, plain round-to-nearest destroys … 40 min 30.j Efficiently Scaling Transformer Inference (2022)Where most papers in this module propose one trick, this one is a method for thinking: model memory time, compute time and communication time for every way of splitting a model, and pick the … 45 min 30.k SmoothQuant (2022)LLM.int8() (30.h) kept accuracy but ran slower than FP16 because of its mixed-precision split. Weight-only methods like GPTQ (30.i) speed up memory-bound decode but leave the matrix multiply … 35 min 30.l Speculative Decoding (2022–2023)Leviathan et al. call it speculative decoding and its sampling rule speculative sampling; Chen et al. call the whole thing speculative sampling. Both names are used today. 40 min 30.m AWQ (2023)GPTQ (30.i) gets 4-bit weights accurate by reconstructing each layer's output on calibration data. That works, but it adjusts weights to fit the calibration set closely, and the authors … 35 min 30.n FlashAttention-2, -3 and -4 (2023–2026)Three papers, each adapting FlashAttention (30.f) to a new GPU generation: 45 min 30.o vLLM and PagedAttention (2023)The open-source vLLM project was released in June 2023, before the paper. Module 16 onward teaches the 2026 code base in depth; this lesson is about the original argument. 40 min 30.p StreamingLLM and Attention Sinks (2023)A chat that runs for hours, or an agent that never stops, keeps growing its KV cache. Two things go wrong: 30 min 30.q Splitwise and DistServe (2024)Two papers, written independently, with the same core idea and different emphasis: 40 min 30.r SGLang and RadixAttention (2023)Several authors overlap with vLLM (30.o). SGLang is taught as an engine in 15.b; this lesson is about the paper's ideas. 35 min 30.s Medusa and EAGLE (2024–2025)Classic speculative decoding (30.l) needs a separate small model that shares the target's tokenizer, is trained on similar data, and has its own weights and KV cache to manage. For many … 45 min 30.t Sarathi-Serve (2024)It builds on the same group's earlier SARATHI (2023, arXiv:2308.16369), which introduced chunked prefills with piggybacked decodes for throughput. Sarathi-Serve turns that into a … 35 min 30.u QuaRot (2024)To run every matmul on 4-bit tensor cores you must quantize activations to 4 bits, and with outlier channels 100× larger than the rest, 16 levels are far too few. Methods that kept a few … 40 min 30.v DeepSeek-V2 and V3 (2024)Two technical reports from DeepSeek-AI (published on arXiv, not peer-reviewed venues): 50 min 30.w Mooncake (2024)It describes the production system behind Kimi, Moonshot AI's chatbot, known for long context. 40 min 30.x FlashInfer (2025)FlashAttention (30.f, 30.n) is superb for training-style attention: dense, contiguous, equal-length batches. Serving attention is messier: 40 min 30.y Native Sparse Attention and DeepSeek Sparse Attention (2025)The last paper in this module closes the loop opened by the first Transformer paper (30.b): the O(n²) cost of attention. 45 min

About this module

The papers that built modern inference, one per lesson, in the order they appeared: the problem each one faced, the idea, how it works, the numbers it reported (checked against the paper), what held up and what did not, and where the idea lives in 2026. Each lesson links the lessons elsewhere in this material that teach the technique in depth.

Lessons#

#LessonTime
30.aRoofline (2009)35 min
30.bAttention Is All You Need (2017)40 min
30.cMegatron-LM (2019)40 min
30.dMQA (2019) and GQA (2023)35 min
30.eGShard (2020) and Switch Transformer (2021)40 min
30.fFlashAttention (2022)40 min
30.gOrca (2022)35 min
30.hLLM.int8() (2022)35 min
30.iGPTQ (2022)40 min
30.jEfficiently Scaling Transformer Inference (2022)45 min
30.kSmoothQuant (2022)35 min
30.lSpeculative Decoding (2022–2023)40 min
30.mAWQ (2023)35 min
30.nFlashAttention-2, -3 and -4 (2023–2026)45 min
30.ovLLM and PagedAttention (2023)40 min
30.pStreamingLLM and Attention Sinks (2023)30 min
30.qSplitwise and DistServe (2024)40 min
30.rSGLang and RadixAttention (2023)35 min
30.sMedusa and EAGLE (2024–2025)45 min
30.tSarathi-Serve (2024)35 min
30.uQuaRot (2024)40 min
30.vDeepSeek-V2 and V3 (2024)50 min
30.wMooncake (2024)40 min
30.xFlashInfer (2025)40 min
30.yNative Sparse Attention and DeepSeek Sparse Attention (2025)45 min

More papers, documentation and talks by topic are in Resources.

Previous: On-Device and Edge Inference

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in