Skip to content

Commit 6330cbf

Browse files
committed
fix
1 parent 0968d8c commit 6330cbf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

optimum/intel/openvino/quantization.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,10 @@ def quantize(
164164
if save_directory is None:
165165
# TODO : can be set to self.model.config.name_or_path for OVModels when not provided
166166
raise ValueError("`save_directory` needs to be specified")
167-
168167
if weights_only:
169168
logger.warning(
170-
"Weight only quantization will be deprecated in the `OVQuantizer` in optimum-intel next release. "
171-
"To apply quantization on your wrights, please set `load_in_8bit=True` when loading your model with `from_pretrained()` or set `--int8` use when exporting your model with the CLI."
169+
"Applying weight only quantization using the `OVQuantizer` will be deprecated in the next release of optimum-intel. "
170+
"To apply weight only quantization, please set `load_in_8bit=True` when loading your model with `from_pretrained()` or set `--int8` use when exporting your model with the CLI."
172171
)
173172
if calibration_dataset is not None:
174173
logger.warning(

0 commit comments

Comments
 (0)