Repository navigation
[rl] SGLang generator: full prefill CUDA graphs for linear attention (GDN, KDA) models - #6200
Draft
acisseJZhong wants to merge 1 commit into
Draft
acisseJZhong wants to merge 1 commit into
acisseJZhong wants to merge 1 commit into
Conversation
3 of 5 tasks
…(GDN, KDA) models
acisseJZhong
force-pushed
the
sglang-linear-attn-full-prefill-graph
branch
from
November 19, 2026 01:47
b539fbb to
e23d9b4
Compare
This was referenced Nov 27, 2026
Draft
This branch has not been deployed
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.
Depends on sgl-project/sglang#51225 (pinned
sglang_commitmust be bumped after it lands).Summary (human-written)
What changed
GDN/KDA models can now use the default
SGLangEngine.Config(cuda_graph="full"). Previously they raised and had to use"breakable".TorchTitanLinearAttnBackend.supports_full_cuda_graph_prefill = True, which opts into SGLang's full prefill graphs ([Fix] cuda_graph: Capture full prefill CUDA graphs of linear attention backends on static forward metadata sgl-project/sglang#51225).cuda_graph="full"guard for linear attention inengine.py, and updated the README and docstring."full".Performance
Median prefill step on a multi-turn workload (32 sessions × 4 turns on cached prefixes), GB300:
Workload wall time: 0.8B 1.59 s → 0.89 s; 9B 2.07 s → 1.34 s.
The gain shrinks as prefill batches grow and become GPU-bound. Qwen3.5-27B, 1x GB300, median prefill step; the last row is the sgl-project/sglang#48593 setup (100 multi-turn requests):
Testing (GB300)
TestSGLangBitwiseParityGDN(Qwen3.5 debug, TP 2),fullTestSGLangBitwiseParityKDA(Kimi K3 debug),full