Skip to content

Conversation

@anzr299
Copy link
Contributor

@anzr299 anzr299 commented Nov 19, 2025

Summary

PTQ in OpenVINO quantizer was causing errors which are fixed in this PR.

cc @kimishpatel @jerryzh168 @digantdesai

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 19, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15891

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 2d8919f with merge base 7fa93a7 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla
Copy link

meta-cla bot commented Nov 19, 2025

Hi @anzr299!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 20, 2025
@anzr299 anzr299 marked this pull request as ready for review November 21, 2025 14:30
Copilot AI review requested due to automatic review settings November 21, 2025 14:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes critical bugs in the OpenVINO quantizer's Post-Training Quantization (PTQ) implementation. The changes simplify the MinMaxQuantization initialization by delegating configuration to the caller via kwargs, and fix a critical bug where a missing return statement would have caused _get_edge_or_node to return None.

Key Changes:

  • Simplified MinMaxQuantization initialization by removing preset/model_type logic
  • Fixed missing return statement in _get_edge_or_node method for weight quantization
  • Refactored weight compression mode string handling
Comments suppressed due to low confidence (2)

backends/openvino/quantizer/quantizer.py:23

  • Import of 'nncf_logger' is not used.
from nncf.common.logging import nncf_logger  # type: ignore[import-untyped]

backends/openvino/quantizer/quantizer.py:35

  • Import of 'get_weight_tensor_port_ids' is not used.
from nncf.torch.model_graph_manager import (  # type: ignore[import-untyped]
    get_weight_tensor_port_ids,
)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 24, 2025 16:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 27, 2025 15:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@mergennachin mergennachin self-requested a review December 1, 2025 16:27
Copilot AI review requested due to automatic review settings December 1, 2025 20:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@mergennachin
Copy link
Contributor

There are some lint errors. Please run this command locally:

https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#lintrunner

Copilot AI review requested due to automatic review settings December 2, 2025 17:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@suryasidd
Copy link
Collaborator

There are some lint errors. Please run this command locally:

https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#lintrunner

Hey @mergennachin, Fixed the lint issues. All tests seem to be passing now expect for the one failure not related to this PR

@mergennachin mergennachin merged commit 4ef35e0 into pytorch:main Dec 3, 2025
140 of 141 checks passed
jirioc pushed a commit to nxp-upstream/executorch that referenced this pull request Dec 19, 2025
@nil-is-all nil-is-all added module: quantization Issues related to quantization module: openvino Issues and PRs related to backends/openvino labels Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: openvino Issues and PRs related to backends/openvino module: quantization Issues related to quantization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants