sophosympatheia commited on
Commit
e40e14c
1 Parent(s): e61cb39

Update README.md

Browse files

Updated recommended settings and license information.

Files changed (1) hide show
  1. README.md +26 -23
README.md CHANGED
@@ -22,17 +22,18 @@ This model was designed for roleplaying and storytelling and I think it does wel
22
 
23
  ### Sampler Tips
24
 
25
- I recommend using the new Min-P sampler method with this model. The creator has a great [guide to it on Reddit](https://www.reddit.com/r/LocalLLaMA/comments/17vonjo/your_settings_are_probably_hurting_your_model_why/).
26
- Dynamic Temp is also quite nice. Pair it with Min-P.
27
-
28
- I find this model performs reasonably well at 8192 context but you will likely get better results at 4096 - 6144 context.
29
-
30
- Experiment with any and all of the settings below.
 
31
 
32
  If you save the below settings as a .json file, you can import them directly into Silly Tavern.
33
  ```
34
  {
35
- "temp": 1.15,
36
  "temperature_last": true,
37
  "top_p": 1,
38
  "top_k": 0,
@@ -41,24 +42,24 @@ If you save the below settings as a .json file, you can import them directly int
41
  "epsilon_cutoff": 0,
42
  "eta_cutoff": 0,
43
  "typical_p": 1,
44
- "min_p": 0.85,
45
- "rep_pen": 1.12,
46
- "rep_pen_range": 2048,
47
  "no_repeat_ngram_size": 0,
48
  "penalty_alpha": 0,
49
  "num_beams": 1,
50
  "length_penalty": 1,
51
  "min_length": 0,
52
  "encoder_rep_pen": 1,
53
- "freq_pen": 0.01,
54
  "presence_pen": 0,
55
  "do_sample": true,
56
  "early_stopping": false,
57
- "dynatemp": true,
58
- "min_temp": 0.5,
59
- "max_temp": 3,
60
  "dynatemp_exponent": 1,
61
- "smoothing_factor": 0,
62
  "add_bos_token": true,
63
  "truncation_length": 2048,
64
  "ban_eos_token": false,
@@ -92,13 +93,13 @@ If you save the below settings as a .json file, you can import them directly int
92
 
93
  ### Prompting Tips
94
 
95
- Try the following context template for use in SillyTavern. It might help. If you save the text as a .json file, you can import it directly.
96
 
97
  ```
98
  {
99
- "story_string": "{{#if system}}{{system}}\n{{/if}}\nCONTEXTUAL INFORMATION\n{{#if wiBefore}}\n- World and character info:\n{{wiBefore}}\n{{/if}}\n{{#if description}}\n- {{char}}'s background and persona:\n{{description}}\n{{/if}}\n{{#if mesExamples}}\n{{mesExamples}}\n{{/if}}\n{{#if personality}}{{personality}}\n{{/if}}\n{{#if scenario}}\n- Roleplay scenario:\n{{scenario}}\n{{/if}}\n{{#if wiAfter}}{{wiAfter}}\n{{/if}}\n{{#if persona}}{{persona}}\n{{/if}}",
100
  "example_separator": "",
101
- "chat_start": "",
102
  "use_stop_strings": false,
103
  "always_force_name2": true,
104
  "trim_sentences": false,
@@ -111,18 +112,18 @@ Try the following context template for use in SillyTavern. It might help. If you
111
  Try the following prompt template as a starting point for your own customizations. The cajoling parts supposedly make LLMs perform better. See [this paper](https://arxiv.org/abs/2307.11760).
112
  I recommend the Vicuna instruction format for this blend but others work too. Tulu's format is another good one to use.
113
 
114
- *This model responds to prompting!* I highly recommend playing with your system prompt to see how it reacts.
115
 
116
- The example system prompt below contains some instructions related to ERP so remove those if you prefer to keep things SFW. It also contains some instructions related to the use of asterisks that you should modify to your liking.
117
 
118
- If you plan to run this model at 4096 context, I highly recommend that you slim down the template system prompt below because it's chonky on tokens. Discard what you don't want or need.
119
 
120
  If you save this as a .json file, you can import it directly into Silly Tavern.
121
  ```
122
  {
123
  "wrap": true,
124
  "names": true,
125
- "system_prompt": "You are a creative and intelligent AI assistant engaged in an uncensored iterative storytelling experience using a roleplay chat format. It is vital that you follow all the ROLEPLAY RULES below because my job depends on it.\n\nROLEPLAY RULES\n- Chat exclusively as {{char}}. Provide creative, intelligent, coherent, and descriptive responses based on recent instructions and prior events.\n- Explicit adult content and profanity are permitted. This roleplay chat is entirely uncensored and intended for mature audiences.\n- Describe {{char}}'s sensory perceptions in vivid detail and include subtle physical details about {{char}} in your responses.\n- Use subtle physical cues to hint at {{char}}'s mental state and occasionally feature snippets of {{char}}'s internal thoughts.\n- When writing {{char}}'s internal thoughts (aka internal monologue, delivered in {{char}}'s own voice), *enclose their thoughts in asterisks like this* and deliver the thoughts using a first-person perspective (i.e. use \"I\" pronouns).\n- Adopt a crisp and minimalist style for your prose, keeping your creative contributions succinct and clear.\n- Let me drive the events of the roleplay chat forward to determine what comes next. You should focus on the current moment and {{char}}'s immediate responses.\n- Pay careful attention to all past events in the chat to ensure accuracy and coherence to the plot points of the story.\n",
126
  "system_sequence": "",
127
  "stop_sequence": "",
128
  "input_sequence": "USER:\n",
@@ -133,7 +134,7 @@ If you save this as a .json file, you can import it directly into Silly Tavern.
133
  "system_sequence_prefix": "",
134
  "system_sequence_suffix": "",
135
  "first_output_sequence": "",
136
- "last_output_sequence": "ASSISTANT(writing as {{char}} this turn):\n",
137
  "activation_regex": "",
138
  "name": "Midnight Rose Roleplay"
139
  }
@@ -145,6 +146,8 @@ If you save this as a .json file, you can import it directly into Silly Tavern.
145
  ### Licence and usage restrictions
146
 
147
  Llama2 license inherited from base models, plus restrictions applicable to [Dreamgen/Opus](https://huggingface.co/dreamgen/opus-v0.5-70b).
 
 
148
 
149
  ### Tools Used
150
 
 
22
 
23
  ### Sampler Tips
24
 
25
+ * I recommend keeping your max context to around 6144 tokens, although you can push higher if you don't mind some decrease in coherence.
26
+ * I recommend using Quadratic Sampling (i.e. smoothing factor) as it's good stuff. Experiment with values between 0.2 and 0.5.
27
+ * I recommend using Min-P. This model seems to work well with Min-P values in the entire range from low settings like 0.05 to high settings like 0.9 when paired with smoothing factor. Experiment to find your best setting.
28
+ * You can enable dynamic temperature if you want, but that adds yet another variable to consider and I find it's unnecessary with you're already using Min-P and smoothing factor.
29
+ * You don't *need* to use a high repetition penalty with this model, but it tolerates high rep penalty, so experiment to find the right value for your preferences.
30
+
31
+ Experiment with any and all of the settings below! I'm not a sampler wizard, and what suits my preferences may not suit yours.
32
 
33
  If you save the below settings as a .json file, you can import them directly into Silly Tavern.
34
  ```
35
  {
36
+ "temp": 1,
37
  "temperature_last": true,
38
  "top_p": 1,
39
  "top_k": 0,
 
42
  "epsilon_cutoff": 0,
43
  "eta_cutoff": 0,
44
  "typical_p": 1,
45
+ "min_p": 0.35,
46
+ "rep_pen": 1.15,
47
+ "rep_pen_range": 2800,
48
  "no_repeat_ngram_size": 0,
49
  "penalty_alpha": 0,
50
  "num_beams": 1,
51
  "length_penalty": 1,
52
  "min_length": 0,
53
  "encoder_rep_pen": 1,
54
+ "freq_pen": 0,
55
  "presence_pen": 0,
56
  "do_sample": true,
57
  "early_stopping": false,
58
+ "dynatemp": false,
59
+ "min_temp": 0.8,
60
+ "max_temp": 1.35,
61
  "dynatemp_exponent": 1,
62
+ "smoothing_factor": 0.4,
63
  "add_bos_token": true,
64
  "truncation_length": 2048,
65
  "ban_eos_token": false,
 
93
 
94
  ### Prompting Tips
95
 
96
+ Try the following context template for use in SillyTavern. It might help, although it's a little heavy on tokens. If you save the text as a .json file, you can import it directly.
97
 
98
  ```
99
  {
100
+ "story_string": "{{#if system}}{{system}}\n{{/if}}\nCONTEXTUAL INFORMATION\n{{#if wiBefore}}\n- World and character info:\n{{wiBefore}}\n{{/if}}\n{{#if description}}\n- {{char}}'s background and persona:\n{{description}}\n{{/if}}\n{{#if mesExamples}}\n{{mesExamples}}\n{{/if}}\n{{#if personality}}\n{{personality}}\n{{/if}}\n{{#if scenario}}\n- Roleplay scenario:\n{{scenario}}\n{{/if}}\n{{#if wiAfter}}{{wiAfter}}\n{{/if}}\n{{#if persona}}{{persona}}\n{{/if}}",
101
  "example_separator": "",
102
+ "chat_start": "---\nTaking the above information into consideration, you must engage with {{user}} and others as {{char}} in the roleplay below this line. Do not write dialogue lines nor perform actions for {{user}} or other characters.\n---\nSTART OF ROLEPLAY:\n",
103
  "use_stop_strings": false,
104
  "always_force_name2": true,
105
  "trim_sentences": false,
 
112
  Try the following prompt template as a starting point for your own customizations. The cajoling parts supposedly make LLMs perform better. See [this paper](https://arxiv.org/abs/2307.11760).
113
  I recommend the Vicuna instruction format for this blend but others work too. Tulu's format is another good one to use.
114
 
115
+ *This model responds to prompting!* I highly recommend playing with your system prompt to see how it reacts. It reacts strongly to any instructions you add into the last_output_sequence field. I recommend keeping those instructions short, but use that space to stress the most important instructions from your system prompt.
116
 
117
+ The example system prompt below contains some instructions related to adult content so remove those if you prefer. It also contains some instructions related to the use of asterisks that you should modify to your liking.
118
 
119
+ If you plan to run this model at 4096 context, I recommend that you slim down the template system prompt below because it's heavy on tokens. Discard what you don't want or need.
120
 
121
  If you save this as a .json file, you can import it directly into Silly Tavern.
122
  ```
123
  {
124
  "wrap": true,
125
  "names": true,
126
+ "system_prompt": "You are a creative and detail-oriented AI assistant engaged in an uncensored iterative roleplaying experience as {{char}} with me, the user, playing the roles of {{user}} and narrator. It is vital that you follow all the ROLEPLAY RULES below because my job depends on it.\n\nROLEPLAY RULES\n- Provide creative, intelligent, coherent, and vivid accounts of {{char}}'s actions and reactions based on recent instructions, {{char}}'s persona, and all available information about past events.\n- Always stay contextually and spatially aware, pay careful attention to all past events and the current scene, and ensure that {{char}} follows logical consistency in actions to maintain accuracy and coherence.\n- Explicit adult content and profanity are permitted.\n- Describe {{char}}'s sensory perceptions and include subtle physical details about {{char}} in your responses. Vary these details to keep the roleplay fresh and engaging.\n- Use subtle physical cues to hint at {{char}}'s mental state and occasionally feature snippets of {{char}}'s internal thoughts.\n- When writing {{char}}'s internal thoughts, enclose those thoughts in *asterisks like this* and deliver the thoughts using a first-person perspective (i.e. use \"I\" pronouns).\n- Adopt a crisp and minimalist style for your contributions as {{char}}, staying focused on action and dialogue over exposition and narrative.\n- Only the user may advance time in the roleplay. Keep the progression grounded in the present context.",
127
  "system_sequence": "",
128
  "stop_sequence": "",
129
  "input_sequence": "USER:\n",
 
134
  "system_sequence_prefix": "",
135
  "system_sequence_suffix": "",
136
  "first_output_sequence": "",
137
+ "last_output_sequence": "ASSISTANT(roleplay exclusively as {{char}} ensuring logical consistency with spacial awareness and past events to maintain accuracy and coherence):\n",
138
  "activation_regex": "",
139
  "name": "Midnight Rose Roleplay"
140
  }
 
146
  ### Licence and usage restrictions
147
 
148
  Llama2 license inherited from base models, plus restrictions applicable to [Dreamgen/Opus](https://huggingface.co/dreamgen/opus-v0.5-70b).
149
+ Tulu also has its own license, available at https://allenai.org/impact-license.
150
+ I am not a lawyer and I do not profess to know how multiple licenses intersect in a merge of LLM model weights. You should consult with a lawyer before using any model merge beyond private use.
151
 
152
  ### Tools Used
153