mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 19:45:35 +01:00
Merge pull request #1766 from AAbushady/quad-sample
Quad sample and DynaTemp Exponent
This commit is contained in:
commit
0ff46baaa2
@ -1266,6 +1266,11 @@
|
|||||||
<input class="neo-range-slider" type="range" id="min_length_textgenerationwebui" name="volume" min="0" max="2000" step="1" />
|
<input class="neo-range-slider" type="range" id="min_length_textgenerationwebui" name="volume" min="0" max="2000" step="1" />
|
||||||
<input class="neo-range-input" type="number" min="0" max="2000" step="1" data-for="min_length_textgenerationwebui" id="min_length_counter_textgenerationwebui">
|
<input class="neo-range-input" type="number" min="0" max="2000" step="1" data-for="min_length_textgenerationwebui" id="min_length_counter_textgenerationwebui">
|
||||||
</div>
|
</div>
|
||||||
|
<div data-newbie-hidden data-tg-type="ooba, koboldcpp, aphrodite, tabby" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
|
||||||
|
<small data-i18n="Smoothing Factor">Smoothing Factor</small>
|
||||||
|
<input class="neo-range-slider" type="range" id="smoothing_factor_textgenerationwebui" name="volume" min="0" max="10" step="0.01" />
|
||||||
|
<input class="neo-range-input" type="number" min="0" max="5" step="0.01" data-for="smoothing_factor_textgenerationwebui" id="smoothing_factor_counter_textgenerationwebui">
|
||||||
|
</div>
|
||||||
<!--
|
<!--
|
||||||
<div data-tg-type="aphrodite" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0" data-i18n="Responses">
|
<div data-tg-type="aphrodite" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0" data-i18n="Responses">
|
||||||
<small>Responses</small>
|
<small>Responses</small>
|
||||||
@ -1288,7 +1293,7 @@
|
|||||||
<input class="neo-range-input" type="number" min="0" max="5" step="1" data-for="prompt_log_probs_aphrodite" id="prompt_log_probs_aphrodite_counter_textgenerationwebui">
|
<input class="neo-range-input" type="number" min="0" max="5" step="1" data-for="prompt_log_probs_aphrodite" id="prompt_log_probs_aphrodite_counter_textgenerationwebui">
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<div data-newbie-hidden data-tg-type="ooba, koboldcpp, tabby" name="dynaTempBlock" class="wide100p">
|
<div data-newbie-hidden data-tg-type="ooba, koboldcpp, tabby, llamacpp, aphrodite" name="dynaTempBlock" class="wide100p">
|
||||||
<h4 class="wide100p textAlignCenter" data-i18n="DynaTemp">
|
<h4 class="wide100p textAlignCenter" data-i18n="DynaTemp">
|
||||||
<div class="flex-container alignitemscenter" style="justify-content: center;">
|
<div class="flex-container alignitemscenter" style="justify-content: center;">
|
||||||
<div class="checkbox_label" for="dynatemp_textgenerationwebui">
|
<div class="checkbox_label" for="dynatemp_textgenerationwebui">
|
||||||
@ -1310,6 +1315,11 @@
|
|||||||
<input class="neo-range-slider" type="range" id="max_temp_textgenerationwebui" name="volume" min="0" max="5" step="0.01" />
|
<input class="neo-range-slider" type="range" id="max_temp_textgenerationwebui" name="volume" min="0" max="5" step="0.01" />
|
||||||
<input class="neo-range-input" type="number" min="0" max="5" step="0.01" data-for="max_temp_textgenerationwebui" id="max_temp_counter_textgenerationwebui">
|
<input class="neo-range-input" type="number" min="0" max="5" step="0.01" data-for="max_temp_textgenerationwebui" id="max_temp_counter_textgenerationwebui">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="alignitemscenter flex-container marginBot5 flexFlowColumn flexGrow flexShrink gap0">
|
||||||
|
<small data-i18n="Exponent">Exponent</small>
|
||||||
|
<input class="neo-range-slider" type="range" id="dynatemp_exponent_textgenerationwebui" name="volume" min="0.01" max="10" step="0.01" />
|
||||||
|
<input class="neo-range-input" type="number" min="0.01" max="10" step="0.01" data-for="dynatemp_exponent_textgenerationwebui" id="dynatemp_exponent_counter_textgenerationwebui">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div data-newbie-hidden name="miroStatBlock" class="wide100p">
|
<div data-newbie-hidden name="miroStatBlock" class="wide100p">
|
||||||
@ -1470,7 +1480,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div data-newbie-hidden data-forAphro="False" id="grammar_block_ooba" class="wide100p">
|
<div data-newbie-hidden id="grammar_block_ooba" class="wide100p">
|
||||||
<hr class="wide100p">
|
<hr class="wide100p">
|
||||||
<h4 class="wide100p textAlignCenter" data-i18n="GBNF Grammar">GBNF Grammar
|
<h4 class="wide100p textAlignCenter" data-i18n="GBNF Grammar">GBNF Grammar
|
||||||
<a href="https://github.com/ggerganov/llama.cpp/blob/master/grammars/README.md" target="_blank">
|
<a href="https://github.com/ggerganov/llama.cpp/blob/master/grammars/README.md" target="_blank">
|
||||||
|
@ -621,7 +621,9 @@ async function CreateZenSliders(elmnt) {
|
|||||||
decimals = 0;
|
decimals = 0;
|
||||||
}
|
}
|
||||||
if (sliderID == 'min_temp_textgenerationwebui' ||
|
if (sliderID == 'min_temp_textgenerationwebui' ||
|
||||||
sliderID == 'max_temp_textgenerationwebui') {
|
sliderID == 'max_temp_textgenerationwebui' ||
|
||||||
|
sliderID == 'dynatemp_exponent_textgenerationwebui' ||
|
||||||
|
sliderID == 'smoothing_factor_textgenerationwebui') {
|
||||||
decimals = 2;
|
decimals = 2;
|
||||||
}
|
}
|
||||||
if (sliderID == 'eta_cutoff_textgenerationwebui' ||
|
if (sliderID == 'eta_cutoff_textgenerationwebui' ||
|
||||||
|
@ -79,6 +79,8 @@ const settings = {
|
|||||||
dynatemp: false,
|
dynatemp: false,
|
||||||
min_temp: 0,
|
min_temp: 0,
|
||||||
max_temp: 2.0,
|
max_temp: 2.0,
|
||||||
|
dynatemp_exponent: 1.0,
|
||||||
|
smoothing_factor: 0.0,
|
||||||
seed: -1,
|
seed: -1,
|
||||||
preset: 'Default',
|
preset: 'Default',
|
||||||
add_bos_token: true,
|
add_bos_token: true,
|
||||||
@ -140,6 +142,8 @@ const setting_names = [
|
|||||||
'dynatemp',
|
'dynatemp',
|
||||||
'min_temp',
|
'min_temp',
|
||||||
'max_temp',
|
'max_temp',
|
||||||
|
'dynatemp_exponent',
|
||||||
|
'smoothing_factor',
|
||||||
'encoder_rep_pen',
|
'encoder_rep_pen',
|
||||||
'freq_pen',
|
'freq_pen',
|
||||||
'presence_pen',
|
'presence_pen',
|
||||||
@ -818,6 +822,8 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
|
|||||||
'dynatemp_low': settings.min_temp,
|
'dynatemp_low': settings.min_temp,
|
||||||
'dynatemp_high': settings.max_temp,
|
'dynatemp_high': settings.max_temp,
|
||||||
'dynatemp_range': settings.dynatemp ? (settings.max_temp - settings.min_temp) / 2 : 0,
|
'dynatemp_range': settings.dynatemp ? (settings.max_temp - settings.min_temp) / 2 : 0,
|
||||||
|
'dynatemp_exponent': settings.dynatemp_exponent,
|
||||||
|
'smoothing_factor': settings.smoothing_factor,
|
||||||
'stopping_strings': getStoppingStrings(isImpersonate, isContinue),
|
'stopping_strings': getStoppingStrings(isImpersonate, isContinue),
|
||||||
'stop': getStoppingStrings(isImpersonate, isContinue),
|
'stop': getStoppingStrings(isImpersonate, isContinue),
|
||||||
'truncation_length': max_context,
|
'truncation_length': max_context,
|
||||||
@ -864,6 +870,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
|
|||||||
'best_of': canMultiSwipe ? settings.n : 1,
|
'best_of': canMultiSwipe ? settings.n : 1,
|
||||||
'ignore_eos': settings.ignore_eos_token_aphrodite,
|
'ignore_eos': settings.ignore_eos_token_aphrodite,
|
||||||
'spaces_between_special_tokens': settings.spaces_between_special_tokens_aphrodite,
|
'spaces_between_special_tokens': settings.spaces_between_special_tokens_aphrodite,
|
||||||
|
'grammar': settings.grammar_string,
|
||||||
//'logits_processors': settings.logits_processors_aphrodite,
|
//'logits_processors': settings.logits_processors_aphrodite,
|
||||||
//'logprobs': settings.log_probs_aphrodite,
|
//'logprobs': settings.log_probs_aphrodite,
|
||||||
//'prompt_logprobs': settings.prompt_log_probs_aphrodite,
|
//'prompt_logprobs': settings.prompt_log_probs_aphrodite,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user