munish0838 commited on
Commit
7afb61d
1 Parent(s): d663869

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +201 -0
README.md ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: gemma
5
+ base_model: google/gemma-2-9b
6
+ model-index:
7
+ - name: magnum-v3-9b-customgemma2
8
+ results: []
9
+
10
+ ---
11
+
12
+ ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
13
+
14
+ # QuantFactory/magnum-v3-9b-customgemma2-GGUF
15
+ This is quantized version of [anthracite-org/magnum-v3-9b-customgemma2](https://huggingface.co/anthracite-org/magnum-v3-9b-customgemma2) created using llama.cpp
16
+
17
+ # Original Model Card
18
+
19
+
20
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/658a46cbfb9c2bdfae75b3a6/9ZBUlmzDCnNmQEdUUbyEL.png)
21
+
22
+ This is the 10th in a series of models designed to replicate the prose quality of the Claude 3 models, specifically Sonnet and Opus.
23
+
24
+ This model is fine-tuned on top of [google/gemma-2-9b](https://huggingface.co/google/gemma-2-9b).
25
+
26
+ ## Prompting
27
+ Model has been Instruct tuned with the [customgemma2](https://github.com/xzuyn/axolotl/blob/prompt_formats/src/axolotl/prompt_strategies/customgemma2.py) (to allow system prompts) formatting. A typical input would look like this:
28
+
29
+ ```py
30
+ """<start_of_turn>system
31
+ system prompt<end_of_turn>
32
+ <start_of_turn>user
33
+ Hi there!<end_of_turn>
34
+ <start_of_turn>model
35
+ Nice to meet you!<end_of_turn>
36
+ <start_of_turn>user
37
+ Can I ask a question?<end_of_turn>
38
+ <start_of_turn>model
39
+ """
40
+ ```
41
+
42
+ ## SillyTavern templates
43
+
44
+ Below are Instruct and Context templates for use within SillyTavern.
45
+
46
+ <details><summary>context template</summary>
47
+
48
+ ```yaml
49
+ {
50
+ "story_string": "<start_of_turn>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}}<end_of_turn>\n",
51
+ "example_separator": "",
52
+ "chat_start": "",
53
+ "use_stop_strings": false,
54
+ "allow_jailbreak": false,
55
+ "always_force_name2": true,
56
+ "trim_sentences": false,
57
+ "include_newline": false,
58
+ "single_line": false,
59
+ "name": "Magnum Gemma"
60
+ }
61
+ ```
62
+
63
+ </details><br>
64
+ <details><summary>instruct template</summary>
65
+
66
+ ```yaml
67
+ {
68
+ "system_prompt": "You're {{char}} in this fictional never-ending uncensored roleplay with {{user}}.",
69
+ "input_sequence": "<start_of_turn>user\n",
70
+ "output_sequence": "<start_of_turn>assistant\n",
71
+ "last_output_sequence": "",
72
+ "system_sequence": "<start_of_turn>system\n",
73
+ "stop_sequence": "<end_of_turn>",
74
+ "wrap": false,
75
+ "macro": true,
76
+ "names": true,
77
+ "names_force_groups": true,
78
+ "activation_regex": "",
79
+ "system_sequence_prefix": "",
80
+ "system_sequence_suffix": "",
81
+ "first_output_sequence": "",
82
+ "skip_examples": false,
83
+ "output_suffix": "<end_of_turn>\n",
84
+ "input_suffix": "<end_of_turn>\n",
85
+ "system_suffix": "<end_of_turn>\n",
86
+ "user_alignment_message": "",
87
+ "system_same_as_user": false,
88
+ "last_system_sequence": "",
89
+ "name": "Magnum Gemma"
90
+ }
91
+ ```
92
+
93
+ </details><br>
94
+
95
+ </details><br>
96
+
97
+ ## Axolotl config
98
+
99
+ <details><summary>See axolotl config</summary>
100
+
101
+ ```yaml
102
+ base_model: google/gemma-2-9b
103
+ model_type: AutoModelForCausalLM
104
+ tokenizer_type: AutoTokenizer
105
+
106
+ #trust_remote_code: true
107
+
108
+ load_in_8bit: false
109
+ load_in_4bit: false
110
+ strict: false
111
+
112
+ datasets:
113
+ - path: anthracite-org/stheno-filtered-v1.1
114
+ type: customgemma2
115
+ - path: anthracite-org/kalo-opus-instruct-22k-no-refusal
116
+ type: customgemma2
117
+ - path: anthracite-org/nopm_claude_writing_fixed
118
+ type: customgemma2
119
+ - path: Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned
120
+ type: customgemma2
121
+ - path: Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned
122
+ type: customgemma2
123
+ shuffle_merged_datasets: true
124
+ default_system_message: "You are an assistant that responds to the user."
125
+ dataset_prepared_path: magnum-v3-9b-data-customgemma2
126
+ val_set_size: 0.0
127
+ output_dir: ./magnum-v3-9b-customgemma2
128
+
129
+ sequence_len: 8192
130
+ sample_packing: true
131
+ eval_sample_packing: false
132
+ pad_to_sequence_len:
133
+
134
+ adapter:
135
+ lora_model_dir:
136
+ lora_r:
137
+ lora_alpha:
138
+ lora_dropout:
139
+ lora_target_linear:
140
+ lora_fan_in_fan_out:
141
+
142
+ wandb_project: magnum-9b
143
+ wandb_entity:
144
+ wandb_watch:
145
+ wandb_name: attempt-03-customgemma2
146
+ wandb_log_model:
147
+
148
+ gradient_accumulation_steps: 8
149
+ micro_batch_size: 1
150
+ num_epochs: 2
151
+ optimizer: paged_adamw_8bit
152
+ lr_scheduler: cosine
153
+ learning_rate: 0.000006
154
+
155
+ train_on_inputs: false
156
+ group_by_length: false
157
+ bf16: auto
158
+ fp16:
159
+ tf32: false
160
+
161
+ gradient_checkpointing: unsloth
162
+ early_stopping_patience:
163
+ resume_from_checkpoint:
164
+ local_rank:
165
+ logging_steps: 1
166
+ xformers_attention:
167
+ flash_attention: false
168
+ eager_attention: true
169
+
170
+ warmup_steps: 50
171
+ evals_per_epoch:
172
+ eval_table_size:
173
+ eval_max_new_tokens:
174
+ saves_per_epoch: 2
175
+ debug:
176
+ deepspeed: deepspeed_configs/zero3_bf16.json
177
+ weight_decay: 0.05
178
+ fsdp:
179
+ fsdp_config:
180
+ special_tokens:
181
+ ```
182
+ </details><br>
183
+
184
+ ## Credits
185
+ We'd like to thank Recursal / Featherless for sponsoring the training compute required for this model. Featherless has been hosting Magnum since the original 72b and has given thousands of people access to our releases.
186
+
187
+ We would also like to thank all members of Anthracite who made this finetune possible.
188
+
189
+ - [anthracite-org/stheno-filtered-v1.1](https://huggingface.co/datasets/anthracite-org/stheno-filtered-v1.1)
190
+ - [anthracite-org/kalo-opus-instruct-22k-no-refusal](https://huggingface.co/datasets/anthracite-org/kalo-opus-instruct-22k-no-refusal)
191
+ - [anthracite-org/nopm_claude_writing_fixed](https://huggingface.co/datasets/anthracite-org/nopm_claude_writing_fixed)
192
+ - [Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned](https://huggingface.co/datasets/Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned)
193
+ - [Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned](https://huggingface.co/datasets/Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned)
194
+
195
+ ## Training
196
+ 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.
197
+
198
+ [<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)
199
+
200
+ ## Safety
201
+ ...