-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Update no trainer scripts for language modeling and image classification examples #18443
Update no trainer scripts for language modeling and image classification examples #18443
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for working on this! Left two comments on the LM examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 😄 👍
Thanks again for your contribution! |
…ion examples (huggingface#18443) * Update no_trainer script for image-classification * Update no_trainer scripts for language-modeling examples * Remove unused variable * Removing truncation from losses array for language modeling examples
What does this PR do?
Fixes #18437
Updated no_trainer scripts for
examples/pytorch/image-classification/run_image_classification_no_trainer.py
,examples/pytorch/language-modeling/run_clm_no_trainer.py
andexamples/pytorch/language-modeling/run_mlm_no_trainer.py
to includegather_for_metrics
.Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@muellerzr @sgugger
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.