Fix undefined default_config in configuration_utils.py (#33934)

This commit is contained in:
Michael Goin 2024-10-07 12:32:20 -04:00 committed by GitHub
parent 736c7cde51
commit c91fe85b78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1036,6 +1036,7 @@ class PretrainedConfig(PushToHubMixin):
if decoder_config is not self:
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