Skip to content

Conversation

@ain-soph
Copy link
Contributor

@ain-soph ain-soph commented Jun 14, 2023

In current codes, there is a comma for has_tied_encoder_decoder, which makes it a tuple rather than bool. Therefore, the result of check_tied_parameters_in_config is always True.

For example, has_tied_encoder_decoder = (False,)

However, any([False, (False, ), False]) == True. We should make it a bool rather than tuple[bool]

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix (cc @SunMarc )

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 14, 2023

The documentation is not available anymore as the PR was closed or merged.

@sgugger sgugger merged commit e5d0df4 into huggingface:main Jun 14, 2023
@ain-soph ain-soph deleted the check_tied_parameters_in_config-bug-fix branch June 14, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants