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

[winrate callback] remove redundant call to eval and train #2372

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

kashif
Copy link
Collaborator

@kashif kashif commented Nov 20, 2024

What does this PR do?

removes the redundant call to eval and train as the model's generate is done in inference mode. This fixes the issue that the mode's state is not changed unexpectedly.

@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.

@kashif
Copy link
Collaborator Author

kashif commented Nov 20, 2024

thanks @qgallouedec

@qgallouedec
Copy link
Member

Failing test not related (same as #2370 (comment))

@kashif kashif merged commit bb0afc2 into main Nov 20, 2024
13 of 14 checks passed
@kashif kashif deleted the callback-generate-fix branch November 20, 2024 10:24
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