diff --git a/paddleslim/auto_compression/compressor.py b/paddleslim/auto_compression/compressor.py index 8fbfacc4638046d0b2c69a6383d99571b7e46d92..11b80573ccbc433197e29096cbf49e649c2ab1a1 100644 --- a/paddleslim/auto_compression/compressor.py +++ b/paddleslim/auto_compression/compressor.py @@ -389,7 +389,7 @@ class AutoCompression: config.append(merge_config(quant_config, hpo_config)) ### case6: quant_config & distill config ==> QAT & Distill - if quant_config is not None and self._distill_config is not None: + if quant_config is not None and self._distill_config is not None and 'ptq_hpo' not in strategy: only_distillation = False strategy.append('qat_dis') config.append(merge_config(quant_config, self._distill_config))