Skip to content

Conversation

@mohankku
Copy link
Contributor

@mohankku mohankku commented Sep 5, 2025

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
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

@mohankku mohankku requested a review from bigPYJ1151 as a code owner September 5, 2025 17:03
@github-actions
Copy link

github-actions bot commented Sep 5, 2025

👋 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 fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors.

You ask your reviewers to trigger select CI tests on top of fastcheck CI.

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 ready label to the PR or enable auto-merge.

If you have any questions, please reach out to us on Slack at https://slack.vllm.ai.

🚀

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@mohankku mohankku force-pushed the fix/dnnl-quantization-optimization branch from 4162b3d to 03aebd7 Compare September 5, 2025 17:18
@mohankku mohankku force-pushed the fix/dnnl-quantization-optimization branch 2 times, most recently from 7b3e71f to 3ff4634 Compare September 5, 2025 17:38
@bigPYJ1151
Copy link
Member

LGTM, please also fix the failed DCO check.

@mohankku
Copy link
Contributor Author

mohankku commented Sep 5, 2025

LGTM, please also fix the failed DCO check.

Added Signed-off-by: in the commit messages

@mohankku mohankku force-pushed the fix/dnnl-quantization-optimization branch 2 times, most recently from b0e3763 to f8f052c Compare September 5, 2025 20:34
- 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]>
@mohankku mohankku force-pushed the fix/dnnl-quantization-optimization branch from f8f052c to 9d638aa Compare September 5, 2025 23:28
@bigPYJ1151 bigPYJ1151 enabled auto-merge (squash) September 6, 2025 12:00
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 6, 2025
@vllm-bot vllm-bot merged commit 0eadaef into vllm-project:main Sep 6, 2025
76 of 81 checks passed
eicherseiji pushed a commit to eicherseiji/vllm that referenced this pull request Sep 9, 2025
skyloevil pushed a commit to skyloevil/vllm that referenced this pull request Sep 13, 2025
FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 2025
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 10, 2025
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants