Repository navigation
Support JIT fused A GEMM (MLA down projection) and support GLM-5 hidden size, SM120 - #27397
Merged
Merged
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
b8zhong
force-pushed
the
brayden/cute-dsl-fused-a-gemm
branch
from
June 8, 2026 18:12
69f0df7 to
ce52f63
Compare
Add a CuTe DSL fused QKV-A GEMM (cutedsl_dsv3_fused_a_gemm) and the CUDA JIT variant (dsv3_fused_a_gemm), both ported from TensorRT-LLM dsv3FusedAGemm for SM90+. Route the DeepSeek-V2/V3 fused-A GEMM to the DSL kernel on SM120 (Blackwell) and the AOT sgl_kernel otherwise. Add unit tests for both kernels and a merged benchmark comparing DSL vs CUDA JIT vs AOT vs torch.
b8zhong
force-pushed
the
brayden/cute-dsl-fused-a-gemm
branch
from
June 8, 2026 18:15
ce52f63 to
e878ea5
Compare
b8zhong
marked this pull request as ready for review
June 8, 2026 18:20
b8zhong
requested review from
BBuf,
DarkSharpness,
Fridge003,
HydraQYH,
celve,
ch-wan,
fzyzcjy,
ispobock,
merrymercy and
yuan-luo
as code owners
June 8, 2026 18:20
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
CI-registered tests must not ship inside the sglang package; relocate them under test/registered/jit so the in-package rejection hook passes and run_suite.py collects them.
Fridge003
reviewed
Jun 23, 2026
b8zhong
enabled auto-merge (squash)
June 25, 2026 21:29
Collaborator
Author
Fridge003
approved these changes
Jun 26, 2026
Fridge003
disabled auto-merge
June 27, 2026 20:31
Fridge003
pushed a commit
that referenced
this pull request
Jun 27, 2026
…en size, SM120 (#27397) Co-authored-by: Brayden Zhong <[email protected]>
This was referenced Jun 28, 2026
Collaborator
Author
Chronostasys
pushed a commit
to MindLab-Research/sglang
that referenced
this pull request
Aug 24, 2026
…en size, SM120 (sgl-project#27397) Co-authored-by: Brayden Zhong <[email protected]>
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.

Modifications
DSL vs the original CUDA changes on SM120:
max_number_threads=[256], min_blocks_per_mp=1) by capping the launch bounds on SM120, when tileN is 8SM120 Perf Data
K = 6144, N = 2112
K = 7168, N = 2112
SM100 Perf Data
K = 6144, N = 2112
K = 7168, N = 2112
Speed Tests and Profiling
56.03 -> 57.23 on SM120 on BS = 1 (DSL path)

Before:
After:

before vs after JIT fused A on GLM-5 on SM103
CI States
Latest PR Test (Base): ❌ Run #28282639269
Latest PR Test (Extra): ❌ Run #28282639236