Repository navigation
[Fix] spec/dflash: Turn the DFLASH draft KV ring off by default - #51386
Conversation
Each PD role resolves the ring from its own launch flags, so a prefill that cannot serve the ring (e.g. attn CP) paired with a decode that can fails the PD state-wire check at bootstrap. Make the ring opt-in via SGLANG_ENABLE_DFLASH_DRAFT_KV_RING=1; once opted in, an unsupported launch is a launch-time error rather than a silent fallback. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
…1-Pro NVIDIA DFLASH commands Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
/rerun-tes test/registered/unit/disaggregation/test_unified_window_wire.py test/registered/unit/spec/test_dflash_draft_kv_ring.py test_glm53_cp_bcg_dflash.py |
|
⛔ See the command reference. |
|
/rerun-test test/registered/unit/disaggregation/test_unified_window_wire.py test/registered/unit/spec/test_dflash_draft_kv_ring.py test_glm53_cp_bcg_dflash.py |
|
🚀 🚀 |
Resolve conflicts with the DFLASH confidence-scheduled verify (sgl-project#46190) and the draft KV ring default (sgl-project#51386): the sparse support runs only without a planned verify layout, since its accept cannot stop at cutoff_verify_lens; planned steps keep the dense gather and the cutoff-aware selector accept. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… KV ring off by default to release/v1.0.0 (#51386) (#51642) Co-authored-by: Baizhou Zhang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Motivation
#50740 turned the per-request DFLASH draft KV ring on by default for all-sliding-window MHA drafts (on top of the MLA ring from #49664). Each PD role decides whether to use the ring from its own launch flags only. So when one role can't serve the ring and the other can, the two servers register different state entries and the decode scheduler crashes at bootstrap.
This is what breaks
test_glm53_cp_bcg_dflash.pyon main (extra-b-test-8-gpu-b300, run):--attn-cp-size 4 --enable-prefill-cp, so the ring turns itself off ("an MHA draft's ring has no context-parallel layout").Heterogeneous-TP PD deployments fail the same way.
Modifications
SGLANG_ENABLE_DFLASH_DRAFT_KV_RINGnow defaults toFalse, so the ring is opt-in._resolve_dflash_draft_kv_ring: if the switch is set and the launch can't serve the ring, the server now raises aValueErrorat launch. Before this change, an unset switch fell back silently, and only an explicit=1raised. With the new default that silent-fallback branch can never run, and a silent fallback on one PD role is exactly what causes the mismatch above.speculative_dflash_draft_kv_ringhelp text, the Kimi-K3.1-Pro cookbook notes, and the Kimi K3.1 mamba-ratio calculator. The calculator now counts the ring only when=1is set.Behavior change
The MLA ring (Kimi-K3.1 DFLASH on
trtllm_mla/cutedsl_mla) is now off by default too. Deployments that want the ~15% extra target KV need to setSGLANG_ENABLE_DFLASH_DRAFT_KV_RING=1on both PD roles.To keep the recommended Kimi-K3.1-Pro deployment unchanged, the cookbook's DFLASH option now sets
SGLANG_ENABLE_DFLASH_DRAFT_KV_RING=1on every NVIDIA cell, including both PD roles. MI350X / MI355X are left alone because they use the Triton draft backend, which has no ring. I rendered every Kimi cell to confirm this. Two things are deliberately left unchanged:docs/src/snippets/agentx/...): it is synced from InferenceX and pins its own image.Checklist
test_dflash_draft_kv_ring.pyandtest_unified_window_wire.py/rerun-test test/registered/e2e/disaggregation/test_glm53_cp_bcg_dflash.py🤖 Generated with Claude Code
CI States
Latest PR Test (Base): ⊘ Skipped -- add the
run-cilabel to run CI tests.Latest PR Test (Extra): ⊘ Skipped -- add the
run-cilabel to run CI tests.Latest PR Test (AMD ROCm 10): ⊘ Skipped -- add the
run-cilabel to run CI tests.Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: