-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add some fixes #4
base: main
Are you sure you want to change the base?
Conversation
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! Seems like good improvements to me, but left some comments
Moved tokenized input to correct device automatically in |
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.
I'm going to leave this PR open, however the goal of this isn't to be device-agnostic, but to be very simplified examples. Which also includes not having accelerate
involved in the script itself.
We can keep this up for future people to reference however
requirements.txt
.translation.py
andtoken_classification.py
.token_classification.py
.summarization.py
.masked_language_modeling.py
, use theevaluate()
method to print model perplexity.