We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9e1d1 commit df36a67Copy full SHA for df36a67
optimum/commands/export/openvino.py
@@ -381,6 +381,10 @@ def run(self):
381
else:
382
if not is_nncf_available():
383
raise ImportError("Applying quantization requires nncf, please install it with `pip install nncf`")
384
+ if self.args.weight_format is not None and self.args.quant_mode is not None:
385
+ raise ValueError(
386
+ "Both --weight-format and --quant-mode arguments are provided. Please provide only one of them."
387
+ )
388
389
default_quantization_config = get_default_quantization_config(
390
self.args.model, self.args.weight_format, self.args.quant_mode
0 commit comments