mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
parent
57f551c78d
commit
9e125d9a2e
@ -1360,7 +1360,7 @@ class CompressedTensorsConfig(QuantizationConfigMixin):
|
||||
|
||||
# only serialize values that differ from the default config
|
||||
for key, value in config_dict.items():
|
||||
if value != default_config_dict[key]:
|
||||
if key not in default_config_dict or value != default_config_dict[key]:
|
||||
serializable_config_dict[key] = value
|
||||
|
||||
return serializable_config_dict
|
||||
|
Loading…
Reference in New Issue
Block a user