Skip to content

Commit

Permalink
Get compression from kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
helena-intel committed Apr 25, 2024
1 parent 42d8a8a commit 94d9796
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion optimum/intel/openvino/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ def __init__(
if isinstance(quantization_config, dict):
quantization_config = self._quantization_config_from_dict(quantization_config)
self.quantization_config = quantization_config
self.compression = None # A field for backward-compatability of training-time compression parameters
self.compression = kwargs.get(
"compression", None
) # A field for backward-compatability of training-time compression parameters
bits = self.quantization_config.bits if self.quantization_config else None
self.dtype = "int" + str(bits) if isinstance(bits, int) else dtype

Expand Down

0 comments on commit 94d9796

Please sign in to comment.