WhoBuilt

Prefill and decode

The prompt-processing and token-generation stages of machine learning inference.

Also known as decode, prefill, assistant prefill

Timeline 0

Dated events, newest first. Open the sources under any item.

How we verify
No sourced facts yet
Facts appear here as talks mentioning Prefill and decode are processed.

Talks 3

1:28:12
Deep dive on LLM Inference at Scale

Harshul Jain and Tanmay Sah explain LLM inference from first principles, focusing on how memory use, time to first token, throughput, and decode latency constrain serving. They show how attention, KV caches, and the prefill and decode phases create those constraints, then compare model optimizations such as quantization and attention variants with serving techniques such as paged attention, continuous batching, and prefix caching. They also review speculative decoding and benchmark vLLM, SGLang, and TensorRT-LLM for standard and agentic workloads. The talk closes with guidance on choosing models, GPUs, and serving engines based on workload priorities and cost.

Sep 8, 2026· 1 h 28 minDiscussed 20:54
18:29
System Design for Next-Gen Frontier Models

Dylan Patel explains why serving frontier models is a systems challenge, focusing on the different compute and memory demands of prefill and decode. He describes continuous batching, disaggregated prefill, and context caching as ways to improve inference cost, throughput, and reliability. The talk also surveys the hardware and networking challenges of very large training clusters, including power use, optical link failures, and slower GPUs. Patel closes by outlining how these constraints shape the next generation of models and infrastructure.

Feb 11, 2025· 18 minDiscussed 1:29
1:34:56
Building with Anthropic Claude: Prompt Workshop

Zack Witten leads a live prompt workshop, showing how to improve prompts by testing real examples and iterating against test cases. He recommends clearly separating instructions from context, using XML tags and examples to guide outputs, and using assistant prefills, stop sequences, or code for reliable formatting. He discusses how to build stronger examples, use positive and negative examples carefully, and break complex tasks into smaller steps. For subjective tasks like translation grading, he advises adding examples for each rating and using model grading cautiously; for summaries, he suggests extracting relevant quotes to reduce hallucinations.

Aug 17, 2024· 1 h 35 minDiscussed 26:48