Remove Noisy Sampling

Leaves DynaTemp Exponent and Quadratic Sampling.
This commit is contained in:
Alexander Abushady 2024-01-30 21:50:50 -05:00
parent 766cd49953
commit da68d35ca5
3 changed files with 6 additions and 21 deletions

View File

@ -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-input" type="number" min="0" max="2000" step="1" data-for="min_length_textgenerationwebui" id="min_length_counter_textgenerationwebui">
</div>
<div data-newbie-hidden data-tg-type="ooba, koboldcpp" 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">
<small>Responses</small>
@ -1288,22 +1293,6 @@
<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 data-newbie-hidden data-tg-type="ooba, koboldcpp, llamacpp" name="Kalo Zone" class="wide100p">
<h4 class="range-block-title justifyCenter">
<span data-i18n="Kalo Zone">Kalo Zone</span>
<div class="margin5 fa-solid fa-circle-info opacity50p " title="Enter the Kalo Zone."></div>
</h4>
<div class="alignitemscenter flex-container marginBot5 flexFlowColumn flexGrow flexShrink gap0">
<small data-i18n="Randomization Factor">Randomization Factor</small>
<input class="neo-range-slider" type="range" id="randomization_factor_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="randomization_factor_textgenerationwebui" id="randomization_factor_counter_textgenerationwebui">
</div>
<div class="alignitemscenter flex-container marginBot5 flexFlowColumn 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="5" 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>
<div data-newbie-hidden data-tg-type="ooba, koboldcpp, llamacpp" name="dynaTempBlock" class="wide100p">
<h4 class="wide100p textAlignCenter" data-i18n="DynaTemp">
<div class="flex-container alignitemscenter" style="justify-content: center;">

View File

@ -613,8 +613,7 @@ async function CreateZenSliders(elmnt) {
if (sliderID == 'min_temp_textgenerationwebui' ||
sliderID == 'max_temp_textgenerationwebui' ||
sliderID == 'dynatemp_exponent_textgenerationwebui' ||
sliderID == 'smoothing_factor_textgenerationwebui' ||
sliderID == 'randomization_factor_textgenerationwebui') {
sliderID == 'smoothing_factor_textgenerationwebui') {
decimals = 2;
}
if (sliderID == 'eta_cutoff_textgenerationwebui' ||

View File

@ -80,7 +80,6 @@ const settings = {
min_temp: 0,
max_temp: 2.0,
dynatemp_exponent: 1.0,
randomization_factor: 0.0,
smoothing_factor: 0.0,
seed: -1,
preset: 'Default',
@ -144,7 +143,6 @@ const setting_names = [
'min_temp',
'max_temp',
'dynatemp_exponent',
'randomization_factor',
'smoothing_factor',
'encoder_rep_pen',
'freq_pen',
@ -825,7 +823,6 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
'dynatemp_high': settings.max_temp,
'dynatemp_range': settings.dynatemp ? (settings.max_temp - settings.min_temp) / 2 : 0,
'dynatemp_exponent': settings.dynatemp_exponent,
'randomization_factor': settings.randomization_factor,
'smoothing_factor': settings.smoothing_factor,
'stopping_strings': getStoppingStrings(isImpersonate, isContinue),
'stop': getStoppingStrings(isImpersonate, isContinue),