-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Reduce the kernel overhead when num of active loras is smaller than max loras. Multiple cuda graphs are captured for each num of active-loras. #32005
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 all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
2fcd14c
Using active-loras in grid in fused_moe_lora kernel
yugong333 ddf1597
Capture multiple cuda graph across various active loras
yugong333 9101205
Clean code
yugong333 41e3438
Capture multiple cuda graph across various active loras
yugong333 f0c5d30
Construting grid with num of active lora
yugong333 45f86bb
remove the constraint for SD
yugong333 becb897
Explain specialize_lora_count
yugong333 9af88f5
fix the error
yugong333 934291c
Construting grid with num of active lora
yugong333 194cb60
Adding argument specialize-active-lora to choose lora kernel grid des…
yugong333 bbd7f79
clean code
yugong333 c82a267
Fix bugs
yugong333 fdd66de
Fix error of not to cover the last lora slot
yugong333 0f95148
fix the mismatch if effective loras is max_loras + 1
yugong333 8548e7c
fix the mismatch if effective loras is max_loras + 1
yugong333 32ba60f
Fix errors
yugong333 8b71dfe
fix bugs in cuda graph
yugong333 202903e
Removing files
yugong333 4d35dda
revert unnecessary changes
yugong333 4925e33
Fix bugs in punica_gpu.py
yugong333 a6934e4
Fixing bugs
yugong333 29eb24c
Remove duplicated code
yugong333 813ee49
Clean code
yugong333 18fc597
Cleaning code
yugong333 585cc6c
Cleaning code
yugong333 607d31b
clean code
yugong333 599eaef
Updating test_fused_moe_lora_kernel.py
yugong333 8a27da6
reset captured_lora_counts
yugong333 a68972e
Fixing bugs in test files
yugong333 25ca977
fix bugs in cudagraph_specialize_lora
yugong333 91773b6
Fix errors
yugong333 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
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
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.
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.
Nice! Thanks for adding this test case.