Skip to content

Remove unnecessary generate warnings#45619

Merged
Cyrilvallez merged 5 commits intomainfrom
remove-warnings-generate
Apr 24, 2026
Merged

Remove unnecessary generate warnings#45619
Cyrilvallez merged 5 commits intomainfrom
remove-warnings-generate

Conversation

@Cyrilvallez
Copy link
Copy Markdown
Member

What does this PR do?

Supersedes #45559 as I messed up the branch 😅

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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
Copy Markdown
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

SUPER DUPER NICE SIR

Comment thread src/transformers/generation/configuration_utils.py Outdated
Comment thread src/transformers/generation/configuration_utils.py Outdated
@Cyrilvallez Cyrilvallez merged commit 16f3dde into main Apr 24, 2026
29 checks passed
@Cyrilvallez Cyrilvallez deleted the remove-warnings-generate branch April 24, 2026 07:44
Comment on lines +182 to +183
# Inverse provenance case: `do_sample=False` inherited from a model's config (so not user-set this call), user only
# sets a sampling flag. The conflict SHOULD produce noise because the user may think that it's non-greedy by default
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks, this makes more sense!

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