Skip to content

Fix CuTe DSL DSA paged MQA export - #30627

Merged
Fridge003 merged 1 commit into
mainfrom
mmangkad/fix-cutedsl-dsa-export
Jul 10, 2026
Merged

Fridge003 merged 1 commit into
mainfrom
mmangkad/fix-cutedsl-dsa-export

Conversation

@mmangkad

@mmangkad mmangkad commented Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fix the CuTe DSL paged MQA export that got broken by the import reordering in #30374. Before this change, the export pointed at the module instead of the function. This puts the order back so callers get the function again.

I also made the CuTe DSL helper import CUDA-only. For NPU, ROCm, and other backends, we leave a None placeholder instead of trying to load CUDA-only code.


CI States

Latest PR Test (Base): 🚫 Run #29079820810
Latest PR Test (Extra): ✅ Run #29147456875

@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 moves the conditional import of CuteDSLPagedMQALogitsRunner and pick_dsl_expand to the top of the init.py file. The reviewer noted that because these variables are unconditionally listed in all, an AttributeError will occur on ROCm platforms where they are not imported. It is recommended to define them as None when is_hip() is True to prevent this issue.

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.

Comment thread python/sglang/jit_kernel/dsa/__init__.py Outdated
@mmangkad
mmangkad force-pushed the mmangkad/fix-cutedsl-dsa-export branch 2 times, most recently from 10c5e0e to b4a0463 Compare July 9, 2026 09:45
@mmangkad
mmangkad force-pushed the mmangkad/fix-cutedsl-dsa-export branch from 7185afb to edd5785 Compare July 9, 2026 09:48
@mmangkad mmangkad added the run-ci CI: run the baseline test suite on this PR label Jul 9, 2026
@mmangkad
mmangkad force-pushed the mmangkad/fix-cutedsl-dsa-export branch 2 times, most recently from b08d9df to e20e1e5 Compare July 10, 2026 08:22
@mmangkad
mmangkad force-pushed the mmangkad/fix-cutedsl-dsa-export branch from e20e1e5 to 0d13af0 Compare July 10, 2026 08:27
@Fridge003
Fridge003 merged commit ecb7fb3 into main Jul 10, 2026
56 of 100 checks passed
@Fridge003
Fridge003 deleted the mmangkad/fix-cutedsl-dsa-export branch July 10, 2026 08:33
Fridge003 pushed a commit that referenced this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jit-kernel post version patch 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