Remove decoder_config=None (#34014)

* remove unnecessary line

* changed to the right one
This commit is contained in:
Marc Sun 2024-10-08 15:57:12 +02:00 committed by GitHub
parent 1909def2de
commit 04b4e441dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1037,7 +1037,6 @@ class PretrainedConfig(PushToHubMixin):
default_config = decoder_config.__class__()
else:
default_config = None
decoder_config = None
# If it is a composite model, we want to check the subconfig that will be used for generation
self_decoder_config = self if decoder_attribute_name is None else getattr(self, decoder_attribute_name)