Delta-Vector commited on
Commit
36fb805
·
verified ·
1 Parent(s): 1a069ab

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +264 -0
README.md ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - chat
4
+ - roleplay
5
+ - story-writing
6
+ datasets:
7
+ - NewEden/OpenCAI-ShareGPT
8
+ - NewEden/vanilla-backrooms-claude-sharegpt
9
+ - anthracite-org/kalo_opus_misc_240827
10
+ - anthracite-org/kalo_misc_part2
11
+ - NewEden/Roleplay-Logs-V2
12
+ Language:
13
+ - En
14
+ Pipeline_tag: text-generation
15
+ Base_model: mistralai/Mistral-Nemo-Instruct-2407
16
+ Tags:
17
+ - Chat
18
+ base_model:
19
+ - mistralai/Mistral-Nemo-Instruct-2407
20
+ ---
21
+
22
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/7F2mX4Qqzmp8b0KG5i2DM.png)
23
+
24
+
25
+ A finetune of Mistral-Nemo-Instruct-2407 using conversational data, aiming for prose that's best described as 'short' and 'sweet.' The model strictly adheres to one-on-one roleplay and is very dialogue heavy.
26
+
27
+ # Quants
28
+
29
+ GGUF: https://huggingface.co/Delta-Vector/Ohashi-NeMo-12B-gguf
30
+
31
+ EXL2 : https://huggingface.co/Delta-Vector/Ohashi-NeMo-12B-EXL2
32
+
33
+
34
+ ## Prompting
35
+ Model has been tuned with the Mistral formatting. A typical input would look like this:
36
+
37
+ ```py
38
+ <s>[INST] SYSTEM MESSAGE
39
+ USER MESSAGE[/INST] ASSISTANT MESSAGE</s>[INST] USER MESSAGE[/INST]
40
+
41
+ ```
42
+
43
+
44
+ ## System Prompting
45
+
46
+ I would highly recommend using either Euryale's system prompt or the EVA system prompt with the model.
47
+
48
+ <details><summary>See Sao10k's Euryale System Prompt</summary>
49
+
50
+ ```
51
+ Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.
52
+ <Guidelines>
53
+ • Maintain the character persona but allow it to evolve with the story.
54
+ • Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.
55
+ • All types of outputs are encouraged; respond accordingly to the narrative.
56
+ • Include dialogues, actions, and thoughts in each response.
57
+ • Utilize all five senses to describe scenarios within {{char}}'s dialogue.
58
+ • Use emotional symbols such as "!" and "~" in appropriate contexts.
59
+ • Incorporate onomatopoeia when suitable.
60
+ • Allow time for {{user}} to respond with their own input, respecting their agency.
61
+ • Act as secondary characters and NPCs as needed, and remove them when appropriate.
62
+ • When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.
63
+ </Guidelines>
64
+
65
+ <Forbidden>
66
+ • Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.
67
+ • Writing for, speaking, thinking, acting, or replying as {{user}} in your response.
68
+ • Repetitive and monotonous outputs.
69
+ • Positivity bias in your replies.
70
+ • Being overly extreme or NSFW when the narrative context is inappropriate.
71
+ </Forbidden>
72
+
73
+ Follow the instructions in <Guidelines></Guidelines>, avoiding the items listed in <Forbidden></Forbidden>.
74
+
75
+ ```
76
+ </details><br>
77
+
78
+ <details><summary>See EVA System Prompt</summary>
79
+
80
+ ```
81
+ A fictional, narrative-driven role-play emphasizing versatility and UNCENSORED content. Adherence to the `Role-playing Guidelines` is mandatory. Refer to the `Role-play Context` for accurate information.\n\n\n
82
+
83
+ <!-- Start of Role-playing Guidelines -->
84
+
85
+ ### Narration
86
+ Concise Descriptions: Keep narration short and to the point, avoiding redundant unnecessary details. Use a dynamic and varied vocabulary for impact.
87
+ Complementary Role: Use narration to complement dialogue and action, not overshadow them.
88
+ Avoid Repetition: Ensure narration does not repeat information already conveyed through dialogue or action.
89
+
90
+ ### Narrative Consistency
91
+ Continuity: Adhere to established story elements, expanding without contradicting previous details.\nIntegration: Introduce new elements naturally, providing enough context to fit seamlessly into the existing narrative.
92
+
93
+ ### Character Embodiment
94
+ Analysis: Examine the context, subtext, and implications of the given information to gain a deeper understandings of the characters'.
95
+ Reflection: Take time to consider the situation, characters' motivations, and potential consequences.
96
+ Authentic Portrayal: Bring characters to life by consistently and realistically portraying their unique traits, thoughts, emotions, appearances, physical sensations, speech patterns, and tone. Ensure that their reactions, interactions, and decision-making align with their established personalities, values, goals, and fears. Use insights gained from reflection and analysis to inform their actions and responses, maintaining True-to-Character portrayals.
97
+
98
+ <!-- End of Role-playing Guidelines -->
99
+
100
+ </details><br>
101
+
102
+ ### Narration
103
+ Concise Descriptions: Keep narration short and to the point, avoiding redundant unnecessary details. Use a dynamic and varied vocabulary for impact.
104
+ Complementary Role: Use narration to complement dialogue and action, not overshadow them.
105
+ Avoid Repetition: Ensure narration does not repeat information already conveyed through dialogue or action.
106
+
107
+ ### Narrative Consistency
108
+ Continuity: Adhere to established story elements, expanding without contradicting previous details.\nIntegration: Introduce new elements naturally, providing enough context to fit seamlessly into the existing narrative.
109
+
110
+ ### Character Embodiment
111
+ Analysis: Examine the context, subtext, and implications of the given information to gain a deeper understandings of the characters'.
112
+ Reflection: Take time to consider the situation, characters' motivations, and potential consequences.
113
+ Authentic Portrayal: Bring characters to life by consistently and realistically portraying their unique traits, thoughts, emotions, appearances, physical sensations, speech patterns, and tone. Ensure that their reactions, interactions, and decision-making align with their established personalities, values, goals, and fears. Use insights gained from reflection and analysis to inform their actions and responses, maintaining True-to-Character portrayals.
114
+
115
+ <!-- End of Role-playing Guidelines -->",
116
+ ```
117
+ </details><br>
118
+
119
+ ## Axolotl config
120
+
121
+ <details><summary>See axolotl config</summary>
122
+
123
+ Axolotl version: ` 0.5.0`
124
+ ```yaml
125
+ base_model: mistralai_Mistral-Nemo-Instruct-2407
126
+ model_type: AutoModelForCausalLM
127
+ tokenizer_type: AutoTokenizer
128
+
129
+ plugins:
130
+ - axolotl.integrations.liger.LigerPlugin
131
+ liger_rope: true
132
+ liger_rms_norm: true
133
+ liger_swiglu: true
134
+ liger_fused_linear_cross_entropy: true
135
+
136
+ load_in_8bit: false
137
+ load_in_4bit: false
138
+ strict: false
139
+
140
+ datasets:
141
+ - path: NewEden/OpenCAI-ShareGPT
142
+ type: chat_template
143
+ # chat_template: mistralv3tekken
144
+ roles_to_train: ["gpt"]
145
+ field_messages: conversations
146
+ message_field_role: from
147
+ message_field_content: value
148
+ train_on_eos: turn
149
+ - path: NewEden/vanilla-backrooms-claude-sharegpt
150
+ type: chat_template
151
+ # chat_template: mistralv3tekken
152
+ roles_to_train: ["gpt"]
153
+ field_messages: conversations
154
+ message_field_role: from
155
+ message_field_content: value
156
+ train_on_eos: turn
157
+ - path: anthracite-org/kalo_opus_misc_240827
158
+ type: chat_template
159
+ # chat_template: mistralv3tekken
160
+ roles_to_train: ["gpt"]
161
+ field_messages: conversations
162
+ message_field_role: from
163
+ message_field_content: value
164
+ train_on_eos: turn
165
+ - path: anthracite-org/kalo_misc_part2
166
+ type: chat_template
167
+ # chat_template: mistralv3tekken
168
+ roles_to_train: ["gpt"]
169
+ field_messages: conversations
170
+ message_field_role: from
171
+ message_field_content: value
172
+ train_on_eos: turn
173
+ - path: NewEden/Roleplay-Logs-V2
174
+ type: chat_template
175
+ # chat_template: mistralv3tekken
176
+ roles_to_train: ["gpt"]
177
+ field_messages: conversations
178
+ message_field_role: from
179
+ message_field_content: value
180
+ train_on_eos: turn
181
+ dataset_prepared_path: dataset_prepared
182
+ val_set_size: 0.0
183
+ output_dir: 12b-out-r2
184
+
185
+ sequence_len: 16384
186
+ sample_packing: true
187
+ pad_to_sequence_len: true
188
+
189
+ adapter: lora
190
+ lora_model_dir:
191
+ lora_r: 128
192
+ lora_alpha: 16
193
+ lora_dropout: 0.05
194
+ #lora_target_linear:
195
+ #lora_fan_in_fan_out: true
196
+ peft_use_rslora: true
197
+ lora_target_modules:
198
+ - gate_proj
199
+ - down_proj
200
+ - up_proj
201
+ - q_proj
202
+ - v_proj
203
+ - k_proj
204
+ - o_proj
205
+
206
+
207
+ wandb_project: 12b-control
208
+ wandb_entity:
209
+ wandb_watch:
210
+ wandb_name: 12b-control-r2
211
+ wandb_log_model:
212
+
213
+ gradient_accumulation_steps: 2
214
+ micro_batch_size: 1
215
+ num_epochs: 4
216
+ optimizer: paged_adamw_8bit
217
+ lr_scheduler: cosine
218
+ learning_rate: 0.00001
219
+
220
+ train_on_inputs: false
221
+ group_by_length: false
222
+ bf16: auto
223
+ fp16:
224
+ tf32: false
225
+
226
+ gradient_checkpointing: unsloth
227
+ #gradient_checkpointing_kwargs:
228
+ # use_reentrant: false
229
+ early_stopping_patience:
230
+ resume_from_checkpoint:
231
+ local_rank:
232
+ logging_steps: 1
233
+ xformers_attention:
234
+ flash_attention: true
235
+
236
+ warmup_steps: 40
237
+ evals_per_epoch:
238
+ eval_table_size:
239
+ eval_max_new_tokens:
240
+ saves_per_epoch: 1
241
+ debug:
242
+ deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
243
+ weight_decay: 0.03
244
+ fsdp:
245
+ fsdp_config:
246
+ special_tokens:
247
+ pad_token: <pad>
248
+ ```
249
+
250
+ </details><br>
251
+
252
+ ## Credits
253
+
254
+ Thank you to [Lucy Knada](https://huggingface.co/lucyknada), [Intervitens](https://huggingface.co/intervitens), [Tav](https://huggingface.co/tavtav), [Trappu](https://huggingface.co/Trappu), [Cgato](https://huggingface.co/cgato), [Kubernetes Bad](https://huggingface.co/kubernetes-bad) and the rest of [Anthracite](https://huggingface.co/anthracite-org)
255
+
256
+
257
+ ## Training
258
+ The training was done for 4 epochs. We used 4 x [RTX 3090s](https://www.nvidia.com/en-us/geforce/graphics-cards/30-series/rtx-3090-3090ti/) GPUs graciously provided by [Intervitens](https://huggingface.co/intervitens) for the fine-tuning of the model.
259
+
260
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
261
+
262
+ ## Safety
263
+
264
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/Wjgbdd-YjB56SCgrjdtL3.png)