Skip to content

Commit

Permalink
Fix undefined default_config in configuration_utils.py (huggingface#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored Oct 7, 2024
1 parent 736c7cd commit c91fe85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/configuration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ def _get_non_default_generation_parameters(self) -> Dict[str, Any]:
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
Expand Down

0 comments on commit c91fe85

Please sign in to comment.