Surgan commited on
Commit
092db38
·
verified ·
1 Parent(s): 7d1b1fe

Training in progress, step 10

Browse files
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<end_of_utterance>": 49154,
3
+ "<fake_token_around_image>": 49152,
4
+ "<image>": 49153
5
+ }
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "<|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}"
3
+ }
config.json ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "HuggingFaceTB/SmolVLM-Instruct",
3
+ "architectures": [
4
+ "Idefics3ForConditionalGeneration"
5
+ ],
6
+ "image_seq_len": 81,
7
+ "image_token_id": 49153,
8
+ "model_type": "idefics3",
9
+ "scale_factor": 3,
10
+ "text_config": {
11
+ "_attn_implementation_autoset": false,
12
+ "_flash_attn_2_enabled": true,
13
+ "_name_or_path": "/fsx/m4/experiments/local_experiment_dir/s3_async_temporary_checkpoint_folder/tr_324_opt_400/unwrapped_model",
14
+ "add_cross_attention": false,
15
+ "architectures": [
16
+ "VLlama3ForCausalLM"
17
+ ],
18
+ "attention_bias": false,
19
+ "attention_dropout": 0.0,
20
+ "bad_words_ids": null,
21
+ "begin_suppress_tokens": null,
22
+ "bos_token_id": 0,
23
+ "chunk_size_feed_forward": 0,
24
+ "cross_attention_hidden_size": null,
25
+ "decoder_start_token_id": null,
26
+ "diversity_penalty": 0.0,
27
+ "do_sample": false,
28
+ "early_stopping": false,
29
+ "encoder_no_repeat_ngram_size": 0,
30
+ "eos_token_id": 0,
31
+ "exponential_decay_length_penalty": null,
32
+ "finetuning_task": null,
33
+ "forced_bos_token_id": null,
34
+ "forced_eos_token_id": null,
35
+ "head_dim": 64,
36
+ "hidden_act": "silu",
37
+ "hidden_size": 2048,
38
+ "id2label": {
39
+ "0": "LABEL_0",
40
+ "1": "LABEL_1"
41
+ },
42
+ "initializer_range": 0.02,
43
+ "intermediate_size": 8192,
44
+ "is_decoder": false,
45
+ "is_encoder_decoder": false,
46
+ "label2id": {
47
+ "LABEL_0": 0,
48
+ "LABEL_1": 1
49
+ },
50
+ "length_penalty": 1.0,
51
+ "max_length": 20,
52
+ "max_position_embeddings": 16384,
53
+ "min_length": 0,
54
+ "mlp_bias": false,
55
+ "model_type": "llama",
56
+ "neftune_noise_alpha": 0.0,
57
+ "no_repeat_ngram_size": 0,
58
+ "num_attention_heads": 32,
59
+ "num_beam_groups": 1,
60
+ "num_beams": 1,
61
+ "num_hidden_layers": 24,
62
+ "num_key_value_heads": 32,
63
+ "num_return_sequences": 1,
64
+ "output_attentions": false,
65
+ "output_hidden_states": false,
66
+ "output_scores": false,
67
+ "pad_token_id": 2,
68
+ "perceiver_config": {
69
+ "_attn_implementation_autoset": false,
70
+ "_name_or_path": "",
71
+ "add_cross_attention": false,
72
+ "architectures": null,
73
+ "attention_dropout": 0.0,
74
+ "bad_words_ids": null,
75
+ "begin_suppress_tokens": null,
76
+ "bos_token_id": null,
77
+ "chunk_size_feed_forward": 0,
78
+ "cross_attention_hidden_size": null,
79
+ "decoder_start_token_id": null,
80
+ "diversity_penalty": 0.0,
81
+ "do_sample": false,
82
+ "early_stopping": false,
83
+ "encoder_no_repeat_ngram_size": 0,
84
+ "eos_token_id": null,
85
+ "exponential_decay_length_penalty": null,
86
+ "finetuning_task": null,
87
+ "forced_bos_token_id": null,
88
+ "forced_eos_token_id": null,
89
+ "hidden_act": "silu",
90
+ "id2label": {
91
+ "0": "LABEL_0",
92
+ "1": "LABEL_1"
93
+ },
94
+ "is_decoder": false,
95
+ "is_encoder_decoder": false,
96
+ "label2id": {
97
+ "LABEL_0": 0,
98
+ "LABEL_1": 1
99
+ },
100
+ "length_penalty": 1.0,
101
+ "max_length": 20,
102
+ "min_length": 0,
103
+ "model_type": "vllama3",
104
+ "no_repeat_ngram_size": 0,
105
+ "num_beam_groups": 1,
106
+ "num_beams": 1,
107
+ "num_key_value_heads": 1,
108
+ "num_return_sequences": 1,
109
+ "output_attentions": false,
110
+ "output_hidden_states": false,
111
+ "output_scores": false,
112
+ "pad_token_id": null,
113
+ "prefix": null,
114
+ "problem_type": null,
115
+ "pruned_heads": {},
116
+ "qk_layer_norms_perceiver": false,
117
+ "remove_invalid_values": false,
118
+ "repetition_penalty": 1.0,
119
+ "resampler_depth": 6,
120
+ "resampler_head_dim": 96,
121
+ "resampler_n_heads": 16,
122
+ "resampler_n_latents": 64,
123
+ "return_dict": true,
124
+ "return_dict_in_generate": false,
125
+ "sep_token_id": null,
126
+ "suppress_tokens": null,
127
+ "task_specific_params": null,
128
+ "temperature": 1.0,
129
+ "tf_legacy_loss": false,
130
+ "tie_encoder_decoder": false,
131
+ "tie_word_embeddings": true,
132
+ "tokenizer_class": null,
133
+ "top_k": 50,
134
+ "top_p": 1.0,
135
+ "torch_dtype": null,
136
+ "torchscript": false,
137
+ "transformers_version": "4.46.0",
138
+ "typical_p": 1.0,
139
+ "use_bfloat16": false
140
+ },
141
+ "prefix": null,
142
+ "pretraining_tp": 1,
143
+ "problem_type": null,
144
+ "pruned_heads": {},
145
+ "qk_layer_norms": false,
146
+ "remove_invalid_values": false,
147
+ "repetition_penalty": 1.0,
148
+ "return_dict": true,
149
+ "return_dict_in_generate": false,
150
+ "rms_norm_eps": 1e-05,
151
+ "rope_scaling": null,
152
+ "rope_theta": 273768.0,
153
+ "sep_token_id": null,
154
+ "suppress_tokens": null,
155
+ "task_specific_params": null,
156
+ "temperature": 1.0,
157
+ "tf_legacy_loss": false,
158
+ "tie_encoder_decoder": false,
159
+ "tie_word_embeddings": false,
160
+ "tokenizer_class": null,
161
+ "top_k": 50,
162
+ "top_p": 1.0,
163
+ "torch_dtype": "bfloat16",
164
+ "torchscript": false,
165
+ "typical_p": 1.0,
166
+ "use_bfloat16": false,
167
+ "use_cache": true,
168
+ "use_resampler": false,
169
+ "vocab_size": 49155
170
+ },
171
+ "tie_word_embeddings": false,
172
+ "torch_dtype": "bfloat16",
173
+ "transformers.js_config": {
174
+ "dtype": {
175
+ "decoder_model_merged": "q4",
176
+ "embed_tokens": "auto",
177
+ "vision_encoder": "auto"
178
+ },
179
+ "kv_cache_dtype": {
180
+ "fp16": "float16",
181
+ "q4f16": "float16"
182
+ }
183
+ },
184
+ "transformers_version": "4.46.1",
185
+ "use_cache": true,
186
+ "vision_config": {
187
+ "_attn_implementation_autoset": false,
188
+ "_name_or_path": "",
189
+ "add_cross_attention": false,
190
+ "architectures": null,
191
+ "attention_dropout": 0.0,
192
+ "bad_words_ids": null,
193
+ "begin_suppress_tokens": null,
194
+ "bos_token_id": null,
195
+ "chunk_size_feed_forward": 0,
196
+ "cross_attention_hidden_size": null,
197
+ "decoder_start_token_id": null,
198
+ "diversity_penalty": 0.0,
199
+ "do_sample": false,
200
+ "early_stopping": false,
201
+ "encoder_no_repeat_ngram_size": 0,
202
+ "eos_token_id": null,
203
+ "exponential_decay_length_penalty": null,
204
+ "finetuning_task": null,
205
+ "forced_bos_token_id": null,
206
+ "forced_eos_token_id": null,
207
+ "hidden_act": "gelu_pytorch_tanh",
208
+ "hidden_size": 1152,
209
+ "id2label": {
210
+ "0": "LABEL_0",
211
+ "1": "LABEL_1"
212
+ },
213
+ "image_size": 384,
214
+ "initializer_range": 0.02,
215
+ "intermediate_size": 4304,
216
+ "is_decoder": false,
217
+ "is_encoder_decoder": false,
218
+ "label2id": {
219
+ "LABEL_0": 0,
220
+ "LABEL_1": 1
221
+ },
222
+ "layer_norm_eps": 1e-06,
223
+ "length_penalty": 1.0,
224
+ "max_image_size": {
225
+ "longest_edge": 384
226
+ },
227
+ "max_length": 20,
228
+ "min_length": 0,
229
+ "model_type": "idefics3",
230
+ "no_repeat_ngram_size": 0,
231
+ "num_attention_heads": 16,
232
+ "num_beam_groups": 1,
233
+ "num_beams": 1,
234
+ "num_channels": 3,
235
+ "num_hidden_layers": 27,
236
+ "num_return_sequences": 1,
237
+ "output_attentions": false,
238
+ "output_hidden_states": false,
239
+ "output_scores": false,
240
+ "pad_token_id": null,
241
+ "patch_size": 14,
242
+ "prefix": null,
243
+ "problem_type": null,
244
+ "pruned_heads": {},
245
+ "remove_invalid_values": false,
246
+ "repetition_penalty": 1.0,
247
+ "return_dict": true,
248
+ "return_dict_in_generate": false,
249
+ "sep_token_id": null,
250
+ "size": {
251
+ "longest_edge": 1920
252
+ },
253
+ "suppress_tokens": null,
254
+ "task_specific_params": null,
255
+ "temperature": 1.0,
256
+ "tf_legacy_loss": false,
257
+ "tie_encoder_decoder": false,
258
+ "tie_word_embeddings": false,
259
+ "tokenizer_class": null,
260
+ "top_k": 50,
261
+ "top_p": 1.0,
262
+ "torch_dtype": null,
263
+ "torchscript": false,
264
+ "typical_p": 1.0,
265
+ "use_bfloat16": false
266
+ },
267
+ "vocab_size": 49155
268
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03eb0f44fb95260bff6caf92375fe27232ac44716ec881c634aa7e933496f078
3
+ size 4492630912
preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_image_splitting": true,
4
+ "do_normalize": true,
5
+ "do_pad": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "Idefics3ImageProcessor",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "max_image_size": {
20
+ "longest_edge": 384
21
+ },
22
+ "processor_class": "Idefics3Processor",
23
+ "resample": 1,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "longest_edge": 1536
27
+ }
28
+ }
processor_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "image_seq_len": 81,
3
+ "processor_class": "Idefics3Processor"
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "<fake_token_around_image>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "<image>",
12
+ "lstrip": false,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ {
18
+ "content": "<end_of_utterance>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ ],
25
+ "bos_token": {
26
+ "content": "<|im_start|>",
27
+ "lstrip": false,
28
+ "normalized": false,
29
+ "rstrip": false,
30
+ "single_word": false
31
+ },
32
+ "eos_token": {
33
+ "content": "<end_of_utterance>",
34
+ "lstrip": false,
35
+ "normalized": false,
36
+ "rstrip": false,
37
+ "single_word": false
38
+ },
39
+ "pad_token": {
40
+ "content": "<|im_end|>",
41
+ "lstrip": false,
42
+ "normalized": false,
43
+ "rstrip": false,
44
+ "single_word": false
45
+ },
46
+ "unk_token": {
47
+ "content": "<|endoftext|>",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false
52
+ }
53
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<repo_name>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": "<reponame>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "5": {
45
+ "content": "<file_sep>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "6": {
53
+ "content": "<filename>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "7": {
61
+ "content": "<gh_stars>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "8": {
69
+ "content": "<issue_start>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "9": {
77
+ "content": "<issue_comment>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "10": {
85
+ "content": "<issue_closed>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "11": {
93
+ "content": "<jupyter_start>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "12": {
101
+ "content": "<jupyter_text>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "13": {
109
+ "content": "<jupyter_code>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "14": {
117
+ "content": "<jupyter_output>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "15": {
125
+ "content": "<jupyter_script>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "16": {
133
+ "content": "<empty_output>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": true
139
+ },
140
+ "49152": {
141
+ "content": "<fake_token_around_image>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": true
147
+ },
148
+ "49153": {
149
+ "content": "<image>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": true
155
+ },
156
+ "49154": {
157
+ "content": "<end_of_utterance>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": true
163
+ }
164
+ },
165
+ "additional_special_tokens": [
166
+ "<fake_token_around_image>",
167
+ "<image>",
168
+ "<end_of_utterance>"
169
+ ],
170
+ "bos_token": "<|im_start|>",
171
+ "chat_template": "<|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}",
172
+ "clean_up_tokenization_spaces": false,
173
+ "eos_token": "<end_of_utterance>",
174
+ "legacy": false,
175
+ "model_max_length": 16384,
176
+ "pad_token": "<|im_end|>",
177
+ "processor_class": "Idefics3Processor",
178
+ "tokenizer_class": "GPT2Tokenizer",
179
+ "truncation_side": "left",
180
+ "unk_token": "<|endoftext|>",
181
+ "vocab_size": 49152
182
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c350ff6d623c68ae3968d213f7af871c9808e7d12d5a21ca089c29875f692694
3
+ size 6136
vocab.json ADDED
The diff for this file is too large to render. See raw diff