[Feature]: Disaggregated prefill
Author: ggeorgovassilisCreated Sep 22, 2026Updated Sep 27, 2026
Problem
As we recently discovered, colibri runs fine on the Tesla M10. However prefill is agonisingly slow to the point that the M10 cannot realistically serve interactive workflows.
Motivation
In heterogeneous hardware environments, compute capabilities and memory capacity are often asymmetric:
- Prefill is compute-bound (GEMM-heavy) and benefits from modern CUDA cores, Tensor Cores, or higher TFLOPS.
- Decode is memory-bandwidth-bound (GEMV-heavy) and requires large total VRAM capacity to host model weights and long context windows.
- Forcing compute-starved, high-capacity cards (e.g., legacy multi-GPU accelerators) to handle full-prompt ingestion results in unacceptable Time-To-First-Token (TTFT). Decoupling these phases allows each device to execute the workload it is optimized for.
Proposed solution
Proposed behaviour
- Prefill phase (device A): ingest the prompt tokens on a fast compute backend to generate the initial KV cache tensors.
- State handoff:
export or(probably not; we assume that device A's VRAM is small) stream the sequence's KV cache state from device A to device B (via host-pinned RAM, IPC, or PCIe DMA). - Decode phase (device B): initialise the generation loop on device B using the imported KV cache, executing token-by-token generation from step $N+1$.
Implementation
As I find myself with some time, tokens and suitable hardware, I'd be happy to carry out an implementation attempt under guidance, if someone could come up with a draft architecture, implementation milestones, suitable experiments and acceptance criteria.
Alternatives considered
No response
Scope and compatibility
No response
Source: JustVugg/colibri