Skip to the document
Madhuopen lab
Outcome School · Inference and serving20 min read

by Amit Shekhar · 13 September 2026

Prefill-Decode Disaggregation

Prefill-Decode Disaggregation, a way of running a large language model where the reading of the prompt and the writing of the answer happen on separate machines. We will also see how an LLM answers a request in two phases, what the KV Cache is, why the two phases need different things from the hardware, what goes wrong when both run on the same machine, how disaggregation solves it step by step, its advantages and disadvantages, and where it works well and where it is overkill.

3,991 words#llm#ai#system-design4 recall cards

Prefill-Decode Disaggregation
Read on Outcome School ↗then come back to lock it in
Before you read, guess

Which phase generates output sequentially and consumes significant memory?

Ten seconds, a guess, then read — a wrong guess still makes the answer stick.

Before you go

In one sentence, what was this chapter about?

From memory, without scrolling up. Writing it is what makes it yours; the grade is only to show you what you had.

How sure?