Skip to content

Commit e744188

Browse files
Add no-nncf warning
1 parent 194a997 commit e744188

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

optimum/exporters/openvino/__main__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,12 @@ class StoreAttr(object):
446446
quantization_config = {"bits": 8, "sym": False}
447447
logger.info("The model weights will be quantized to int8_asym.")
448448
else:
449-
continue
450-
if not quantization_config:
449+
logger.warning(
450+
"The model will be converted with no weights quantization. Quantization of the weights to int8 "
451+
"requires nncf. Please install it with `pip install nncf`"
452+
)
453+
break
454+
if quantization_config is None:
451455
continue
452456

453457
if not is_nncf_available():

0 commit comments

Comments
 (0)