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

RagTokenForGeneration: Fixed parameter name for logits_processor #9790

Merged

Conversation

michaelrglass
Copy link
Contributor

What does this PR do?

The parameter name for the beam_search and greedy_search functions of the GenerationMixin is (now?) logits_processor not pre_processor. This fix makes prefix_allowed_tokens_fn work (again?).

Who can review?

Rag: @patrickvonplaten, @lhoestq

@michaelrglass michaelrglass changed the title Fixed parameter name for logits_processor RagTokenForGeneration: Fixed parameter name for logits_processor Jan 25, 2021
Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

Great catch!

@patrickvonplaten patrickvonplaten merged commit c37dcff into huggingface:master Jan 26, 2021
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