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 penalty_threshold parameter #5539

Closed
wants to merge 4 commits into from
Closed

Add penalty_threshold parameter #5539

wants to merge 4 commits into from

Conversation

oobabooga
Copy link
Owner

@oobabooga oobabooga commented Feb 19, 2024

I copied the idea from the following PR to llama.cpp by @p-e-w ggml-org/llama.cpp#5561.

This prevents repetition penalty from being applied to tokens that are common in the input like spaces, commas, and newline characters. Let's test the usefulness of this parameter.

@p-e-w
Copy link
Contributor

p-e-w commented Feb 19, 2024

Nice!

@oobabooga
Copy link
Owner Author

I'm closing this in favor of #5677

@oobabooga oobabooga closed this May 19, 2024
@oobabooga oobabooga deleted the penalty_threshold branch May 19, 2024 23:30
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