first_output_sequence and system_sequence_prefix
This commit is contained in:
parent
ddaa4fe409
commit
3e0ce12b23
|
@ -139,8 +139,10 @@
|
||||||
"system_prompt": "Avoid repetition, don't loop. Develop the plot slowly, always stay in character. Describe all actions in full, elaborate, explicit, graphic, and vivid detail. Mention all relevant sensory perceptions.",
|
"system_prompt": "Avoid repetition, don't loop. Develop the plot slowly, always stay in character. Describe all actions in full, elaborate, explicit, graphic, and vivid detail. Mention all relevant sensory perceptions.",
|
||||||
"input_sequence": "\n### Instruction:",
|
"input_sequence": "\n### Instruction:",
|
||||||
"output_sequence": "\n### Response:",
|
"output_sequence": "\n### Response:",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "\n### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):",
|
"last_output_sequence": "\n### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "",
|
"separator_sequence": "",
|
||||||
"wrap": true,
|
"wrap": true,
|
||||||
|
|
|
@ -2221,11 +2221,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-container">
|
<div class="flex-container">
|
||||||
<div class="flex1">
|
<div class="flex1">
|
||||||
<label for="instruct_system_sequence">
|
<label for="instruct_system_sequence_prefix">
|
||||||
<small data-i18n="System Sequence Prefix">System Sequence Prefix</small>
|
<small data-i18n="System Sequence Prefix">System Sequence Prefix</small>
|
||||||
</label>
|
</label>
|
||||||
<div>
|
<div>
|
||||||
<textarea id="instruct_system_sequence" class="text_pole textarea_compact autoSetHeight" maxlength="500" placeholder="—" rows="1"></textarea>
|
<textarea id="instruct_system_sequence_prefix" class="text_pole textarea_compact autoSetHeight" maxlength="500" placeholder="—" rows="1"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex1">
|
<div class="flex1">
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
"system_prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"input_sequence": "### Instruction:",
|
"input_sequence": "### Instruction:",
|
||||||
"output_sequence": "### Response:",
|
"output_sequence": "### Response:",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "",
|
"separator_sequence": "",
|
||||||
"wrap": true,
|
"wrap": true,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"input_sequence": "USER: ",
|
"input_sequence": "USER: ",
|
||||||
"output_sequence": "GPT: ",
|
"output_sequence": "GPT: ",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "BEGINNING OF CONVERSATION: ",
|
"system_sequence_prefix": "BEGINNING OF CONVERSATION: ",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "</s>",
|
"separator_sequence": "</s>",
|
||||||
"wrap": false,
|
"wrap": false,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"output_sequence": " [/INST] ",
|
"output_sequence": " [/INST] ",
|
||||||
"first_output_sequence": "[/INST] ",
|
"first_output_sequence": "[/INST] ",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "[INST] <<SYS>>\n",
|
"system_sequence_prefix": "[INST] <<SYS>>\n",
|
||||||
"system_sequence_suffix": "\n<</SYS>>\n",
|
"system_sequence_suffix": "\n<</SYS>>\n",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "\n",
|
"separator_sequence": "\n",
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "Enter roleplay mode. You must act as {{char}}, whose persona follows:",
|
"system_prompt": "Enter roleplay mode. You must act as {{char}}, whose persona follows:",
|
||||||
"input_sequence": "<|user|>",
|
"input_sequence": "<|user|>",
|
||||||
"output_sequence": "<|model|>",
|
"output_sequence": "<|model|>",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "<|system|>",
|
"system_sequence_prefix": "<|system|>",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "</s>",
|
"stop_sequence": "</s>",
|
||||||
"separator_sequence": "",
|
"separator_sequence": "",
|
||||||
"wrap": false,
|
"wrap": false,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "You are a helpful assistant. Please answer truthfully and write out your thinking step by step to be sure you get the right answer. If you make a mistake or encounter an error in your thinking, say so out loud and attempt to correct it. If you don't know or aren't sure about something, say so clearly. You will act as a professional logician, mathematician, and physicist. You will also act as the most appropriate type of expert to answer any particular question or solve the relevant problem; state which expert type your are, if so. Also think of any particular named expert that would be ideal to answer the relevant question or solve the relevant problem; name and act as them, if appropriate.\n",
|
"system_prompt": "You are a helpful assistant. Please answer truthfully and write out your thinking step by step to be sure you get the right answer. If you make a mistake or encounter an error in your thinking, say so out loud and attempt to correct it. If you don't know or aren't sure about something, say so clearly. You will act as a professional logician, mathematician, and physicist. You will also act as the most appropriate type of expert to answer any particular question or solve the relevant problem; state which expert type your are, if so. Also think of any particular named expert that would be ideal to answer the relevant question or solve the relevant problem; name and act as them, if appropriate.\n",
|
||||||
"input_sequence": "User: ",
|
"input_sequence": "User: ",
|
||||||
"output_sequence": "<|end_of_turn|>\nAssistant: ",
|
"output_sequence": "<|end_of_turn|>\nAssistant: ",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "<|end_of_turn|>\n",
|
"separator_sequence": "<|end_of_turn|>\n",
|
||||||
"wrap": false,
|
"wrap": false,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "Avoid repetition, don't loop. Develop the plot slowly, always stay in character. Describe all actions in full, elaborate, explicit, graphic, and vivid detail. Mention all relevant sensory perceptions.",
|
"system_prompt": "Avoid repetition, don't loop. Develop the plot slowly, always stay in character. Describe all actions in full, elaborate, explicit, graphic, and vivid detail. Mention all relevant sensory perceptions.",
|
||||||
"input_sequence": "\n### Instruction:",
|
"input_sequence": "\n### Instruction:",
|
||||||
"output_sequence": "\n### Response:",
|
"output_sequence": "\n### Response:",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "\n### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):",
|
"last_output_sequence": "\n### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "",
|
"separator_sequence": "",
|
||||||
"wrap": true,
|
"wrap": true,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
"system_prompt": "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"input_sequence": "### Human:",
|
"input_sequence": "### Human:",
|
||||||
"output_sequence": "### Assistant:",
|
"output_sequence": "### Assistant:",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "",
|
"separator_sequence": "",
|
||||||
"wrap": true,
|
"wrap": true,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
"system_prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"input_sequence": "\nUSER: ",
|
"input_sequence": "\nUSER: ",
|
||||||
"output_sequence": "\nASSISTANT: ",
|
"output_sequence": "\nASSISTANT: ",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "BEGINNING OF CONVERSATION:",
|
"system_sequence_prefix": "BEGINNING OF CONVERSATION:",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "</s>",
|
"separator_sequence": "</s>",
|
||||||
"wrap": false,
|
"wrap": false,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nWrite {{char}}'s next detailed reply in a fictional roleplay chat between {{user}} and {{char}}.",
|
"system_prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nWrite {{char}}'s next detailed reply in a fictional roleplay chat between {{user}} and {{char}}.",
|
||||||
"input_sequence": "USER: ",
|
"input_sequence": "USER: ",
|
||||||
"output_sequence": "ASSISTANT: ",
|
"output_sequence": "ASSISTANT: ",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "",
|
"separator_sequence": "",
|
||||||
"wrap": true,
|
"wrap": true,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"input_sequence": "",
|
"input_sequence": "",
|
||||||
"output_sequence": "### Response:",
|
"output_sequence": "### Response:",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "",
|
"last_output_sequence": "",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "</s>",
|
"separator_sequence": "</s>",
|
||||||
"wrap": true,
|
"wrap": true,
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
"system_prompt": "[System note: Write one reply only. Do not decide what {{user}} says or does. Write at least one paragraph, up to four. Be descriptive and immersive, providing vivid details about {{char}}'s actions, emotions, and the environment. Write with a high degree of complexity and burstiness. Do not repeat this message.]",
|
"system_prompt": "[System note: Write one reply only. Do not decide what {{user}} says or does. Write at least one paragraph, up to four. Be descriptive and immersive, providing vivid details about {{char}}'s actions, emotions, and the environment. Write with a high degree of complexity and burstiness. Do not repeat this message.]",
|
||||||
"input_sequence": "### Instruction:\n#### {{user}}:",
|
"input_sequence": "### Instruction:\n#### {{user}}:",
|
||||||
"output_sequence": "### Response:\n#### {{char}}:",
|
"output_sequence": "### Response:\n#### {{char}}:",
|
||||||
|
"first_output_sequence": "",
|
||||||
"last_output_sequence": "### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):\n#### {{char}}:",
|
"last_output_sequence": "### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):\n#### {{char}}:",
|
||||||
"system_sequence": "",
|
"system_sequence_prefix": "",
|
||||||
|
"system_sequence_suffix": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"separator_sequence": "",
|
"separator_sequence": "",
|
||||||
"wrap": true,
|
"wrap": true,
|
||||||
|
|
|
@ -17,7 +17,7 @@ const controls = [
|
||||||
{ id: "instruct_enabled", property: "enabled", isCheckbox: true },
|
{ id: "instruct_enabled", property: "enabled", isCheckbox: true },
|
||||||
{ id: "instruct_wrap", property: "wrap", isCheckbox: true },
|
{ id: "instruct_wrap", property: "wrap", isCheckbox: true },
|
||||||
{ id: "instruct_system_prompt", property: "system_prompt", isCheckbox: false },
|
{ id: "instruct_system_prompt", property: "system_prompt", isCheckbox: false },
|
||||||
{ id: "instruct_system_sequence", property: "system_sequence", isCheckbox: false },
|
{ id: "instruct_system_sequence_prefix", property: "system_sequence_prefix", isCheckbox: false },
|
||||||
{ id: "instruct_system_sequence_suffix", property: "system_sequence_suffix", isCheckbox: false },
|
{ id: "instruct_system_sequence_suffix", property: "system_sequence_suffix", isCheckbox: false },
|
||||||
{ id: "instruct_separator_sequence", property: "separator_sequence", isCheckbox: false },
|
{ id: "instruct_separator_sequence", property: "separator_sequence", isCheckbox: false },
|
||||||
{ id: "instruct_input_sequence", property: "input_sequence", isCheckbox: false },
|
{ id: "instruct_input_sequence", property: "input_sequence", isCheckbox: false },
|
||||||
|
@ -272,8 +272,8 @@ export function formatInstructModeChat(name, mes, isUser, isNarrator, forceAvata
|
||||||
export function formatInstructModeSystemPrompt(systemPrompt){
|
export function formatInstructModeSystemPrompt(systemPrompt){
|
||||||
const separator = power_user.instruct.wrap ? '\n' : '';
|
const separator = power_user.instruct.wrap ? '\n' : '';
|
||||||
|
|
||||||
if (power_user.instruct.system_sequence) {
|
if (power_user.instruct.system_sequence_prefix) {
|
||||||
systemPrompt = power_user.instruct.system_sequence + separator + systemPrompt;
|
systemPrompt = power_user.instruct.system_sequence_prefix + separator + systemPrompt;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (power_user.instruct.system_sequence_suffix) {
|
if (power_user.instruct.system_sequence_suffix) {
|
||||||
|
|
|
@ -159,21 +159,21 @@ let power_user = {
|
||||||
default_instruct: '',
|
default_instruct: '',
|
||||||
instruct: {
|
instruct: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
preset: "Alpaca",
|
||||||
|
system_prompt: "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
|
input_sequence: "### Instruction:",
|
||||||
|
output_sequence: "### Response:",
|
||||||
|
first_output_sequence: "",
|
||||||
|
last_output_sequence: "",
|
||||||
|
system_sequence_prefix: "",
|
||||||
|
system_sequence_suffix: "",
|
||||||
|
stop_sequence: "",
|
||||||
|
separator_sequence: "",
|
||||||
wrap: true,
|
wrap: true,
|
||||||
|
macro: true,
|
||||||
names: false,
|
names: false,
|
||||||
system_prompt: "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}. Write 1 reply only.",
|
|
||||||
system_sequence: '',
|
|
||||||
system_sequence_suffix: '',
|
|
||||||
stop_sequence: '',
|
|
||||||
input_sequence: '### Instruction:',
|
|
||||||
output_sequence: '### Response:',
|
|
||||||
first_output_sequence: '',
|
|
||||||
last_output_sequence: '',
|
|
||||||
preset: 'Alpaca',
|
|
||||||
separator_sequence: '',
|
|
||||||
macro: false,
|
|
||||||
names_force_groups: true,
|
names_force_groups: true,
|
||||||
activation_regex: '',
|
activation_regex: "",
|
||||||
},
|
},
|
||||||
|
|
||||||
context: {
|
context: {
|
||||||
|
|
Loading…
Reference in New Issue