RoseG commited on
Commit
95439c8
·
verified ·
1 Parent(s): 43b5e7b

Upload folder using huggingface_hub

Browse files
.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
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
chat_template.jinja ADDED
@@ -0,0 +1 @@
 
 
1
+ {% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\n' + system_message + '\n<</SYS>>\n\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' or message['role'] == 'tool' %}{{ bos_token + '[INST] ' + content + ' [/INST]' }}{% elif message['role'] == 'system' %}{{ '<<SYS>>\n' + content + '\n<</SYS>>\n\n' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content + ' ' + eos_token }}{% endif %}{% endfor %}
config.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_sliding_window_pattern": 6,
3
+ "architectures": [
4
+ "Gemma3ForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "attn_logit_softcapping": null,
9
+ "bos_token_id": 2,
10
+ "dtype": "float32",
11
+ "eos_token_id": 1,
12
+ "final_logit_softcapping": null,
13
+ "head_dim": 256,
14
+ "hidden_activation": "gelu_pytorch_tanh",
15
+ "hidden_size": 3840,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 15360,
18
+ "layer_types": [
19
+ "sliding_attention",
20
+ "sliding_attention",
21
+ "sliding_attention",
22
+ "sliding_attention",
23
+ "sliding_attention",
24
+ "full_attention",
25
+ "sliding_attention",
26
+ "sliding_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "full_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "full_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "full_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "full_attention",
61
+ "sliding_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "sliding_attention",
66
+ "full_attention"
67
+ ],
68
+ "max_position_embeddings": 131072,
69
+ "mm_tokens_per_image": 256,
70
+ "model_type": "gemma3_text",
71
+ "num_attention_heads": 16,
72
+ "num_hidden_layers": 48,
73
+ "num_key_value_heads": 8,
74
+ "pad_token_id": 0,
75
+ "query_pre_attn_scalar": 256,
76
+ "rms_norm_eps": 1e-06,
77
+ "rope_parameters": {
78
+ "full_attention": {
79
+ "factor": 8.0,
80
+ "rope_theta": 1000000.0,
81
+ "rope_type": "linear"
82
+ },
83
+ "sliding_attention": {
84
+ "rope_theta": 10000.0,
85
+ "rope_type": "default"
86
+ }
87
+ },
88
+ "rope_scaling": {
89
+ "factor": 8.0,
90
+ "rope_type": "linear"
91
+ },
92
+ "sliding_window": 1024,
93
+ "tie_word_embeddings": true,
94
+ "torch_dtype": "bfloat16",
95
+ "transformers_version": "5.10.1",
96
+ "use_bidirectional_attention": false,
97
+ "use_cache": false,
98
+ "vocab_size": 262208
99
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "cache_implementation": "hybrid",
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 1,
7
+ 106
8
+ ],
9
+ "pad_token_id": 0,
10
+ "top_k": 64,
11
+ "top_p": 0.95,
12
+ "transformers_version": "5.10.1"
13
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca68e779943015db4552d443659b7bf84e5ee58c2ca1bcbc180c19630ed662d2
3
+ size 47064210224
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
+ }
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:7d4046bf0505a327dd5a0abbb427ecd4fc82f99c2ceaa170bc61ecde12809b0c
3
+ size 33384570
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
 
trainer_state.json ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.0,
6
+ "eval_steps": 42,
7
+ "global_step": 42,
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.047619047619047616,
14
+ "grad_norm": 10.018631935119629,
15
+ "learning_rate": 0.0,
16
+ "loss": 2.1640625,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.09523809523809523,
21
+ "grad_norm": 9.490079879760742,
22
+ "learning_rate": 1e-05,
23
+ "loss": 2.150390625,
24
+ "step": 2
25
+ },
26
+ {
27
+ "epoch": 0.14285714285714285,
28
+ "grad_norm": 8.20272445678711,
29
+ "learning_rate": 2e-05,
30
+ "loss": 0.75787353515625,
31
+ "step": 3
32
+ },
33
+ {
34
+ "epoch": 0.19047619047619047,
35
+ "grad_norm": 4.848026275634766,
36
+ "learning_rate": 1.9969173337331283e-05,
37
+ "loss": 0.145111083984375,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 0.23809523809523808,
42
+ "grad_norm": 5.732630729675293,
43
+ "learning_rate": 1.9876883405951378e-05,
44
+ "loss": 0.292724609375,
45
+ "step": 5
46
+ },
47
+ {
48
+ "epoch": 0.2857142857142857,
49
+ "grad_norm": 1.9969537258148193,
50
+ "learning_rate": 1.9723699203976768e-05,
51
+ "loss": 0.12176513671875,
52
+ "step": 6
53
+ },
54
+ {
55
+ "epoch": 0.3333333333333333,
56
+ "grad_norm": 0.5292107462882996,
57
+ "learning_rate": 1.9510565162951538e-05,
58
+ "loss": 0.01293182373046875,
59
+ "step": 7
60
+ },
61
+ {
62
+ "epoch": 0.38095238095238093,
63
+ "grad_norm": 0.5783997774124146,
64
+ "learning_rate": 1.9238795325112867e-05,
65
+ "loss": 0.014629602432250977,
66
+ "step": 8
67
+ },
68
+ {
69
+ "epoch": 0.42857142857142855,
70
+ "grad_norm": 1.6899631023406982,
71
+ "learning_rate": 1.891006524188368e-05,
72
+ "loss": 0.06396055221557617,
73
+ "step": 9
74
+ },
75
+ {
76
+ "epoch": 0.47619047619047616,
77
+ "grad_norm": 0.3979983925819397,
78
+ "learning_rate": 1.8526401643540924e-05,
79
+ "loss": 0.008209466934204102,
80
+ "step": 10
81
+ },
82
+ {
83
+ "epoch": 0.5238095238095238,
84
+ "grad_norm": 0.0637783631682396,
85
+ "learning_rate": 1.8090169943749477e-05,
86
+ "loss": 0.0006958246231079102,
87
+ "step": 11
88
+ },
89
+ {
90
+ "epoch": 0.5714285714285714,
91
+ "grad_norm": 0.13175135850906372,
92
+ "learning_rate": 1.7604059656000313e-05,
93
+ "loss": 0.0011801719665527344,
94
+ "step": 12
95
+ },
96
+ {
97
+ "epoch": 0.6190476190476191,
98
+ "grad_norm": 0.011455911211669445,
99
+ "learning_rate": 1.7071067811865477e-05,
100
+ "loss": 0.00015878677368164062,
101
+ "step": 13
102
+ },
103
+ {
104
+ "epoch": 0.6666666666666666,
105
+ "grad_norm": 0.12485766410827637,
106
+ "learning_rate": 1.6494480483301836e-05,
107
+ "loss": 0.0008103847503662109,
108
+ "step": 14
109
+ },
110
+ {
111
+ "epoch": 0.7142857142857143,
112
+ "grad_norm": 0.12716327607631683,
113
+ "learning_rate": 1.5877852522924733e-05,
114
+ "loss": 0.00037485361099243164,
115
+ "step": 15
116
+ },
117
+ {
118
+ "epoch": 0.7619047619047619,
119
+ "grad_norm": 0.04271292686462402,
120
+ "learning_rate": 1.5224985647159489e-05,
121
+ "loss": 0.00014823675155639648,
122
+ "step": 16
123
+ },
124
+ {
125
+ "epoch": 0.8095238095238095,
126
+ "grad_norm": 0.002919307444244623,
127
+ "learning_rate": 1.4539904997395468e-05,
128
+ "loss": 3.185868263244629e-05,
129
+ "step": 17
130
+ },
131
+ {
132
+ "epoch": 0.8571428571428571,
133
+ "grad_norm": 0.002753989305347204,
134
+ "learning_rate": 1.3826834323650899e-05,
135
+ "loss": 2.615898847579956e-05,
136
+ "step": 18
137
+ },
138
+ {
139
+ "epoch": 0.9047619047619048,
140
+ "grad_norm": 0.001033108215779066,
141
+ "learning_rate": 1.3090169943749475e-05,
142
+ "loss": 1.206621527671814e-05,
143
+ "step": 19
144
+ },
145
+ {
146
+ "epoch": 0.9523809523809523,
147
+ "grad_norm": 0.0005846500862389803,
148
+ "learning_rate": 1.2334453638559057e-05,
149
+ "loss": 6.798654794692993e-06,
150
+ "step": 20
151
+ },
152
+ {
153
+ "epoch": 1.0,
154
+ "grad_norm": 0.0008992070215754211,
155
+ "learning_rate": 1.156434465040231e-05,
156
+ "loss": 5.805864930152893e-06,
157
+ "step": 21
158
+ },
159
+ {
160
+ "epoch": 1.0476190476190477,
161
+ "grad_norm": 0.05685019865632057,
162
+ "learning_rate": 1.0784590957278452e-05,
163
+ "loss": 3.328360617160797e-05,
164
+ "step": 22
165
+ },
166
+ {
167
+ "epoch": 1.0952380952380953,
168
+ "grad_norm": 0.00029074482154101133,
169
+ "learning_rate": 1e-05,
170
+ "loss": 3.2186508178710938e-06,
171
+ "step": 23
172
+ },
173
+ {
174
+ "epoch": 1.1428571428571428,
175
+ "grad_norm": 0.00023805619275663048,
176
+ "learning_rate": 9.215409042721553e-06,
177
+ "loss": 2.5387853384017944e-06,
178
+ "step": 24
179
+ },
180
+ {
181
+ "epoch": 1.1904761904761905,
182
+ "grad_norm": 0.00020354906155262142,
183
+ "learning_rate": 8.43565534959769e-06,
184
+ "loss": 2.168118953704834e-06,
185
+ "step": 25
186
+ },
187
+ {
188
+ "epoch": 1.2380952380952381,
189
+ "grad_norm": 0.00018667436961550266,
190
+ "learning_rate": 7.66554636144095e-06,
191
+ "loss": 1.8654391169548035e-06,
192
+ "step": 26
193
+ },
194
+ {
195
+ "epoch": 1.2857142857142856,
196
+ "grad_norm": 0.0002049042086582631,
197
+ "learning_rate": 6.909830056250527e-06,
198
+ "loss": 1.7122365534305573e-06,
199
+ "step": 27
200
+ },
201
+ {
202
+ "epoch": 1.3333333333333333,
203
+ "grad_norm": 0.00022315711248666048,
204
+ "learning_rate": 6.173165676349103e-06,
205
+ "loss": 1.5241093933582306e-06,
206
+ "step": 28
207
+ },
208
+ {
209
+ "epoch": 1.380952380952381,
210
+ "grad_norm": 0.0003041290328837931,
211
+ "learning_rate": 5.460095002604533e-06,
212
+ "loss": 1.6470439732074738e-06,
213
+ "step": 29
214
+ },
215
+ {
216
+ "epoch": 1.4285714285714286,
217
+ "grad_norm": 0.00016396494174841791,
218
+ "learning_rate": 4.775014352840512e-06,
219
+ "loss": 1.1832453310489655e-06,
220
+ "step": 30
221
+ },
222
+ {
223
+ "epoch": 1.4761904761904763,
224
+ "grad_norm": 0.0001579165254952386,
225
+ "learning_rate": 4.12214747707527e-06,
226
+ "loss": 1.1129304766654968e-06,
227
+ "step": 31
228
+ },
229
+ {
230
+ "epoch": 1.5238095238095237,
231
+ "grad_norm": 0.00019100404460914433,
232
+ "learning_rate": 3.505519516698165e-06,
233
+ "loss": 1.2391246855258942e-06,
234
+ "step": 32
235
+ },
236
+ {
237
+ "epoch": 1.5714285714285714,
238
+ "grad_norm": 0.00013436953304335475,
239
+ "learning_rate": 2.9289321881345257e-06,
240
+ "loss": 8.186325430870056e-07,
241
+ "step": 33
242
+ },
243
+ {
244
+ "epoch": 1.619047619047619,
245
+ "grad_norm": 0.00022180927044246346,
246
+ "learning_rate": 2.395940343999691e-06,
247
+ "loss": 1.2652017176151276e-06,
248
+ "step": 34
249
+ },
250
+ {
251
+ "epoch": 1.6666666666666665,
252
+ "grad_norm": 0.00019024789799004793,
253
+ "learning_rate": 1.9098300562505266e-06,
254
+ "loss": 1.1809170246124268e-06,
255
+ "step": 35
256
+ },
257
+ {
258
+ "epoch": 1.7142857142857144,
259
+ "grad_norm": 0.00012156926823081449,
260
+ "learning_rate": 1.4735983564590784e-06,
261
+ "loss": 1.014210283756256e-06,
262
+ "step": 36
263
+ },
264
+ {
265
+ "epoch": 1.7619047619047619,
266
+ "grad_norm": 7.935774920042604e-05,
267
+ "learning_rate": 1.0899347581163222e-06,
268
+ "loss": 7.713679224252701e-07,
269
+ "step": 37
270
+ },
271
+ {
272
+ "epoch": 1.8095238095238095,
273
+ "grad_norm": 9.113451960729435e-05,
274
+ "learning_rate": 7.612046748871327e-07,
275
+ "loss": 7.948838174343109e-07,
276
+ "step": 38
277
+ },
278
+ {
279
+ "epoch": 1.8571428571428572,
280
+ "grad_norm": 5.623677498078905e-05,
281
+ "learning_rate": 4.894348370484648e-07,
282
+ "loss": 6.102491170167923e-07,
283
+ "step": 39
284
+ },
285
+ {
286
+ "epoch": 1.9047619047619047,
287
+ "grad_norm": 0.00010863965144380927,
288
+ "learning_rate": 2.7630079602323447e-07,
289
+ "loss": 9.057112038135529e-07,
290
+ "step": 40
291
+ },
292
+ {
293
+ "epoch": 1.9523809523809523,
294
+ "grad_norm": 0.00014761276543140411,
295
+ "learning_rate": 1.231165940486234e-07,
296
+ "loss": 9.157229214906693e-07,
297
+ "step": 41
298
+ },
299
+ {
300
+ "epoch": 2.0,
301
+ "grad_norm": 0.00011822830856544897,
302
+ "learning_rate": 3.082666266872036e-08,
303
+ "loss": 8.761417120695114e-07,
304
+ "step": 42
305
+ },
306
+ {
307
+ "epoch": 2.0,
308
+ "eval_loss": 6.875,
309
+ "eval_runtime": 0.2326,
310
+ "eval_samples_per_second": 4.299,
311
+ "eval_steps_per_second": 4.299,
312
+ "step": 42
313
+ }
314
+ ],
315
+ "logging_steps": 1.0,
316
+ "max_steps": 42,
317
+ "num_input_tokens_seen": 0,
318
+ "num_train_epochs": 2,
319
+ "save_steps": 0,
320
+ "stateful_callbacks": {
321
+ "TrainerControl": {
322
+ "args": {
323
+ "should_epoch_stop": false,
324
+ "should_evaluate": false,
325
+ "should_log": false,
326
+ "should_save": true,
327
+ "should_training_stop": true
328
+ },
329
+ "attributes": {}
330
+ }
331
+ },
332
+ "total_flos": 3.0156758748810445e+17,
333
+ "train_batch_size": 1,
334
+ "trial_name": null,
335
+ "trial_params": null
336
+ }