-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
[Quantization] [Performance] Enable Marlin GEMM kernels for the calibration-free RTN-based quantization #26051
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
Conversation
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
Signed-off-by: Alex Kogan <[email protected]>
|
This pull request has merge conflicts that must be resolved before it can be |
mgoin
approved these changes
Oct 7, 2025
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.
Looks reasonable to me, thanks for using the existing kernel! Please fix the merge conflict and I will enable the full CI @sakogan
Signed-off-by: Alex Kogan <[email protected]>
Signed-off-by: Alex Kogan <[email protected]>
Signed-off-by: Alex Kogan <[email protected]>
Signed-off-by: Alex Kogan <[email protected]>
Signed-off-by: Alex Kogan <[email protected]>
Signed-off-by: Alex Kogan <[email protected]>
1994
pushed a commit
to 1994/vllm
that referenced
this pull request
Oct 14, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: 1994 <[email protected]>
Dhruvilbhatt
pushed a commit
to Dhruvilbhatt/vllm
that referenced
this pull request
Oct 14, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Dhruvil Bhatt <[email protected]>
bbartels
pushed a commit
to bbartels/vllm
that referenced
this pull request
Oct 16, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: bbartels <[email protected]>
lywa1998
pushed a commit
to lywa1998/vllm
that referenced
this pull request
Oct 20, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]>
alhridoy
pushed a commit
to alhridoy/vllm
that referenced
this pull request
Oct 24, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]>
xuebwang-amd
pushed a commit
to xuebwang-amd/vllm
that referenced
this pull request
Oct 24, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
xuebwang-amd
pushed a commit
to xuebwang-amd/vllm
that referenced
this pull request
Oct 24, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
0xrushi
pushed a commit
to 0xrushi/vllm
that referenced
this pull request
Oct 26, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: 0xrushi <[email protected]>
0xrushi
pushed a commit
to 0xrushi/vllm
that referenced
this pull request
Oct 26, 2025
…ration-free RTN-based quantization (vllm-project#26051) Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: Alex Kogan <[email protected]> Signed-off-by: 0xrushi <[email protected]>
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.
This PR enhances the work started in #18768 and #20766 by enabling Marlin kernels for the calibration-free RTN-based quantization.
These kernels substantially improve the performance of dense/MoE models quantized with RTN.
We ran the built-in latency benchmark with several Llama models on a machine equipped with H100 GPUs. The exact command was
[RTN_NUM_BITS=4] vllm bench latency --model <model> --n 1 --num-iters-warmup 3 --num-iters 10 --input-len 256 --output-len 32 -tp <#GPUs> --batch-size <batch> -q rtnEach data point is an average of 5 runs, the units are seconds (measuring generation latency, the lower the better).
Here are the results for Llama3.1-8B (ran on 1 GPU), for various batch sizes (old/new refer to pre-PR/post-PR implementations):
Here are the results for Llama3.3-70B (ran on 4 GPUs), for various batch sizes: