-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[bugfix] Fix static asymmetric quantization case #10334
[bugfix] Fix static asymmetric quantization case #10334
Conversation
When `scaled_int8_quant` was used with asymmetric static input quantization, the zero point was used to quantize the input, but not returned from the function. As a result, the zero point was not passed to scaled matmul, resulting in erroneous output (gibberish when generating). Signed-off-by: Daniël de Kok <[email protected]>
Signed-off-by: luka <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
@danieldk could you please take a look and verify this fix works for you? It seems to be working on my end. |
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 for the fix!
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.
would be good to add an integration test to prevent this from getting broken again
Signed-off-by: luka <[email protected]>
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 for the start of a test! We can add the rest of models in another PR once they are ready
Signed-off-by: Daniël de Kok <[email protected]> Signed-off-by: luka <[email protected]> Co-authored-by: Daniël de Kok <[email protected]>
Signed-off-by: Daniël de Kok <[email protected]> Signed-off-by: luka <[email protected]> Co-authored-by: Daniël de Kok <[email protected]> Signed-off-by: Maxime Fournioux <[email protected]>
Signed-off-by: Daniël de Kok <[email protected]> Signed-off-by: luka <[email protected]> Co-authored-by: Daniël de Kok <[email protected]> Signed-off-by: rickyx <[email protected]>
Signed-off-by: Daniël de Kok <[email protected]> Signed-off-by: luka <[email protected]> Co-authored-by: Daniël de Kok <[email protected]> Signed-off-by: Tyler Michael Smith <[email protected]>
Signed-off-by: Daniël de Kok <[email protected]> Signed-off-by: luka <[email protected]> Co-authored-by: Daniël de Kok <[email protected]>
This PR provides a complete fix for #10292. In the static quantization case, the AZP needs to be folded into
azp_adj
ahead of time.FIX #10292