Triangle104 commited on
Commit
bae66ea
1 Parent(s): a19e85e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +215 -0
README.md CHANGED
@@ -110,6 +110,221 @@ model-index:
110
  This model was converted to GGUF format from [`anthracite-org/magnum-v4-9b`](https://huggingface.co/anthracite-org/magnum-v4-9b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
111
  Refer to the [original model card](https://huggingface.co/anthracite-org/magnum-v4-9b) for more details on the model.
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  ## Use with llama.cpp
114
  Install llama.cpp through brew (works on Mac and Linux)
115
 
 
110
  This model was converted to GGUF format from [`anthracite-org/magnum-v4-9b`](https://huggingface.co/anthracite-org/magnum-v4-9b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
111
  Refer to the [original model card](https://huggingface.co/anthracite-org/magnum-v4-9b) for more details on the model.
112
 
113
+ ---
114
+ Model details:
115
+ -
116
+ This is a series of models designed to replicate the prose quality of the Claude 3 models, specifically Sonnet and Opus.
117
+
118
+ This model is fine-tuned on top of gemma 2 9b (chatML'ified).
119
+ Prompting
120
+
121
+ A typical input would look like this:
122
+
123
+ <|im_start|>system
124
+ system prompt<|im_end|>
125
+ <|im_start|>user
126
+ Hi there!<|im_end|>
127
+ <|im_start|>assistant
128
+ Nice to meet you!<|im_end|>
129
+ <|im_start|>user
130
+ Can I ask a question?<|im_end|>
131
+ <|im_start|>assistant
132
+
133
+ SillyTavern templates
134
+ -
135
+ Below are Instruct and Context templates for use within SillyTavern.
136
+ context template
137
+
138
+ {
139
+ "story_string": "<|im_start|>system\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|im_end|>\n",
140
+ "example_separator": "",
141
+ "chat_start": "",
142
+ "use_stop_strings": false,
143
+ "allow_jailbreak": false,
144
+ "always_force_name2": true,
145
+ "trim_sentences": false,
146
+ "include_newline": false,
147
+ "single_line": false,
148
+ "name": "Magnum ChatML"
149
+ }
150
+
151
+
152
+ instruct template
153
+ -
154
+ {
155
+ "system_prompt": "Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.\n\n<Guidelines>\n• Maintain the character persona but allow it to evolve with the story.\n• Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.\n• All types of outputs are encouraged; respond accordingly to the narrative.\n• Include dialogues, actions, and thoughts in each response.\n• Utilize all five senses to describe scenarios within {{char}}'s dialogue.\n• Use emotional symbols such as "!" and "~" in appropriate contexts.\n• Incorporate onomatopoeia when suitable.\n• Allow time for {{user}} to respond with their own input, respecting their agency.\n• Act as secondary characters and NPCs as needed, and remove them when appropriate.\n• When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.\n</Guidelines>\n\n<Forbidden>\n• Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.\n• Writing for, speaking, thinking, acting, or replying as {{user}} in your response.\n• Repetitive and monotonous outputs.\n• Positivity bias in your replies.\n• Being overly extreme or NSFW when the narrative context is inappropriate.\n</Forbidden>\n\nFollow the instructions in <Guidelines></Guidelines>, avoiding the items listed in <Forbidden></Forbidden>.",
156
+ "input_sequence": "<|im_start|>user\n",
157
+ "output_sequence": "<|im_start|>assistant\n",
158
+ "last_output_sequence": "",
159
+ "system_sequence": "<|im_start|>system\n",
160
+ "stop_sequence": "<|im_end|>",
161
+ "wrap": false,
162
+ "macro": true,
163
+ "names": true,
164
+ "names_force_groups": true,
165
+ "activation_regex": "",
166
+ "system_sequence_prefix": "",
167
+ "system_sequence_suffix": "",
168
+ "first_output_sequence": "",
169
+ "skip_examples": false,
170
+ "output_suffix": "<|im_end|>\n",
171
+ "input_suffix": "<|im_end|>\n",
172
+ "system_suffix": "<|im_end|>\n",
173
+ "user_alignment_message": "",
174
+ "system_same_as_user": false,
175
+ "last_system_sequence": "",
176
+ "name": "Magnum ChatML"
177
+ }
178
+
179
+
180
+ Axolotl config
181
+ -
182
+ See axolotl config
183
+
184
+ base_model: /workspace/data/gemma-2-9b-chatml
185
+ model_type: AutoModelForCausalLM
186
+ tokenizer_type: AutoTokenizer
187
+
188
+ plugins:
189
+ - axolotl.integrations.liger.LigerPlugin
190
+ liger_rope: false
191
+ liger_rms_norm: false
192
+ liger_swiglu: true
193
+ liger_cross_entropy: true
194
+ liger_fused_linear_cross_entropy: false
195
+
196
+ load_in_8bit: false
197
+ load_in_4bit: false
198
+ strict: false
199
+
200
+ datasets:
201
+ - path: anthracite-org/c2_logs_16k_llama_v1.1
202
+ type: sharegpt
203
+ conversation: chatml
204
+ - path: NewEden/Claude-Instruct-5K
205
+ type: sharegpt
206
+ conversation: chatml
207
+ - path: anthracite-org/kalo-opus-instruct-22k-no-refusal
208
+ type: sharegpt
209
+ conversation: chatml
210
+ - path: Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned
211
+ type: sharegpt
212
+ conversation: chatml
213
+ - path: lodrick-the-lafted/kalo-opus-instruct-3k-filtered
214
+ type: sharegpt
215
+ conversation: chatml
216
+ - path: anthracite-org/nopm_claude_writing_fixed
217
+ type: sharegpt
218
+ conversation: chatml
219
+ - path: Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned
220
+ type: sharegpt
221
+ conversation: chatml
222
+ - path: anthracite-org/kalo_opus_misc_240827
223
+ type: sharegpt
224
+ conversation: chatml
225
+ - path: anthracite-org/kalo_misc_part2
226
+ type: sharegpt
227
+ conversation: chatml
228
+ chat_template: chatml
229
+ shuffle_merged_datasets: false
230
+ default_system_message: "You are a helpful assistant that responds to the user."
231
+ dataset_prepared_path: /workspace/data/9b-fft-data
232
+ val_set_size: 0.0
233
+ output_dir: /workspace/data/9b-fft-out
234
+
235
+ sequence_len: 8192
236
+ sample_packing: true
237
+ eval_sample_packing: false
238
+ pad_to_sequence_len: true
239
+
240
+ adapter:
241
+ lora_model_dir:
242
+ lora_r:
243
+ lora_alpha:
244
+ lora_dropout:
245
+ lora_target_linear:
246
+ lora_fan_in_fan_out:
247
+
248
+ wandb_project: 9b-Nemo-config-fft
249
+ wandb_entity:
250
+ wandb_watch:
251
+ wandb_name: attempt-01
252
+ wandb_log_model:
253
+
254
+ gradient_accumulation_steps: 4
255
+ micro_batch_size: 1
256
+ num_epochs: 4
257
+ optimizer: paged_adamw_8bit
258
+ lr_scheduler: cosine
259
+ learning_rate: 0.00001
260
+
261
+ train_on_inputs: false
262
+ group_by_length: false
263
+ bf16: auto
264
+ fp16:
265
+ tf32: false
266
+
267
+ gradient_checkpointing: true
268
+ early_stopping_patience:
269
+ auto_resume_from_checkpoints: true
270
+ local_rank:
271
+ logging_steps: 1
272
+ xformers_attention:
273
+ flash_attention: true
274
+
275
+ warmup_steps: 10
276
+ evals_per_epoch:
277
+ eval_table_size:
278
+ eval_max_new_tokens:
279
+ saves_per_epoch: 1
280
+ debug:
281
+ deepspeed: deepspeed_configs/zero3_bf16.json
282
+ weight_decay: 0.001
283
+ fsdp:
284
+ fsdp_config:
285
+ special_tokens:
286
+ pad_token: <pad>
287
+
288
+
289
+ Credits
290
+ -
291
+ We'd like to thank Recursal / Featherless for sponsoring the compute for this train, Featherless has been hosting our Magnum models since the first 72 B and has given thousands of people access to our models and helped us grow.
292
+
293
+ We would also like to thank all members of Anthracite who made this finetune possible.
294
+ Datasets
295
+
296
+ anthracite-org/c2_logs_16k_llama_v1.1
297
+ NewEden/Claude-Instruct-5K
298
+ anthracite-org/kalo-opus-instruct-22k-no-refusal
299
+ Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned
300
+ lodrick-the-lafted/kalo-opus-instruct-3k-filtered
301
+ anthracite-org/nopm_claude_writing_fixed
302
+ Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned
303
+ anthracite-org/kalo_opus_misc_240827
304
+ anthracite-org/kalo_misc_part2
305
+
306
+ Training
307
+ -
308
+ The training was done for 2 epochs. We used 8xH100s GPUs graciously provided by Recursal AI / Featherless AI for the full-parameter fine-tuning of the model.
309
+
310
+ Built with Axolotl
311
+
312
+ Safety
313
+ -
314
+ ...
315
+ Open LLM Leaderboard Evaluation Results
316
+
317
+ Detailed results can be found here
318
+ Metric Value
319
+ Avg. 23.56
320
+ IFEval (0-Shot) 35.03
321
+ BBH (3-Shot) 33.27
322
+ MATH Lvl 5 (4-Shot) 11.63
323
+ GPQA (0-shot) 12.98
324
+ MuSR (0-shot) 15.65
325
+ MMLU-PRO (5-shot) 32.81
326
+
327
+ ---
328
  ## Use with llama.cpp
329
  Install llama.cpp through brew (works on Mac and Linux)
330