-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
[LoRA] Add one shot triton kernel For MoE LoRA #42290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ywang96
merged 26 commits into
vllm-project:main
from
jeejeelee:fused-moe-triton-kernel
May 26, 2026
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ac26372
Init
jeejeelee b39f3a8
Merge remote-tracking branch 'origin/main' into fused-moe-triton-kernel
jeejeelee 977f1a0
Move
jeejeelee 778ea81
Merge remote-tracking branch 'origin/main' into fused-moe-triton-kernel
jeejeelee 1f26ac7
Support dual streams
jeejeelee 784a97b
Merge remote-tracking branch 'origin/main' into fused-moe-triton-kernel
jeejeelee ce0e0c8
Add glm config
jeejeelee c787eb3
Support samll batch fused kernel
jeejeelee e71fa73
Address conflict
jeejeelee 9b1b132
Move
jeejeelee b1d60d9
Move
jeejeelee 0a2fa4f
FIX
jeejeelee ece684a
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee 21460c6
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee e4ec173
Shrink tests
jeejeelee 2bf7071
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee 8dd901c
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee 5bd9ea9
FMT
jeejeelee 135ef1f
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee 4d9174d
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee d5754b0
Cleanup
jeejeelee 7ed7946
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee c9f0c89
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee 5a96756
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee f1b6011
Merge branch 'main' into fused-moe-triton-kernel
ywang96 eab84fd
Merge branch 'main' into fused-moe-triton-kernel
jeejeelee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
465 changes: 465 additions & 0 deletions
465
benchmarks/kernels/benchmark_fused_moe_lora_one_shot.py
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one-shot Triton kernel has a hard limit of
max_lora_rank <= 128. For ranks exceeding this, the dual-stream path (which relies on the one-shot kernel'sadd_inputs=Falsecontract) should be disabled to avoid a crash in the forward pass. This ensures that high-rank LoRAs fall back to the sequential legacy path which supports arbitrary ranks.