-
Notifications
You must be signed in to change notification settings - Fork 30.9k
Generate: logits processors are doctested and fix broken doctests #25692
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
Conversation
NoBadWordsLogitsProcessor
example
b0f3787
to
b75c45d
Compare
utils/not_doctested.txt
Outdated
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.
@ydshieh this is enough to make the file part of the doctests, correct? :)
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.
Yes!
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!
It's nice to see the red cross 🔥 |
The documentation is not available anymore as the PR was closed or merged. |
ooh boy 🤦 |
Super glad to see the full power of the |
b7b9ef7
to
c554bd4
Compare
NoBadWordsLogitsProcessor
example
@ArthurZucker ready for a review! I've updated the PR header with a summary of the changes :) |
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!
Co-authored-by: Arthur <[email protected]>
…ggingface#25692) * shorter example * add logits processors to doctests * remove file from conflict? * tmp commit * Fix broken tests; Shorter sampling tests * Apply suggestions from code review Co-authored-by: Arthur <[email protected]> --------- Co-authored-by: Arthur <[email protected]>
What does this PR do?
This PR:
logits_processors.py
to the doctests