re-submit 12911 but relax the requirement for deepgemm#13226
Merged
fzyzcjy merged 3 commits intosgl-project:mainfrom Nov 15, 2025
Merged
re-submit 12911 but relax the requirement for deepgemm#13226fzyzcjy merged 3 commits intosgl-project:mainfrom
fzyzcjy merged 3 commits intosgl-project:mainfrom
Conversation
4 tasks
Collaborator
Author
Collaborator
|
LGTM |
5 tasks
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.


Motivation
re-submit #12911 but relax the requirement for deepgemm, only fallback to triton kernel when it's needed. Here when N < 16 deepgemm would throw CUDA Exception with its minimum block_n = 16.
b.shape=[2048, 1]where N = 1.Qwen3-8B,Qwen3-4Bwith enabling deterministic as it's still using deepgemm as all its mm has N >= 16 (batch size is M not N)python3 -m sglang.launch_server --model-path /shared/public/elr-models/Qwen/Qwen3-8B/2069b3fae1114555f3c020c81410e51fa0f656f2/ --mem-fraction-static 0.8 --enable-deterministic-inferenceMain brach:
Current change:
python3 -m sglang.launch_server --model-path /shared/public/elr-models/Qwen/Qwen3-4B/9e1b55c76f4b5bf0d14d37da8010110060f512e0/ --enable-deterministic-inferenceMain brach:
Current change:
With the old fix (it's very slow)
Modifications
Accuracy Tests
Benchmarking and Profiling
Checklist