Skip to content

Commit 9631027

Browse files
Add deprecation warning for
1 parent 91bedf9 commit 9631027

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

optimum/intel/openvino/configuration.py

+7
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,13 @@ def __init__(
578578
):
579579
super().__init__(bits=bits, sym=sym, group_size=weights_group_size, **kwargs)
580580
self.activations_group_size = activations_group_size
581+
logger.warning(
582+
"OVDynamicQuantizationConfig is deprecated and will be removed in optimum-intel v1.24.0. "
583+
"Dynamic quantization and KV cache compression are enabled by default starting from OpenVINO 2025.0 and "
584+
"there is no need to enable them manually. If you need precise control over these parameters, please "
585+
"provide `DYNAMIC_QUANTIZATION_GROUP_SIZE` and `KV_CACHE_PRECISION` with `ov_config` argument during model "
586+
"inference."
587+
)
581588

582589

583590
@dataclass

0 commit comments

Comments
 (0)