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

Don't compute metrics in LM examples on TPU #16029

Merged
merged 1 commit into from
Mar 10, 2022
Merged

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Mar 9, 2022

What does this PR do?

This PR removes the accuracy computation in the LM examples on TPU, as TPUs can't handle the accumulation of the model logits.

Patches #16005 A better fix would be to be able to gather those logits on TPU but waiting for advice from the pytorch XLA team on this.

@sgugger sgugger requested a review from LysandreJik March 9, 2022 19:25
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 9, 2022

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

@miladm
Copy link

miladm commented Mar 9, 2022

Thank you for the fix!

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.

LGTM

@sgugger sgugger merged commit 1959799 into master Mar 10, 2022
@sgugger sgugger deleted the no_acc_eval_on_tpu branch March 10, 2022 12:44
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