Add instruct/context for Gemma 2 (#2477)

* Add instruct/context for Gemma 2

* Add Gemma 2 Roleplay variation

* Revert "Add Gemma 2 Roleplay variation"

This reverts commit d1473e18a1.
This commit is contained in:
Cohee 2024-07-06 01:54:36 +03:00 committed by GitHub
parent 66c4824a8a
commit 13630c896a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 44 additions and 0 deletions

View File

@ -678,5 +678,13 @@
{ {
"filename": "presets/context/ChatML-Names.json", "filename": "presets/context/ChatML-Names.json",
"type": "context" "type": "context"
},
{
"filename": "presets/context/Gemma 2.json",
"type": "context"
},
{
"filename": "presets/instruct/Gemma 2.json",
"type": "instruct"
} }
] ]

View File

@ -0,0 +1,12 @@
{
"story_string": "<start_of_turn>user\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}}<end_of_turn>",
"example_separator": "",
"chat_start": "",
"use_stop_strings": false,
"allow_jailbreak": false,
"always_force_name2": true,
"trim_sentences": false,
"include_newline": false,
"single_line": false,
"name": "Gemma 2"
}

View File

@ -0,0 +1,24 @@
{
"system_prompt": "Continue writing this story and portray characters realistically.",
"input_sequence": "<start_of_turn>user",
"output_sequence": "<start_of_turn>model",
"last_output_sequence": "",
"system_sequence": "<start_of_turn>system",
"stop_sequence": "<end_of_turn>",
"wrap": true,
"macro": true,
"names": false,
"names_force_groups": false,
"activation_regex": "",
"system_sequence_prefix": "",
"system_sequence_suffix": "",
"first_output_sequence": "",
"skip_examples": false,
"output_suffix": "<end_of_turn>\n",
"input_suffix": "<end_of_turn>\n",
"system_suffix": "<end_of_turn>\n",
"user_alignment_message": "",
"system_same_as_user": true,
"last_system_sequence": "",
"name": "Gemma 2"
}