Merge branch 'staging' of http://github.com/cohee1207/SillyTavern into staging

This commit is contained in:
Cohee1207 2023-07-22 13:50:22 +03:00
commit ed366b15ca
32 changed files with 57 additions and 0 deletions

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.02,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 4.5,
"rep_pen_range": 0,
"no_repeat_ngram_size": 2,
"penalty_alpha": 0,
"num_beams": 10,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.01,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0.6,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.2,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 1.49,
"eta_cutoff": 10.42,
"rep_pen": 1.17,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.18,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.18,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.15,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"tfs": 1,
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.05,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.15,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.05,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.15,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.15,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -6,6 +6,7 @@
"top_a": 0,
"tfs": 1,
"rep_pen": 1.1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.07,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.15,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.09,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.15,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 10.78,
"rep_pen": 1.21,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -8,6 +8,7 @@
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"rep_pen": 1.19,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,

View File

@ -440,6 +440,21 @@
</div>
</div>
</div>
<div class="range-block">
<div class="range-block-title" data-i18n="rep.pen range">
Rep. Pen. Range
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
<input type="range" id="rep_pen_range_textgenerationwebui" name="volume" min="0" max="4096" step="1">
</div>
<div class="range-block-counter">
<div contenteditable="true" data-for="rep_pen_range_textgenerationwebui" id="rep_pen_range_counter_textgenerationwebui">
select
</div>
</div>
</div>
</div>
<div class="range-block">
<div class="range-block-title" data-i18n="Encoder Rep. Pen.">
Encoder Rep. Pen.

View File

@ -0,0 +1,10 @@
{
"name": "Llama 2",
"system_prompt": "Write {{user}}'s next reply in this fictional roleplay with {{char}}.\n<</SYS>>\n",
"system_sequence": "[INST] <<SYS>>\n",
"stop_sequence": "",
"input_sequence": "[INST]",
"output_sequence": "[/INST]",
"separator_sequence": "\n",
"wrap": false
}

View File

@ -21,6 +21,7 @@ let textgenerationwebui_settings = {
eta_cutoff: 0,
typical_p: 1,
rep_pen: 1.2,
rep_pen_range: 0,
no_repeat_ngram_size: 0,
penalty_alpha: 0,
num_beams: 1,
@ -49,6 +50,7 @@ let textgenerationwebui_preset_names = [];
const setting_names = [
"temp",
"rep_pen",
"rep_pen_range",
"no_repeat_ngram_size",
"top_k",
"top_p",
@ -212,6 +214,7 @@ export function getTextGenGenerationData(finalPromt, this_amount_gen, isImperson
'top_p': textgenerationwebui_settings.top_p,
'typical_p': textgenerationwebui_settings.typical_p,
'repetition_penalty': textgenerationwebui_settings.rep_pen,
'repetition_penalty_range': textgenerationwebui_settings.rep_pen_range,
'encoder_repetition_penalty': textgenerationwebui_settings.encoder_rep_pen,
'top_k': textgenerationwebui_settings.top_k,
'min_length': textgenerationwebui_settings.min_length,