We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Huggingface by default uses length_penalty = 1.0 => the objective of the tree search is average loglik, instead of sum.
length_penalty = 1.0
https://github.com/huggingface/transformers/blob/6c1d0b069de22d7ed8aa83f733c25045eea0585d/src/transformers/generation/beam_search.py#L964-L965
The text was updated successfully, but these errors were encountered:
JuliaGrosse
No branches or pull requests
Huggingface by default uses
length_penalty = 1.0
=> the objective of the tree search is average loglik, instead of sum.https://github.com/huggingface/transformers/blob/6c1d0b069de22d7ed8aa83f733c25045eea0585d/src/transformers/generation/beam_search.py#L964-L965
The text was updated successfully, but these errors were encountered: