From 04a5d8390d4d6d74b99323133d40caac28786940 Mon Sep 17 00:00:00 2001 From: Alexander Abushady <44341163+AAbushady@users.noreply.github.com> Date: Mon, 8 Jan 2024 23:58:06 -0500 Subject: [PATCH] Dynatemp UI v3.1 fixes for html positioning as well as api settings. --- public/index.html | 47 +++++++++++++++--------------- public/scripts/textgen-settings.js | 4 +-- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/public/index.html b/public/index.html index 48ccb4037..f88ad0d04 100644 --- a/public/index.html +++ b/public/index.html @@ -1270,6 +1270,30 @@ --> +
+

+
+
+ + +
+ Dynamic Temperature +
+
+

+
+
+ Minimum Temp + + +
+
+ Maximum Temp + + +
+
+

Mirostat
@@ -1315,29 +1339,6 @@

-
-

DynaTemp -
-

-
-
- -
-
- Min Temp - - -
-
- Max Temp - - -
-
-

Contrast Search
diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index 61cafad5e..42385ec0a 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -710,7 +710,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate, 'model': getModel(), 'max_new_tokens': maxTokens, 'max_tokens': maxTokens, - 'temperature': settings.temp, + 'temperature': settings.dynatemp ? (settings.min_temp + settings.max_temp) / 2 : settings.temp, 'top_p': settings.top_p, 'typical_p': settings.typical_p, 'min_p': settings.min_p, @@ -727,7 +727,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate, 'dynatemp': settings.dynatemp, 'dynatemp_low': settings.min_temp, 'dynatemp_high': settings.max_temp, - 'dynatemp_range': (settings.min_temp + settings.max_temp) / 2, + 'dynatemp_range': (settings.max_temp - settings.min_temp) / 2, 'stopping_strings': getStoppingStrings(isImpersonate, isContinue), 'stop': getStoppingStrings(isImpersonate, isContinue), 'truncation_length': max_context,