commit
2bea90a264
|
@ -1315,6 +1315,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div data-newbie-hidden name="dynaTempBlock" class="wide100p">
|
||||||
|
<h4 class="wide100p textAlignCenter" data-i18n="DynaTemp">DynaTemp
|
||||||
|
<div class=" fa-solid fa-circle-info opacity50p " title="Set range to 0 to Deactivate."></div>
|
||||||
|
</h4>
|
||||||
|
<div class="flex-container flexFlowRow alignitemscenter gap10px flexShrink">
|
||||||
|
<div class="alignitemscenter flex-container marginBot5 flexFlowColumn flexGrow flexShrink gap0">
|
||||||
|
<small data-i18n="DynaTemp Range">DynaTemp Range</small>
|
||||||
|
<input class="neo-range-slider" type="range" id="dynatemp_range_textgenerationwebui" name="volume" min="0" max="2.0" step="0.1" />
|
||||||
|
<input class="neo-range-input" type="number" min="0" max="2.0" step="0.1" data-for="dynatemp_range_textgenerationwebui" id="dynatemp_range_counter_textgenerationwebui">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div data-forAphro=False data-newbie-hidden name="contrastiveSearchBlock" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
|
<div data-forAphro=False data-newbie-hidden name="contrastiveSearchBlock" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
|
||||||
<h4 class="textAlignCenter" data-i18n="Contrastive search">Contrast Search
|
<h4 class="textAlignCenter" data-i18n="Contrastive search">Contrast Search
|
||||||
<div class=" fa-solid fa-circle-info opacity50p " title="Helpful tip coming soon."></div>
|
<div class=" fa-solid fa-circle-info opacity50p " title="Helpful tip coming soon."></div>
|
||||||
|
|
|
@ -608,6 +608,9 @@ async function CreateZenSliders(elmnt) {
|
||||||
sliderID == 'rep_pen_range') {
|
sliderID == 'rep_pen_range') {
|
||||||
decimals = 0;
|
decimals = 0;
|
||||||
}
|
}
|
||||||
|
if (sliderID == 'dynatemp_range_textgenerationwebui') {
|
||||||
|
decimals = 2;
|
||||||
|
}
|
||||||
if (sliderID == 'eta_cutoff_textgenerationwebui' ||
|
if (sliderID == 'eta_cutoff_textgenerationwebui' ||
|
||||||
sliderID == 'epsilon_cutoff_textgenerationwebui') {
|
sliderID == 'epsilon_cutoff_textgenerationwebui') {
|
||||||
numSteps = 50;
|
numSteps = 50;
|
||||||
|
@ -632,7 +635,8 @@ async function CreateZenSliders(elmnt) {
|
||||||
sliderID == 'tfs_textgenerationwebui' ||
|
sliderID == 'tfs_textgenerationwebui' ||
|
||||||
sliderID == 'min_p_textgenerationwebui' ||
|
sliderID == 'min_p_textgenerationwebui' ||
|
||||||
sliderID == 'temp_textgenerationwebui' ||
|
sliderID == 'temp_textgenerationwebui' ||
|
||||||
sliderID == 'temp') {
|
sliderID == 'temp' ||
|
||||||
|
sliderID == 'dynatemp_range_textgenerationwebui') {
|
||||||
numSteps = 20;
|
numSteps = 20;
|
||||||
}
|
}
|
||||||
if (sliderID == 'mirostat_eta_textgenerationwebui' ||
|
if (sliderID == 'mirostat_eta_textgenerationwebui' ||
|
||||||
|
|
|
@ -79,6 +79,7 @@ const settings = {
|
||||||
presence_pen: 0,
|
presence_pen: 0,
|
||||||
do_sample: true,
|
do_sample: true,
|
||||||
early_stopping: false,
|
early_stopping: false,
|
||||||
|
dynatemp_range: 0,
|
||||||
seed: -1,
|
seed: -1,
|
||||||
preset: 'Default',
|
preset: 'Default',
|
||||||
add_bos_token: true,
|
add_bos_token: true,
|
||||||
|
@ -137,6 +138,7 @@ const setting_names = [
|
||||||
'num_beams',
|
'num_beams',
|
||||||
'length_penalty',
|
'length_penalty',
|
||||||
'min_length',
|
'min_length',
|
||||||
|
'dynatemp_range',
|
||||||
'encoder_rep_pen',
|
'encoder_rep_pen',
|
||||||
'freq_pen',
|
'freq_pen',
|
||||||
'presence_pen',
|
'presence_pen',
|
||||||
|
@ -718,6 +720,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
|
||||||
'length_penalty': settings.length_penalty,
|
'length_penalty': settings.length_penalty,
|
||||||
'early_stopping': settings.early_stopping,
|
'early_stopping': settings.early_stopping,
|
||||||
'add_bos_token': settings.add_bos_token,
|
'add_bos_token': settings.add_bos_token,
|
||||||
|
'dynatemp_range': settings.dynatemp_range,
|
||||||
'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,
|
||||||
|
|
Loading…
Reference in New Issue