-
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
quick fix SummarizationPipeline error messages #14618
Conversation
Fix error messages to avoid spam errors, and errors of type: `Your max_length is set to 50, but you input_length is only 46. You might consider decreasing max_length manually, e.g. summarizer('...', max_length=50)`
Pinging @Narsil and @patrickvonplaten |
Thanks for your contribution @NouamaneTazi :) You have an error in your code quality; do you mind running the following commands at the root of your clone?
This should fix most quality issues and let you know if there are some the scripts cannot resolve. |
I am not sure you PR achieves your desired goal: You are changing another error than the error you're posting in the description. FWIW. Summarization usually ingests large texts, and tries to generate something between If Do that clarify why the warnings are originally here ? If yes, then maybe we could clarify the warning instead to make them self sufficient ? The warnings originated here 9c683ef (tried to get a better rationale for the |
Hello @Narsil , thanks for your clarification.
|
I think it should be fine to check both, but would that avoid the spam you were referring to ? |
Yes, because before the solution proposed wasn't clear: |
Makes sense. |
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.
LGTM
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!
Fix error messages to avoid spam errors, and errors of type:
Your max_length is set to 50, but you input_length is only 46. You might consider decreasing max_length manually, e.g. summarizer('...', max_length=50)