Add awq dequantize kernel to sgl with 1x to 3x speedup#4104
Merged
zhyncs merged 7 commits intosgl-project:mainfrom Mar 12, 2025
Merged
Add awq dequantize kernel to sgl with 1x to 3x speedup#4104zhyncs merged 7 commits intosgl-project:mainfrom
zhyncs merged 7 commits intosgl-project:mainfrom
Conversation
18 tasks
Collaborator
|
Rebase main please. @zcnrex |
a77798e to
5a96f94
Compare
Collaborator
Author
|
@BBuf Rebased main, ready for review. Thanks. |
Collaborator
Thanks, I'll review it when I am free. |
d78b4e0 to
dde3583
Compare
hebiao064
reviewed
Mar 8, 2025
76656f2 to
3c6eb12
Compare
850c9b0 to
6b2dffb
Compare
BBuf
reviewed
Mar 9, 2025
BBuf
approved these changes
Mar 10, 2025
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
#2965
Adapted from vllm awq_dequant
Achieved 1x - 4x speed up compared to vllm awq_dequantize cuda implementation.
The performance improvement comes from removing the copy & for loop in the end when assigning the output.
There's also a triton implementation that we could port later.
Slightly better performance compared to triton implementation on H100
Modifications
Checklist