Prefill Disagg
Prefill Disaggregation - Understanding from first principles
` In order to generate output tokens from an input prompt, LLM inference is split into two stages: prefill and decode. Prefill runs on the input tokens, populating KV caches, before entering the decode stage that generates tokens one-by-one. While a single decode step typically runs for tens of milliseconds, prefill takes substantially longer. If run on the same devices, mixing prefill with decode degrades decode performance. In this article we explore an established solution in the form of disaggregated prefill and decode, running them on separate devices to maximize both prefill throughput and decode latencies. `
I had never thought that I would be able solve 300 problems on leetcode. It’s only in the last year or so I realized that this number means nothing. If I randomly picked up one of the problems that I had solved and tried to solve again, I’d be stumped.