You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disaggregated serving handoff: support chunked-prefill prompts #197
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
In the prefill-role entry, drive the chunked prefill to completion (loop the chunk-continue path until the prompt is fully prefilled) before extracting the handoff frame, instead of bailing.
Reuse the existing chunked-prefill machinery (next_chunked_prefill_range at scheduler.rs:133, and the chunk-continue path in execute_prefill) rather than duplicating it.
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
fix(#197): cap handoff prompt admission, release pool state on extrac…
fix: support chunked-prefill prompts in the disaggregated serving han…
fix: support chunked-prefill prompts in the disaggregated serving han…