Delta-Vector commited on
Commit
8026941
·
verified ·
1 Parent(s): 519cc38

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +207 -0
README.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ License: agpl-3.0
3
+ Language:
4
+ - En
5
+ Pipeline_tag: text-generation
6
+ Base_model: nvidia/Mistral-NeMo-Minitron-8B-Base
7
+ Tags:
8
+ - Chat
9
+ license: agpl-3.0
10
+ datasets:
11
+ - anthracite-org/kalo-opus-instruct-22k-no-refusal
12
+ - Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned
13
+ - lodrick-the-lafted/kalo-opus-instruct-3k-filtered
14
+ - anthracite-org/nopm_claude_writing_fixed
15
+ - Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned
16
+ - anthracite-org/kalo_opus_misc_240827
17
+ - anthracite-org/kalo_misc_part2
18
+ tags:
19
+ - chat
20
+ language:
21
+ - en
22
+ base_model:
23
+ - nvidia/Mistral-NeMo-Minitron-8B-Base
24
+ ---
25
+
26
+
27
+ This is the fully cooked, 4 epoch version of [Tor-8B](https://huggingface.co/Delta-Vector/Tor-8B), this is an experimental version, despite being trained for 4 epochs, the model feels fresh and new and is not overfit, This model aims to have generally good prose and writing while not falling into claude-isms, it follows the *actions* "dialogue" format heavily.
28
+
29
+ # These are GGUF quantizations for Darkens-8B, for the weights, go [here](https://huggingface.co/Delta-Vector/Darkens-8B)
30
+
31
+
32
+ # Quants
33
+
34
+ GGUF: https://huggingface.co/Delta-Vector/Darkens-8B-GGUF
35
+
36
+ EXL2: https://huggingface.co/Delta-Vector/Darkens-8B-EXL2
37
+
38
+
39
+ ## Prompting
40
+ Model has been Instruct tuned with the ChatML formatting. A typical input would look like this:
41
+
42
+ ```py
43
+ """<|im_start|>system
44
+ system prompt<|im_end|>
45
+ <|im_start|>user
46
+ Hi there!<|im_end|>
47
+ <|im_start|>assistant
48
+ Nice to meet you!<|im_end|>
49
+ <|im_start|>user
50
+ Can I ask a question?<|im_end|>
51
+ <|im_start|>assistant
52
+ """
53
+ ```
54
+ ## System Prompting
55
+
56
+ I would highly recommend using Sao10k's Euryale System prompt, But the "Roleplay Simple" system prompt provided within SillyTavern will work aswell.
57
+
58
+ ```
59
+ Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.
60
+
61
+ <Guidelines>
62
+ • Maintain the character persona but allow it to evolve with the story.
63
+ • Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.
64
+ • All types of outputs are encouraged; respond accordingly to the narrative.
65
+ • Include dialogues, actions, and thoughts in each response.
66
+ • Utilize all five senses to describe scenarios within {{char}}'s dialogue.
67
+ • Use emotional symbols such as "!" and "~" in appropriate contexts.
68
+ • Incorporate onomatopoeia when suitable.
69
+ • Allow time for {{user}} to respond with their own input, respecting their agency.
70
+ • Act as secondary characters and NPCs as needed, and remove them when appropriate.
71
+ • When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.
72
+ </Guidelines>
73
+
74
+ <Forbidden>
75
+ • Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.
76
+ • Writing for, speaking, thinking, acting, or replying as {{user}} in your response.
77
+ • Repetitive and monotonous outputs.
78
+ • Positivity bias in your replies.
79
+ • Being overly extreme or NSFW when the narrative context is inappropriate.
80
+ </Forbidden>
81
+
82
+ Follow the instructions in <Guidelines></Guidelines>, avoiding the items listed in <Forbidden></Forbidden>.
83
+
84
+ ```
85
+
86
+
87
+ ## Axolotl config
88
+
89
+ <details><summary>See axolotl config</summary>
90
+
91
+ Axolotl version: `0.4.1`
92
+ ```yaml
93
+ base_model: Dans-DiscountModels/Mistral-NeMo-Minitron-8B-Base-ChatML
94
+ model_type: AutoModelForCausalLM
95
+ tokenizer_type: AutoTokenizer
96
+
97
+ plugins:
98
+ - axolotl.integrations.liger.LigerPlugin
99
+ liger_rope: true
100
+ liger_rms_norm: true
101
+ liger_swiglu: true
102
+ #liger_cross_entropy: true
103
+ liger_fused_linear_cross_entropy: true
104
+
105
+ load_in_8bit: false
106
+ load_in_4bit: false
107
+ strict: false
108
+
109
+ datasets:
110
+ - path: PRIVATE CLAUDE LOG FILTER
111
+ type: sharegpt
112
+ conversation: chatml
113
+ - path: anthracite-org/kalo-opus-instruct-22k-no-refusal
114
+ type: sharegpt
115
+ conversation: chatml
116
+ - path: Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned
117
+ type: sharegpt
118
+ conversation: chatml
119
+ - path: lodrick-the-lafted/kalo-opus-instruct-3k-filtered
120
+ type: sharegpt
121
+ conversation: chatml
122
+ - path: anthracite-org/nopm_claude_writing_fixed
123
+ type: sharegpt
124
+ conversation: chatml
125
+ - path: Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned
126
+ type: sharegpt
127
+ conversation: chatml
128
+ - path: anthracite-org/kalo_opus_misc_240827
129
+ type: sharegpt
130
+ conversation: chatml
131
+ - path: anthracite-org/kalo_misc_part2
132
+ type: sharegpt
133
+ conversation: chatml
134
+ chat_template: chatml
135
+ shuffle_merged_datasets: false
136
+ default_system_message: "You are a helpful assistant that responds to the user."
137
+ dataset_prepared_path: /workspace/data/8b-nemo-fft-data
138
+ val_set_size: 0.0
139
+ output_dir: /workspace/data/8b-nemo-fft-out
140
+
141
+ sequence_len: 16384
142
+ sample_packing: true
143
+ eval_sample_packing: false
144
+ pad_to_sequence_len: true
145
+
146
+ adapter:
147
+ lora_model_dir:
148
+ lora_r:
149
+ lora_alpha:
150
+ lora_dropout:
151
+ lora_target_linear:
152
+ lora_fan_in_fan_out:
153
+
154
+ wandb_project: 8b-nemoprune-fft
155
+ wandb_entity:
156
+ wandb_watch:
157
+ wandb_name: attempt-01
158
+ wandb_log_model:
159
+
160
+ gradient_accumulation_steps: 2
161
+ micro_batch_size: 2
162
+ num_epochs: 4
163
+ optimizer: adamw_bnb_8bit
164
+ lr_scheduler: cosine
165
+ learning_rate: 0.00001
166
+
167
+ train_on_inputs: false
168
+ group_by_length: false
169
+ bf16: auto
170
+ fp16:
171
+ tf32: false
172
+
173
+ gradient_checkpointing: true
174
+ early_stopping_patience:
175
+ resume_from_checkpoint: /workspace/workspace/thing
176
+ local_rank:
177
+ logging_steps: 1
178
+ xformers_attention:
179
+ flash_attention: true
180
+
181
+ warmup_steps: 10
182
+ evals_per_epoch:
183
+ eval_table_size:
184
+ eval_max_new_tokens:
185
+ saves_per_epoch: 1
186
+ debug:
187
+ deepspeed: deepspeed_configs/zero3_bf16.json
188
+ weight_decay: 0.001
189
+ fsdp:
190
+ fsdp_config:
191
+ special_tokens:
192
+ pad_token: <pad>
193
+
194
+
195
+ ```
196
+
197
+ </details><br>
198
+
199
+ ## Credits
200
+
201
+ Thank you to [Lucy Knada](https://huggingface.co/lucyknada), [Kalomaze](https://huggingface.co/kalomaze), [Kubernetes Bad](https://huggingface.co/kubernetes-bad) and the rest of [Anthracite](https://huggingface.co/anthracite-org) (But not Alpin.)
202
+
203
+
204
+ ## Training
205
+ The training was done for 4 epochs. I used 10 x [A40s](https://www.nvidia.com/en-us/data-center/a40/) GPUs graciously provided by [Kalomaze](https://huggingface.co/kalomaze) for the full-parameter fine-tuning of the model.
206
+
207
+ [<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)