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

Repetition penalty? #55

Open
lxe opened this issue Mar 31, 2023 · 1 comment
Open

Repetition penalty? #55

lxe opened this issue Mar 31, 2023 · 1 comment

Comments

@lxe
Copy link

lxe commented Mar 31, 2023

Is there a way to add/use repetition penalty to the generator code?

@dchest
Copy link

dchest commented Mar 31, 2023

You can grab this piece from llama.cpp:

https://github.com/ggerganov/llama.cpp/blob/3525899277d2e2bdc8ec3f0e6e40c47251608700/llama.cpp#L1200-L1216

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 a pull request may close this issue.

2 participants