Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions optimum/intel/openvino/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
logging.disable(logging.INFO)
import nncf

if is_nncf_version("<", "2.19"):
if not is_nncf_version(">=", "2.19.0.dev0"):
Copy link
Collaborator

@rkazants rkazants Dec 11, 2025

Choose a reason for hiding this comment

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

I think we can just cut off the current version value to have in format xx.yy.zz and after that we can do comparation like is_nncf_version("<", "2.19"). It should fix the problem

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the suggestion! Unfortunately that won't work because in NNCF we increase dev version to the next one right after the release, i.e. the version was updated to 2.19.0.dev0 back in August openvinotoolkit/nncf@5ba2f29. That's why we'll have the same problem as described in #1550 (review).

raise ImportError(
"NNCF version 2.19 or higher is required to use NNCF-based quantization. "
"NNCF version 2.19.0.dev0 or higher is required to use NNCF-based quantization. "
f"Please upgrade your NNCF installation. The current version of NNCF is {nncf.__version__}."
)

Expand Down
Loading