Skip to content

fix incorrect warning#34416

Merged
yonigozlan merged 3 commits intohuggingface:mainfrom
yonigozlan:fix-incorrect-warning
Oct 29, 2024
Merged

fix incorrect warning#34416
yonigozlan merged 3 commits intohuggingface:mainfrom
yonigozlan:fix-incorrect-warning

Conversation

@yonigozlan
Copy link
Member

What does this PR do?

Follows this PR #34285
The warnings are displayed for all kwargs not in common, even if they are used in other modalities.
This PR only changes the logic of the warning, the kwargs handling logic should already be correct.

Who can review?

Cc @molbap , sorry I think you may have hinted at this problem previously but I did not pick up on it.

@yonigozlan yonigozlan requested a review from molbap October 25, 2024 14:49
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@molbap molbap 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! I ought to do some documentation for how the kwargs merging logic works - the logic flow is a bit tricky indeed

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Nice! Feel free to merge when ready

@yonigozlan yonigozlan force-pushed the fix-incorrect-warning branch from 0d03c2e to de9f91c Compare October 28, 2024 18:00
@yonigozlan
Copy link
Member Author

Tests are failing for unrelated (I think) reasons

@yonigozlan yonigozlan merged commit e4449bb into huggingface:main Oct 29, 2024
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
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.

4 participants