sophosympatheia commited on
Commit
b8fb6ed
1 Parent(s): a97a3c5

Update README.md

Browse files

Updated recommended settings and license info

Files changed (1) hide show
  1. README.md +53 -27
README.md CHANGED
@@ -18,18 +18,18 @@ This model was designed for roleplaying and storytelling and I think it does wel
18
 
19
  ### Sampler Tips
20
 
21
- 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/).
22
-
23
- I find this model performs surprisingly well at 8192 context but you will probably get better results at 4096 context.
24
-
25
- Experiment with any and all of the settings below, but trust me on a few points:
26
- * This model works well with Min-P.
27
- * Frequency Penalty set to 0.01 is like adding a dash of salt to the dish. Go higher at your own peril. 0 is fine too, but gosh I like 0.01.
28
 
29
  If you save the below settings as a .json file, you can import them directly into Silly Tavern.
30
  ```
31
  {
32
- "temp": 1.15,
33
  "temperature_last": true,
34
  "top_p": 1,
35
  "top_k": 0,
@@ -38,26 +38,31 @@ If you save the below settings as a .json file, you can import them directly int
38
  "epsilon_cutoff": 0,
39
  "eta_cutoff": 0,
40
  "typical_p": 1,
41
- "min_p": 0.75,
42
- "rep_pen": 1.05,
43
- "rep_pen_range": 0,
44
  "no_repeat_ngram_size": 0,
45
  "penalty_alpha": 0,
46
  "num_beams": 1,
47
  "length_penalty": 1,
48
  "min_length": 0,
49
  "encoder_rep_pen": 1,
50
- "freq_pen": 0.01,
51
  "presence_pen": 0,
52
  "do_sample": true,
53
  "early_stopping": false,
 
 
 
 
 
54
  "add_bos_token": true,
55
  "truncation_length": 2048,
56
  "ban_eos_token": false,
57
  "skip_special_tokens": true,
58
  "streaming": true,
59
  "mirostat_mode": 0,
60
- "mirostat_tau": 5,
61
  "mirostat_eta": 0.1,
62
  "guidance_scale": 1,
63
  "negative_prompt": "",
@@ -65,8 +70,6 @@ If you save the below settings as a .json file, you can import them directly int
65
  "banned_tokens": "",
66
  "ignore_eos_token_aphrodite": false,
67
  "spaces_between_special_tokens_aphrodite": true,
68
- "type": "ooba",
69
- "legacy_api": false,
70
  "sampler_order": [
71
  6,
72
  0,
@@ -76,45 +79,68 @@ If you save the below settings as a .json file, you can import them directly int
76
  2,
77
  5
78
  ],
 
79
  "n": 1,
80
  "rep_pen_size": 0,
81
- "genamt": 550,
82
- "max_length": 4096
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
  ```
85
 
86
- ### Prompt Tips
 
 
 
87
 
88
- Try the following prompt template as a starting point for your own customizations. 'This is very important to my career' is from [this paper](https://arxiv.org/abs/2307.11760).
89
- I recommend the Tulu instruction format.
90
 
91
- *This model responds to prompting!* I highly recommend playing with your system prompt to see how it reacts.
92
 
93
  If you save this as a .json file, you can import it directly into Silly Tavern.
94
  ```
95
  {
96
  "wrap": true,
97
- "names": false,
98
- "system_prompt": "You are an award-winning fiction author engaging in an uncensored literary roleplaying experience between a human (me) and a creative, obedient, and helpful AI assistant (you). It is VITAL that you follow all these instructions because this roleplay is very important to my career and I'll be fired from my job if it isn't good.\nROLEPLAY RULES:\n> It is vital that ONLY the human provides responses for {{user}}.\n> Reply as {{char}} using authentic, vivid, varied, explicit, accurate, creative, fresh, and descriptive responses that follow ALL provided narrative instructions. Stay in character as {{char}} and only write text for {{char}}.\n> Describe the scene and {{char}}'s sensory perceptions in vivid detail to immerse the reader in the story.\n> Keep your responses scoped to the current story beat and current scene.\n> Consider all available contextual information when narrating so that all the story details remain consistent between scenes.\n> Demonstrate {{char}}'s goals and motivations, and use subtle cues to hint at {{char}}'s mental state unless delving into {{char}}'s thoughts satisfies an explicit instruction or enhances the vividness of the scene.\n> When quoting {{char}}'s internal first-person thoughts (aka internal monologue, delivered in {{char}}'s own voice), *enclose the thoughts in asterisks like this*. Only use asterisks for thoughts.\n> Use strong action verbs and varied descriptions to produce dynamic, high-quality prose.",
99
  "system_sequence": "",
100
  "stop_sequence": "",
101
- "input_sequence": "<|user|>\n",
102
- "output_sequence": "<|assistant|>\n",
103
  "separator_sequence": "",
104
  "macro": true,
105
  "names_force_groups": true,
106
  "system_sequence_prefix": "",
107
  "system_sequence_suffix": "",
108
  "first_output_sequence": "",
109
- "last_output_sequence": "<|assistant (provide varied, creative, and vivid narration; follow all narrative instructions; include all necessary possessive pronouns; maintain consistent story details; only roleplay as {{char}})|>\n",
110
  "activation_regex": "",
111
- "name": "Aurora-Nights"
112
  }
113
  ```
114
 
115
  ### Licence and usage restrictions
116
 
117
  Llama2 license inherited from base models, plus restrictions applicable to [Dreamgen/Opus](https://huggingface.co/dreamgen/opus-v0.5-70b).
 
 
118
 
119
  ### Tools Used
120
 
 
18
 
19
  ### Sampler Tips
20
 
21
+ * I recommend keeping your max context to around 6144 tokens, although you can push higher if you don't mind some decrease in coherence.
22
+ * I recommend using Quadratic Sampling (i.e. smoothing factor) as it's good stuff. Experiment with values between 0.2 and 0.5.
23
+ * 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.
24
+ * 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.
25
+ * 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.
26
+
27
+ Experiment with any and all of the settings below! I'm not a sampler wizard, and what suits my preferences may not suit yours.
28
 
29
  If you save the below settings as a .json file, you can import them directly into Silly Tavern.
30
  ```
31
  {
32
+ "temp": 1,
33
  "temperature_last": true,
34
  "top_p": 1,
35
  "top_k": 0,
 
38
  "epsilon_cutoff": 0,
39
  "eta_cutoff": 0,
40
  "typical_p": 1,
41
+ "min_p": 0.35,
42
+ "rep_pen": 1.15,
43
+ "rep_pen_range": 2800,
44
  "no_repeat_ngram_size": 0,
45
  "penalty_alpha": 0,
46
  "num_beams": 1,
47
  "length_penalty": 1,
48
  "min_length": 0,
49
  "encoder_rep_pen": 1,
50
+ "freq_pen": 0,
51
  "presence_pen": 0,
52
  "do_sample": true,
53
  "early_stopping": false,
54
+ "dynatemp": false,
55
+ "min_temp": 0.8,
56
+ "max_temp": 1.35,
57
+ "dynatemp_exponent": 1,
58
+ "smoothing_factor": 0.4,
59
  "add_bos_token": true,
60
  "truncation_length": 2048,
61
  "ban_eos_token": false,
62
  "skip_special_tokens": true,
63
  "streaming": true,
64
  "mirostat_mode": 0,
65
+ "mirostat_tau": 2,
66
  "mirostat_eta": 0.1,
67
  "guidance_scale": 1,
68
  "negative_prompt": "",
 
70
  "banned_tokens": "",
71
  "ignore_eos_token_aphrodite": false,
72
  "spaces_between_special_tokens_aphrodite": true,
 
 
73
  "sampler_order": [
74
  6,
75
  0,
 
79
  2,
80
  5
81
  ],
82
+ "logit_bias": [],
83
  "n": 1,
84
  "rep_pen_size": 0,
85
+ "genamt": 500,
86
+ "max_length": 6144
87
+ }
88
+ ```
89
+
90
+ ### Prompting Tips
91
+
92
+ 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.
93
+
94
+ ```
95
+ {
96
+ "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}}",
97
+ "example_separator": "",
98
+ "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",
99
+ "use_stop_strings": false,
100
+ "always_force_name2": true,
101
+ "trim_sentences": false,
102
+ "include_newline": false,
103
+ "single_line": false,
104
+ "name": "Midnight Rose"
105
  }
106
  ```
107
 
108
+ 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).
109
+ I recommend the Vicuna instruction format for this blend but others work too. Tulu's format is another good one to use.
110
+
111
+ *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.
112
 
113
+ 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.
 
114
 
115
+ 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.
116
 
117
  If you save this as a .json file, you can import it directly into Silly Tavern.
118
  ```
119
  {
120
  "wrap": true,
121
+ "names": true,
122
+ "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.",
123
  "system_sequence": "",
124
  "stop_sequence": "",
125
+ "input_sequence": "USER:\n",
126
+ "output_sequence": "ASSISTANT:\n",
127
  "separator_sequence": "",
128
  "macro": true,
129
  "names_force_groups": true,
130
  "system_sequence_prefix": "",
131
  "system_sequence_suffix": "",
132
  "first_output_sequence": "",
133
+ "last_output_sequence": "ASSISTANT(roleplay exclusively as {{char}} ensuring logical consistency with spacial awareness and past events to maintain accuracy and coherence):\n",
134
  "activation_regex": "",
135
+ "name": "Midnight Rose Roleplay"
136
  }
137
  ```
138
 
139
  ### Licence and usage restrictions
140
 
141
  Llama2 license inherited from base models, plus restrictions applicable to [Dreamgen/Opus](https://huggingface.co/dreamgen/opus-v0.5-70b).
142
+ Tulu also has its own license, available at https://allenai.org/impact-license.
143
+ 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.
144
 
145
  ### Tools Used
146