-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
fixed max_length in beam_search() and group_beam_search() to use beam… #11122
fixed max_length in beam_search() and group_beam_search() to use beam… #11122
Conversation
…_scorer.max_length
hi @GeetDsa Thanks a lot for the PR. I understand the issue and IMO what should be done here is to make sure to pass the same This is because the overall philosophy of |
Thanks for the issue & PR @GeetDsa! I agree with @patil-suraj that we should not change the way Overall, the problem IMO is actually that
This solution will then ensure that only one Do you want to give it a try @GeetDsa ? :-) |
I can give a try :) |
Nice !
Seems easier. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
…_scorer.max_length
What does this PR do?
Fixes the issue #11040
beam_search()
andgroup_beam_search()
usesbeam_scorer.max_length
ifmax_length
is not explicitly passed.Fixes #11040
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors which may be interested in your PR.