-
Notifications
You must be signed in to change notification settings - Fork 26.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
Change assertion to warning when passing past_key_value to T5 encoder #16153
Conversation
The documentation is not available anymore as the PR was closed or merged. |
if not self.is_decoder: | ||
logger.warning("`past_key_values` is passed to the encoder. Please make sure this is intended.") |
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.
We should raise an ValueError
here because past_key_values
is not a valid input for the encoder and should not be passed.
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.
Please see the discussion in #15591
I'm fine with this change |
Thanks. I don't think I can merge -- please merge whenever makes sense. |
@patil-suraj feel free to merge if ok for you |
…#16153) * Change assertion to warning when passing past_key_value to T5 encoder * lint
hi guys, I have one question, the |
What does this PR do?
Fixes # (issue)
Before submitting
Pull Request section?
to it if that's the case. T5 encoder past_key_values #15591
documentation guidelines, and
here are tips on formatting docstrings. N/A
Who can review?
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.