Repository navigation
[Qwen3.8-Next] Add pipeline-parallel PD prefill with MTP - #38698
zhangxiaolei123456 wants to merge 11 commits into
Conversation
The layer-id paired flat path uses the source item length as the destination stride. Pass the peer item lengths from maybe_send_extra and reject mismatched pairs so a future heterogeneous NIXL change cannot silently inherit the equal-layout assumption.
Port target-only PP support from upstream PR sgl-project#38698 commit 9f3718b: relay hyper-connection tensors, shard ownership, weight filtering, and PLE state allocation.
Port the CUDA PD-prefill gate, stage-local MTP layer setup, non-owner EAGLE worker behavior, and draft QSA state transfer from PR sgl-project#38698 while preserving the existing aggregate PP speculation path.
|
Hi @zhangxiaolei123456, since this branch no longer merges after #30775 / #39378 / #40045, I opened #40501 which carries your two commits (authorship kept) rebased onto main plus the follow-up fixes we needed for Qwen3.8-Flash-Next PP; the QSA PD state-transfer commits on this branch are already on main via #36651. Happy to fold it back here or hand it over if you prefer. |
|
Thanks @zhangxiaolei123456. Closing this because you have 9 PRs open and none updated in 7 days, over our soft cap of 5 for idle PRs. Reopen the two or three you most want reviewed - a short active set moves faster than a long idle one. Some directories moved recently, so an older branch may need retargeting: |
Motivation
Enable pipeline-parallel prefill for Qwen3.8-Flash-Next (
Qwen4Exp) with PD disaggregation and native NEXTN/MTP.This PR depends on #36651 for PD state transfer. It adds the missing model-level PP execution path and extends state transfer to include the MTP draft's QSA state.
The initial scope is PP-enabled prefill with PP=1 decode. Pipeline-parallel speculative decode is not enabled.
Modifications
PPProxyTensorsthrough the Qwen4Exp model wrappers. Run token embedding on the first stage, relay the full HyperConnection stream between stages, and apply final contraction on the last stage.Accuracy Tests
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ❌ Run #34368276373
Latest PR Test (Extra): ❌ Run #34368271662
Latest PR Test (AMD ROCm 10): ❌ Run #34368275874