mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +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_k=state['top_k'],
|
||||
repetition_penalty=state['repetition_penalty'],
|
||||
last_n_tokens=state['repetition_penalty_range'],
|
||||
threads=shared.args.threads
|
||||
)
|
||||
|
||||
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user