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

Raise error for unexpected .generate() kwargs #315

Merged
merged 1 commit into from
May 9, 2023
Merged

Conversation

borzunov
Copy link
Collaborator

@borzunov borzunov commented May 9, 2023

Now, if a user passes unexpected kwargs to .generate(), they are ignored and the code continues working as if the argument was correctly supported. For example, people often tried passing repetition_penalty and didn't notice that it does not have any effect. This PR fixes this problem.

@borzunov borzunov requested a review from artek0chumak May 9, 2023 19:47
@borzunov borzunov merged commit 6eb306a into main May 9, 2023
8 checks passed
@borzunov borzunov deleted the fix-generate-kwargs branch May 9, 2023 19:51
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.

None yet

1 participant