-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
BART can only generate a maximum of 20 tokens #16622
Comments
Hi @ayaka14732 👋 That happens because the stopping conditions take precedence over anything else. The default for @patrickvonplaten @patil-suraj should we raise an exception in this case? ( |
@gante, yes this would work for me! Let's maybe do this in |
@ayaka14732 if you pull from master (or install Thank you for reporting this issue :D |
Environment info
transformers
version: 4.18.0.dev0Who can help
@patil-suraj @patrickvonplaten
Information
Model I am using: BART
To reproduce
Steps to reproduce the behavior:
Output:
Expected behavior
The output should not be truncated.
Actual behavior
The output is truncated.
Note that the output is truncated even if
min_length=50
is specified.The text was updated successfully, but these errors were encountered: