mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add-epsilon-and-eta-settings-to-textgenwebui-parameters
This commit is contained in:
@ -873,6 +873,36 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="range-block">
|
||||||
|
<div class="range-block-title">
|
||||||
|
Epsilon Cutoff
|
||||||
|
</div>
|
||||||
|
<div class="range-block-range-and-counter">
|
||||||
|
<div class="range-block-range">
|
||||||
|
<input type="range" id="epsilon_cutoff_textgenerationwebui" name="volume" min="0" max="9" step="0.01">
|
||||||
|
</div>
|
||||||
|
<div class="range-block-counter">
|
||||||
|
<div contenteditable="true" data-for="epsilon_cutoff_textgenerationwebui" id="epsilon_cutoff_counter_textgenerationwebui">
|
||||||
|
select
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="range-block">
|
||||||
|
<div class="range-block-title">
|
||||||
|
Eta Cutoff
|
||||||
|
</div>
|
||||||
|
<div class="range-block-range-and-counter">
|
||||||
|
<div class="range-block-range">
|
||||||
|
<input type="range" id="eta_cutoff_textgenerationwebui" name="volume" min="0" max="20" step="0.01">
|
||||||
|
</div>
|
||||||
|
<div class="range-block-counter">
|
||||||
|
<div contenteditable="true" data-for="eta_cutoff_textgenerationwebui" id="eta_cutoff_counter_textgenerationwebui">
|
||||||
|
select
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="range-block">
|
<div class="range-block">
|
||||||
<label class="checkbox_label" for="streaming_textgenerationwebui">
|
<label class="checkbox_label" for="streaming_textgenerationwebui">
|
||||||
<input type="checkbox" id="streaming_textgenerationwebui" />
|
<input type="checkbox" id="streaming_textgenerationwebui" />
|
||||||
|
@ -17,6 +17,8 @@ let textgenerationwebui_settings = {
|
|||||||
top_k: 40,
|
top_k: 40,
|
||||||
top_a: 0,
|
top_a: 0,
|
||||||
tfs: 1,
|
tfs: 1,
|
||||||
|
epsilon_cutoff: 0,
|
||||||
|
eta_cutoff: 0,
|
||||||
typical_p: 1,
|
typical_p: 1,
|
||||||
rep_pen: 1.2,
|
rep_pen: 1.2,
|
||||||
no_repeat_ngram_size: 0,
|
no_repeat_ngram_size: 0,
|
||||||
@ -49,6 +51,8 @@ const setting_names = [
|
|||||||
"top_p",
|
"top_p",
|
||||||
"top_a",
|
"top_a",
|
||||||
"tfs",
|
"tfs",
|
||||||
|
"epsilon_cutoff",
|
||||||
|
"eta_cutoff",
|
||||||
"typical_p",
|
"typical_p",
|
||||||
"penalty_alpha",
|
"penalty_alpha",
|
||||||
"num_beams",
|
"num_beams",
|
||||||
@ -218,5 +222,7 @@ export function getTextGenGenerationData(finalPromt, this_amount_gen, isImperson
|
|||||||
'skip_special_tokens': textgenerationwebui_settings.skip_special_tokens,
|
'skip_special_tokens': textgenerationwebui_settings.skip_special_tokens,
|
||||||
'top_a': textgenerationwebui_settings.top_a,
|
'top_a': textgenerationwebui_settings.top_a,
|
||||||
'tfs': textgenerationwebui_settings.tfs,
|
'tfs': textgenerationwebui_settings.tfs,
|
||||||
|
'epsilon_cutoff': textgenerationwebui_settings.epsilon_cutoff,
|
||||||
|
'eta_cutoff': textgenerationwebui_settings.eta_cutoff,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user