Skip to content
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

Generate: update compute transition scores doctest #27558

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

gante
Copy link
Member

@gante gante commented Nov 17, 2023

What does this PR do?

#27351 Corrected a detail in the beam score computation: when applying the length penalty to the generated response, which is active by default, the prompt length should not be included in the penalty computation.

This PR corrects the doctest accordingly.

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating!

@gante gante merged commit 5330b83 into huggingface:main Nov 17, 2023
8 checks passed
@gante gante deleted the compute_transition_scores_example branch November 17, 2023 11:23
wgifford pushed a commit to namctin/transformers that referenced this pull request Nov 17, 2023
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants