Upload 20 files
Browse files- .gitattributes +1 -0
- README.md +60 -3
- adapter_config.json +180 -0
- adapter_model.safetensors +3 -0
- added_tokens.json +3 -0
- all_results.json +9 -0
- chat_template.json +3 -0
- llamaboard_config.yaml +78 -0
- preprocessor_config.json +29 -0
- processor_config.json +4 -0
- running_log.txt +0 -0
- special_tokens_map.json +33 -0
- tokenizer.json +3 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
- train_results.json +9 -0
- trainer_log.jsonl +29 -0
- trainer_state.json +268 -0
- training_args.bin +3 -0
- training_args.yaml +37 -0
- training_loss.png +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,60 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
license: other
|
4 |
+
base_model: google/gemma-3-12b-it
|
5 |
+
tags:
|
6 |
+
- llama-factory
|
7 |
+
- lora
|
8 |
+
- generated_from_trainer
|
9 |
+
model-index:
|
10 |
+
- name: train_2025-05-14-10-29-44
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# train_2025-05-14-10-29-44
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [google/gemma-3-12b-it](https://huggingface.co/google/gemma-3-12b-it) on the top_5_training_dataset dataset.
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 2e-05
|
39 |
+
- train_batch_size: 5
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 5
|
43 |
+
- total_train_batch_size: 25
|
44 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
45 |
+
- lr_scheduler_type: cosine_with_restarts
|
46 |
+
- lr_scheduler_warmup_steps: 150
|
47 |
+
- num_epochs: 4.0
|
48 |
+
- label_smoothing_factor: 0.05
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
### Framework versions
|
55 |
+
|
56 |
+
- PEFT 0.15.1
|
57 |
+
- Transformers 4.51.3
|
58 |
+
- Pytorch 2.6.0+cu124
|
59 |
+
- Datasets 3.5.0
|
60 |
+
- Tokenizers 0.21.1
|
adapter_config.json
ADDED
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "google/gemma-3-12b-it",
|
5 |
+
"bias": "none",
|
6 |
+
"corda_config": null,
|
7 |
+
"eva_config": null,
|
8 |
+
"exclude_modules": null,
|
9 |
+
"fan_in_fan_out": false,
|
10 |
+
"inference_mode": true,
|
11 |
+
"init_lora_weights": true,
|
12 |
+
"layer_replication": null,
|
13 |
+
"layers_pattern": null,
|
14 |
+
"layers_to_transform": null,
|
15 |
+
"loftq_config": {},
|
16 |
+
"lora_alpha": 64,
|
17 |
+
"lora_bias": false,
|
18 |
+
"lora_dropout": 0.05,
|
19 |
+
"megatron_config": null,
|
20 |
+
"megatron_core": "megatron.core",
|
21 |
+
"modules_to_save": null,
|
22 |
+
"peft_type": "LORA",
|
23 |
+
"r": 32,
|
24 |
+
"rank_pattern": {},
|
25 |
+
"revision": null,
|
26 |
+
"target_modules": [
|
27 |
+
"44.self_attn.q_proj",
|
28 |
+
"40.self_attn.q_proj",
|
29 |
+
"27.self_attn.k_proj",
|
30 |
+
"31.self_attn.q_proj",
|
31 |
+
"39.self_attn.k_proj",
|
32 |
+
"model.layers.18.self_attn.k_proj",
|
33 |
+
"41.self_attn.k_proj",
|
34 |
+
"31.self_attn.v_proj",
|
35 |
+
"model.layers.23.self_attn.q_proj",
|
36 |
+
"34.self_attn.q_proj",
|
37 |
+
"model.layers.15.self_attn.q_proj",
|
38 |
+
"model.layers.23.self_attn.v_proj",
|
39 |
+
"27.self_attn.v_proj",
|
40 |
+
"model.layers.21.self_attn.v_proj",
|
41 |
+
"30.self_attn.q_proj",
|
42 |
+
"model.layers.11.self_attn.k_proj",
|
43 |
+
"model.layers.22.self_attn.q_proj",
|
44 |
+
"model.layers.10.self_attn.k_proj",
|
45 |
+
"model.layers.2.self_attn.k_proj",
|
46 |
+
"37.self_attn.q_proj",
|
47 |
+
"27.self_attn.q_proj",
|
48 |
+
"37.self_attn.k_proj",
|
49 |
+
"model.layers.25.self_attn.v_proj",
|
50 |
+
"model.layers.19.self_attn.q_proj",
|
51 |
+
"model.layers.25.self_attn.k_proj",
|
52 |
+
"34.self_attn.v_proj",
|
53 |
+
"42.self_attn.k_proj",
|
54 |
+
"model.layers.21.self_attn.q_proj",
|
55 |
+
"45.self_attn.k_proj",
|
56 |
+
"model.layers.14.self_attn.v_proj",
|
57 |
+
"35.self_attn.q_proj",
|
58 |
+
"model.layers.6.self_attn.v_proj",
|
59 |
+
"model.layers.15.self_attn.k_proj",
|
60 |
+
"model.layers.25.self_attn.q_proj",
|
61 |
+
"35.self_attn.k_proj",
|
62 |
+
"model.layers.20.self_attn.k_proj",
|
63 |
+
"model.layers.13.self_attn.k_proj",
|
64 |
+
"model.layers.17.self_attn.k_proj",
|
65 |
+
"32.self_attn.v_proj",
|
66 |
+
"model.layers.9.self_attn.q_proj",
|
67 |
+
"o_proj",
|
68 |
+
"35.self_attn.v_proj",
|
69 |
+
"model.layers.26.self_attn.q_proj",
|
70 |
+
"28.self_attn.v_proj",
|
71 |
+
"model.layers.7.self_attn.q_proj",
|
72 |
+
"37.self_attn.v_proj",
|
73 |
+
"40.self_attn.v_proj",
|
74 |
+
"model.layers.13.self_attn.q_proj",
|
75 |
+
"model.layers.1.self_attn.q_proj",
|
76 |
+
"33.self_attn.v_proj",
|
77 |
+
"33.self_attn.q_proj",
|
78 |
+
"42.self_attn.v_proj",
|
79 |
+
"model.layers.10.self_attn.q_proj",
|
80 |
+
"45.self_attn.v_proj",
|
81 |
+
"44.self_attn.k_proj",
|
82 |
+
"model.layers.14.self_attn.k_proj",
|
83 |
+
"model.layers.8.self_attn.k_proj",
|
84 |
+
"model.layers.12.self_attn.k_proj",
|
85 |
+
"model.layers.0.self_attn.v_proj",
|
86 |
+
"model.layers.20.self_attn.v_proj",
|
87 |
+
"model.layers.26.self_attn.v_proj",
|
88 |
+
"33.self_attn.k_proj",
|
89 |
+
"model.layers.12.self_attn.v_proj",
|
90 |
+
"36.self_attn.v_proj",
|
91 |
+
"model.layers.24.self_attn.v_proj",
|
92 |
+
"model.layers.4.self_attn.v_proj",
|
93 |
+
"46.self_attn.k_proj",
|
94 |
+
"46.self_attn.q_proj",
|
95 |
+
"29.self_attn.v_proj",
|
96 |
+
"32.self_attn.q_proj",
|
97 |
+
"model.layers.7.self_attn.k_proj",
|
98 |
+
"model.layers.16.self_attn.k_proj",
|
99 |
+
"model.layers.22.self_attn.k_proj",
|
100 |
+
"model.layers.26.self_attn.k_proj",
|
101 |
+
"41.self_attn.v_proj",
|
102 |
+
"model.layers.24.self_attn.k_proj",
|
103 |
+
"29.self_attn.q_proj",
|
104 |
+
"39.self_attn.q_proj",
|
105 |
+
"39.self_attn.v_proj",
|
106 |
+
"model.layers.12.self_attn.q_proj",
|
107 |
+
"47.self_attn.v_proj",
|
108 |
+
"model.layers.1.self_attn.k_proj",
|
109 |
+
"model.layers.11.self_attn.q_proj",
|
110 |
+
"model.layers.13.self_attn.v_proj",
|
111 |
+
"38.self_attn.k_proj",
|
112 |
+
"model.layers.4.self_attn.q_proj",
|
113 |
+
"model.layers.9.self_attn.k_proj",
|
114 |
+
"43.self_attn.q_proj",
|
115 |
+
"model.layers.17.self_attn.v_proj",
|
116 |
+
"38.self_attn.v_proj",
|
117 |
+
"model.layers.0.self_attn.k_proj",
|
118 |
+
"47.self_attn.k_proj",
|
119 |
+
"model.layers.6.self_attn.k_proj",
|
120 |
+
"model.layers.5.self_attn.q_proj",
|
121 |
+
"model.layers.24.self_attn.q_proj",
|
122 |
+
"model.layers.18.self_attn.v_proj",
|
123 |
+
"30.self_attn.k_proj",
|
124 |
+
"40.self_attn.k_proj",
|
125 |
+
"model.layers.14.self_attn.q_proj",
|
126 |
+
"model.layers.3.self_attn.q_proj",
|
127 |
+
"model.layers.21.self_attn.k_proj",
|
128 |
+
"36.self_attn.k_proj",
|
129 |
+
"34.self_attn.k_proj",
|
130 |
+
"model.layers.1.self_attn.v_proj",
|
131 |
+
"up_proj",
|
132 |
+
"model.layers.20.self_attn.q_proj",
|
133 |
+
"43.self_attn.k_proj",
|
134 |
+
"model.layers.3.self_attn.v_proj",
|
135 |
+
"model.layers.11.self_attn.v_proj",
|
136 |
+
"model.layers.23.self_attn.k_proj",
|
137 |
+
"31.self_attn.k_proj",
|
138 |
+
"model.layers.19.self_attn.k_proj",
|
139 |
+
"47.self_attn.q_proj",
|
140 |
+
"model.layers.22.self_attn.v_proj",
|
141 |
+
"32.self_attn.k_proj",
|
142 |
+
"model.layers.15.self_attn.v_proj",
|
143 |
+
"42.self_attn.q_proj",
|
144 |
+
"model.layers.8.self_attn.v_proj",
|
145 |
+
"model.layers.2.self_attn.v_proj",
|
146 |
+
"46.self_attn.v_proj",
|
147 |
+
"model.layers.4.self_attn.k_proj",
|
148 |
+
"model.layers.2.self_attn.q_proj",
|
149 |
+
"28.self_attn.q_proj",
|
150 |
+
"30.self_attn.v_proj",
|
151 |
+
"model.layers.18.self_attn.q_proj",
|
152 |
+
"model.layers.17.self_attn.q_proj",
|
153 |
+
"model.layers.10.self_attn.v_proj",
|
154 |
+
"44.self_attn.v_proj",
|
155 |
+
"down_proj",
|
156 |
+
"model.layers.5.self_attn.v_proj",
|
157 |
+
"model.layers.16.self_attn.q_proj",
|
158 |
+
"model.layers.19.self_attn.v_proj",
|
159 |
+
"gate_proj",
|
160 |
+
"model.layers.16.self_attn.v_proj",
|
161 |
+
"29.self_attn.k_proj",
|
162 |
+
"36.self_attn.q_proj",
|
163 |
+
"model.layers.8.self_attn.q_proj",
|
164 |
+
"model.layers.7.self_attn.v_proj",
|
165 |
+
"28.self_attn.k_proj",
|
166 |
+
"model.layers.6.self_attn.q_proj",
|
167 |
+
"model.layers.0.self_attn.q_proj",
|
168 |
+
"38.self_attn.q_proj",
|
169 |
+
"45.self_attn.q_proj",
|
170 |
+
"model.layers.3.self_attn.k_proj",
|
171 |
+
"43.self_attn.v_proj",
|
172 |
+
"model.layers.9.self_attn.v_proj",
|
173 |
+
"41.self_attn.q_proj",
|
174 |
+
"model.layers.5.self_attn.k_proj"
|
175 |
+
],
|
176 |
+
"task_type": "CAUSAL_LM",
|
177 |
+
"trainable_token_indices": null,
|
178 |
+
"use_dora": false,
|
179 |
+
"use_rslora": false
|
180 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:76ddf7912ece96c7aecac3d8beac981c665f5bfff70274b114b37081f2b61e50
|
3 |
+
size 523864568
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<image_soft_token>": 262144
|
3 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.9809417040358746,
|
3 |
+
"num_input_tokens_seen": 9067184,
|
4 |
+
"total_flos": 6.151178707859082e+17,
|
5 |
+
"train_loss": 1.3522842801019046,
|
6 |
+
"train_runtime": 6892.301,
|
7 |
+
"train_samples_per_second": 2.588,
|
8 |
+
"train_steps_per_second": 0.103
|
9 |
+
}
|
chat_template.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"chat_template": "{{ bos_token }}\n{%- if messages[0]['role'] == 'system' -%}\n {%- if messages[0]['content'] is string -%}\n {%- set first_user_prefix = messages[0]['content'] + '\n\n' -%}\n {%- else -%}\n {%- set first_user_prefix = messages[0]['content'][0]['text'] + '\n\n' -%}\n {%- endif -%}\n {%- set loop_messages = messages[1:] -%}\n{%- else -%}\n {%- set first_user_prefix = \"\" -%}\n {%- set loop_messages = messages -%}\n{%- endif -%}\n{%- for message in loop_messages -%}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}\n {{ raise_exception(\"Conversation roles must alternate user/assistant/user/assistant/...\") }}\n {%- endif -%}\n {%- if (message['role'] == 'assistant') -%}\n {%- set role = \"model\" -%}\n {%- else -%}\n {%- set role = message['role'] -%}\n {%- endif -%}\n {{ '<start_of_turn>' + role + '\n' + (first_user_prefix if loop.first else \"\") }}\n {%- if message['content'] is string -%}\n {{ message['content'] | trim }}\n {%- elif message['content'] is iterable -%}\n {%- for item in message['content'] -%}\n {%- if item['type'] == 'image' -%}\n {{ '<start_of_image>' }}\n {%- elif item['type'] == 'text' -%}\n {{ item['text'] | trim }}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {{ raise_exception(\"Invalid content type\") }}\n {%- endif -%}\n {{ '<end_of_turn>\n' }}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{'<start_of_turn>model\n'}}\n{%- endif -%}\n"
|
3 |
+
}
|
llamaboard_config.yaml
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
top.booster: auto
|
2 |
+
top.checkpoint_path: []
|
3 |
+
top.finetuning_type: lora
|
4 |
+
top.model_name: Gemma-3-12B-Instruct
|
5 |
+
top.quantization_bit: none
|
6 |
+
top.quantization_method: bnb
|
7 |
+
top.rope_scaling: none
|
8 |
+
top.template: alpaca
|
9 |
+
train.additional_target: ''
|
10 |
+
train.apollo_rank: 16
|
11 |
+
train.apollo_scale: 32
|
12 |
+
train.apollo_target: all
|
13 |
+
train.apollo_update_interval: 200
|
14 |
+
train.badam_mode: layer
|
15 |
+
train.badam_switch_interval: 50
|
16 |
+
train.badam_switch_mode: ascending
|
17 |
+
train.badam_update_ratio: 0.05
|
18 |
+
train.batch_size: 5
|
19 |
+
train.compute_type: bf16
|
20 |
+
train.create_new_adapter: true
|
21 |
+
train.cutoff_len: 512
|
22 |
+
train.dataset:
|
23 |
+
- top_5_training_dataset
|
24 |
+
train.dataset_dir: data
|
25 |
+
train.ds_offload: false
|
26 |
+
train.ds_stage: none
|
27 |
+
train.extra_args: '{"optim":"adamw_torch","weight_decay":0.01,"label_smoothing_factor":0.05}'
|
28 |
+
train.freeze_extra_modules: ''
|
29 |
+
train.freeze_trainable_layers: 4
|
30 |
+
train.freeze_trainable_modules: all
|
31 |
+
train.galore_rank: 16
|
32 |
+
train.galore_scale: 2
|
33 |
+
train.galore_target: all
|
34 |
+
train.galore_update_interval: 200
|
35 |
+
train.gradient_accumulation_steps: 5
|
36 |
+
train.learning_rate: 2e-5
|
37 |
+
train.logging_steps: 25
|
38 |
+
train.lora_alpha: 64
|
39 |
+
train.lora_dropout: 0.05
|
40 |
+
train.lora_rank: 32
|
41 |
+
train.lora_target: q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj
|
42 |
+
train.loraplus_lr_ratio: 8
|
43 |
+
train.lr_scheduler_type: cosine_with_restarts
|
44 |
+
train.mask_history: false
|
45 |
+
train.max_grad_norm: '0.3'
|
46 |
+
train.max_samples: '100000'
|
47 |
+
train.neat_packing: false
|
48 |
+
train.neftune_alpha: 0
|
49 |
+
train.num_train_epochs: '4'
|
50 |
+
train.packing: false
|
51 |
+
train.ppo_score_norm: false
|
52 |
+
train.ppo_whiten_rewards: false
|
53 |
+
train.pref_beta: 0.1
|
54 |
+
train.pref_ftx: 0
|
55 |
+
train.pref_loss: sigmoid
|
56 |
+
train.report_to:
|
57 |
+
- none
|
58 |
+
train.resize_vocab: false
|
59 |
+
train.reward_model: []
|
60 |
+
train.save_steps: 250
|
61 |
+
train.swanlab_api_key: ''
|
62 |
+
train.swanlab_link: ''
|
63 |
+
train.swanlab_mode: cloud
|
64 |
+
train.swanlab_project: llamafactory
|
65 |
+
train.swanlab_run_name: ''
|
66 |
+
train.swanlab_workspace: ''
|
67 |
+
train.train_on_prompt: false
|
68 |
+
train.training_stage: Supervised Fine-Tuning
|
69 |
+
train.use_apollo: false
|
70 |
+
train.use_badam: false
|
71 |
+
train.use_dora: false
|
72 |
+
train.use_galore: false
|
73 |
+
train.use_llama_pro: false
|
74 |
+
train.use_pissa: false
|
75 |
+
train.use_rslora: false
|
76 |
+
train.use_swanlab: false
|
77 |
+
train.val_size: 0
|
78 |
+
train.warmup_steps: 150
|
preprocessor_config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_rgb": null,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_pan_and_scan": null,
|
5 |
+
"do_rescale": true,
|
6 |
+
"do_resize": true,
|
7 |
+
"image_mean": [
|
8 |
+
0.5,
|
9 |
+
0.5,
|
10 |
+
0.5
|
11 |
+
],
|
12 |
+
"image_processor_type": "Gemma3ImageProcessor",
|
13 |
+
"image_seq_length": 256,
|
14 |
+
"image_std": [
|
15 |
+
0.5,
|
16 |
+
0.5,
|
17 |
+
0.5
|
18 |
+
],
|
19 |
+
"pan_and_scan_max_num_crops": null,
|
20 |
+
"pan_and_scan_min_crop_size": null,
|
21 |
+
"pan_and_scan_min_ratio_to_activate": null,
|
22 |
+
"processor_class": "Gemma3Processor",
|
23 |
+
"resample": 2,
|
24 |
+
"rescale_factor": 0.00392156862745098,
|
25 |
+
"size": {
|
26 |
+
"height": 896,
|
27 |
+
"width": 896
|
28 |
+
}
|
29 |
+
}
|
processor_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"image_seq_length": 256,
|
3 |
+
"processor_class": "Gemma3Processor"
|
4 |
+
}
|
running_log.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"boi_token": "<start_of_image>",
|
3 |
+
"bos_token": {
|
4 |
+
"content": "<bos>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
"eoi_token": "<end_of_image>",
|
11 |
+
"eos_token": {
|
12 |
+
"content": "<eos>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false
|
17 |
+
},
|
18 |
+
"image_token": "<image_soft_token>",
|
19 |
+
"pad_token": {
|
20 |
+
"content": "<pad>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false
|
25 |
+
},
|
26 |
+
"unk_token": {
|
27 |
+
"content": "<unk>",
|
28 |
+
"lstrip": false,
|
29 |
+
"normalized": false,
|
30 |
+
"rstrip": false,
|
31 |
+
"single_word": false
|
32 |
+
}
|
33 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
|
3 |
+
size 33384568
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
|
3 |
+
size 4689074
|
tokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.9809417040358746,
|
3 |
+
"num_input_tokens_seen": 9067184,
|
4 |
+
"total_flos": 6.151178707859082e+17,
|
5 |
+
"train_loss": 1.3522842801019046,
|
6 |
+
"train_runtime": 6892.301,
|
7 |
+
"train_samples_per_second": 2.588,
|
8 |
+
"train_steps_per_second": 0.103
|
9 |
+
}
|
trainer_log.jsonl
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"current_steps": 25, "total_steps": 712, "loss": 7.1534, "lr": 3.2000000000000003e-06, "epoch": 0.14013452914798205, "percentage": 3.51, "elapsed_time": "0:04:01", "remaining_time": "1:50:44", "throughput": 1316.08, "total_tokens": 318240}
|
2 |
+
{"current_steps": 50, "total_steps": 712, "loss": 1.9472, "lr": 6.533333333333334e-06, "epoch": 0.2802690582959641, "percentage": 7.02, "elapsed_time": "0:08:02", "remaining_time": "1:46:30", "throughput": 1319.26, "total_tokens": 636760}
|
3 |
+
{"current_steps": 75, "total_steps": 712, "loss": 1.5046, "lr": 9.866666666666668e-06, "epoch": 0.4204035874439462, "percentage": 10.53, "elapsed_time": "0:12:04", "remaining_time": "1:42:30", "throughput": 1320.9, "total_tokens": 956520}
|
4 |
+
{"current_steps": 100, "total_steps": 712, "loss": 1.3971, "lr": 1.3200000000000002e-05, "epoch": 0.5605381165919282, "percentage": 14.04, "elapsed_time": "0:16:05", "remaining_time": "1:38:30", "throughput": 1321.21, "total_tokens": 1275920}
|
5 |
+
{"current_steps": 125, "total_steps": 712, "loss": 1.3768, "lr": 1.6533333333333333e-05, "epoch": 0.7006726457399103, "percentage": 17.56, "elapsed_time": "0:20:07", "remaining_time": "1:34:28", "throughput": 1321.53, "total_tokens": 1595280}
|
6 |
+
{"current_steps": 150, "total_steps": 712, "loss": 1.3278, "lr": 1.9866666666666667e-05, "epoch": 0.8408071748878924, "percentage": 21.07, "elapsed_time": "0:24:08", "remaining_time": "1:30:27", "throughput": 1321.82, "total_tokens": 1914720}
|
7 |
+
{"current_steps": 175, "total_steps": 712, "loss": 1.2927, "lr": 1.9910139651840497e-05, "epoch": 0.9809417040358744, "percentage": 24.58, "elapsed_time": "0:28:09", "remaining_time": "1:26:24", "throughput": 1322.18, "total_tokens": 2233680}
|
8 |
+
{"current_steps": 200, "total_steps": 712, "loss": 1.2029, "lr": 1.962720313575358e-05, "epoch": 1.1177130044843049, "percentage": 28.09, "elapsed_time": "0:32:04", "remaining_time": "1:22:07", "throughput": 1322.22, "total_tokens": 2544928}
|
9 |
+
{"current_steps": 225, "total_steps": 712, "loss": 1.2199, "lr": 1.915655103523529e-05, "epoch": 1.257847533632287, "percentage": 31.6, "elapsed_time": "0:36:06", "remaining_time": "1:18:08", "throughput": 1322.25, "total_tokens": 2864008}
|
10 |
+
{"current_steps": 250, "total_steps": 712, "loss": 1.2112, "lr": 1.8507360338956896e-05, "epoch": 1.397982062780269, "percentage": 35.11, "elapsed_time": "0:40:07", "remaining_time": "1:14:08", "throughput": 1322.45, "total_tokens": 3183248}
|
11 |
+
{"current_steps": 275, "total_steps": 712, "loss": 1.221, "lr": 1.7692289262315e-05, "epoch": 1.5381165919282511, "percentage": 38.62, "elapsed_time": "0:44:20", "remaining_time": "1:10:27", "throughput": 1316.5, "total_tokens": 3502528}
|
12 |
+
{"current_steps": 300, "total_steps": 712, "loss": 1.1758, "lr": 1.6727230431791816e-05, "epoch": 1.6782511210762332, "percentage": 42.13, "elapsed_time": "0:48:21", "remaining_time": "1:06:25", "throughput": 1316.99, "total_tokens": 3821648}
|
13 |
+
{"current_steps": 325, "total_steps": 712, "loss": 1.1828, "lr": 1.563100100329731e-05, "epoch": 1.8183856502242153, "percentage": 45.65, "elapsed_time": "0:52:22", "remaining_time": "1:02:21", "throughput": 1317.42, "total_tokens": 4140008}
|
14 |
+
{"current_steps": 350, "total_steps": 712, "loss": 1.1948, "lr": 1.442497575670668e-05, "epoch": 1.9585201793721974, "percentage": 49.16, "elapsed_time": "0:56:23", "remaining_time": "0:58:19", "throughput": 1317.74, "total_tokens": 4458448}
|
15 |
+
{"current_steps": 375, "total_steps": 712, "loss": 1.07, "lr": 1.313267032068285e-05, "epoch": 2.0952914798206277, "percentage": 52.67, "elapsed_time": "1:00:18", "remaining_time": "0:54:12", "throughput": 1318.08, "total_tokens": 4770136}
|
16 |
+
{"current_steps": 400, "total_steps": 712, "loss": 1.0581, "lr": 1.1779282654255685e-05, "epoch": 2.2354260089686098, "percentage": 56.18, "elapsed_time": "1:04:19", "remaining_time": "0:50:10", "throughput": 1318.28, "total_tokens": 5087896}
|
17 |
+
{"current_steps": 425, "total_steps": 712, "loss": 1.048, "lr": 1.0391201725558842e-05, "epoch": 2.375560538116592, "percentage": 59.69, "elapsed_time": "1:08:21", "remaining_time": "0:46:09", "throughput": 1318.52, "total_tokens": 5407296}
|
18 |
+
{"current_steps": 450, "total_steps": 712, "loss": 1.0218, "lr": 8.99549296772945e-06, "epoch": 2.515695067264574, "percentage": 63.2, "elapsed_time": "1:12:22", "remaining_time": "0:42:08", "throughput": 1318.81, "total_tokens": 5726896}
|
19 |
+
{"current_steps": 475, "total_steps": 712, "loss": 1.0206, "lr": 7.619370544785608e-06, "epoch": 2.655829596412556, "percentage": 66.71, "elapsed_time": "1:16:23", "remaining_time": "0:38:07", "throughput": 1319.13, "total_tokens": 6046856}
|
20 |
+
{"current_steps": 500, "total_steps": 712, "loss": 1.0277, "lr": 6.289666717481497e-06, "epoch": 2.795964125560538, "percentage": 70.22, "elapsed_time": "1:20:25", "remaining_time": "0:34:05", "throughput": 1319.31, "total_tokens": 6366216}
|
21 |
+
{"current_steps": 525, "total_steps": 712, "loss": 1.0494, "lr": 5.032308655686011e-06, "epoch": 2.93609865470852, "percentage": 73.74, "elapsed_time": "1:24:39", "remaining_time": "0:30:09", "throughput": 1316.22, "total_tokens": 6685296}
|
22 |
+
{"current_steps": 550, "total_steps": 712, "loss": 0.9487, "lr": 3.8718128986350154e-06, "epoch": 3.0728699551569507, "percentage": 77.25, "elapsed_time": "1:28:34", "remaining_time": "0:26:05", "throughput": 1316.47, "total_tokens": 6996704}
|
23 |
+
{"current_steps": 575, "total_steps": 712, "loss": 0.9103, "lr": 2.8308073203011667e-06, "epoch": 3.213004484304933, "percentage": 80.76, "elapsed_time": "1:32:36", "remaining_time": "0:22:03", "throughput": 1316.77, "total_tokens": 7316144}
|
24 |
+
{"current_steps": 600, "total_steps": 712, "loss": 0.9102, "lr": 1.929589920817806e-06, "epoch": 3.353139013452915, "percentage": 84.27, "elapsed_time": "1:36:37", "remaining_time": "0:18:02", "throughput": 1317.02, "total_tokens": 7635704}
|
25 |
+
{"current_steps": 625, "total_steps": 712, "loss": 0.9034, "lr": 1.1857330468424466e-06, "epoch": 3.493273542600897, "percentage": 87.78, "elapsed_time": "1:40:39", "remaining_time": "0:14:00", "throughput": 1317.22, "total_tokens": 7955304}
|
26 |
+
{"current_steps": 650, "total_steps": 712, "loss": 0.8949, "lr": 6.137407579511212e-07, "epoch": 3.633408071748879, "percentage": 91.29, "elapsed_time": "1:44:40", "remaining_time": "0:09:59", "throughput": 1317.47, "total_tokens": 8274744}
|
27 |
+
{"current_steps": 675, "total_steps": 712, "loss": 0.9073, "lr": 2.2476601988947965e-07, "epoch": 3.773542600896861, "percentage": 94.8, "elapsed_time": "1:48:42", "remaining_time": "0:05:57", "throughput": 1317.67, "total_tokens": 8594304}
|
28 |
+
{"current_steps": 700, "total_steps": 712, "loss": 0.8967, "lr": 2.639323897518975e-08, "epoch": 3.913677130044843, "percentage": 98.31, "elapsed_time": "1:52:43", "remaining_time": "0:01:55", "throughput": 1317.87, "total_tokens": 8913944}
|
29 |
+
{"current_steps": 712, "total_steps": 712, "epoch": 3.9809417040358746, "percentage": 100.0, "elapsed_time": "1:54:52", "remaining_time": "0:00:00", "throughput": 1315.55, "total_tokens": 9067184}
|
trainer_state.json
ADDED
@@ -0,0 +1,268 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_global_step": null,
|
3 |
+
"best_metric": null,
|
4 |
+
"best_model_checkpoint": null,
|
5 |
+
"epoch": 3.9809417040358746,
|
6 |
+
"eval_steps": 500,
|
7 |
+
"global_step": 712,
|
8 |
+
"is_hyper_param_search": false,
|
9 |
+
"is_local_process_zero": true,
|
10 |
+
"is_world_process_zero": true,
|
11 |
+
"log_history": [
|
12 |
+
{
|
13 |
+
"epoch": 0.14013452914798205,
|
14 |
+
"grad_norm": 14.509355545043945,
|
15 |
+
"learning_rate": 3.2000000000000003e-06,
|
16 |
+
"loss": 7.1534,
|
17 |
+
"num_input_tokens_seen": 318240,
|
18 |
+
"step": 25
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"epoch": 0.2802690582959641,
|
22 |
+
"grad_norm": 6.642310619354248,
|
23 |
+
"learning_rate": 6.533333333333334e-06,
|
24 |
+
"loss": 1.9472,
|
25 |
+
"num_input_tokens_seen": 636760,
|
26 |
+
"step": 50
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.4204035874439462,
|
30 |
+
"grad_norm": 3.3247640132904053,
|
31 |
+
"learning_rate": 9.866666666666668e-06,
|
32 |
+
"loss": 1.5046,
|
33 |
+
"num_input_tokens_seen": 956520,
|
34 |
+
"step": 75
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"epoch": 0.5605381165919282,
|
38 |
+
"grad_norm": 2.3405237197875977,
|
39 |
+
"learning_rate": 1.3200000000000002e-05,
|
40 |
+
"loss": 1.3971,
|
41 |
+
"num_input_tokens_seen": 1275920,
|
42 |
+
"step": 100
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"epoch": 0.7006726457399103,
|
46 |
+
"grad_norm": 3.028830051422119,
|
47 |
+
"learning_rate": 1.6533333333333333e-05,
|
48 |
+
"loss": 1.3768,
|
49 |
+
"num_input_tokens_seen": 1595280,
|
50 |
+
"step": 125
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 0.8408071748878924,
|
54 |
+
"grad_norm": 1.428653597831726,
|
55 |
+
"learning_rate": 1.9866666666666667e-05,
|
56 |
+
"loss": 1.3278,
|
57 |
+
"num_input_tokens_seen": 1914720,
|
58 |
+
"step": 150
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.9809417040358744,
|
62 |
+
"grad_norm": 1.9624038934707642,
|
63 |
+
"learning_rate": 1.9910139651840497e-05,
|
64 |
+
"loss": 1.2927,
|
65 |
+
"num_input_tokens_seen": 2233680,
|
66 |
+
"step": 175
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"epoch": 1.1177130044843049,
|
70 |
+
"grad_norm": 1.6478056907653809,
|
71 |
+
"learning_rate": 1.962720313575358e-05,
|
72 |
+
"loss": 1.2029,
|
73 |
+
"num_input_tokens_seen": 2544928,
|
74 |
+
"step": 200
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 1.257847533632287,
|
78 |
+
"grad_norm": 2.1640427112579346,
|
79 |
+
"learning_rate": 1.915655103523529e-05,
|
80 |
+
"loss": 1.2199,
|
81 |
+
"num_input_tokens_seen": 2864008,
|
82 |
+
"step": 225
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"epoch": 1.397982062780269,
|
86 |
+
"grad_norm": 2.563964605331421,
|
87 |
+
"learning_rate": 1.8507360338956896e-05,
|
88 |
+
"loss": 1.2112,
|
89 |
+
"num_input_tokens_seen": 3183248,
|
90 |
+
"step": 250
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"epoch": 1.5381165919282511,
|
94 |
+
"grad_norm": 1.9103755950927734,
|
95 |
+
"learning_rate": 1.7692289262315e-05,
|
96 |
+
"loss": 1.221,
|
97 |
+
"num_input_tokens_seen": 3502528,
|
98 |
+
"step": 275
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 1.6782511210762332,
|
102 |
+
"grad_norm": 2.564152240753174,
|
103 |
+
"learning_rate": 1.6727230431791816e-05,
|
104 |
+
"loss": 1.1758,
|
105 |
+
"num_input_tokens_seen": 3821648,
|
106 |
+
"step": 300
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"epoch": 1.8183856502242153,
|
110 |
+
"grad_norm": 1.57261061668396,
|
111 |
+
"learning_rate": 1.563100100329731e-05,
|
112 |
+
"loss": 1.1828,
|
113 |
+
"num_input_tokens_seen": 4140008,
|
114 |
+
"step": 325
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 1.9585201793721974,
|
118 |
+
"grad_norm": 1.8220309019088745,
|
119 |
+
"learning_rate": 1.442497575670668e-05,
|
120 |
+
"loss": 1.1948,
|
121 |
+
"num_input_tokens_seen": 4458448,
|
122 |
+
"step": 350
|
123 |
+
},
|
124 |
+
{
|
125 |
+
"epoch": 2.0952914798206277,
|
126 |
+
"grad_norm": 2.028656005859375,
|
127 |
+
"learning_rate": 1.313267032068285e-05,
|
128 |
+
"loss": 1.07,
|
129 |
+
"num_input_tokens_seen": 4770136,
|
130 |
+
"step": 375
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 2.2354260089686098,
|
134 |
+
"grad_norm": 3.713899850845337,
|
135 |
+
"learning_rate": 1.1779282654255685e-05,
|
136 |
+
"loss": 1.0581,
|
137 |
+
"num_input_tokens_seen": 5087896,
|
138 |
+
"step": 400
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"epoch": 2.375560538116592,
|
142 |
+
"grad_norm": 2.000035285949707,
|
143 |
+
"learning_rate": 1.0391201725558842e-05,
|
144 |
+
"loss": 1.048,
|
145 |
+
"num_input_tokens_seen": 5407296,
|
146 |
+
"step": 425
|
147 |
+
},
|
148 |
+
{
|
149 |
+
"epoch": 2.515695067264574,
|
150 |
+
"grad_norm": 1.5742937326431274,
|
151 |
+
"learning_rate": 8.99549296772945e-06,
|
152 |
+
"loss": 1.0218,
|
153 |
+
"num_input_tokens_seen": 5726896,
|
154 |
+
"step": 450
|
155 |
+
},
|
156 |
+
{
|
157 |
+
"epoch": 2.655829596412556,
|
158 |
+
"grad_norm": 1.7964842319488525,
|
159 |
+
"learning_rate": 7.619370544785608e-06,
|
160 |
+
"loss": 1.0206,
|
161 |
+
"num_input_tokens_seen": 6046856,
|
162 |
+
"step": 475
|
163 |
+
},
|
164 |
+
{
|
165 |
+
"epoch": 2.795964125560538,
|
166 |
+
"grad_norm": 1.5667575597763062,
|
167 |
+
"learning_rate": 6.289666717481497e-06,
|
168 |
+
"loss": 1.0277,
|
169 |
+
"num_input_tokens_seen": 6366216,
|
170 |
+
"step": 500
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 2.93609865470852,
|
174 |
+
"grad_norm": 1.8910105228424072,
|
175 |
+
"learning_rate": 5.032308655686011e-06,
|
176 |
+
"loss": 1.0494,
|
177 |
+
"num_input_tokens_seen": 6685296,
|
178 |
+
"step": 525
|
179 |
+
},
|
180 |
+
{
|
181 |
+
"epoch": 3.0728699551569507,
|
182 |
+
"grad_norm": 1.1843669414520264,
|
183 |
+
"learning_rate": 3.8718128986350154e-06,
|
184 |
+
"loss": 0.9487,
|
185 |
+
"num_input_tokens_seen": 6996704,
|
186 |
+
"step": 550
|
187 |
+
},
|
188 |
+
{
|
189 |
+
"epoch": 3.213004484304933,
|
190 |
+
"grad_norm": 1.5657708644866943,
|
191 |
+
"learning_rate": 2.8308073203011667e-06,
|
192 |
+
"loss": 0.9103,
|
193 |
+
"num_input_tokens_seen": 7316144,
|
194 |
+
"step": 575
|
195 |
+
},
|
196 |
+
{
|
197 |
+
"epoch": 3.353139013452915,
|
198 |
+
"grad_norm": 1.8331918716430664,
|
199 |
+
"learning_rate": 1.929589920817806e-06,
|
200 |
+
"loss": 0.9102,
|
201 |
+
"num_input_tokens_seen": 7635704,
|
202 |
+
"step": 600
|
203 |
+
},
|
204 |
+
{
|
205 |
+
"epoch": 3.493273542600897,
|
206 |
+
"grad_norm": 1.651666283607483,
|
207 |
+
"learning_rate": 1.1857330468424466e-06,
|
208 |
+
"loss": 0.9034,
|
209 |
+
"num_input_tokens_seen": 7955304,
|
210 |
+
"step": 625
|
211 |
+
},
|
212 |
+
{
|
213 |
+
"epoch": 3.633408071748879,
|
214 |
+
"grad_norm": 1.1031330823898315,
|
215 |
+
"learning_rate": 6.137407579511212e-07,
|
216 |
+
"loss": 0.8949,
|
217 |
+
"num_input_tokens_seen": 8274744,
|
218 |
+
"step": 650
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"epoch": 3.773542600896861,
|
222 |
+
"grad_norm": 3.233630895614624,
|
223 |
+
"learning_rate": 2.2476601988947965e-07,
|
224 |
+
"loss": 0.9073,
|
225 |
+
"num_input_tokens_seen": 8594304,
|
226 |
+
"step": 675
|
227 |
+
},
|
228 |
+
{
|
229 |
+
"epoch": 3.913677130044843,
|
230 |
+
"grad_norm": 1.2947144508361816,
|
231 |
+
"learning_rate": 2.639323897518975e-08,
|
232 |
+
"loss": 0.8967,
|
233 |
+
"num_input_tokens_seen": 8913944,
|
234 |
+
"step": 700
|
235 |
+
},
|
236 |
+
{
|
237 |
+
"epoch": 3.9809417040358746,
|
238 |
+
"num_input_tokens_seen": 9067184,
|
239 |
+
"step": 712,
|
240 |
+
"total_flos": 6.151178707859082e+17,
|
241 |
+
"train_loss": 1.3522842801019046,
|
242 |
+
"train_runtime": 6892.301,
|
243 |
+
"train_samples_per_second": 2.588,
|
244 |
+
"train_steps_per_second": 0.103
|
245 |
+
}
|
246 |
+
],
|
247 |
+
"logging_steps": 25,
|
248 |
+
"max_steps": 712,
|
249 |
+
"num_input_tokens_seen": 9067184,
|
250 |
+
"num_train_epochs": 4,
|
251 |
+
"save_steps": 250,
|
252 |
+
"stateful_callbacks": {
|
253 |
+
"TrainerControl": {
|
254 |
+
"args": {
|
255 |
+
"should_epoch_stop": false,
|
256 |
+
"should_evaluate": false,
|
257 |
+
"should_log": false,
|
258 |
+
"should_save": true,
|
259 |
+
"should_training_stop": true
|
260 |
+
},
|
261 |
+
"attributes": {}
|
262 |
+
}
|
263 |
+
},
|
264 |
+
"total_flos": 6.151178707859082e+17,
|
265 |
+
"train_batch_size": 5,
|
266 |
+
"trial_name": null,
|
267 |
+
"trial_params": null
|
268 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:178998ea29350ea4266d5c48226840b2656edd32cdff377cd45b2dc2b85dace9
|
3 |
+
size 5752
|
training_args.yaml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
bf16: true
|
2 |
+
create_new_adapter: true
|
3 |
+
cutoff_len: 512
|
4 |
+
dataset: top_5_training_dataset
|
5 |
+
dataset_dir: data
|
6 |
+
ddp_timeout: 180000000
|
7 |
+
do_train: true
|
8 |
+
finetuning_type: lora
|
9 |
+
flash_attn: auto
|
10 |
+
gradient_accumulation_steps: 5
|
11 |
+
include_num_input_tokens_seen: true
|
12 |
+
label_smoothing_factor: 0.05
|
13 |
+
learning_rate: 2.0e-05
|
14 |
+
logging_steps: 25
|
15 |
+
lora_alpha: 64
|
16 |
+
lora_dropout: 0.05
|
17 |
+
lora_rank: 32
|
18 |
+
lora_target: q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj
|
19 |
+
loraplus_lr_ratio: 8
|
20 |
+
lr_scheduler_type: cosine_with_restarts
|
21 |
+
max_grad_norm: 0.3
|
22 |
+
max_samples: 100000
|
23 |
+
model_name_or_path: google/gemma-3-12b-it
|
24 |
+
num_train_epochs: 4.0
|
25 |
+
optim: adamw_torch
|
26 |
+
output_dir: saves/Gemma-3-12B-Instruct/lora/train_2025-05-14-10-29-44
|
27 |
+
packing: false
|
28 |
+
per_device_train_batch_size: 5
|
29 |
+
plot_loss: true
|
30 |
+
preprocessing_num_workers: 16
|
31 |
+
report_to: none
|
32 |
+
save_steps: 250
|
33 |
+
stage: sft
|
34 |
+
template: alpaca
|
35 |
+
trust_remote_code: true
|
36 |
+
warmup_steps: 150
|
37 |
+
weight_decay: 0.01
|
training_loss.png
ADDED
![]() |