Triangle104 commited on
Commit
a10601f
1 Parent(s): 5214608

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +144 -0
README.md CHANGED
@@ -16,6 +16,8 @@ This model was converted to GGUF format from [`anthracite-org/magnum-v4-9b`](htt
16
  Refer to the [original model card](https://huggingface.co/anthracite-org/magnum-v4-9b) for more details on the model.
17
 
18
  ---
 
 
19
  This is a series of models designed to replicate the prose quality of the Claude 3 models, specifically Sonnet and Opus.
20
 
21
  This model is fine-tuned on top of gemma 2 9b (chatML'ified).
@@ -38,13 +40,155 @@ SillyTavern templates
38
  Below are Instruct and Context templates for use within SillyTavern.
39
  context template
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  instruct template
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  Axolotl config
46
  See axolotl config
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
  Credits
50
 
 
16
  Refer to the [original model card](https://huggingface.co/anthracite-org/magnum-v4-9b) for more details on the model.
17
 
18
  ---
19
+ Model details:
20
+ -
21
  This is a series of models designed to replicate the prose quality of the Claude 3 models, specifically Sonnet and Opus.
22
 
23
  This model is fine-tuned on top of gemma 2 9b (chatML'ified).
 
40
  Below are Instruct and Context templates for use within SillyTavern.
41
  context template
42
 
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
 
57
  instruct template
58
 
59
+ {
60
+ "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>.",
61
+ "input_sequence": "<|im_start|>user\n",
62
+ "output_sequence": "<|im_start|>assistant\n",
63
+ "last_output_sequence": "",
64
+ "system_sequence": "<|im_start|>system\n",
65
+ "stop_sequence": "<|im_end|>",
66
+ "wrap": false,
67
+ "macro": true,
68
+ "names": true,
69
+ "names_force_groups": true,
70
+ "activation_regex": "",
71
+ "system_sequence_prefix": "",
72
+ "system_sequence_suffix": "",
73
+ "first_output_sequence": "",
74
+ "skip_examples": false,
75
+ "output_suffix": "<|im_end|>\n",
76
+ "input_suffix": "<|im_end|>\n",
77
+ "system_suffix": "<|im_end|>\n",
78
+ "user_alignment_message": "",
79
+ "system_same_as_user": false,
80
+ "last_system_sequence": "",
81
+ "name": "Magnum ChatML"
82
+ }
83
+
84
 
85
  Axolotl config
86
  See axolotl config
87
 
88
+ base_model: /workspace/data/gemma-2-9b-chatml
89
+ model_type: AutoModelForCausalLM
90
+ tokenizer_type: AutoTokenizer
91
+
92
+ plugins:
93
+ - axolotl.integrations.liger.LigerPlugin
94
+ liger_rope: false
95
+ liger_rms_norm: false
96
+ liger_swiglu: true
97
+ liger_cross_entropy: true
98
+ liger_fused_linear_cross_entropy: false
99
+
100
+ load_in_8bit: false
101
+ load_in_4bit: false
102
+ strict: false
103
+
104
+ datasets:
105
+ - path: anthracite-org/c2_logs_16k_llama_v1.1
106
+ type: sharegpt
107
+ conversation: chatml
108
+ - path: NewEden/Claude-Instruct-5K
109
+ type: sharegpt
110
+ conversation: chatml
111
+ - path: anthracite-org/kalo-opus-instruct-22k-no-refusal
112
+ type: sharegpt
113
+ conversation: chatml
114
+ - path: Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned
115
+ type: sharegpt
116
+ conversation: chatml
117
+ - path: lodrick-the-lafted/kalo-opus-instruct-3k-filtered
118
+ type: sharegpt
119
+ conversation: chatml
120
+ - path: anthracite-org/nopm_claude_writing_fixed
121
+ type: sharegpt
122
+ conversation: chatml
123
+ - path: Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned
124
+ type: sharegpt
125
+ conversation: chatml
126
+ - path: anthracite-org/kalo_opus_misc_240827
127
+ type: sharegpt
128
+ conversation: chatml
129
+ - path: anthracite-org/kalo_misc_part2
130
+ type: sharegpt
131
+ conversation: chatml
132
+ chat_template: chatml
133
+ shuffle_merged_datasets: false
134
+ default_system_message: "You are a helpful assistant that responds to the user."
135
+ dataset_prepared_path: /workspace/data/9b-fft-data
136
+ val_set_size: 0.0
137
+ output_dir: /workspace/data/9b-fft-out
138
+
139
+ sequence_len: 8192
140
+ sample_packing: true
141
+ eval_sample_packing: false
142
+ pad_to_sequence_len: true
143
+
144
+ adapter:
145
+ lora_model_dir:
146
+ lora_r:
147
+ lora_alpha:
148
+ lora_dropout:
149
+ lora_target_linear:
150
+ lora_fan_in_fan_out:
151
+
152
+ wandb_project: 9b-Nemo-config-fft
153
+ wandb_entity:
154
+ wandb_watch:
155
+ wandb_name: attempt-01
156
+ wandb_log_model:
157
+
158
+ gradient_accumulation_steps: 4
159
+ micro_batch_size: 1
160
+ num_epochs: 4
161
+ optimizer: paged_adamw_8bit
162
+ lr_scheduler: cosine
163
+ learning_rate: 0.00001
164
+
165
+ train_on_inputs: false
166
+ group_by_length: false
167
+ bf16: auto
168
+ fp16:
169
+ tf32: false
170
+
171
+ gradient_checkpointing: true
172
+ early_stopping_patience:
173
+ auto_resume_from_checkpoints: true
174
+ local_rank:
175
+ logging_steps: 1
176
+ xformers_attention:
177
+ flash_attention: true
178
+
179
+ warmup_steps: 10
180
+ evals_per_epoch:
181
+ eval_table_size:
182
+ eval_max_new_tokens:
183
+ saves_per_epoch: 1
184
+ debug:
185
+ deepspeed: deepspeed_configs/zero3_bf16.json
186
+ weight_decay: 0.001
187
+ fsdp:
188
+ fsdp_config:
189
+ special_tokens:
190
+ pad_token: <pad>
191
+
192
 
193
  Credits
194