Enable XTC

This commit is contained in:
Cohee 2024-09-28 13:52:55 +03:00
parent e59dacc27f
commit 8bd1c88d15
2 changed files with 12 additions and 0 deletions

View File

@ -1679,6 +1679,10 @@
Ooba only. Determines the order of samplers. Ooba only. Determines the order of samplers.
</div> </div>
<div id="sampler_priority_container" class="prompt_order"> <div id="sampler_priority_container" class="prompt_order">
<div data-name="repetition_penalty" draggable="true"><span>Repetition Penalty</span><small></small></div>
<div data-name="presence_penalty" draggable="true"><span>Presence Penalty</span><small></small></div>
<div data-name="frequency_penalty" draggable="true"><span>Frequency Penalty</span><small></small></div>
<div data-name="dry" draggable="true"><span>DRY</span><small></small></div>
<div data-name="temperature" draggable="true"><span>Temperature</span><small></small></div> <div data-name="temperature" draggable="true"><span>Temperature</span><small></small></div>
<div data-name="dynamic_temperature" draggable="true"><span>Dynamic Temperature</span><small></small></div> <div data-name="dynamic_temperature" draggable="true"><span>Dynamic Temperature</span><small></small></div>
<div data-name="quadratic_sampling" draggable="true"><span>Quadratic / Smooth Sampling</span><small></small></div> <div data-name="quadratic_sampling" draggable="true"><span>Quadratic / Smooth Sampling</span><small></small></div>
@ -1692,6 +1696,8 @@
<div data-name="min_p" draggable="true"><span>Min P</span><small></small></div> <div data-name="min_p" draggable="true"><span>Min P</span><small></small></div>
<div data-name="mirostat" draggable="true"><span>Mirostat</span><small></small></div> <div data-name="mirostat" draggable="true"><span>Mirostat</span><small></small></div>
<div data-name="xtc" draggable="true"><span>XTC</span><small></small></div> <div data-name="xtc" draggable="true"><span>XTC</span><small></small></div>
<div data-name="encoder_repetition_penalty" draggable="true"><span>Encoder Repetition Penalty</span><small></small></div>
<div data-name="no_repeat_ngram" draggable="true"><span>No Repeat Ngram</span><small></small></div>
</div> </div>
<div id="textgenerationwebui_default_order" class="menu_button menu_button_icon"> <div id="textgenerationwebui_default_order" class="menu_button menu_button_icon">
<span data-i18n="Load default order">Load default order</span> <span data-i18n="Load default order">Load default order</span>

View File

@ -68,6 +68,10 @@ const LLAMACPP_DEFAULT_ORDER = [
'temperature', 'temperature',
]; ];
const OOBA_DEFAULT_ORDER = [ const OOBA_DEFAULT_ORDER = [
'repetition_penalty',
'presence_penalty',
'frequency_penalty',
'dry',
'temperature', 'temperature',
'dynamic_temperature', 'dynamic_temperature',
'quadratic_sampling', 'quadratic_sampling',
@ -81,6 +85,8 @@ const OOBA_DEFAULT_ORDER = [
'min_p', 'min_p',
'mirostat', 'mirostat',
'xtc', 'xtc',
'encoder_repetition_penalty',
'no_repeat_ngram',
]; ];
const BIAS_KEY = '#textgenerationwebui_api-settings'; const BIAS_KEY = '#textgenerationwebui_api-settings';