Rebellions Makes the Case for Separating LLM Prefill and Decode

RebellionsRebellions·Original
Operator Bae ChangHyun

Key point

Rebellions argues that splitting LLM prefill and decode lets each scale for its workload, but adds latency-sensitive KV-cache transfers and operational complexity.

1 / 6

Details

  • Rebellions argues that production LLM inference can benefit from separate Prefill and Decode pools because prompt processing is compute-bound while token generation is memory-bandwidth-bound, so sharing hardware makes the phases compete.
  • A router sends each request to a Prefill worker, which builds the KV cache, then a Decode worker, which generates the output; separate pools can be tuned for different latency goals and scaled independently.
  • The separation adds a KV-cache transfer before Decode can begin, making transfer time part of time to first token unless it is hidden, and adding routing, scheduling, memory-management and failure-handling work.
  • Rebellions is building its approach for Rebellions NPU with vLLM and llm-d; the post says disaggregation is most useful for input-heavy, high-concurrency workloads with latency targets, while a shared pool is simpler for low traffic or short requests.

KV-cache transfer

  • For the article's MiniMax M2.7 example, a request with 50,000 input tokens produces a 12.7 GB KV cache; the estimated transfer takes about 1.0 seconds on a 100 Gb/s link, 0.25 seconds on 400 Gb/s, or 0.13 seconds on 800 Gb/s.
  • At two such requests per second, the transfer path must carry about 25 GB/s (~200 Gb/s); if 80% of the prompt is shared and already cached by the Decode worker, the example transfer falls to about 2.5 GB.

When separation pays off

  • Coding assistants, retrieval-augmented generation (RAG) and document analysis can benefit when they process long inputs but produce short outputs, because Prefill can otherwise interfere with Decode.
  • The added infrastructure and tuning are worthwhile when traffic and concurrency make independent scaling matter; for typical short chat requests or low traffic, Rebellions says a monolithic shared pool is usually simpler.

Open-source approach

  • Rebellions says it is integrating its NPU into a Prefill/Decode architecture built on vLLM and llm-d, rather than building a serving framework specific to its accelerator.
  • The post presents this as a way for vLLM-based applications to run on Rebellions NPU without code changes and to use a distributed serving architecture.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.