diff --git a/public/index.html b/public/index.html index 67c59c43f..7027f07df 100644 --- a/public/index.html +++ b/public/index.html @@ -1330,7 +1330,23 @@ --> -
+
+

+ Kalo Zone +
+

+
+ Randomization Factor + + +
+
+ Smoothing Factor + + +
+
+

@@ -1352,6 +1368,11 @@
+
+ Exponent + + +

diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 41938ea23..563e3e72d 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -611,7 +611,10 @@ async function CreateZenSliders(elmnt) { decimals = 0; } if (sliderID == 'min_temp_textgenerationwebui' || - sliderID == 'max_temp_textgenerationwebui') { + sliderID == 'max_temp_textgenerationwebui' || + sliderID == 'dynatemp_exponent_textgenerationwebui' || + sliderID == 'smoothing_factor_textgenerationwebui' || + sliderID == 'randomization_factor_textgenerationwebui') { decimals = 2; } if (sliderID == 'eta_cutoff_textgenerationwebui' || diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index 1d1fe57ae..0e582abee 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -79,6 +79,9 @@ const settings = { dynatemp: false, min_temp: 0, max_temp: 2.0, + dynatemp_exponent: 1.0, + randomization_factor: 0.0, + smoothing_factor: 0.0, seed: -1, preset: 'Default', add_bos_token: true, @@ -140,6 +143,9 @@ const setting_names = [ 'dynatemp', 'min_temp', 'max_temp', + 'dynatemp_exponent', + 'randomization_factor', + 'smoothing_factor', 'encoder_rep_pen', 'freq_pen', 'presence_pen', @@ -818,6 +824,9 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate, 'dynatemp_low': settings.min_temp, '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), 'truncation_length': max_context,