NovelAI: Increase repetition penalty precision
This commit is contained in:
parent
42f8b86b11
commit
9f23a7852f
|
@ -264,10 +264,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block-range-and-counter">
|
<div class="range-block-range-and-counter">
|
||||||
<div class="range-block-range">
|
<div class="range-block-range">
|
||||||
<input type="range" id="rep_pen_novel" name="volume" min="1" max="8" step="0.05">
|
<input type="range" id="rep_pen_novel" name="volume" min="1" max="8" step="0.025">
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block-counter">
|
<div class="range-block-counter">
|
||||||
<input type="number" min="1" max="8" step="0.05" data-for="rep_pen_novel" id="rep_pen_counter_novel">
|
<input type="number" min="1" max="8" step="0.025" data-for="rep_pen_novel" id="rep_pen_counter_novel">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -245,7 +245,7 @@ function loadNovelSettingsUi(ui_settings) {
|
||||||
$('#temp_novel').val(ui_settings.temperature);
|
$('#temp_novel').val(ui_settings.temperature);
|
||||||
$('#temp_counter_novel').val(Number(ui_settings.temperature).toFixed(2));
|
$('#temp_counter_novel').val(Number(ui_settings.temperature).toFixed(2));
|
||||||
$('#rep_pen_novel').val(ui_settings.repetition_penalty);
|
$('#rep_pen_novel').val(ui_settings.repetition_penalty);
|
||||||
$('#rep_pen_counter_novel').val(Number(ui_settings.repetition_penalty).toFixed(2));
|
$('#rep_pen_counter_novel').val(Number(ui_settings.repetition_penalty).toFixed(3));
|
||||||
$('#rep_pen_size_novel').val(ui_settings.repetition_penalty_range);
|
$('#rep_pen_size_novel').val(ui_settings.repetition_penalty_range);
|
||||||
$('#rep_pen_size_counter_novel').val(Number(ui_settings.repetition_penalty_range).toFixed(0));
|
$('#rep_pen_size_counter_novel').val(Number(ui_settings.repetition_penalty_range).toFixed(0));
|
||||||
$('#rep_pen_slope_novel').val(ui_settings.repetition_penalty_slope);
|
$('#rep_pen_slope_novel').val(ui_settings.repetition_penalty_slope);
|
||||||
|
@ -298,8 +298,8 @@ const sliders = [
|
||||||
{
|
{
|
||||||
sliderId: '#rep_pen_novel',
|
sliderId: '#rep_pen_novel',
|
||||||
counterId: '#rep_pen_counter_novel',
|
counterId: '#rep_pen_counter_novel',
|
||||||
format: (val) => Number(val).toFixed(2),
|
format: (val) => Number(val).toFixed(3),
|
||||||
setValue: (val) => { nai_settings.repetition_penalty = Number(val).toFixed(2); },
|
setValue: (val) => { nai_settings.repetition_penalty = Number(val).toFixed(3); },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sliderId: '#rep_pen_size_novel',
|
sliderId: '#rep_pen_size_novel',
|
||||||
|
|
Loading…
Reference in New Issue