@@ -65,12 +65,13 @@ class OVQuantizationConfigBase(QuantizationConfigMixin):
65
65
Base configuration class for quantization parameters
66
66
"""
67
67
68
+ quant_method = OVQuantizationMethod .DEFAULT
69
+
68
70
def __init__ (
69
71
self ,
70
72
ignored_scope : Optional [dict ] = None ,
71
73
num_samples : Optional [int ] = None ,
72
74
weight_only : Optional [bool ] = None ,
73
- quant_method : Union [QuantizationMethod , OVQuantizationMethod ] = OVQuantizationMethod .DEFAULT ,
74
75
** kwargs ,
75
76
):
76
77
"""
@@ -88,7 +89,6 @@ def __init__(
88
89
self .ignored_scope = ignored_scope
89
90
self .num_samples = num_samples
90
91
self .weight_only = weight_only
91
- self .quant_method = quant_method
92
92
93
93
def post_init (self ):
94
94
try :
@@ -254,7 +254,7 @@ def __init__(
254
254
"Trying to create an instance of `OVWeightQuantizationConfig` with `weight_only` being "
255
255
"False. Please check your configuration."
256
256
)
257
- super ().__init__ (ignored_scope , num_samples , True , quant_method )
257
+ super ().__init__ (ignored_scope , num_samples , True )
258
258
self .bits = bits
259
259
self .sym = sym
260
260
self .tokenizer = tokenizer
@@ -263,6 +263,7 @@ def __init__(
263
263
self .ratio = ratio
264
264
self .all_layers = all_layers
265
265
self .sensitivity_metric = sensitivity_metric
266
+ self .quant_method = quant_method
266
267
self .post_init ()
267
268
268
269
def post_init (self ):
0 commit comments