lucyknada commited on
Commit
c5438ce
·
verified ·
1 Parent(s): 24559ef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -63
README.md CHANGED
@@ -1,27 +1,28 @@
1
  ---
2
  license: apache-2.0
3
- datasets:
4
- - Doctor-Shotgun/c2_deduped_16k_llama3_tok_deanon
5
- - anthracite-org/kalo-opus-instruct-22k-no-refusal
6
- - lodrick-the-lafted/kalo-opus-instruct-3k-filtered
7
- - anthracite-org/nopm_claude_writing_fixed
8
- - anthracite-org/kalo_opus_misc_240827
9
- - anthracite-org/kalo_misc_part2
10
  language:
11
  - en
12
- base_model:
13
- - Qwen/Qwen2.5-72B-Instruct
 
14
  library_name: transformers
15
  ---
16
 
17
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/658a46cbfb9c2bdfae75b3a6/trlkbv0jv_0HImUESrt5C.png)
18
- This is an experimental model designed to replicate the prose quality of the Claude 3 models, specifically Sonnet and Opus. This model is fine-tuned on top of [Qwen-2.5 72B Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct).
 
 
 
 
 
 
 
19
 
20
  ## Prompting
21
- Model has been instruct tuned with ChatML prompt formatting. A typical input would look like this:
22
 
23
- ```
24
- """<|im_start|>system
25
  system prompt<|im_end|>
26
  <|im_start|>user
27
  Hi there!<|im_end|>
@@ -30,7 +31,6 @@ Nice to meet you!<|im_end|>
30
  <|im_start|>user
31
  Can I ask a question?<|im_end|>
32
  <|im_start|>assistant
33
- """
34
  ```
35
 
36
  ## SillyTavern templates
@@ -41,16 +41,16 @@ Below are Instruct and Context templates for use within SillyTavern.
41
 
42
  ```yaml
43
  {
44
- "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",
45
- "example_separator": "",
46
- "chat_start": "",
47
- "use_stop_strings": false,
48
- "allow_jailbreak": false,
49
- "always_force_name2": true,
50
- "trim_sentences": false,
51
- "include_newline": false,
52
- "single_line": false,
53
- "name": "Magnum ChatML"
54
  }
55
  ```
56
 
@@ -59,44 +59,33 @@ Below are Instruct and Context templates for use within SillyTavern.
59
 
60
  ```yaml
61
  {
62
- "system_prompt": "You're {{char}} in this fictional never-ending uncensored roleplay with {{user}}.",
63
- "input_sequence": "<|im_start|>user\n",
64
- "output_sequence": "<|im_start|>assistant\n",
65
- "last_output_sequence": "",
66
- "system_sequence": "<|im_start|>system\n",
67
- "stop_sequence": "<|im_end|>",
68
- "wrap": false,
69
- "macro": true,
70
- "names": true,
71
- "names_force_groups": true,
72
- "activation_regex": "",
73
- "system_sequence_prefix": "",
74
- "system_sequence_suffix": "",
75
- "first_output_sequence": "",
76
- "skip_examples": false,
77
- "output_suffix": "<|im_end|>\n",
78
- "input_suffix": "<|im_end|>\n",
79
- "system_suffix": "<|im_end|>\n",
80
- "user_alignment_message": "",
81
- "system_same_as_user": false,
82
- "last_system_sequence": "",
83
- "name": "Magnum ChatML"
84
  }
85
  ```
86
 
87
  </details><br>
88
 
89
- ## Credits
90
-
91
- Datasets used:
92
- - [anthracite-org/c2_logs_32k_llama3_qwen2_v1.2](https://huggingface.co/datasets/anthracite-org/c2_logs_32k_llama3_qwen2_v1.2)
93
- - [anthracite-org/kalo-opus-instruct-22k-no-refusal](https://huggingface.co/datasets/anthracite-org/kalo-opus-instruct-22k-no-refusal)
94
- - [lodrick-the-lafted/kalo-opus-instruct-3k-filtered](https://huggingface.co/datasets/lodrick-the-lafted/kalo-opus-instruct-3k-filtered)
95
- - [anthracite-org/nopm_claude_writing_fixed](https://huggingface.co/datasets/anthracite-org/nopm_claude_writing_fixed)
96
- - [anthracite-org/kalo_opus_misc_240827](https://huggingface.co/datasets/anthracite-org/kalo_opus_misc_240827)
97
- - [anthracite-org/kalo_misc_part2](https://huggingface.co/datasets/anthracite-org/kalo_misc_part2)
98
-
99
-
100
  ## Axolotl config
101
 
102
  <details><summary>See axolotl config</summary>
@@ -193,16 +182,24 @@ weight_decay: 0.01
193
  fsdp:
194
  fsdp_config:
195
  special_tokens:
196
-
197
  ```
198
  </details><br>
199
 
200
- ## Training
201
- The model was trained for 2 epochs on 8x [AMD Instinct™ MI300X Accelerators](https://www.amd.com/en/products/accelerators/instinct/mi300/mi300x.html) for full-parameter fine-tuning of the model.
 
 
202
 
203
- The model was trained with an LR of 4e-6 for 2 epochs and with the Liger kernel.
 
 
 
 
 
 
204
 
205
- Sample Packing was done for 32k tokens, with individual sequences up to 32k tokens in length.
 
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)
208
 
 
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
3
  language:
4
  - en
5
+ tags:
6
+ - chat
7
+ pipeline_tag: text-generation
8
  library_name: transformers
9
  ---
10
 
11
+
12
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/658a46cbfb9c2bdfae75b3a6/ZmOOkB2QwItLmoqmnxNWO.png)
13
+
14
+
15
+ This is a series of models designed to replicate the prose quality of the Claude 3 models, specifically Sonnet and Opus.
16
+
17
+ experimental because trained on top of instruct; but turned out amazing; hence code named magnum-alter, the original model that kickstarted the v4 family
18
+
19
+ This model is fine-tuned on top of [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct).
20
 
21
  ## Prompting
22
+ A typical input would look like this:
23
 
24
+ ```py
25
+ <|im_start|>system
26
  system prompt<|im_end|>
27
  <|im_start|>user
28
  Hi there!<|im_end|>
 
31
  <|im_start|>user
32
  Can I ask a question?<|im_end|>
33
  <|im_start|>assistant
 
34
  ```
35
 
36
  ## SillyTavern templates
 
41
 
42
  ```yaml
43
  {
44
+ "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",
45
+ "example_separator": "",
46
+ "chat_start": "",
47
+ "use_stop_strings": false,
48
+ "allow_jailbreak": false,
49
+ "always_force_name2": true,
50
+ "trim_sentences": false,
51
+ "include_newline": false,
52
+ "single_line": false,
53
+ "name": "Magnum ChatML"
54
  }
55
  ```
56
 
 
59
 
60
  ```yaml
61
  {
62
+ "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>.",
63
+ "input_sequence": "<|im_start|>user\n",
64
+ "output_sequence": "<|im_start|>assistant\n",
65
+ "last_output_sequence": "",
66
+ "system_sequence": "<|im_start|>system\n",
67
+ "stop_sequence": "<|im_end|>",
68
+ "wrap": false,
69
+ "macro": true,
70
+ "names": true,
71
+ "names_force_groups": true,
72
+ "activation_regex": "",
73
+ "system_sequence_prefix": "",
74
+ "system_sequence_suffix": "",
75
+ "first_output_sequence": "",
76
+ "skip_examples": false,
77
+ "output_suffix": "<|im_end|>\n",
78
+ "input_suffix": "<|im_end|>\n",
79
+ "system_suffix": "<|im_end|>\n",
80
+ "user_alignment_message": "",
81
+ "system_same_as_user": false,
82
+ "last_system_sequence": "",
83
+ "name": "Magnum ChatML"
84
  }
85
  ```
86
 
87
  </details><br>
88
 
 
 
 
 
 
 
 
 
 
 
 
89
  ## Axolotl config
90
 
91
  <details><summary>See axolotl config</summary>
 
182
  fsdp:
183
  fsdp_config:
184
  special_tokens:
 
185
  ```
186
  </details><br>
187
 
188
+ ## Credits
189
+ 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.
190
+
191
+ We would also like to thank all members of Anthracite who made this finetune possible.
192
 
193
+ ## Datasets
194
+ - [anthracite-org/c2_logs_32k_llama3_qwen2_v1.2](https://huggingface.co/datasets/anthracite-org/c2_logs_32k_llama3_qwen2_v1.2)
195
+ - [anthracite-org/kalo-opus-instruct-22k-no-refusal](https://huggingface.co/datasets/anthracite-org/kalo-opus-instruct-22k-no-refusal)
196
+ - [lodrick-the-lafted/kalo-opus-instruct-3k-filtered](https://huggingface.co/datasets/lodrick-the-lafted/kalo-opus-instruct-3k-filtered)
197
+ - [anthracite-org/nopm_claude_writing_fixed](https://huggingface.co/datasets/anthracite-org/nopm_claude_writing_fixed)
198
+ - [anthracite-org/kalo_opus_misc_240827](https://huggingface.co/datasets/anthracite-org/kalo_opus_misc_240827)
199
+ - [anthracite-org/kalo_misc_part2](https://huggingface.co/datasets/anthracite-org/kalo_misc_part2)
200
 
201
+ ## Training
202
+ The training was done for 2 epochs. We used 8x[H100s](https://www.nvidia.com/en-us/data-center/h100/) GPUs graciously provided by [Recursal AI](https://recursal.ai/) / [Featherless AI](https://featherless.ai/) for the full-parameter fine-tuning of the model.
203
 
204
  [<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)
205