mlprep
Hard18 min·2 rounds·Batching & Scheduling

Why do prefill and decode have opposite hardware bottlenecks, and how does disaggregated serving help?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

From a GPU hardware perspective, why are the prefill and decode phases of LLM inference fundamentally different? And why are large-scale serving systems increasingly disaggregating prefill and decode onto separate GPU pools?

Ready to compare your reasoning?
Interviewer

Transferring gigabytes of KV cache over the network sounds expensive. When does KV transfer overhead outweigh the benefits of disaggregation, and how do engineers minimize that transfer cost?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • How does the optimal prefill-to-decode GPU ratio change between a RAG summarization service and a chain-of-thought reasoning model?
  • When is colocated serving with chunked prefill preferable to disaggregated serving?
  • How does prefix caching work in a disaggregated architecture — where should cached prefixes live?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions