Repository navigation
fix: avoid piecewise prefill graph for trtllm_mla - #32785
Merged
Merged
Conversation
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
mickqian
marked this pull request as ready for review
July 29, 2026 13:35
Collaborator
Author
|
/tag-and-rerun-ci |
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Collaborator
|
@mickqian should we merge this? thanks |
4 of 5 tasks
saturn-acc
pushed a commit
to saturn-acc/sglang
that referenced
this pull request
Aug 16, 2026
Atituiset
pushed a commit
to Atituiset/sglang
that referenced
this pull request
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Fixes #32655.
#30889 upgrades the default prefill CUDA graph backend from
breakabletotc_piecewisefor allowlisted multimodal models. Kimi-K2.6 on Blackwell auto-selectstrtllm_mla, so that upgrade moves prefill capture onto the FlashInfer paged-MLA fallback. The fallback converts the full FP8 KV cache buffer and substantially regresses TTFT, while decode TPOT remains unchanged.This is orthogonal to #32288: that PR fixed stale fallback state leaking into speculative verify; this PR fixes the default prefill backend selection and its throughput regression.
Changes
breakableprefill backend when the resolved prefill attention backend istrtllm_mla.tc_piecewiseupgrade for other validated multimodal attention backends.tc_piecewisebackend.This also keeps
breakableas the preferred future path: once BCG gains native MLA support, its compatibility rule can be relaxed without re-enabling the deprecating PCG path fortrtllm_mla.Validation
On the latest
mainsource in a remote B300 environment:python3 -m pytest test/registered/unit/configs/test_multimodal_piecewise_cuda_graph.py -q— 9 passedpre-commit run --files python/sglang/srt/server_args.py test/registered/unit/configs/test_multimodal_piecewise_cuda_graph.py— passedA full 4x GB300 performance A/B is not included in this patch. The selected prefill execution path is restored to the same graph-disabled TRT-LLM path used before #30889; decode graph selection is unchanged.
CI States
Latest PR Test (Base): ✅ Run #30456623153
Latest PR Test (Extra): ❌ Run #30456622464