Skip to content

Disaggregated serving handoff: support chunked-prefill prompts #197

Closed

Description

@inureyes

Context

Follow-up from epic #116 (#126, disaggregated serving). The serving-role prefill entry rejects prompts longer than the prefill chunk size.

Problem

BatchScheduler::prefill_request_for_handoff / prefill_text_request_for_handoff (src/server/batch/scheduler.rs) guard against a chunked prefill: when the prompt exceeds --prefill-chunk-size, prefill is normally broken into chunks across scheduler iterations, but the handoff entry drives a single full prefill and then extracts, so it bails on a long prompt. This limits disaggregated serving to short prompts, while long prompts are exactly where prefill/decode disaggregation pays off.

Implementation

Acceptance criteria

  • A disaggregated prefill of a prompt longer than --prefill-chunk-size produces a correct handoff and the decode node continues byte-identically to a single-node run.
  • A long-prompt case is added to tests/disaggregated_router_e2e.rs or the in-crate handoff parity test.

Activity

  1. added
    status:ready
    type:enhancement
    priority:medium
    area:architecture
    on Jun 9, 2026
  2. added a commit that references this issue on Jun 11, 2026
  3. added this to the 0.2 milestone on Jun 21, 2026
  4. self-assigned this
    on Aug 31, 2026
  5. added
    status:done
    and removed
    status:ready
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:architecturepriority:mediumstatus:donetype:enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions