File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
modelopt/torch/quantization Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,6 @@ def wrapped_calib_func(
208208 forward_loop and the relevant kwargs and are independent of the ModelOpt framework.
209209 So lets wrap them to be compatible with the ModelOpt convert entrypoint.
210210 """
211- from .plugins .custom import register_custom_post_calibration_plugins
212-
213211 kwargs = config .model_dump ()
214212 method = kwargs .pop ("method" )
215213 if method is not None and "awq" in method :
@@ -220,7 +218,6 @@ def wrapped_calib_func(
220218 # Call the function with forward_loop as a separate argument
221219 func (model , forward_loop = forward_loop , ** kwargs )
222220
223- register_custom_post_calibration_plugins (model )
224221 # Lets get the latest metadata for the quantizer states
225222 metadata = {}
226223 update_quantize_metadata (model , config , metadata )
Original file line number Diff line number Diff line change 3030
3131CUSTOM_MODEL_PLUGINS = set ()
3232CUSTOM_POST_CONVERSION_PLUGINS = set ()
33- CUSTOM_POST_CALIBRATION_PLUGINS = set ()
3433
3534
3635# TODO: This is a temporary solution
@@ -47,12 +46,6 @@ def register_custom_post_conversion_plugins(model):
4746 callback (model )
4847
4948
50- def register_custom_post_calibration_plugins (model ):
51- """Registers custom modules as QUANT_MODULE after calibration."""
52- for callback in CUSTOM_POST_CALIBRATION_PLUGINS :
53- callback (model )
54-
55-
5649class _QuantFunctionalMixin (QuantModule ):
5750 """Mixin class for quantized functionals.
5851
You can’t perform that action at this time.
0 commit comments