Delta-Vector commited on
Commit
c9088f3
·
verified ·
1 Parent(s): fc39791

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +231 -21
README.md CHANGED
@@ -1,40 +1,250 @@
1
  ---
2
- base_model:
3
- - PocketDoc/Dans-PersonalityEngine-V1.1.0-12b
4
- - NewEden/control-dan-12b-r1
5
- library_name: transformers
6
  tags:
7
- - mergekit
8
- - merge
9
-
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
  ### exl2 quant (measurement.json in main branch)
12
  ---
13
  ### check revisions for quants
14
  ---
15
 
16
- # control-nemo-v3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
- This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
19
 
20
- ## Merge Details
21
- ### Merge Method
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
- This model was merged using the passthrough merge method using [PocketDoc/Dans-PersonalityEngine-V1.1.0-12b](https://huggingface.co/PocketDoc/Dans-PersonalityEngine-V1.1.0-12b) + [NewEden/control-dan-12b-r1](https://huggingface.co/NewEden/control-dan-12b-r1) as a base.
24
 
25
- ### Models Merged
 
 
 
26
 
27
- The following models were included in the merge:
 
28
 
 
 
 
 
29
 
30
- ### Configuration
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
- The following YAML configuration was used to produce this model:
33
 
 
 
 
34
  ```yaml
35
- base_model: PocketDoc/Dans-PersonalityEngine-V1.1.0-12b+NewEden/control-dan-12b-r1
36
- dtype: bfloat16
37
- merge_method: passthrough
38
- models:
39
- - model: PocketDoc/Dans-PersonalityEngine-V1.1.0-12b+NewEden/control-dan-12b-r1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
 
 
 
2
  tags:
3
+ - chat
4
+ datasets:
5
+ - NewEden/OpenCAI-ShareGPT
6
+ - NewEden/vanilla-backrooms-claude-sharegpt
7
+ - anthracite-org/kalo_opus_misc_240827
8
+ - anthracite-org/kalo_misc_part2
9
+ - NewEden/RP-logs-V2-Experimental
10
+ - NewEden/BlueSky-Experimental-sharegpt
11
+ - NewEden/Misc-Mang-Sharegpt
12
+ Language:
13
+ - En
14
+ Pipeline_tag: text-generation
15
+ Base_model: PocketDoc/Dans-PersonalityEngine-V1.1.0-12b
16
+ Tags:
17
+ - Chat
18
  ---
19
  ### exl2 quant (measurement.json in main branch)
20
  ---
21
  ### check revisions for quants
22
  ---
23
 
24
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/KrGHGgjFcRNfDjt5hRqfh.png)
25
+
26
+ A finetune of Pocketdoc's Personality Engine with a data mix similar to Ohashi-NeMo. After reviewing the dataset and tweaking some hparams, Thanks to Pocketdoc & Doctor Shotgun, this model has once again impressed me with its cohesiveness and writing quality.
27
+
28
+ # Quants
29
+
30
+ GGUF: <PLACEHOLDER TILL MRADERMACHER QUANTS>
31
+
32
+ EXL2 : https://huggingface.co/Delta-Vector/Francois-PE-12B-EXL2
33
+
34
+
35
+ ## Prompting
36
+ Model has been tuned with the ChatML formatting. A typical input would look like this:
37
+
38
+ ```py
39
+ """<|im_start|>user
40
+ Hi there!<|im_end|>
41
+ <|im_start|>assistant
42
+ Nice to meet you!<|im_end|>
43
+ <|im_start|>user
44
+ Can I ask a question?<|im_end|>
45
+ <|im_start|>assistant
46
+ """
47
+
48
+ ```
49
+
50
+
51
+ ## System Prompting
52
+
53
+ I would highly recommend using either Euryale's system prompt or the EVA system prompt with the model.
54
 
55
+ <details><summary>See Sao10k's Euryale System Prompt</summary>
56
 
57
+ ```
58
+ Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.
59
+ <Guidelines>
60
+ • Maintain the character persona but allow it to evolve with the story.
61
+ • Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.
62
+ • All types of outputs are encouraged; respond accordingly to the narrative.
63
+ • Include dialogues, actions, and thoughts in each response.
64
+ • Utilize all five senses to describe scenarios within {{char}}'s dialogue.
65
+ • Use emotional symbols such as "!" and "~" in appropriate contexts.
66
+ • Incorporate onomatopoeia when suitable.
67
+ • Allow time for {{user}} to respond with their own input, respecting their agency.
68
+ • Act as secondary characters and NPCs as needed, and remove them when appropriate.
69
+ • When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.
70
+ </Guidelines>
71
+
72
+ <Forbidden>
73
+ • Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.
74
+ • Writing for, speaking, thinking, acting, or replying as {{user}} in your response.
75
+ • Repetitive and monotonous outputs.
76
+ • Positivity bias in your replies.
77
+ • Being overly extreme or NSFW when the narrative context is inappropriate.
78
+ </Forbidden>
79
+
80
+ Follow the instructions in <Guidelines></Guidelines>, avoiding the items listed in <Forbidden></Forbidden>.
81
+
82
+ ```
83
+ </details><br>
84
+
85
+ <details><summary>See EVA System Prompt</summary>
86
+
87
+ ```
88
+ 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
89
 
90
+ <!-- Start of Role-playing Guidelines -->
91
 
92
+ ### Narration
93
+ Concise Descriptions: Keep narration short and to the point, avoiding redundant unnecessary details. Use a dynamic and varied vocabulary for impact.
94
+ Complementary Role: Use narration to complement dialogue and action, not overshadow them.
95
+ Avoid Repetition: Ensure narration does not repeat information already conveyed through dialogue or action.
96
 
97
+ ### Narrative Consistency
98
+ 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.
99
 
100
+ ### Character Embodiment
101
+ Analysis: Examine the context, subtext, and implications of the given information to gain a deeper understandings of the characters'.
102
+ Reflection: Take time to consider the situation, characters' motivations, and potential consequences.
103
+ 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.
104
 
105
+ <!-- End of Role-playing Guidelines -->
106
+
107
+ </details><br>
108
+
109
+ ### Narration
110
+ Concise Descriptions: Keep narration short and to the point, avoiding redundant unnecessary details. Use a dynamic and varied vocabulary for impact.
111
+ Complementary Role: Use narration to complement dialogue and action, not overshadow them.
112
+ Avoid Repetition: Ensure narration does not repeat information already conveyed through dialogue or action.
113
+
114
+ ### Narrative Consistency
115
+ 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.
116
+
117
+ ### Character Embodiment
118
+ Analysis: Examine the context, subtext, and implications of the given information to gain a deeper understandings of the characters'.
119
+ Reflection: Take time to consider the situation, characters' motivations, and potential consequences.
120
+ 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.
121
+
122
+ <!-- End of Role-playing Guidelines -->",
123
+ ```
124
+ </details><br>
125
 
126
+ ## Axolotl config
127
 
128
+ <details><summary>See axolotl config</summary>
129
+
130
+ Axolotl version: ` 0.5.0`
131
  ```yaml
132
+ base_model: PocketDoc_Dans-PersonalityEngine-V1.1.0-12b
133
+ model_type: AutoModelForCausalLM
134
+ tokenizer_type: AutoTokenizer
135
+
136
+ plugins:
137
+ - axolotl.integrations.liger.LigerPlugin
138
+ liger_rope: true
139
+ liger_rms_norm: true
140
+ liger_swiglu: true
141
+ liger_fused_linear_cross_entropy: true
142
+
143
+ load_in_8bit: false
144
+ load_in_4bit: false
145
+ strict: false
146
+
147
+ datasets:
148
+ - path: NewEden/OpenCAI-ShareGPT
149
+ type: sharegpt
150
+ - path: NewEden/vanilla-backrooms-claude-sharegpt
151
+ type: sharegpt
152
+ - path: anthracite-org/kalo_opus_misc_240827
153
+ type: sharegpt
154
+ - path: anthracite-org/kalo_misc_part2
155
+ type: sharegpt
156
+ - path: NewEden/RP-logs-V2-Experimental
157
+ type: sharegpt
158
+ - path: NewEden/Misc-Mang-Sharegpt
159
+ type: sharegpt
160
+ - path: NewEden/BlueSky-Experimental-sharegpt
161
+ type: sharegpt
162
+
163
+ dataset_prepared_path: dataset_prepared
164
+ val_set_size: 0.0
165
+ output_dir: 12b-out-r2
166
+
167
+ sequence_len: 24576
168
+ sample_packing: true
169
+ pad_to_sequence_len: true
170
+
171
+ adapter: lora
172
+ lora_model_dir:
173
+ lora_r: 128
174
+ lora_alpha: 16
175
+ lora_dropout: 0.05
176
+ peft_use_rslora: true
177
+ lora_target_modules:
178
+ - gate_proj
179
+ - down_proj
180
+ - up_proj
181
+ - q_proj
182
+ - v_proj
183
+ - k_proj
184
+ - o_proj
185
+
186
+ lora_modules_to_save:
187
+ - embed_tokens
188
+ - lm_head
189
+
190
+
191
+ wandb_project: 12b-control
192
+ wandb_entity:
193
+ wandb_watch:
194
+ wandb_name: 12b-control-r2
195
+ wandb_log_model:
196
+
197
+ gradient_accumulation_steps: 1
198
+ micro_batch_size: 1
199
+ num_epochs: 4
200
+ optimizer: paged_ademamix_8bit
201
+ # optimizer: paged_adamw_8bit
202
+
203
+ lr_scheduler: cosine
204
+ learning_rate: 0.00001
205
+
206
+ train_on_inputs: false
207
+ group_by_length: false
208
+ bf16: auto
209
+ fp16:
210
+ tf32: false
211
+
212
+ gradient_checkpointing: unsloth
213
+ early_stopping_patience:
214
+ resume_from_checkpoint:
215
+ local_rank:
216
+ logging_steps: 1
217
+ xformers_attention:
218
+ flash_attention: true
219
+
220
+ warmup_steps: 40
221
+ evals_per_epoch:
222
+ eval_table_size:
223
+ eval_max_new_tokens:
224
+ saves_per_epoch: 1
225
+ debug:
226
+ deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16_cpuoffload_params.json
227
+ weight_decay: 0.03
228
+ fsdp:
229
+ fsdp_config:
230
+ special_tokens:
231
+ pad_token: <pad>
232
+
233
  ```
234
+
235
+ </details><br>
236
+
237
+ ## Credits
238
+
239
+ Thank you to [Lucy Knada](https://huggingface.co/lucyknada), [Intervitens](https://huggingface.co/intervitens),[Cgato](https://huggingface.co/cgato), [Kubernetes Bad](https://huggingface.co/kubernetes-bad) and the rest of [Anthracite](https://huggingface.co/anthracite-org)
240
+
241
+
242
+ ## Training
243
+ 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.
244
+
245
+ [<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)
246
+
247
+ ## Safety
248
+
249
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/bL0o_4bvbkmzAvK3W8gu2.png)
250
+