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

Update logits_process.py docstrings #25971

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Update logits_process.py docstrings #25971

merged 1 commit into from
Sep 12, 2023

Conversation

larekrow
Copy link
Contributor

@larekrow larekrow commented Sep 5, 2023

This PR fixes points 1 and 2 of #25970 by correcting the docstrings for RepetitionPenaltyLogitsProcessor and EncoderRepetitionPenaltyLogitsProcessor.

Point 3 is left untouched as it can be "fixed" by multiple ways: either enforcing penalty > 1 or clarifying further in the docstrings.

@gante

Corrects the docstrings for `RepetitionPenaltyLogitsProcessor` and `EncoderRepetitionPenaltyLogitsProcessor`
Copy link
Member

@gante gante left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@gante gante merged commit d65c4a4 into huggingface:main Sep 12, 2023
@larekrow larekrow deleted the patch-1 branch September 13, 2023 01:30
parambharat pushed a commit to parambharat/transformers that referenced this pull request Sep 26, 2023
blbadger pushed a commit to blbadger/transformers that referenced this pull request Nov 8, 2023
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 18, 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