From 2018a6d94a5588e4d9d7e7bc6b50fe1056152772 Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Mon, 6 Nov 2023 23:43:30 +0200
Subject: [PATCH] #1325 Increase precision for Novel typical sampler
---
public/index.html | 4 ++--
public/scripts/nai-settings.js | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/public/index.html b/public/index.html
index f0cfbc20b..956b3ad10 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1177,10 +1177,10 @@
diff --git a/public/scripts/nai-settings.js b/public/scripts/nai-settings.js
index 3d7e807a8..8c4f70823 100644
--- a/public/scripts/nai-settings.js
+++ b/public/scripts/nai-settings.js
@@ -196,7 +196,7 @@ function loadNovelSettingsUi(ui_settings) {
$("#top_a_novel").val(ui_settings.top_a);
$("#top_a_counter_novel").val(Number(ui_settings.top_a).toFixed(3));
$("#typical_p_novel").val(ui_settings.typical_p);
- $("#typical_p_counter_novel").val(Number(ui_settings.typical_p).toFixed(2));
+ $("#typical_p_counter_novel").val(Number(ui_settings.typical_p).toFixed(3));
$("#cfg_scale_novel").val(ui_settings.cfg_scale);
$("#cfg_scale_counter_novel").val(Number(ui_settings.cfg_scale).toFixed(2));
$("#phrase_rep_pen_novel").val(ui_settings.phrase_rep_pen || "off");
@@ -280,8 +280,8 @@ const sliders = [
{
sliderId: "#typical_p_novel",
counterId: "#typical_p_counter_novel",
- format: (val) => Number(val).toFixed(2),
- setValue: (val) => { nai_settings.typical_p = Number(val).toFixed(2); },
+ format: (val) => Number(val).toFixed(3),
+ setValue: (val) => { nai_settings.typical_p = Number(val).toFixed(3); },
},
{
sliderId: "#mirostat_tau_novel",