F4
Inference & Serving
Roofline analysis of prefill and decode, the KV cache, continuous batching and paged attention, quantization, speculative decoding, and decoding strategies.
Guides
The inference roofline: prefill vs decode
Arithmetic intensity, why prefill is compute-bound and decode is memory-bandwidth-bound, how batching moves decode along the roofline, and back-of-envelope latency and throughput estimates.
13 min 02KV cache, continuous batching and paged attention
How big the KV cache gets, how GQA and quantization shrink it, iteration-level (continuous) batching, paged KV memory, prefix caching, chunked prefill and prefill/decode disaggregation.
14 min 03Quantization and speculative decoding
Weight-only and weight-activation quantization, outliers and how GPTQ, AWQ and SmoothQuant handle them, KV-cache quantization, and speculative decoding with its acceptance math.
13 min 04Decoding strategies
Greedy, temperature, top-k, top-p and min-p sampling, beam search, repetition penalties, constrained decoding, and how to choose settings for different tasks.
10 minInterview questions
30-second answer plus a full 40-minute walkthrough for each.