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
)

View File

@ -86,7 +86,6 @@ loaders_and_params = OrderedDict({
'no_mmap',
'low_vram',
'mlock',
'llama_cpp_seed',
'alpha_value',
'compress_pos_emb',
'cpu',
@ -270,6 +269,7 @@ loaders_samplers = {
'top_p',
'top_k',
'repetition_penalty',
'repetition_penalty_range',
}
}