Skip to content

Conversation

nikita-savelyevv
Copy link
Collaborator

What does this PR do?

Currently an error is raised if quantization is run with pipeline quantization config containing only data-free sub-configs.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

Copy link

@Copilot 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

Fixes failure when running pipeline quantization with a configuration containing only data-free sub-configs by adjusting type checks and adding a corresponding test case.

  • Adjusts control flow to bypass hybrid/full/mixed quantization logic when an OVPipelineQuantizationConfig is provided.
  • Updates error raising logic to preserve support for pipeline configs.
  • Adds a test matrix entry to cover a data-free pipeline quantization scenario.

Reviewed Changes

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

File Description
tests/openvino/test_quantization.py Adds a new PIPELINE_QUANTIZATION_SCOPE entry to test data-free pipeline quantization.
optimum/intel/openvino/quantization.py Refines conditional logic to properly handle OVPipelineQuantizationConfig without raising errors.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nikita-savelyevv nikita-savelyevv merged commit 0f1cfc4 into main Oct 15, 2025
25 of 26 checks passed
@nikita-savelyevv nikita-savelyevv deleted the ns/fix-data-free-pipeline-quantization branch October 15, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant