mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Remove quantization related config from dequantized model (#34856)
* Remove quantization related config from dequantized model * Fix whitespace
This commit is contained in:
parent
1867be666d
commit
d9e6f307e7
1 changed files with 3 additions and 0 deletions
|
|
@ -215,6 +215,9 @@ class HfQuantizer(ABC):
|
|||
|
||||
# Delete quantizer and quantization config
|
||||
del model.hf_quantizer
|
||||
del model.config.quantization_config
|
||||
del model.config._pre_quantization_dtype
|
||||
model.is_quantized = False
|
||||
|
||||
return model
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue