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

Add contrastive search to sequence generation #192

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

jonatanklosko
Copy link
Member

Support for contrastive search, as mentioned in #35.

Comment on lines +179 to +183
* `:top_k` - the number of highest probability vocabulary tokens
considered as a continuation

* `:penalty_alpha` - balances the model confidence and the degeneration
penalty in contrastive search
Copy link
Member Author

Choose a reason for hiding this comment

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

IMO it would be cleaner to have the strategy explicitly stated, I added it to #87 (comment).

@jonatanklosko jonatanklosko merged commit ea5e67c into main Apr 4, 2023
@jonatanklosko jonatanklosko deleted the jk-contrastive-search branch April 4, 2023 15:18
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

2 participants