Yukang commited on
Commit
4f639d8
·
1 Parent(s): bd953f8

Add model files

Browse files
config.json ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./output/qwen2-1.5b-longvila-256f",
3
+ "architectures": [
4
+ "LlavaLlamaModel"
5
+ ],
6
+ "chat_template": null,
7
+ "drop_path_rate": 0.0,
8
+ "fps": 2.0,
9
+ "hidden_size": 1536,
10
+ "image_aspect_ratio": "resize",
11
+ "interpolate_mode": "linear",
12
+ "llm_cfg": {
13
+ "_name_or_path": "./output/qwen2-1.5b-longvila-256f/llm",
14
+ "add_cross_attention": false,
15
+ "architectures": [
16
+ "Qwen2ForCausalLM"
17
+ ],
18
+ "attention_dropout": 0.0,
19
+ "bad_words_ids": null,
20
+ "begin_suppress_tokens": null,
21
+ "bos_token_id": 151643,
22
+ "chunk_size_feed_forward": 0,
23
+ "cross_attention_hidden_size": null,
24
+ "decoder_start_token_id": null,
25
+ "diversity_penalty": 0.0,
26
+ "do_sample": false,
27
+ "early_stopping": false,
28
+ "encoder_no_repeat_ngram_size": 0,
29
+ "eos_token_id": 151645,
30
+ "exponential_decay_length_penalty": null,
31
+ "finetuning_task": null,
32
+ "forced_bos_token_id": null,
33
+ "forced_eos_token_id": null,
34
+ "hidden_act": "silu",
35
+ "hidden_size": 1536,
36
+ "id2label": {
37
+ "0": "LABEL_0",
38
+ "1": "LABEL_1"
39
+ },
40
+ "initializer_range": 0.02,
41
+ "intermediate_size": 8960,
42
+ "is_decoder": false,
43
+ "is_encoder_decoder": false,
44
+ "label2id": {
45
+ "LABEL_0": 0,
46
+ "LABEL_1": 1
47
+ },
48
+ "length_penalty": 1.0,
49
+ "max_length": 20,
50
+ "max_position_embeddings": 65536,
51
+ "max_window_layers": 28,
52
+ "min_length": 0,
53
+ "model_max_length": 65536,
54
+ "model_type": "qwen2",
55
+ "no_repeat_ngram_size": 0,
56
+ "num_attention_heads": 12,
57
+ "num_beam_groups": 1,
58
+ "num_beams": 1,
59
+ "num_hidden_layers": 28,
60
+ "num_key_value_heads": 2,
61
+ "num_return_sequences": 1,
62
+ "output_attentions": false,
63
+ "output_hidden_states": false,
64
+ "output_scores": false,
65
+ "pad_token_id": null,
66
+ "prefix": null,
67
+ "problem_type": null,
68
+ "pruned_heads": {},
69
+ "remove_invalid_values": false,
70
+ "repetition_penalty": 1.0,
71
+ "return_dict": true,
72
+ "return_dict_in_generate": false,
73
+ "rms_norm_eps": 1e-06,
74
+ "rope_theta": 15300000,
75
+ "sep_token_id": null,
76
+ "sliding_window": null,
77
+ "suppress_tokens": null,
78
+ "task_specific_params": null,
79
+ "temperature": 1.0,
80
+ "tf_legacy_loss": false,
81
+ "tie_encoder_decoder": false,
82
+ "tie_word_embeddings": true,
83
+ "tokenizer_class": null,
84
+ "tokenizer_model_max_length": 65536,
85
+ "tokenizer_padding_side": "right",
86
+ "top_k": 50,
87
+ "top_p": 1.0,
88
+ "torch_dtype": "bfloat16",
89
+ "torchscript": false,
90
+ "typical_p": 1.0,
91
+ "use_bfloat16": false,
92
+ "use_cache": true,
93
+ "use_sliding_window": false,
94
+ "vocab_size": 151648
95
+ },
96
+ "mm_hidden_size": 1152,
97
+ "mm_projector_cfg": {
98
+ "_name_or_path": "./output/qwen2-1.5b-longvila-256f/mm_projector",
99
+ "add_cross_attention": false,
100
+ "architectures": [
101
+ "MultimodalProjector"
102
+ ],
103
+ "bad_words_ids": null,
104
+ "begin_suppress_tokens": null,
105
+ "bos_token_id": null,
106
+ "chunk_size_feed_forward": 0,
107
+ "cross_attention_hidden_size": null,
108
+ "decoder_start_token_id": null,
109
+ "diversity_penalty": 0.0,
110
+ "do_sample": false,
111
+ "early_stopping": false,
112
+ "encoder_no_repeat_ngram_size": 0,
113
+ "eos_token_id": null,
114
+ "exponential_decay_length_penalty": null,
115
+ "finetuning_task": null,
116
+ "forced_bos_token_id": null,
117
+ "forced_eos_token_id": null,
118
+ "id2label": {
119
+ "0": "LABEL_0",
120
+ "1": "LABEL_1"
121
+ },
122
+ "is_decoder": false,
123
+ "is_encoder_decoder": false,
124
+ "label2id": {
125
+ "LABEL_0": 0,
126
+ "LABEL_1": 1
127
+ },
128
+ "length_penalty": 1.0,
129
+ "max_length": 20,
130
+ "min_length": 0,
131
+ "mm_projector_type": "mlp_downsample",
132
+ "model_type": "v2l_projector",
133
+ "no_repeat_ngram_size": 0,
134
+ "num_beam_groups": 1,
135
+ "num_beams": 1,
136
+ "num_return_sequences": 1,
137
+ "output_attentions": false,
138
+ "output_hidden_states": false,
139
+ "output_scores": false,
140
+ "pad_token_id": null,
141
+ "prefix": null,
142
+ "problem_type": null,
143
+ "pruned_heads": {},
144
+ "remove_invalid_values": false,
145
+ "repetition_penalty": 1.0,
146
+ "return_dict": true,
147
+ "return_dict_in_generate": false,
148
+ "sep_token_id": null,
149
+ "suppress_tokens": null,
150
+ "task_specific_params": null,
151
+ "temperature": 1.0,
152
+ "tf_legacy_loss": false,
153
+ "tie_encoder_decoder": false,
154
+ "tie_word_embeddings": true,
155
+ "tokenizer_class": null,
156
+ "top_k": 50,
157
+ "top_p": 1.0,
158
+ "torch_dtype": "bfloat16",
159
+ "torchscript": false,
160
+ "typical_p": 1.0,
161
+ "use_bfloat16": false
162
+ },
163
+ "mm_projector_lr": null,
164
+ "mm_use_im_patch_token": true,
165
+ "mm_use_im_start_end": false,
166
+ "mm_vision_select_feature": "cls_patch",
167
+ "mm_vision_select_layer": -2,
168
+ "model_dtype": "torch.bfloat16",
169
+ "model_type": "llava_llama",
170
+ "num_time_tokens": 0,
171
+ "num_video_frames": 256,
172
+ "resume_path": "./output/qwen2-1.5b-longvila-256f",
173
+ "s2": false,
174
+ "s2_max_split_size": 336,
175
+ "s2_scales": "336,672,1008",
176
+ "soft_ce_std": 1.0,
177
+ "time_token_format": "<t{t}>",
178
+ "time_token_ids": [],
179
+ "transformers_version": "4.44.2",
180
+ "tune_language_model": true,
181
+ "tune_mm_projector": true,
182
+ "tune_vision_tower": true,
183
+ "vision_resolution": -1,
184
+ "vision_tower_cfg": {
185
+ "_name_or_path": "./output/qwen2-1.5b-longvila-256f/vision_tower",
186
+ "add_cross_attention": false,
187
+ "architectures": [
188
+ "SiglipVisionModel"
189
+ ],
190
+ "attention_dropout": 0.0,
191
+ "bad_words_ids": null,
192
+ "begin_suppress_tokens": null,
193
+ "bos_token_id": null,
194
+ "chunk_size_feed_forward": 0,
195
+ "cross_attention_hidden_size": null,
196
+ "decoder_start_token_id": null,
197
+ "diversity_penalty": 0.0,
198
+ "do_sample": false,
199
+ "early_stopping": false,
200
+ "encoder_no_repeat_ngram_size": 0,
201
+ "eos_token_id": null,
202
+ "exponential_decay_length_penalty": null,
203
+ "finetuning_task": null,
204
+ "forced_bos_token_id": null,
205
+ "forced_eos_token_id": null,
206
+ "hidden_act": "gelu_pytorch_tanh",
207
+ "hidden_size": 1152,
208
+ "id2label": {
209
+ "0": "LABEL_0",
210
+ "1": "LABEL_1"
211
+ },
212
+ "image_size": 384,
213
+ "intermediate_size": 4304,
214
+ "is_decoder": false,
215
+ "is_encoder_decoder": false,
216
+ "label2id": {
217
+ "LABEL_0": 0,
218
+ "LABEL_1": 1
219
+ },
220
+ "layer_norm_eps": 1e-06,
221
+ "length_penalty": 1.0,
222
+ "max_length": 20,
223
+ "min_length": 0,
224
+ "model_type": "siglip_vision_model",
225
+ "no_repeat_ngram_size": 0,
226
+ "num_attention_heads": 16,
227
+ "num_beam_groups": 1,
228
+ "num_beams": 1,
229
+ "num_channels": 3,
230
+ "num_hidden_layers": 27,
231
+ "num_return_sequences": 1,
232
+ "output_attentions": false,
233
+ "output_hidden_states": false,
234
+ "output_scores": false,
235
+ "pad_token_id": null,
236
+ "patch_size": 14,
237
+ "prefix": null,
238
+ "problem_type": null,
239
+ "pruned_heads": {},
240
+ "remove_invalid_values": false,
241
+ "repetition_penalty": 1.0,
242
+ "return_dict": true,
243
+ "return_dict_in_generate": false,
244
+ "sep_token_id": null,
245
+ "suppress_tokens": null,
246
+ "task_specific_params": null,
247
+ "temperature": 1.0,
248
+ "tf_legacy_loss": false,
249
+ "tie_encoder_decoder": false,
250
+ "tie_word_embeddings": true,
251
+ "tokenizer_class": null,
252
+ "top_k": 50,
253
+ "top_p": 1.0,
254
+ "torch_dtype": "bfloat16",
255
+ "torchscript": false,
256
+ "typical_p": 1.0,
257
+ "use_bfloat16": false
258
+ }
259
+ }
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,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./output/qwen2-1.5b-longvila-256f/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": 65536,
14
+ "max_window_layers": 28,
15
+ "model_max_length": 65536,
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_theta": 15300000,
22
+ "sliding_window": null,
23
+ "tie_word_embeddings": true,
24
+ "tokenizer_model_max_length": 65536,
25
+ "tokenizer_padding_side": "right",
26
+ "torch_dtype": "bfloat16",
27
+ "transformers_version": "4.44.2",
28
+ "use_cache": true,
29
+ "use_sliding_window": false,
30
+ "vocab_size": 151648
31
+ }
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.44.2"
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:6b501fb8081cc936fbf22e95a96d0bed00afb1dc37bda68707f7ffffd4ed9e1a
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": 65536,
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": "./output/qwen2-1.5b-longvila-256f/mm_projector",
3
+ "architectures": [
4
+ "MultimodalProjector"
5
+ ],
6
+ "mm_projector_type": "mlp_downsample",
7
+ "model_type": "v2l_projector",
8
+ "torch_dtype": "bfloat16",
9
+ "transformers_version": "4.44.2"
10
+ }
mm_projector/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:267e52426b6a647e83fca54d38289befa11d73023a53f45fb4edb8a6b230b408
3
+ size 18899472
vision_tower/config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./output/qwen2-1.5b-longvila-256f/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": 384,
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
+ "patch_size": 14,
17
+ "torch_dtype": "bfloat16",
18
+ "transformers_version": "4.44.2"
19
+ }
vision_tower/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d5d6ed160a43d5774db5f548e9983311816f78f7b74db9fc3de109412b7704b
3
+ size 856506120
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": 384,
22
+ "width": 384
23
+ }
24
+ }