Ligeng-Zhu commited on
Commit
24e568e
·
verified ·
1 Parent(s): 37e8199

Upload files with `vila-upload`.

Browse files

Upload trainer_state.json
Upload config.json
Upload llm/model.safetensors
Upload llm/vocab.json
Upload llm/generation_config.json
Upload llm/config.json
Upload llm/special_tokens_map.json
Upload llm/merges.txt
Upload llm/tokenizer_config.json
Upload llm/added_tokens.json
Upload mm_projector/model.safetensors
Upload mm_projector/config.json
Upload vision_tower/model.safetensors
Upload vision_tower/config.json
Upload vision_tower/preprocessor_config.json

config.json ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model",
4
+ "architectures": [
5
+ "LlavaLlamaModel"
6
+ ],
7
+ "chat_template": null,
8
+ "drop_path_rate": 0.0,
9
+ "dynamic_s2": false,
10
+ "fps": 0.0,
11
+ "hidden_size": 1536,
12
+ "image_aspect_ratio": "dynamic",
13
+ "interpolate_mode": "linear",
14
+ "llm_cfg": {
15
+ "_attn_implementation_autoset": false,
16
+ "_name_or_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model/llm",
17
+ "add_cross_attention": false,
18
+ "architectures": [
19
+ "Qwen2ForCausalLM"
20
+ ],
21
+ "attention_dropout": 0.0,
22
+ "bad_words_ids": null,
23
+ "begin_suppress_tokens": null,
24
+ "bos_token_id": 151643,
25
+ "chunk_size_feed_forward": 0,
26
+ "cross_attention_hidden_size": null,
27
+ "decoder_start_token_id": null,
28
+ "diversity_penalty": 0.0,
29
+ "do_sample": false,
30
+ "early_stopping": false,
31
+ "encoder_no_repeat_ngram_size": 0,
32
+ "eos_token_id": 151645,
33
+ "exponential_decay_length_penalty": null,
34
+ "finetuning_task": null,
35
+ "forced_bos_token_id": null,
36
+ "forced_eos_token_id": null,
37
+ "hidden_act": "silu",
38
+ "hidden_size": 1536,
39
+ "id2label": {
40
+ "0": "LABEL_0",
41
+ "1": "LABEL_1"
42
+ },
43
+ "initializer_range": 0.02,
44
+ "intermediate_size": 8960,
45
+ "is_decoder": false,
46
+ "is_encoder_decoder": false,
47
+ "label2id": {
48
+ "LABEL_0": 0,
49
+ "LABEL_1": 1
50
+ },
51
+ "length_penalty": 1.0,
52
+ "max_length": 20,
53
+ "max_position_embeddings": 32768,
54
+ "max_window_layers": 28,
55
+ "min_length": 0,
56
+ "model_max_length": 4096,
57
+ "model_type": "qwen2",
58
+ "no_repeat_ngram_size": 0,
59
+ "num_attention_heads": 12,
60
+ "num_beam_groups": 1,
61
+ "num_beams": 1,
62
+ "num_hidden_layers": 28,
63
+ "num_key_value_heads": 2,
64
+ "num_return_sequences": 1,
65
+ "output_attentions": false,
66
+ "output_hidden_states": false,
67
+ "output_scores": false,
68
+ "pad_token_id": null,
69
+ "prefix": null,
70
+ "problem_type": null,
71
+ "pruned_heads": {},
72
+ "remove_invalid_values": false,
73
+ "repetition_penalty": 1.0,
74
+ "return_dict": true,
75
+ "return_dict_in_generate": false,
76
+ "rms_norm_eps": 1e-06,
77
+ "rope_scaling": null,
78
+ "rope_theta": 1000000.0,
79
+ "sep_token_id": null,
80
+ "sliding_window": null,
81
+ "suppress_tokens": null,
82
+ "task_specific_params": null,
83
+ "temperature": 1.0,
84
+ "tf_legacy_loss": false,
85
+ "tie_encoder_decoder": false,
86
+ "tie_word_embeddings": true,
87
+ "tokenizer_class": null,
88
+ "tokenizer_model_max_length": 4096,
89
+ "tokenizer_padding_side": "right",
90
+ "top_k": 50,
91
+ "top_p": 1.0,
92
+ "torch_dtype": "bfloat16",
93
+ "torchscript": false,
94
+ "typical_p": 1.0,
95
+ "use_bfloat16": false,
96
+ "use_cache": true,
97
+ "use_sliding_window": false,
98
+ "vocab_size": 151648
99
+ },
100
+ "mm_hidden_size": 1152,
101
+ "mm_projector_cfg": {
102
+ "_attn_implementation_autoset": false,
103
+ "_name_or_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model/mm_projector",
104
+ "add_cross_attention": false,
105
+ "architectures": [
106
+ "MultimodalProjector"
107
+ ],
108
+ "bad_words_ids": null,
109
+ "begin_suppress_tokens": null,
110
+ "bos_token_id": null,
111
+ "chunk_size_feed_forward": 0,
112
+ "cross_attention_hidden_size": null,
113
+ "decoder_start_token_id": null,
114
+ "diversity_penalty": 0.0,
115
+ "do_sample": false,
116
+ "early_stopping": false,
117
+ "encoder_no_repeat_ngram_size": 0,
118
+ "eos_token_id": null,
119
+ "exponential_decay_length_penalty": null,
120
+ "finetuning_task": null,
121
+ "forced_bos_token_id": null,
122
+ "forced_eos_token_id": null,
123
+ "id2label": {
124
+ "0": "LABEL_0",
125
+ "1": "LABEL_1"
126
+ },
127
+ "is_decoder": false,
128
+ "is_encoder_decoder": false,
129
+ "label2id": {
130
+ "LABEL_0": 0,
131
+ "LABEL_1": 1
132
+ },
133
+ "length_penalty": 1.0,
134
+ "max_length": 20,
135
+ "min_length": 0,
136
+ "mm_projector_type": "mlp_downsample_3x3_fix",
137
+ "model_type": "v2l_projector",
138
+ "no_repeat_ngram_size": 0,
139
+ "num_beam_groups": 1,
140
+ "num_beams": 1,
141
+ "num_return_sequences": 1,
142
+ "output_attentions": false,
143
+ "output_hidden_states": false,
144
+ "output_scores": false,
145
+ "pad_token_id": null,
146
+ "prefix": null,
147
+ "problem_type": null,
148
+ "pruned_heads": {},
149
+ "remove_invalid_values": false,
150
+ "repetition_penalty": 1.0,
151
+ "return_dict": true,
152
+ "return_dict_in_generate": false,
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": true,
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
+ },
168
+ "mm_projector_lr": null,
169
+ "mm_use_im_patch_token": true,
170
+ "mm_use_im_start_end": false,
171
+ "mm_vision_select_feature": "cls_patch",
172
+ "mm_vision_select_layer": -2,
173
+ "model_dtype": "torch.bfloat16",
174
+ "model_type": "llava_llama",
175
+ "num_time_tokens": 0,
176
+ "num_video_frames": 8,
177
+ "resume_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model",
178
+ "s2": false,
179
+ "s2_max_split_size": 336,
180
+ "s2_resize_output_to_scale_idx": 0,
181
+ "s2_scales": "336,672,1008",
182
+ "soft_ce_std": 1.0,
183
+ "time_token_format": "<t{t}>",
184
+ "time_token_ids": [],
185
+ "transformers_version": "4.46.0",
186
+ "tune_language_model": true,
187
+ "tune_mm_projector": true,
188
+ "tune_vision_tower": true,
189
+ "vision_resolution": -1,
190
+ "vision_tower_cfg": {
191
+ "_attn_implementation_autoset": false,
192
+ "_name_or_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model/vision_tower",
193
+ "add_cross_attention": false,
194
+ "architectures": [
195
+ "SiglipVisionModel"
196
+ ],
197
+ "attention_dropout": 0.0,
198
+ "bad_words_ids": null,
199
+ "begin_suppress_tokens": null,
200
+ "bos_token_id": null,
201
+ "chunk_size_feed_forward": 0,
202
+ "cross_attention_hidden_size": null,
203
+ "decoder_start_token_id": null,
204
+ "diversity_penalty": 0.0,
205
+ "do_sample": false,
206
+ "early_stopping": false,
207
+ "encoder_no_repeat_ngram_size": 0,
208
+ "eos_token_id": null,
209
+ "exponential_decay_length_penalty": null,
210
+ "finetuning_task": null,
211
+ "forced_bos_token_id": null,
212
+ "forced_eos_token_id": null,
213
+ "hidden_act": "gelu_pytorch_tanh",
214
+ "hidden_size": 1152,
215
+ "id2label": {
216
+ "0": "LABEL_0",
217
+ "1": "LABEL_1"
218
+ },
219
+ "image_size": 448,
220
+ "intermediate_size": 4304,
221
+ "is_decoder": false,
222
+ "is_encoder_decoder": false,
223
+ "label2id": {
224
+ "LABEL_0": 0,
225
+ "LABEL_1": 1
226
+ },
227
+ "layer_norm_eps": 1e-06,
228
+ "length_penalty": 1.0,
229
+ "max_length": 20,
230
+ "min_length": 0,
231
+ "model_type": "siglip_vision_model",
232
+ "no_repeat_ngram_size": 0,
233
+ "num_attention_heads": 16,
234
+ "num_beam_groups": 1,
235
+ "num_beams": 1,
236
+ "num_channels": 3,
237
+ "num_hidden_layers": 27,
238
+ "num_image_tokens": 256,
239
+ "num_return_sequences": 1,
240
+ "output_attentions": false,
241
+ "output_hidden_states": false,
242
+ "output_scores": false,
243
+ "pad_token_id": null,
244
+ "patch_size": 14,
245
+ "prefix": null,
246
+ "problem_type": null,
247
+ "projection_dim": 2048,
248
+ "projector_hidden_act": "gelu_fast",
249
+ "pruned_heads": {},
250
+ "remove_invalid_values": false,
251
+ "repetition_penalty": 1.0,
252
+ "return_dict": true,
253
+ "return_dict_in_generate": false,
254
+ "sep_token_id": null,
255
+ "suppress_tokens": null,
256
+ "task_specific_params": null,
257
+ "temperature": 1.0,
258
+ "tf_legacy_loss": false,
259
+ "tie_encoder_decoder": false,
260
+ "tie_word_embeddings": true,
261
+ "tokenizer_class": null,
262
+ "top_k": 50,
263
+ "top_p": 1.0,
264
+ "torch_dtype": "bfloat16",
265
+ "torchscript": false,
266
+ "typical_p": 1.0,
267
+ "use_bfloat16": false,
268
+ "vision_use_head": false
269
+ }
270
+ }
llm/added_tokens.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644,
5
+ "[BOS]": 151646,
6
+ "[PAD]": 151647
7
+ }
llm/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model/llm",
3
+ "architectures": [
4
+ "Qwen2ForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151645,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1536,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 8960,
13
+ "max_position_embeddings": 32768,
14
+ "max_window_layers": 28,
15
+ "model_max_length": 4096,
16
+ "model_type": "qwen2",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 28,
19
+ "num_key_value_heads": 2,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000000.0,
23
+ "sliding_window": null,
24
+ "tie_word_embeddings": true,
25
+ "tokenizer_model_max_length": 4096,
26
+ "tokenizer_padding_side": "right",
27
+ "torch_dtype": "bfloat16",
28
+ "transformers_version": "4.46.0",
29
+ "use_cache": true,
30
+ "use_sliding_window": false,
31
+ "vocab_size": 151648
32
+ }
llm/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.1,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.46.0"
14
+ }
llm/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
llm/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe90977102f7c2ffc3c0c9fff9cb6bad16937a2e93c49a0a41976fc2a50dd077
3
+ size 3086582408
llm/special_tokens_map.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "[BOS]",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<|im_end|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "[PAD]",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ }
27
+ }
llm/tokenizer_config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "[BOS]",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "[PAD]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "additional_special_tokens": [
46
+ "<|im_start|>",
47
+ "<|im_end|>"
48
+ ],
49
+ "bos_token": "[BOS]",
50
+ "chat_template": "{% if messages[0]['role'] != 'system' %}{{ '<|im_start|>system\\nYou are a helpful assistant<|im_end|>\\n' }}{% endif %}{% for message in messages if message['content'] is not none %}{{ '<|im_start|>' + message['role'] + '\\n' + message['content'] + '<|im_end|>' + '\\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\\n' }}{% endif %}",
51
+ "clean_up_tokenization_spaces": false,
52
+ "eos_token": "<|im_end|>",
53
+ "errors": "replace",
54
+ "legacy": false,
55
+ "model_max_length": 4096,
56
+ "pad_token": "[PAD]",
57
+ "padding_side": "right",
58
+ "split_special_tokens": false,
59
+ "tokenizer_class": "Qwen2Tokenizer",
60
+ "unk_token": null
61
+ }
llm/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
mm_projector/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model/mm_projector",
3
+ "architectures": [
4
+ "MultimodalProjector"
5
+ ],
6
+ "mm_projector_type": "mlp_downsample_3x3_fix",
7
+ "model_type": "v2l_projector",
8
+ "torch_dtype": "bfloat16",
9
+ "transformers_version": "4.46.0"
10
+ }
mm_projector/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:191ffde694a269d7b0ca2f1e30da5d5fecf2a9bb8f4879fbf0b780368c6a9cc4
3
+ size 87068272
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
vision_tower/config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "runs/train/qwen25_2B_3x3-sft-20241118122815/model/vision_tower",
3
+ "architectures": [
4
+ "SiglipVisionModel"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "hidden_act": "gelu_pytorch_tanh",
8
+ "hidden_size": 1152,
9
+ "image_size": 448,
10
+ "intermediate_size": 4304,
11
+ "layer_norm_eps": 1e-06,
12
+ "model_type": "siglip_vision_model",
13
+ "num_attention_heads": 16,
14
+ "num_channels": 3,
15
+ "num_hidden_layers": 27,
16
+ "num_image_tokens": 256,
17
+ "patch_size": 14,
18
+ "projection_dim": 2048,
19
+ "projector_hidden_act": "gelu_fast",
20
+ "torch_dtype": "bfloat16",
21
+ "transformers_version": "4.46.0",
22
+ "vision_use_head": false
23
+ }
vision_tower/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38c39a77befc808483de3c3a5d20f02af1e3111e15a3e9909f64b2ea7b553fd9
3
+ size 826707904
vision_tower/preprocessor_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "SiglipImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "processor_class": "SiglipProcessor",
18
+ "resample": 3,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "height": 448,
22
+ "width": 448
23
+ }
24
+ }