Skip to content

Defer DeepGEMM PDL setup to worker init - #27671

Merged
Fridge003 merged 4 commits into
mainfrom
codex/defer-deepgemm-pdl-worker-init
Jun 9, 2026
Merged

Fridge003 merged 4 commits into
mainfrom
codex/defer-deepgemm-pdl-worker-init

Conversation

@merrymercy

@merrymercy merrymercy commented Jun 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Defer DeepGEMM PDL setup until worker initialization.
  • Run the setup through the existing DeepGEMM config path.

Before

Representative pre-fix nvidia-smi process list, sanitized to remove host paths and PIDs:

GPU  Process name             GPU Memory
0    python3                  716 MiB
0    sglang::scheduler_TP0   5824 MiB
0    sglang::scheduler_TP1    740 MiB
0    sglang::scheduler_TP2    740 MiB
0    sglang::scheduler_TP3    740 MiB
0    sglang::detokenizer      740 MiB
1    sglang::scheduler_TP1   5792 MiB
2    sglang::scheduler_TP2   5792 MiB
3    sglang::scheduler_TP3   5792 MiB

Verification

  • python3 -m py_compile python/sglang/srt/layers/deep_gemm_wrapper/entrypoint.py
  • git diff --check

Original commits

  • baf07ecb33ca79e4ef7d6cbe66bb6041143a1be0
  • 3c169cd443038f946269a672e8273b44b460e493
  • 9550ba550c28d38a8f37e9919b8cf6d69a41bb7c
  • 8cc54abe7241639dc293033b0da7eef568d1fc34

CI States

Latest PR Test (Base): 🚫 Run #27200752236
Latest PR Test (Extra): ❌ Run #27200751616

@merrymercy

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the _maybe_set_deep_gemm_pdl helper function to lazily configure PDL for deep_gemm, ensuring CUDA state is initialized only after the scheduler or TP worker has been forked and assigned a GPU. This helper is called within update_deep_gemm_config. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@merrymercy

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@merrymercy

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@merrymercy

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@merrymercy

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/moe/test_moe_ep_extra.py

@github-actions

github-actions Bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/moe/test_moe_ep_extra.py:

🚀 2-gpu-h100 (1 test): ✅ View workflow run

cd test/ && python3 registered/moe/test_moe_ep_extra.py

@Fridge003
Fridge003 merged commit eb8dced into main Jun 9, 2026
188 of 217 checks passed
@Fridge003
Fridge003 deleted the codex/defer-deepgemm-pdl-worker-init branch June 9, 2026 20:52
Fridge003 pushed a commit that referenced this pull request Jun 9, 2026
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants