Add Mirostat v2 sampling to transformer models (#2571)
This commit is contained in:
parent
aff3e04df4
commit
b04e18d10c
3 changed files with 66 additions and 7 deletions
|
@ -504,7 +504,7 @@ def create_settings_menus(default_preset):
|
|||
shared.gradio['early_stopping'] = gr.Checkbox(value=generate_params['early_stopping'], label='early_stopping')
|
||||
|
||||
with gr.Column():
|
||||
gr.Markdown('Mirostat (for llama.cpp)')
|
||||
gr.Markdown('Mirostat (mode=1 is only for llama.cpp)')
|
||||
shared.gradio['mirostat_mode'] = gr.Slider(0, 2, step=1, value=generate_params['mirostat_mode'], label='mirostat_mode')
|
||||
shared.gradio['mirostat_tau'] = gr.Slider(0, 10, step=0.01, value=generate_params['mirostat_tau'], label='mirostat_tau')
|
||||
shared.gradio['mirostat_eta'] = gr.Slider(0, 1, step=0.01, value=generate_params['mirostat_eta'], label='mirostat_eta')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue