add presets for DeepSeek R1 models

7877e6601da89971ba505a6915a349a2d14be658

Karl-Johan Alm <karljohan-alm@garage.co.jp>

Signed
4 files changed, +46 -0Showing whitespace changes
default/content/index.json+8 -0
@@ -782,5 +782,13 @@
782 {782 {
783 "filename": "presets/context/Mistral V7.json",783 "filename": "presets/context/Mistral V7.json",
784 "type": "context"784 "type": "context"
785 },
786 {
787 "filename": "presets/instruct/DeepSeek-R1.json",
788 "type": "instruct"
789 },
790 {
791 "filename": "presets/context/DeepSeek-R1.json",
792 "type": "context"
785 }793 }
786]794]
default/content/presets/context/DeepSeek-R1.json+11 -0
@@ -0,0 +1,11 @@
1{
2 "story_string": "{{#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",
3 "example_separator": "",
4 "chat_start": "",
5 "use_stop_strings": false,
6 "allow_jailbreak": false,
7 "always_force_name2": true,
8 "trim_sentences": false,
9 "single_line": false,
10 "name": "DeepSeek-R1"
11}
default/content/presets/instruct/DeepSeek-R1.json+22 -0
@@ -0,0 +1,22 @@
1{
2 "input_sequence": "<|User|>",
3 "output_sequence": "<|Assistant|>",
4 "first_output_sequence": "",
5 "last_output_sequence": "",
6 "system_sequence_prefix": "",
7 "system_sequence_suffix": "",
8 "stop_sequence": "",
9 "wrap": false,
10 "macro": true,
11 "names_behavior": "always",
12 "activation_regex": "",
13 "skip_examples": false,
14 "output_suffix": "<|end▁of▁sentence|>",
15 "input_suffix": "",
16 "system_sequence": "",
17 "system_suffix": "",
18 "user_alignment_message": "",
19 "last_system_sequence": "",
20 "system_same_as_user": false,
21 "name": "DeepSeek-R1"
22}
public/scripts/chat-templates.js+5 -0
@@ -59,6 +59,11 @@ const hash_derivations = {
59 // Tulu-3-8B59 // Tulu-3-8B
60 // Tulu-3-70B60 // Tulu-3-70B
61 'Tulu'61 'Tulu'
62 ,
63
64 // DeepSeek R1
65 'b6835114b7303ddd78919a82e4d9f7d8c26ed0d7dfc36beeb12d524f6144eab1':
66 'DeepSeek-R1'
62};67};
6368
64const substr_derivations = {69const substr_derivations = {