Fix Compressed tensors to_dict_diff (#36922)

fix
This commit is contained in:
Mohamed Mekkouri 2025-03-24 13:06:33 +01:00 committed by GitHub
parent 57f551c78d
commit 9e125d9a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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