Skip to content

fix: avoid piecewise prefill graph for trtllm_mla - #32785

Merged
mickqian merged 1 commit into
mainfrom
codex/fix-kimi-trtllm-prefill-graph
Aug 8, 2026
Merged

mickqian merged 1 commit into
mainfrom
codex/fix-kimi-trtllm-prefill-graph

Conversation

@mickqian

@mickqian mickqian commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Fixes #32655.

#30889 upgrades the default prefill CUDA graph backend from breakable to tc_piecewise for allowlisted multimodal models. Kimi-K2.6 on Blackwell auto-selects trtllm_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

  • Keep the default breakable prefill backend when the resolved prefill attention backend is trtllm_mla.
  • Let the existing breakable/MLA compatibility rule disable prefill CUDA graph for now, restoring the eager TRT-LLM ragged-MLA path used before feat: enable piecewise prefill graph for Kimi K2.5/K2.7 #30889.
  • Preserve the existing tc_piecewise upgrade for other validated multimodal attention backends.
  • Continue honoring an explicitly selected tc_piecewise backend.

This also keeps breakable as the preferred future path: once BCG gains native MLA support, its compatibility rule can be relaxed without re-enabling the deprecating PCG path for trtllm_mla.

Validation

On the latest main source in a remote B300 environment:

  • python3 -m pytest test/registered/unit/configs/test_multimodal_piecewise_cuda_graph.py -q — 9 passed
  • pre-commit run --files python/sglang/srt/server_args.py test/registered/unit/configs/test_multimodal_piecewise_cuda_graph.py — passed

A 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

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@github-actions github-actions Bot added the Multi-modal multi-modal language model label Jul 29, 2026
@mickqian
mickqian marked this pull request as ready for review July 29, 2026 13:35
@mickqian

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@nvpohanh

nvpohanh commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@mickqian should we merge this? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Multi-modal multi-modal language model run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Kimi-K2.6 NVFP4 throughput regression after enabling piecewise prefill CUDA graph (#30889)

2 participants