mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Fix undefined default_config in configuration_utils.py (#33934)
This commit is contained in:
parent
736c7cde51
commit
c91fe85b78
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user