Add Gemma 4 instruct, context, and reasoning presets (#5403) * Add Gemma 4 context preset * Add new instruction preset for Gemma 4 * Add Gemma 4 reasoning preset * Add to index.json * Disable wrapping, fix story string --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
Signed| @@ -642,5 +642,17 @@ | ||
| 642 | 642 | { |
| 643 | 643 | "filename": "presets/reasoning/Think XML.json", |
| 644 | 644 | "type": "reasoning" |
| 645 | + }, | |
| 646 | + { | |
| 647 | + "filename": "presets/reasoning/Gemma 4.json", | |
| 648 | + "type": "reasoning" | |
| 649 | + }, | |
| 650 | + { | |
| 651 | + "filename": "presets/instruct/Gemma 4.json", | |
| 652 | + "type": "instruct" | |
| 653 | + }, | |
| 654 | + { | |
| 655 | + "filename": "presets/context/Gemma 4.json", | |
| 656 | + "type": "context" | |
| 645 | 657 | } |
| 646 | 658 | ] |
| @@ -0,0 +1,14 @@ | ||
| 1 | +{ | |
| 2 | + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", | |
| 3 | + "example_separator": "", | |
| 4 | + "chat_start": "", | |
| 5 | + "use_stop_strings": false, | |
| 6 | + "names_as_stop_strings": true, | |
| 7 | + "story_string_position": 0, | |
| 8 | + "story_string_depth": 1, | |
| 9 | + "story_string_role": 0, | |
| 10 | + "always_force_name2": true, | |
| 11 | + "trim_sentences": false, | |
| 12 | + "single_line": false, | |
| 13 | + "name": "Gemma 4" | |
| 14 | +} | |
| @@ -0,0 +1,25 @@ | ||
| 1 | +{ | |
| 2 | + "input_sequence": "<|turn>user\n", | |
| 3 | + "output_sequence": "<|turn>model\n", | |
| 4 | + "last_output_sequence": "", | |
| 5 | + "system_sequence": "<|turn>system\n", | |
| 6 | + "stop_sequence": "<turn|>", | |
| 7 | + "wrap": false, | |
| 8 | + "macro": true, | |
| 9 | + "names_behavior": "force", | |
| 10 | + "activation_regex": "", | |
| 11 | + "first_output_sequence": "", | |
| 12 | + "skip_examples": false, | |
| 13 | + "output_suffix": "<turn|>\n", | |
| 14 | + "input_suffix": "<turn|>\n", | |
| 15 | + "system_suffix": "<turn|>\n", | |
| 16 | + "user_alignment_message": "", | |
| 17 | + "system_same_as_user": false, | |
| 18 | + "last_system_sequence": "", | |
| 19 | + "first_input_sequence": "", | |
| 20 | + "last_input_sequence": "", | |
| 21 | + "sequences_as_stop_strings": true, | |
| 22 | + "story_string_prefix": "<|turn>system\n", | |
| 23 | + "story_string_suffix": "<turn|>\n", | |
| 24 | + "name": "Gemma 4" | |
| 25 | +} | |
| @@ -0,0 +1,6 @@ | ||
| 1 | +{ | |
| 2 | + "name": "Gemma 4", | |
| 3 | + "prefix": "<|channel>thought\n", | |
| 4 | + "suffix": "\n<channel|>", | |
| 5 | + "separator": "\n\n" | |
| 6 | +} | |