mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Add repetition_penalty_range to ctransformers
This commit is contained in:
parent
7a4fcee069
commit
28c8df337b
@ -56,6 +56,7 @@ class CtransformersModel:
|
|||||||
top_p=state['top_p'],
|
top_p=state['top_p'],
|
||||||
top_k=state['top_k'],
|
top_k=state['top_k'],
|
||||||
repetition_penalty=state['repetition_penalty'],
|
repetition_penalty=state['repetition_penalty'],
|
||||||
|
last_n_tokens=state['repetition_penalty_range'],
|
||||||
threads=shared.args.threads
|
threads=shared.args.threads
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -86,7 +86,6 @@ loaders_and_params = OrderedDict({
|
|||||||
'no_mmap',
|
'no_mmap',
|
||||||
'low_vram',
|
'low_vram',
|
||||||
'mlock',
|
'mlock',
|
||||||
'llama_cpp_seed',
|
|
||||||
'alpha_value',
|
'alpha_value',
|
||||||
'compress_pos_emb',
|
'compress_pos_emb',
|
||||||
'cpu',
|
'cpu',
|
||||||
@ -270,6 +269,7 @@ loaders_samplers = {
|
|||||||
'top_p',
|
'top_p',
|
||||||
'top_k',
|
'top_k',
|
||||||
'repetition_penalty',
|
'repetition_penalty',
|
||||||
|
'repetition_penalty_range',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user