ToastyPigeon commited on
Commit
8ab70d8
·
verified ·
1 Parent(s): f154637

End of training

Browse files
Files changed (1) hide show
  1. README.md +240 -0
README.md ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: gemma
4
+ base_model: unsloth/gemma-3-4b-it
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ datasets:
9
+ - ToastyPigeon/some-rp-extended
10
+ - allura-org/inkstructmix-v0.2.1a-system-reasoning-separated
11
+ - ToastyPigeon/unalign-v2
12
+ - ToastyPigeon/unalign-v2
13
+ - ToastyPigeon/synth-rp
14
+ - PocketDoc/Floyd-Text-Adventures
15
+ - ToastyPigeon/new-story-dataset
16
+ model-index:
17
+ - name: g3-4b-it-creative-qlora
18
+ results: []
19
+ ---
20
+
21
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
22
+ should probably proofread and complete it, then remove this comment. -->
23
+
24
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
25
+ <details><summary>See axolotl config</summary>
26
+
27
+ axolotl version: `0.8.0.dev0`
28
+ ```yaml
29
+ # === Start-up Commands ===
30
+ # curl -LsSf https://astral.sh/uv/install.sh | sh
31
+ # export PATH="$HOME/.local/bin:$PATH"
32
+ # git clone https://github.com/axolotl-ai-cloud/axolotl
33
+ # cd axolotl
34
+ # git checkout d8b4027200de0fe60f4ae0a71272c1a8cb2888f7
35
+ # uv venv
36
+ # source .venv/bin/activate
37
+ # uv pip install packaging ninja setuptools ftfy deepspeed huggingface_hub[cli,hf_transfer]
38
+ # uv pip install "cut-cross-entropy[transformers] @ git+https://github.com/strangedove/ml-cross-entropy.git"
39
+ # uv pip install apollo-torch
40
+ # uv pip install --no-build-isolation -e .[flash-attn]
41
+ # uv pip install git+https://github.com/huggingface/transformers.git
42
+ # export HF_HUB_ENABLE_HF_TRANSFER=1
43
+ # huggingface-cli login --token $hf_key && wandb login $wandb_key
44
+ # axolotl preprocess qwen21-pretrain.yml
45
+ # axolotl train qwen21-pretrain.yml
46
+
47
+ # curl -LsSf https://astral.sh/uv/install.sh | sh && export PATH="$HOME/.local/bin:$PATH" && git clone https://github.com/axolotl-ai-cloud/axolotl && uv venv && source .venv/bin/activate && cd axolotl && git checkout 9f00465a5cb2349c23853c4a020a928709e506f2 && uv pip install torch==2.5.1 packaging ninja setuptools ftfy deepspeed huggingface_hub[cli,hf_transfer] && uv pip install "cut-cross-entropy[transformers] @ git+https://github.com/strangedove/ml-cross-entropy.git@gemma3" && uv pip install apollo-torch && uv pip install --no-build-isolation -e .[flash-attn] && uv pip install git+https://github.com/huggingface/transformers.git@c9d1e5238a752813ba91a8751a638a09b5efbb73 && export HF_HUB_ENABLE_HF_TRANSFER=1 && cd .. && huggingface-cli login --token $hf_key && wandb login $wandb_key
48
+
49
+ # === Model Configuration ===
50
+ base_model: unsloth/gemma-3-4b-it
51
+ load_in_8bit: true
52
+ load_in_4bit: false
53
+
54
+ # === HF Configuration ===
55
+ hub_model_id: ToastyPigeon/g3-4b-it-creative-qlora
56
+ hub_strategy: "every_save"
57
+
58
+ # === Training Setup ===
59
+ num_epochs: 1
60
+ micro_batch_size: 3
61
+ gradient_accumulation_steps: 6
62
+ sequence_len: 8192
63
+ sample_packing: true
64
+ pad_to_sequence_len: true
65
+
66
+ # === Evaluation ===
67
+ val_set_size: 100
68
+ evals_per_epoch: 5
69
+ #eval_table_size:
70
+ eval_max_new_tokens: 256
71
+ eval_sample_packing: true
72
+ #eval_strategy: "no"
73
+
74
+ # === LoRA Configuration ===
75
+ adapter: lora
76
+ lora_model_dir:
77
+ lora_r: 64
78
+ lora_alpha: 64
79
+ lora_dropout: 0.5
80
+ lora_target_linear:
81
+ lora_fan_in_fan_out:
82
+ lora_target_modules:
83
+ - gate_proj
84
+ - down_proj
85
+ - up_proj
86
+ - q_proj
87
+ - v_proj
88
+ - k_proj
89
+ - o_proj
90
+
91
+ #lora_mlp_kernel: true
92
+ #lora_qkv_kernel: true
93
+ #lora_o_kernel: true
94
+
95
+ # === Hyperparameter Configuration ===
96
+ #optimizer: apollo_adamw_layerwise
97
+ optimizer: paged_adamw_8bit
98
+ # Apollo-mini configuration:
99
+ #optim_args: "proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200"
100
+ # Regular Apollo configuration:
101
+ # optim_args:
102
+ #optim_target_modules: all_linear
103
+ learning_rate: 1e-5
104
+ lr_scheduler: rex
105
+ weight_decay: 0.01
106
+ #warmup_ratio: 0.05
107
+
108
+
109
+ # === Data Configuration ===
110
+ #chat_template: jinja
111
+ #chat_template_jinja: "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}"
112
+ #special_tokens:
113
+ # eos_token: "<end_of_turn>"
114
+ shuffle_merged_datasets: true
115
+ datasets:
116
+ - path: ToastyPigeon/some-rp-extended
117
+ type: customgemma-regex
118
+ - path: allura-org/inkstructmix-v0.2.1a-system-reasoning-separated
119
+ type: customgemma-regex
120
+ data_files: inkstruct-system.json
121
+ split: train[:750]
122
+ - path: ToastyPigeon/unalign-v2
123
+ type: chat_template
124
+ field_messages: conversations
125
+ message_property_mappings:
126
+ role: from
127
+ content: value
128
+ - path: ToastyPigeon/unalign-v2 # yes, twice on purpose
129
+ type: chat_template
130
+ field_messages: conversations
131
+ message_property_mappings:
132
+ role: from
133
+ content: value
134
+ - path: ToastyPigeon/synth-rp
135
+ split: train[:20%]
136
+ type: customgemma-regex
137
+ - path: PocketDoc/Floyd-Text-Adventures
138
+ data_files: floyd-pktdc.json
139
+ type: customgemma-regex
140
+ - path: ToastyPigeon/new-story-dataset
141
+ type: customcompletion-regex
142
+ field: text
143
+
144
+ dataset_prepared_path: last_run_prepared
145
+
146
+
147
+ # === Plugins ===
148
+ plugins:
149
+ - axolotl.integrations.liger.LigerPlugin
150
+ - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
151
+
152
+ # === Hardware Optimization ===
153
+ gradient_checkpointing: true
154
+ #gradient_checkpointing_kwargs:
155
+ # use_reentrant: true
156
+ liger_rope: true
157
+ liger_rms_norm: true
158
+ liger_glu_activation: true
159
+ #liger_fused_linear_cross_entropy: true
160
+ #unsloth_cross_entropy_loss: true
161
+ cut_cross_entropy: true
162
+ # Only if using multiple GPUs:
163
+ #deepspeed: axolotl/deepspeed_configs/zero2.json
164
+
165
+ # === Wandb Tracking ===
166
+ wandb_project: Gemma
167
+ # wandb_entity: [WANDB_ENTITY]
168
+ # wandb_name: [WANDB_RUN_NAME]
169
+
170
+ # === Checkpointing ===
171
+ saves_per_epoch: 10
172
+ save_total_limit: 1
173
+
174
+ # === Advanced Settings ===
175
+ output_dir: ./ckpts
176
+ bf16: auto
177
+ flash_attention: true
178
+ train_on_inputs: false
179
+ group_by_length: false
180
+ save_safetensors: true
181
+ logging_steps: 1
182
+ gc_steps: 10
183
+ seed: 69
184
+ ```
185
+
186
+ </details><br>
187
+
188
+ # g3-4b-it-creative-qlora
189
+
190
+ This model is a fine-tuned version of [unsloth/gemma-3-4b-it](https://huggingface.co/unsloth/gemma-3-4b-it) on the ToastyPigeon/some-rp-extended, the allura-org/inkstructmix-v0.2.1a-system-reasoning-separated, the ToastyPigeon/unalign-v2, the ToastyPigeon/unalign-v2, the ToastyPigeon/synth-rp, the PocketDoc/Floyd-Text-Adventures and the ToastyPigeon/new-story-dataset datasets.
191
+ It achieves the following results on the evaluation set:
192
+ - Loss: 2.7299
193
+
194
+ ## Model description
195
+
196
+ More information needed
197
+
198
+ ## Intended uses & limitations
199
+
200
+ More information needed
201
+
202
+ ## Training and evaluation data
203
+
204
+ More information needed
205
+
206
+ ## Training procedure
207
+
208
+ ### Training hyperparameters
209
+
210
+ The following hyperparameters were used during training:
211
+ - learning_rate: 1e-05
212
+ - train_batch_size: 3
213
+ - eval_batch_size: 3
214
+ - seed: 69
215
+ - gradient_accumulation_steps: 6
216
+ - total_train_batch_size: 18
217
+ - optimizer: Use OptimizerNames.PAGED_ADAMW_8BIT with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
218
+ - lr_scheduler_type: cosine
219
+ - lr_scheduler_warmup_steps: 8
220
+ - num_epochs: 1.0
221
+
222
+ ### Training results
223
+
224
+ | Training Loss | Epoch | Step | Validation Loss |
225
+ |:-------------:|:------:|:----:|:---------------:|
226
+ | 4.5251 | 0.0034 | 1 | 4.6010 |
227
+ | 3.9623 | 0.1995 | 58 | 3.7722 |
228
+ | 2.8668 | 0.3991 | 116 | 3.2242 |
229
+ | 2.8385 | 0.5986 | 174 | 2.8821 |
230
+ | 2.7389 | 0.7982 | 232 | 2.7648 |
231
+ | 2.5117 | 0.9977 | 290 | 2.7299 |
232
+
233
+
234
+ ### Framework versions
235
+
236
+ - PEFT 0.15.0
237
+ - Transformers 4.51.0.dev0
238
+ - Pytorch 2.5.1+cu124
239
+ - Datasets 3.4.1
240
+ - Tokenizers 0.21.1