Add repetition_penalty_range to ctransformers

This commit is contained in:
oobabooga 2023-08-11 11:02:56 -07:00
parent 7a4fcee069
commit 28c8df337b
2 changed files with 2 additions and 1 deletions

View file

@ -56,6 +56,7 @@ class CtransformersModel:
top_p=state['top_p'],
top_k=state['top_k'],
repetition_penalty=state['repetition_penalty'],
last_n_tokens=state['repetition_penalty_range'],
threads=shared.args.threads
)