Revert Top P granularity

This commit is contained in:
Cohee 2023-10-26 15:11:38 +03:00
parent dcca49e848
commit beca613745
2 changed files with 4 additions and 4 deletions

View File

@ -1210,10 +1210,10 @@
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
<input type="range" id="top_p_novel" name="volume" min="0" max="1" step="0.01">
<input type="range" id="top_p_novel" name="volume" min="0" max="1" step="0.001">
</div>
<div class="range-block-counter">
<input type="number" min="0" max="1" step="0.01" data-for="top_p_novel" id="top_p_counter_novel">
<input type="number" min="0" max="1" step="0.001" data-for="top_p_novel" id="top_p_counter_novel">
</div>
</div>

View File

@ -192,7 +192,7 @@ function loadNovelSettingsUi(ui_settings) {
$("#top_k_novel").val(ui_settings.top_k);
$("#top_k_counter_novel").val(Number(ui_settings.top_k).toFixed(0));
$("#top_p_novel").val(ui_settings.top_p);
$("#top_p_counter_novel").val(Number(ui_settings.top_p).toFixed(2));
$("#top_p_counter_novel").val(Number(ui_settings.top_p).toFixed(3));
$("#top_a_novel").val(ui_settings.top_a);
$("#top_a_counter_novel").val(Number(ui_settings.top_a).toFixed(2));
$("#typical_p_novel").val(ui_settings.typical_p);
@ -269,7 +269,7 @@ const sliders = [
sliderId: "#top_p_novel",
counterId: "#top_p_counter_novel",
format: (val) => Number(val).toFixed(2),
setValue: (val) => { nai_settings.top_p = Number(val).toFixed(2); },
setValue: (val) => { nai_settings.top_p = Number(val).toFixed(3); },
},
{
sliderId: "#top_a_novel",