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 eval for causal language modeling example #327

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

BabyChouSr
Copy link
Contributor

Similar to the fix in (#296 ), we utilize gather_for_metrics instead of gather which should fix the assertion error on line 309 when running with multiple processes.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 18, 2023

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

Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

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

Thank you @BabyChouSr for the fix, LGTM! 🤗

@pacman100 pacman100 merged commit 0bdb54f into huggingface:main Apr 18, 2023
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