Repository navigation
Enable breakable prefill CUDA graph for DP attention - #30898
Conversation
|
/tag-and-rerun-ci |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
69a2b75 to
9387a50
Compare
|
/rerun-test test/registered/dp_attn/test_dp_attention_bcg_kl.py |
|
Results for 🚀 |
9387a50 to
39e6cf5
Compare
|
/rerun-test test/registered/dp_attn/test_dp_attention_bcg_kl.py |
|
Results for 🚀 |
39e6cf5 to
439c4bb
Compare
|
/rerun-test test/registered/dp_attn/test_dp_attention_bcg_kl.py |
|
Results for 🚀 |
|
will try to fast merge this without passing all CI. since some CIs are flaky and the previous same content passed all CIs |
|
/rerun-test test/registered/models_e2e/test_mimo_v2_flash.py |
|
Results for 🚀 |
|
/rerun-test test_disaggregation_hybrid_attention.py test_deepseek_v4_flash_fp4_b200_cp.py |
|
Results for 🚀 🚀 |
Allow breakable prefill CUDA graph replay to use consistent DP padding, preserve non-padded token accounting, and carry logprob metadata through replay. Co-authored-by: Lianmin Zheng <[email protected]>
6d9658c to
908d534
Compare
|
cc @YAMY1234 for vis |
TestDSV4FlashFP4BreakableCudaGraphB200.test_determinism_temp_zero is
flaky in per-commit CI ('Paris.' != 'Paris'): under this recipe (TP4/DP4/
DeepEP/DP-attention) a single request leaves the other DP ranks idle, and
#30898's idle-rank path replays the breakable prefill CUDA graph with a
fabricated dummy extend whose hidden states vary run to run, perturbing
the real request's logits through the shared EP grouped GEMMs at capture
buckets 4/16 (bisected to #30898; hammer shows ~50% of identical temp-0
request pairs diverge).
Skip the test to unblock CI while a proper fix that keeps BCG enabled is
developed. A reserved-req_to_token-row attempt did not resolve the
nondeterminism, so the real source (likely the captured-metadata refresh
or grouped-GEMM composition on the dummy-extend rank) needs deeper work.
The other tests in the class (gsm8k accuracy, sanity, accept-length) still
run.
| # Prefill breakable CUDA graph requires every DP rank to run the SAME | ||
| # captured shape. Under SUM_LEN each rank pads to its own local token | ||
| # count and can select a different capture bucket, so the in-graph DP | ||
| # collectives (all_gather / reduce_scatter) mismatch across ranks and |
There was a problem hiding this comment.
this comment is likely wrong. it is for some a2a backend, see #30450
|
Hi. One concern about the idle-rank handling on skewed batches.Once MAX_LEN is forced, the idle rank becomes a dummy request covering With global_num_tokens = [4096, 0, 0, 0] that costs: Do you think I can submit the relevant pull request? |
|
yes, please submit a pr and do comprehensive tests. If you can test with many a2a backend, we can consider accepting it. |
|
ok,I will submit a pr soon. |
|
Hi merrymercy,
Could you please review PR #33871 when you have time?
#33871
This PR reduces idle DP work under breakable prefill CUDA graphs and allows MegaMoE to use per-rank SUM_LEN buckets while retaining the existing MAX_LEN behavior for DeepEP and prefill CP.
The main measured result is a 12.9% QPS improvement on a multi-turn MegaMoE workload (4.749 -> 5.361). Single-turn DeepEP and MegaMoE workloads mainly show TTFT improvements, with end-to-end throughput remaining approximately unchanged.
I have completed the related padding tests, the DP attention BCG KL test (48 samples, KL=0), and DeepEP/MegaMoE service-level E2E tests.
I would especially appreciate feedback on the MegaMoE safety assumptions and the compatibility guards.
Thank you,
Wujunxiang
…------------------ 原始邮件 ------------------
发件人: "sgl-project/sglang" ***@***.***>;
发送时间: 2026年8月5日(星期三) 凌晨3:54
***@***.***>;
***@***.******@***.***>;
主题: Re: [sgl-project/sglang] Enable breakable prefill CUDA graph for DP attention (PR #30898)
merrymercy left a comment (sgl-project/sglang#30898)
yes, please submit a pr and do comprehensive tests. If you can test with many a2a backend, we can consider accepting it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you commented.Message ID: ***@***.***>
|
…sgl-project#30898 idle-rank dummy extend) (sgl-project#31125)
Summary
Testing
python3 -m py_compile python/sglang/srt/managers/scheduler_components/dp_attn.py python/sglang/srt/model_executor/cuda_graph_buffer_registry.py python/sglang/srt/model_executor/forward_batch_info.py python/sglang/srt/model_executor/runner/prefill_cuda_graph_runner.py python/sglang/srt/model_executor/runner_utils/buffers.py python/sglang/srt/server_args.py test/registered/unit/model_executor/test_cuda_graph_buffer_registry.pywith-proxy uv run pre-commit run --files python/sglang/srt/managers/scheduler_components/dp_attn.py python/sglang/srt/model_executor/cuda_graph_buffer_registry.py python/sglang/srt/model_executor/forward_batch_info.py python/sglang/srt/model_executor/runner/prefill_cuda_graph_runner.py python/sglang/srt/model_executor/runner_utils/buffers.py python/sglang/srt/server_args.py test/registered/unit/model_executor/test_cuda_graph_buffer_registry.pywith-proxy uv run pytest test/registered/unit/model_executor/test_cuda_graph_buffer_registry.py -qOriginal commits
624a9b21afCI States
Latest PR Test (Base): ❌ Run #29193679942
Latest PR Test (Extra): ❌ Run #29193679875