Skip to content

Commit

Permalink
changed to the right one
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMarc committed Oct 7, 2024
1 parent 5d16f6a commit a019b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/configuration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def _get_non_default_generation_parameters(self) -> Dict[str, Any]:
if decoder_config is not self:
default_config = decoder_config.__class__()
else:
decoder_config = None
default_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)
Expand Down

0 comments on commit a019b79

Please sign in to comment.