Repository navigation
perf: Optimize CUTLASS MoE helper kernels for small-batch decode workloads #3014
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
Merged
Changes from 22 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0cc6825
Add spark to microbenchmarks
bkryu 0fb4db3
CUTLASS MoE
bkryu a94b434
Tune
bkryu 2770a20
Fix
bkryu 866dbbc
computeStrides optimize
bkryu 175b4c8
computeStrides optimize
bkryu 1b3e421
Skip memset
bkryu 9bc0e0b
Cleanup
bkryu b3d96ab
Perf tune
bkryu 2324fb3
revert perf tune
bkryu 626fed1
Perf Tune v2 -- Flatten N-dim padding
bkryu f7eb890
Merge branch 'main' into bench_spark
bkryu 527ede3
Merge branch 'main' into bench_spark
bkryu 3ab2921
Port optimizations from TRTLLM
bkryu e9224bf
Merge branch 'main' into bench_spark
bkryu b5d140b
pre-commit
bkryu 451befd
Address comments
bkryu a33b48c
Reduce unnecessary diffs from comments
bkryu 5d268c5
Merge branch 'main' into bench_spark
bkryu 580664b
Skip N-padding
bkryu 85ceb8a
NAN fill testing for removing the N-padding
bkryu 37dc223
remove the 0xFF poison memsets
bkryu 45f97f0
Merge branch 'main' into bench_spark
bkryu 6436f8e
Poison with 0xff AFTER kernel to make sure poisoning works
bkryu a22ce59
Undo poisoning
bkryu e7bc590
Address comments -- replace PDL PTX instruction to CUDA API
bkryu cabf9cd
Merge branch 'main' into bench_spark
bkryu 6f36003
Poison K-dim for validation
bkryu ab0068c
Remove the poisoned K-dim padding
bkryu 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
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.
Per suggestion in #2558 (comment), we might use cuda native primitives such as
cudaTriggerProgrammaticLaunchCompletionhere.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.
Thanks @yzh119, didn't know about the CUDA native APIs. Made substitutions for every PDL PTX in the file in e7bc590 π