Skip to content

Enable DeepGEMM PDL on by default - #23979

Merged
b8zhong merged 3 commits into
mainfrom
brayden/deepgemm-pdl
Jun 4, 2026
Merged

b8zhong merged 3 commits into
mainfrom
brayden/deepgemm-pdl

Conversation

@b8zhong

@b8zhong b8zhong commented Apr 29, 2026 •

Copy link
Copy Markdown
Collaborator

It's opt in. We need to turn it on

import deep_gemm

# Enable Programmatic Dependent Launch (PDL) globally
deep_gemm.set_pdl(True)

# Now, all subsequent kernel calls (GEMMs, MoE, etc.) will launch with PDL enabled

Currently, this check will not cause an error, if the module does not contain the PDL export. So it's safe to merge beforehand.

The fix is in github.com/sgl-project/DeepGEMM/pull/29

Before:
Screenshot 2026-05-09 at 11 34 10 AM

After:
Screenshot 2026-05-09 at 11 34 29 AM

Performance: about 0.8%.

GQPA:

nohup python3 -m sglang.test.run_eval --port 30020 --eval-name gpqa --num-examples 198 --max-tokens 128000 --repeat 8 --top-p 0.95 --temperature 1.0 --thinking-mode glm-45 > eval.log 2>&1 &

GLM-5 FP8:

Repeat: 8, mean: 0.850
Scores: ['0.842', '0.871', '0.856', '0.839', '0.865', '0.835', '0.850', '0.845']
Mean latency: 12683.415 s

CI States

Latest PR Test (Base): ✅ Run #26852468613
Latest PR Test (Extra): ✅ Run #26852468493

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@b8zhong
b8zhong force-pushed the brayden/deepgemm-pdl branch from 62511d2 to 887b9b6 Compare June 1, 2026 16:12
@b8zhong
b8zhong marked this pull request as ready for review June 1, 2026 16:12
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@b8zhong

b8zhong commented Jun 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

/rerun-failed-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Jun 1, 2026
@b8zhong

b8zhong commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator Author

Since this PR affects all DeepGEMM GEMM calls on SM90 and SM100, better to run extra to avoid any potential issues.

@b8zhong b8zhong added the run-ci-extra CI: also run the extra suite (requires run-ci) label Jun 1, 2026
@b8zhong
b8zhong enabled auto-merge (squash) June 4, 2026 12:28
@b8zhong
b8zhong merged commit 5bf90ad into main Jun 4, 2026
309 of 353 checks passed
@b8zhong
b8zhong deleted the brayden/deepgemm-pdl branch June 4, 2026 21:13
@merrymercy

merrymercy commented Jun 9, 2026 •

Copy link
Copy Markdown
Collaborator

This created cuda context on other GPUs and wasted GPUs. Fixed here #27671

@b8zhong

b8zhong commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

Sorry about that. Thanks for the catch @merrymercy

Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Co-authored-by: b8zhong <[email protected]>
Co-authored-by: Brayden Zhong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants