From e753cdf0fb8b8c01ab8fc90e1788502d5f6668e3 Mon Sep 17 00:00:00 2001 From: Stefan Daniel Schwarz Date: Thu, 18 Apr 2024 23:14:15 +0200 Subject: [PATCH] Llama 3 Instruct context+instruct presets --- .../presets/context/Llama 3 Instruct.json | 12 ++++++++++ .../presets/instruct/Llama 3 Instruct.json | 24 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 default/content/presets/context/Llama 3 Instruct.json create mode 100644 default/content/presets/instruct/Llama 3 Instruct.json diff --git a/default/content/presets/context/Llama 3 Instruct.json b/default/content/presets/context/Llama 3 Instruct.json new file mode 100644 index 000000000..76fef1490 --- /dev/null +++ b/default/content/presets/context/Llama 3 Instruct.json @@ -0,0 +1,12 @@ +{ + "story_string": "<|start_header_id|>system<|end_header_id|>\n\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}\n\n<|eot_id|>\n", + "example_separator": "\n<|start_header_id|>system<|end_header_id|>\n\nExample Chat:<|eot_id|>\n", + "chat_start": "\n<|start_header_id|>system<|end_header_id|>\n\nNew Chat:<|eot_id|>\n", + "use_stop_strings": false, + "allow_jailbreak": false, + "always_force_name2": true, + "trim_sentences": false, + "include_newline": false, + "single_line": false, + "name": "Llama 3 Instruct" +} \ No newline at end of file diff --git a/default/content/presets/instruct/Llama 3 Instruct.json b/default/content/presets/instruct/Llama 3 Instruct.json new file mode 100644 index 000000000..f9041752a --- /dev/null +++ b/default/content/presets/instruct/Llama 3 Instruct.json @@ -0,0 +1,24 @@ +{ + "system_prompt": "Write {{char}}'s next reply in this fictional roleplay with {{user}}.", + "input_sequence": "<|start_header_id|>user<|end_header_id|>\n\n", + "output_sequence": "<|start_header_id|>assistant<|end_header_id|>\n\n", + "last_output_sequence": "", + "system_sequence": "<|start_header_id|>system<|end_header_id|>\n\n", + "stop_sequence": "<|end_of_text|>", + "wrap": false, + "macro": true, + "names": true, + "names_force_groups": true, + "activation_regex": "", + "system_sequence_prefix": "", + "system_sequence_suffix": "", + "first_output_sequence": "", + "skip_examples": false, + "output_suffix": "<|eot_id|>\n\n", + "input_suffix": "<|eot_id|>\n\n", + "system_suffix": "<|eot_id|>\n\n", + "user_alignment_message": "", + "system_same_as_user": false, + "last_system_sequence": "", + "name": "Llama 3 Instruct" +} \ No newline at end of file