Skip to content

Commit aaccc1d

Browse files
committed
black happy
1 parent c9ad544 commit aaccc1d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

optimum/intel/openvino/quantization.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ def __getattr__(self, attr):
346346
self.model.model,
347347
quantization_dataset,
348348
model_type=nncf.ModelType.TRANSFORMER if not kwargs.get("model_type") else kwargs.get("model_type"),
349-
fast_bias_correction=True if not kwargs.get("fast_bias_correction") else kwargs.get("fast_bias_correction"),
349+
fast_bias_correction=(
350+
True if not kwargs.get("fast_bias_correction") else kwargs.get("fast_bias_correction")
351+
),
350352
**kwargs,
351353
)
352354
self.model.model = quantized_model

tests/openvino/test_quantization.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ class OVWeightCompressionTest(unittest.TestCase):
152152
)
153153

154154
SUPPORTED_ARCHITECTURES_WITH_EXPECTED_4BIT_COMPRESSED_MATMULS = ((OVModelForCausalLM, "opt125m", 64, 365),)
155-
SUPPORTED_ARCHITECTURES_STATEFUL_WITH_EXPECTED_4BIT_COMPRESSED_MATMULS = ((OVModelForCausalLM, "opt125m", 64, 477),)
155+
SUPPORTED_ARCHITECTURES_STATEFUL_WITH_EXPECTED_4BIT_COMPRESSED_MATMULS = (
156+
(OVModelForCausalLM, "opt125m", 64, 477),
157+
)
156158

157159
SUPPORTED_ARCHITECTURES_WITH_AUTO_COMPRESSION = (
158160
(OVModelForCausalLM, "gpt2"),

0 commit comments

Comments
 (0)