sidbaines commited on
Commit
bcd9c0a
·
verified ·
1 Parent(s): b7b2b9c

4b scale-up control SFT checkpoint 12

Browse files
.gitattributes CHANGED
@@ -64,3 +64,4 @@ sft_4epoch/coin/checkpoint-24/tokenizer.json filter=lfs diff=lfs merge=lfs -text
64
  sft_4epoch/coin/checkpoint-36/tokenizer.json filter=lfs diff=lfs merge=lfs -text
65
  sft_4epoch/coin/checkpoint-48/tokenizer.json filter=lfs diff=lfs merge=lfs -text
66
  sft_4epoch/control/checkpoint-4/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
64
  sft_4epoch/coin/checkpoint-36/tokenizer.json filter=lfs diff=lfs merge=lfs -text
65
  sft_4epoch/coin/checkpoint-48/tokenizer.json filter=lfs diff=lfs merge=lfs -text
66
  sft_4epoch/control/checkpoint-4/tokenizer.json filter=lfs diff=lfs merge=lfs -text
67
+ sft_4epoch/control/checkpoint-12/tokenizer.json filter=lfs diff=lfs merge=lfs -text
sft_4epoch/control/checkpoint-12/chat_template.jinja ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{ bos_token }}
2
+ {%- if messages[0]['role'] == 'system' -%}
3
+ {%- if messages[0]['content'] is string -%}
4
+ {%- set first_user_prefix = messages[0]['content'] + '
5
+
6
+ ' -%}
7
+ {%- else -%}
8
+ {%- set first_user_prefix = messages[0]['content'][0]['text'] + '
9
+
10
+ ' -%}
11
+ {%- endif -%}
12
+ {%- set loop_messages = messages[1:] -%}
13
+ {%- else -%}
14
+ {%- set first_user_prefix = "" -%}
15
+ {%- set loop_messages = messages -%}
16
+ {%- endif -%}
17
+ {%- for message in loop_messages -%}
18
+ {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
19
+ {{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
20
+ {%- endif -%}
21
+ {%- if (message['role'] == 'assistant') -%}
22
+ {%- set role = "model" -%}
23
+ {%- else -%}
24
+ {%- set role = message['role'] -%}
25
+ {%- endif -%}
26
+ {{ '<start_of_turn>' + role + '
27
+ ' + (first_user_prefix if loop.first else "") }}
28
+ {%- if message['content'] is string -%}
29
+ {{ message['content'] | trim }}
30
+ {%- elif message['content'] is iterable -%}
31
+ {%- for item in message['content'] -%}
32
+ {%- if item['type'] == 'image' -%}
33
+ {{ '<start_of_image>' }}
34
+ {%- elif item['type'] == 'text' -%}
35
+ {{ item['text'] | trim }}
36
+ {%- endif -%}
37
+ {%- endfor -%}
38
+ {%- else -%}
39
+ {{ raise_exception("Invalid content type") }}
40
+ {%- endif -%}
41
+ {{ '<end_of_turn>
42
+ ' }}
43
+ {%- endfor -%}
44
+ {%- if add_generation_prompt -%}
45
+ {{'<start_of_turn>model
46
+ '}}
47
+ {%- endif -%}
sft_4epoch/control/checkpoint-12/config.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma3ForConditionalGeneration"
4
+ ],
5
+ "boi_token_index": 255999,
6
+ "bos_token_id": 2,
7
+ "dtype": "bfloat16",
8
+ "eoi_token_index": 256000,
9
+ "eos_token_id": 1,
10
+ "image_token_index": 262144,
11
+ "initializer_range": 0.02,
12
+ "mm_tokens_per_image": 256,
13
+ "model_type": "gemma3",
14
+ "pad_token_id": 0,
15
+ "text_config": {
16
+ "_sliding_window_pattern": 6,
17
+ "attention_bias": false,
18
+ "attention_dropout": 0.0,
19
+ "attn_logit_softcapping": null,
20
+ "bos_token_id": 2,
21
+ "cache_implementation": "hybrid",
22
+ "dtype": "bfloat16",
23
+ "eos_token_id": 1,
24
+ "final_logit_softcapping": null,
25
+ "head_dim": 256,
26
+ "hidden_activation": "gelu_pytorch_tanh",
27
+ "hidden_size": 2560,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 10240,
30
+ "layer_types": [
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
+ ],
66
+ "max_position_embeddings": 131072,
67
+ "model_type": "gemma3_text",
68
+ "num_attention_heads": 8,
69
+ "num_hidden_layers": 34,
70
+ "num_key_value_heads": 4,
71
+ "pad_token_id": 0,
72
+ "query_pre_attn_scalar": 256,
73
+ "rms_norm_eps": 1e-06,
74
+ "rope_parameters": {
75
+ "full_attention": {
76
+ "factor": 8.0,
77
+ "rope_theta": 1000000.0,
78
+ "rope_type": "linear"
79
+ },
80
+ "sliding_attention": {
81
+ "rope_theta": 10000.0,
82
+ "rope_type": "default"
83
+ }
84
+ },
85
+ "sliding_window": 1024,
86
+ "sliding_window_pattern": 6,
87
+ "tie_word_embeddings": true,
88
+ "use_bidirectional_attention": false,
89
+ "use_cache": false,
90
+ "vocab_size": 262208
91
+ },
92
+ "tie_word_embeddings": true,
93
+ "transformers_version": "5.9.0",
94
+ "unsloth_fixed": true,
95
+ "use_cache": false,
96
+ "vision_config": {
97
+ "attention_dropout": 0.0,
98
+ "dtype": "bfloat16",
99
+ "hidden_act": "gelu_pytorch_tanh",
100
+ "hidden_size": 1152,
101
+ "image_size": 896,
102
+ "intermediate_size": 4304,
103
+ "layer_norm_eps": 1e-06,
104
+ "model_type": "siglip_vision_model",
105
+ "num_attention_heads": 16,
106
+ "num_channels": 3,
107
+ "num_hidden_layers": 27,
108
+ "patch_size": 14,
109
+ "vision_use_head": false
110
+ }
111
+ }
sft_4epoch/control/checkpoint-12/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.9.0"
13
+ }
sft_4epoch/control/checkpoint-12/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:093f5cafdf49e0f4173cf76976fb10368b15f9b2fe26de86ef939843b7a50368
3
+ size 9942783064
sft_4epoch/control/checkpoint-12/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fefb329a034d9b4eb6386d4852a1d8b8be623a87bc786463946d014a0d725aa5
3
+ size 15521485995
sft_4epoch/control/checkpoint-12/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
+ }
sft_4epoch/control/checkpoint-12/processor_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "image_seq_length": 256,
3
+ "processor_class": "Gemma3Processor"
4
+ }
sft_4epoch/control/checkpoint-12/pytorch_model_fsdp.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31580979e72c0e3987936c53b75a7c624e20823119ea8f7957db412c8824eaa1
3
+ size 9942970813
sft_4epoch/control/checkpoint-12/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6ae654ed628e46a69a3185a2008a760ecb6fa76a6ed8ea36091fbf51572a9dc
3
+ size 14917
sft_4epoch/control/checkpoint-12/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aca90864f21237f3b2ef7719c284655f031e849a610ff91881a6d9e258037405
3
+ size 14917
sft_4epoch/control/checkpoint-12/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6220224d7693bbb6064e5a896fe2236a351c8f6ee5c2a190bb15e9209803192c
3
+ size 1465
sft_4epoch/control/checkpoint-12/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daab2354f8a74e70d70b4d1f804939b68a8c9624dd06cb7858e52dd8970e9726
3
+ size 33384567
sft_4epoch/control/checkpoint-12/tokenizer_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "boi_token": "<start_of_image>",
4
+ "bos_token": "<bos>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eoi_token": "<end_of_image>",
7
+ "eos_token": "<eos>",
8
+ "image_token": "<image_soft_token>",
9
+ "is_local": true,
10
+ "local_files_only": false,
11
+ "mask_token": "<mask>",
12
+ "model_max_length": 131072,
13
+ "model_specific_special_tokens": {
14
+ "boi_token": "<start_of_image>",
15
+ "eoi_token": "<end_of_image>",
16
+ "image_token": "<image_soft_token>"
17
+ },
18
+ "pad_token": "<pad>",
19
+ "padding_side": "left",
20
+ "processor_class": "Gemma3Processor",
21
+ "sp_model_kwargs": null,
22
+ "spaces_between_special_tokens": false,
23
+ "tokenizer_class": "GemmaTokenizer",
24
+ "unk_token": "<unk>",
25
+ "use_default_system_prompt": false
26
+ }
sft_4epoch/control/checkpoint-12/tokens_state.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"total": 25165824, "trainable": 15735257}
sft_4epoch/control/checkpoint-12/trainer_state.json ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.021333333333333333,
6
+ "eval_steps": 500,
7
+ "global_step": 12,
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.0017777777777777779,
14
+ "grad_norm": 2.875,
15
+ "learning_rate": 0.0,
16
+ "loss": 1.09912109375,
17
+ "memory/device_reserved (GiB)": 40.7,
18
+ "memory/max_active (GiB)": 34.07,
19
+ "memory/max_allocated (GiB)": 34.07,
20
+ "ppl": 3.00153,
21
+ "step": 1,
22
+ "tokens/total": 2097152,
23
+ "tokens/train_per_sec_per_gpu": 631.15,
24
+ "tokens/trainable": 1319329
25
+ },
26
+ {
27
+ "epoch": 0.0035555555555555557,
28
+ "grad_norm": 2.890625,
29
+ "learning_rate": 3.3333333333333333e-06,
30
+ "loss": 1.0859375,
31
+ "memory/device_reserved (GiB)": 47.77,
32
+ "memory/max_active (GiB)": 41.3,
33
+ "memory/max_allocated (GiB)": 41.3,
34
+ "ppl": 2.96222,
35
+ "step": 2,
36
+ "tokens/total": 4194304,
37
+ "tokens/train_per_sec_per_gpu": 616.0,
38
+ "tokens/trainable": 2628278
39
+ },
40
+ {
41
+ "epoch": 0.005333333333333333,
42
+ "grad_norm": 2.578125,
43
+ "learning_rate": 6.666666666666667e-06,
44
+ "loss": 1.0758056640625,
45
+ "memory/device_reserved (GiB)": 47.77,
46
+ "memory/max_active (GiB)": 41.3,
47
+ "memory/max_allocated (GiB)": 41.3,
48
+ "ppl": 2.93235,
49
+ "step": 3,
50
+ "tokens/total": 6291456,
51
+ "tokens/train_per_sec_per_gpu": 655.05,
52
+ "tokens/trainable": 3948806
53
+ },
54
+ {
55
+ "epoch": 0.0071111111111111115,
56
+ "grad_norm": 1.71875,
57
+ "learning_rate": 1e-05,
58
+ "loss": 1.0162353515625,
59
+ "memory/device_reserved (GiB)": 47.77,
60
+ "memory/max_active (GiB)": 41.3,
61
+ "memory/max_allocated (GiB)": 41.3,
62
+ "ppl": 2.76277,
63
+ "step": 4,
64
+ "tokens/total": 8388608,
65
+ "tokens/train_per_sec_per_gpu": 598.59,
66
+ "tokens/trainable": 5229996
67
+ },
68
+ {
69
+ "epoch": 0.008888888888888889,
70
+ "grad_norm": 2.203125,
71
+ "learning_rate": 9.98903822616921e-06,
72
+ "loss": 1.031494140625,
73
+ "memory/device_reserved (GiB)": 47.8,
74
+ "memory/max_active (GiB)": 41.3,
75
+ "memory/max_allocated (GiB)": 41.3,
76
+ "ppl": 2.80525,
77
+ "step": 5,
78
+ "tokens/total": 10485760,
79
+ "tokens/train_per_sec_per_gpu": 684.59,
80
+ "tokens/trainable": 6541073
81
+ },
82
+ {
83
+ "epoch": 0.010666666666666666,
84
+ "grad_norm": 1.84375,
85
+ "learning_rate": 9.956206309337067e-06,
86
+ "loss": 1.009765625,
87
+ "memory/device_reserved (GiB)": 47.82,
88
+ "memory/max_active (GiB)": 41.3,
89
+ "memory/max_allocated (GiB)": 41.3,
90
+ "ppl": 2.74496,
91
+ "step": 6,
92
+ "tokens/total": 12582912,
93
+ "tokens/train_per_sec_per_gpu": 634.42,
94
+ "tokens/trainable": 7870413
95
+ },
96
+ {
97
+ "epoch": 0.012444444444444444,
98
+ "grad_norm": 1.234375,
99
+ "learning_rate": 9.901664203302126e-06,
100
+ "loss": 0.948486328125,
101
+ "memory/device_reserved (GiB)": 47.82,
102
+ "memory/max_active (GiB)": 41.3,
103
+ "memory/max_allocated (GiB)": 41.3,
104
+ "ppl": 2.5818,
105
+ "step": 7,
106
+ "tokens/total": 14680064,
107
+ "tokens/train_per_sec_per_gpu": 634.71,
108
+ "tokens/trainable": 9189777
109
+ },
110
+ {
111
+ "epoch": 0.014222222222222223,
112
+ "grad_norm": 1.0,
113
+ "learning_rate": 9.825677631722436e-06,
114
+ "loss": 0.9532470703125,
115
+ "memory/device_reserved (GiB)": 47.82,
116
+ "memory/max_active (GiB)": 41.3,
117
+ "memory/max_allocated (GiB)": 41.3,
118
+ "ppl": 2.59412,
119
+ "step": 8,
120
+ "tokens/total": 16777216,
121
+ "tokens/train_per_sec_per_gpu": 619.22,
122
+ "tokens/trainable": 10479490
123
+ },
124
+ {
125
+ "epoch": 0.016,
126
+ "grad_norm": 0.8359375,
127
+ "learning_rate": 9.728616793536588e-06,
128
+ "loss": 0.944091796875,
129
+ "memory/device_reserved (GiB)": 47.82,
130
+ "memory/max_active (GiB)": 41.3,
131
+ "memory/max_allocated (GiB)": 41.3,
132
+ "ppl": 2.57048,
133
+ "step": 9,
134
+ "tokens/total": 18874368,
135
+ "tokens/train_per_sec_per_gpu": 652.49,
136
+ "tokens/trainable": 11784999
137
+ },
138
+ {
139
+ "epoch": 0.017777777777777778,
140
+ "grad_norm": 0.74609375,
141
+ "learning_rate": 9.610954559391704e-06,
142
+ "loss": 0.956298828125,
143
+ "memory/device_reserved (GiB)": 47.82,
144
+ "memory/max_active (GiB)": 41.3,
145
+ "memory/max_allocated (GiB)": 41.3,
146
+ "ppl": 2.60205,
147
+ "step": 10,
148
+ "tokens/total": 20971520,
149
+ "tokens/train_per_sec_per_gpu": 600.6,
150
+ "tokens/trainable": 13094236
151
+ },
152
+ {
153
+ "epoch": 0.019555555555555555,
154
+ "grad_norm": 0.7890625,
155
+ "learning_rate": 9.473264167865172e-06,
156
+ "loss": 0.9410400390625,
157
+ "memory/device_reserved (GiB)": 47.82,
158
+ "memory/max_active (GiB)": 41.3,
159
+ "memory/max_allocated (GiB)": 41.3,
160
+ "ppl": 2.56265,
161
+ "step": 11,
162
+ "tokens/total": 23068672,
163
+ "tokens/train_per_sec_per_gpu": 610.15,
164
+ "tokens/trainable": 14404718
165
+ },
166
+ {
167
+ "epoch": 0.021333333333333333,
168
+ "grad_norm": 0.58203125,
169
+ "learning_rate": 9.316216432703918e-06,
170
+ "loss": 0.8973388671875,
171
+ "memory/device_reserved (GiB)": 47.82,
172
+ "memory/max_active (GiB)": 41.3,
173
+ "memory/max_allocated (GiB)": 41.3,
174
+ "ppl": 2.45307,
175
+ "step": 12,
176
+ "tokens/total": 25165824,
177
+ "tokens/train_per_sec_per_gpu": 667.59,
178
+ "tokens/trainable": 15735257
179
+ }
180
+ ],
181
+ "logging_steps": 1,
182
+ "max_steps": 48,
183
+ "num_input_tokens_seen": 0,
184
+ "num_train_epochs": 1,
185
+ "save_steps": 500,
186
+ "stateful_callbacks": {
187
+ "TrainerControl": {
188
+ "args": {
189
+ "should_epoch_stop": false,
190
+ "should_evaluate": false,
191
+ "should_log": false,
192
+ "should_save": true,
193
+ "should_training_stop": false
194
+ },
195
+ "attributes": {}
196
+ }
197
+ },
198
+ "total_flos": 5.4722204088139776e+17,
199
+ "train_batch_size": 8,
200
+ "trial_name": null,
201
+ "trial_params": null
202
+ }
sft_4epoch/control/checkpoint-12/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86036685f74c9b56ba03469e3541a7e7b5fb88833612f5f84a8c12343ddc38b4
3
+ size 8913