-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[Bugfix] Avoid uninitialized usage of azp_val when AZP is false. #24335
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] Avoid uninitialized usage of azp_val when AZP is false. #24335
Conversation
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run You ask your reviewers to trigger select CI tests on top of 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 either: Add If you have any questions, please reach out to us on Slack at https://slack.vllm.ai. 🚀 |
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.
Code Review
This pull request correctly fixes an uninitialized variable usage of azp_val when AZP is false by initializing it and scale_val before the conditional block. My review includes a suggestion to optimize the change by avoiding a redundant function call, which improves performance.
4162b3d to
03aebd7
Compare
7b3e71f to
3ff4634
Compare
|
LGTM, please also fix the failed DCO check. |
Added |
b0e3763 to
f8f052c
Compare
- Avoid uninitialized usage of azp_val when AZP is false - Optimize max_scalar calculation to avoid redundant reduce_max() calls - Improve code efficiency and readability in dynamic_scaled_int8_quant_impl Signed-off-by: Mohan Kumar Kumar <[email protected]> Signed-off-by: mohankku <[email protected]>
f8f052c to
9d638aa
Compare
…m-project#24335) Signed-off-by: Mohan Kumar Kumar <[email protected]> Signed-off-by: mohankku <[email protected]>
…m-project#24335) Signed-off-by: Mohan Kumar Kumar <[email protected]> Signed-off-by: mohankku <[email protected]>
…m-project#24335) Signed-off-by: Mohan Kumar Kumar <[email protected]> Signed-off-by: mohankku <[email protected]>
…m-project#24335) Signed-off-by: Mohan Kumar Kumar <[email protected]> Signed-off-by: mohankku <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
…m-project#24335) Signed-off-by: Mohan Kumar Kumar <[email protected]> Signed-off-by: mohankku <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Purpose
Fix uninitialized usage of azp_val. Initialize scale and azp_val outside the AZP conditional block.
Test Plan
Build cpu version with instructions in
https://docs.vllm.ai/en/stable/getting_started/installation/cpu.html
Test Result
Build successful.
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.