Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix incorrect warning #34416

Merged
merged 3 commits into from
Oct 29, 2024
Merged

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
24 checks passed
2015aroras pushed a commit to 2015aroras/transformers that referenced this pull request Nov 15, 2024
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
BernardZach pushed a commit to innovationcore/transformers that referenced this pull request Dec 6, 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