shuowangmark commited on
Commit
0b8bafc
·
verified ·
1 Parent(s): ad7acc6

Upload 3 files

Browse files
config.json ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Ubit": 100,
3
+ "_attn_implementation_autoset": true,
4
+ "_name_or_path": "",
5
+ "architectures": [
6
+ "LlavaLlamaModel"
7
+ ],
8
+ "babit": "E5M2",
9
+ "bobit": "E5M2",
10
+ "bwbit": "E5M2",
11
+ "chat_template": null,
12
+ "col_blocksize": -1,
13
+ "col_blocksize_optimizer": 128,
14
+ "draw_distribution_backward": false,
15
+ "draw_distribution_forward": false,
16
+ "drop_path_rate": 0.0,
17
+ "dynamic_s2": false,
18
+ "epsilon": 1e-10,
19
+ "epsilon_optimizer": 1e-15,
20
+ "fabit": "E4M3",
21
+ "first_order_bit": null,
22
+ "first_order_quant_type": null,
23
+ "fobit": "E4M3",
24
+ "fps": 0.0,
25
+ "fwbit": "E4M3",
26
+ "group_size": -1,
27
+ "hidden_size": 3584,
28
+ "image_aspect_ratio": "dynamic",
29
+ "image_encoder": {
30
+ "_target_": "llava.model.encoders.BasicImageEncoder"
31
+ },
32
+ "interpolate_mode": "linear",
33
+ "llm_cfg": {
34
+ "_attn_implementation_autoset": false,
35
+ "_name_or_path": "",
36
+ "add_cross_attention": false,
37
+ "architectures": [
38
+ "Qwen2ForCausalLM"
39
+ ],
40
+ "attention_dropout": 0.0,
41
+ "bad_words_ids": null,
42
+ "begin_suppress_tokens": null,
43
+ "bos_token_id": 151643,
44
+ "chunk_size_feed_forward": 0,
45
+ "cross_attention_hidden_size": null,
46
+ "decoder_start_token_id": null,
47
+ "diversity_penalty": 0.0,
48
+ "do_sample": false,
49
+ "early_stopping": false,
50
+ "encoder_no_repeat_ngram_size": 0,
51
+ "eos_token_id": 151645,
52
+ "exponential_decay_length_penalty": null,
53
+ "finetuning_task": null,
54
+ "forced_bos_token_id": null,
55
+ "forced_eos_token_id": null,
56
+ "hidden_act": "silu",
57
+ "hidden_size": 3584,
58
+ "id2label": {
59
+ "0": "LABEL_0",
60
+ "1": "LABEL_1"
61
+ },
62
+ "initializer_range": 0.02,
63
+ "intermediate_size": 18944,
64
+ "is_decoder": false,
65
+ "is_encoder_decoder": false,
66
+ "label2id": {
67
+ "LABEL_0": 0,
68
+ "LABEL_1": 1
69
+ },
70
+ "length_penalty": 1.0,
71
+ "max_length": 20,
72
+ "max_position_embeddings": 32768,
73
+ "max_window_layers": 28,
74
+ "min_length": 0,
75
+ "model_max_length": 4096,
76
+ "model_type": "qwen2",
77
+ "no_repeat_ngram_size": 0,
78
+ "num_attention_heads": 28,
79
+ "num_beam_groups": 1,
80
+ "num_beams": 1,
81
+ "num_hidden_layers": 28,
82
+ "num_key_value_heads": 4,
83
+ "num_return_sequences": 1,
84
+ "output_attentions": false,
85
+ "output_hidden_states": false,
86
+ "output_scores": false,
87
+ "pad_token_id": null,
88
+ "prefix": null,
89
+ "problem_type": null,
90
+ "pruned_heads": {},
91
+ "remove_invalid_values": false,
92
+ "repetition_penalty": 1.0,
93
+ "return_dict": true,
94
+ "return_dict_in_generate": false,
95
+ "rms_norm_eps": 1e-06,
96
+ "rope_scaling": null,
97
+ "rope_theta": 1000000.0,
98
+ "sep_token_id": null,
99
+ "sliding_window": null,
100
+ "suppress_tokens": null,
101
+ "task_specific_params": null,
102
+ "temperature": 1.0,
103
+ "tf_legacy_loss": false,
104
+ "tie_encoder_decoder": false,
105
+ "tie_word_embeddings": false,
106
+ "tokenizer_class": null,
107
+ "tokenizer_model_max_length": 4096,
108
+ "tokenizer_padding_side": "right",
109
+ "top_k": 50,
110
+ "top_p": 1.0,
111
+ "torch_dtype": "bfloat16",
112
+ "torchscript": false,
113
+ "typical_p": 1.0,
114
+ "use_bfloat16": false,
115
+ "use_cache": false,
116
+ "use_sliding_window": false,
117
+ "vocab_size": 151651
118
+ },
119
+ "max_tiles": 12,
120
+ "min_blockunit_col": 4,
121
+ "min_blockunit_row": 4,
122
+ "min_tiles": 1,
123
+ "mlp_path": null,
124
+ "mm_hidden_size": 1152,
125
+ "mm_projector": "mlp_downsample_3x3_fix",
126
+ "mm_projector_cfg": {
127
+ "_attn_implementation_autoset": false,
128
+ "_name_or_path": "",
129
+ "add_cross_attention": false,
130
+ "architectures": [
131
+ "MultimodalProjector"
132
+ ],
133
+ "bad_words_ids": null,
134
+ "begin_suppress_tokens": null,
135
+ "bos_token_id": null,
136
+ "chunk_size_feed_forward": 0,
137
+ "cross_attention_hidden_size": null,
138
+ "decoder_start_token_id": null,
139
+ "diversity_penalty": 0.0,
140
+ "do_sample": false,
141
+ "early_stopping": false,
142
+ "encoder_no_repeat_ngram_size": 0,
143
+ "eos_token_id": null,
144
+ "exponential_decay_length_penalty": null,
145
+ "finetuning_task": null,
146
+ "forced_bos_token_id": null,
147
+ "forced_eos_token_id": null,
148
+ "id2label": {
149
+ "0": "LABEL_0",
150
+ "1": "LABEL_1"
151
+ },
152
+ "is_decoder": false,
153
+ "is_encoder_decoder": false,
154
+ "label2id": {
155
+ "LABEL_0": 0,
156
+ "LABEL_1": 1
157
+ },
158
+ "length_penalty": 1.0,
159
+ "max_length": 20,
160
+ "min_length": 0,
161
+ "mm_projector_type": "mlp_downsample_3x3_fix",
162
+ "model_type": "v2l_projector",
163
+ "no_repeat_ngram_size": 0,
164
+ "num_beam_groups": 1,
165
+ "num_beams": 1,
166
+ "num_return_sequences": 1,
167
+ "output_attentions": false,
168
+ "output_hidden_states": false,
169
+ "output_scores": false,
170
+ "pad_token_id": null,
171
+ "prefix": null,
172
+ "problem_type": null,
173
+ "pruned_heads": {},
174
+ "remove_invalid_values": false,
175
+ "repetition_penalty": 1.0,
176
+ "return_dict": true,
177
+ "return_dict_in_generate": false,
178
+ "sep_token_id": null,
179
+ "suppress_tokens": null,
180
+ "task_specific_params": null,
181
+ "temperature": 1.0,
182
+ "tf_legacy_loss": false,
183
+ "tie_encoder_decoder": false,
184
+ "tie_word_embeddings": true,
185
+ "tokenizer_class": null,
186
+ "top_k": 50,
187
+ "top_p": 1.0,
188
+ "torch_dtype": "bfloat16",
189
+ "torchscript": false,
190
+ "typical_p": 1.0,
191
+ "use_bfloat16": false
192
+ },
193
+ "mm_projector_lr": null,
194
+ "mm_use_im_patch_token": false,
195
+ "mm_use_im_start_end": false,
196
+ "mm_vision_select_feature": "cls_patch",
197
+ "mm_vision_select_layer": -2,
198
+ "model_dtype": "torch.bfloat16",
199
+ "model_name_or_path": "",
200
+ "model_type": "llava_llama",
201
+ "num_time_tokens": 0,
202
+ "num_video_frames": 8,
203
+ "pad_block": false,
204
+ "pad_to_multiple_of": 0,
205
+ "qchoice": "none",
206
+ "quantize_model": false,
207
+ "refine_attn_blocksize": false,
208
+ "refine_col_blocksize": 4,
209
+ "refine_ln_blocksize": false,
210
+ "refine_ln_blocksize_but_only_backward": false,
211
+ "refine_ln_blocksize_but_only_forward": false,
212
+ "refine_ln_pertoken": false,
213
+ "refine_mlp_blocksize": false,
214
+ "refine_residual_fp": false,
215
+ "refine_row_blocksize": 4,
216
+ "resume_path": "",
217
+ "row_blocksize": -1,
218
+ "row_blocksize_optimizer": 1,
219
+ "s2": false,
220
+ "s2_max_split_size": 336,
221
+ "s2_resize_output_to_scale_idx": 0,
222
+ "s2_scales": "336,672,1008",
223
+ "second_order_bit": null,
224
+ "second_order_quant_type": null,
225
+ "soft_ce_std": 1.0,
226
+ "symm": true,
227
+ "time_token_format": "<t{t}>",
228
+ "time_token_ids": [],
229
+ "transformers_version": "4.46.0",
230
+ "tune_language_model": true,
231
+ "tune_mm_projector": true,
232
+ "tune_vision_tower": true,
233
+ "use_quantize_optimizer": false,
234
+ "version": "auto",
235
+ "video_encoder": {
236
+ "_target_": "llava.model.encoders.BasicVideoEncoder"
237
+ },
238
+ "vision_resolution": -1,
239
+ "vision_tower": "Efficient-Large-Model/paligemma-siglip-so400m-patch14-448",
240
+ "vision_tower_cfg": {
241
+ "_attn_implementation_autoset": false,
242
+ "_name_or_path": "",
243
+ "add_cross_attention": false,
244
+ "architectures": [
245
+ "SiglipVisionModel"
246
+ ],
247
+ "attention_dropout": 0.0,
248
+ "bad_words_ids": null,
249
+ "begin_suppress_tokens": null,
250
+ "bos_token_id": null,
251
+ "chunk_size_feed_forward": 0,
252
+ "cross_attention_hidden_size": null,
253
+ "decoder_start_token_id": null,
254
+ "diversity_penalty": 0.0,
255
+ "do_sample": false,
256
+ "early_stopping": false,
257
+ "encoder_no_repeat_ngram_size": 0,
258
+ "eos_token_id": null,
259
+ "exponential_decay_length_penalty": null,
260
+ "finetuning_task": null,
261
+ "forced_bos_token_id": null,
262
+ "forced_eos_token_id": null,
263
+ "hidden_act": "gelu_pytorch_tanh",
264
+ "hidden_size": 1152,
265
+ "id2label": {
266
+ "0": "LABEL_0",
267
+ "1": "LABEL_1"
268
+ },
269
+ "image_size": 448,
270
+ "intermediate_size": 4304,
271
+ "is_decoder": false,
272
+ "is_encoder_decoder": false,
273
+ "label2id": {
274
+ "LABEL_0": 0,
275
+ "LABEL_1": 1
276
+ },
277
+ "layer_norm_eps": 1e-06,
278
+ "length_penalty": 1.0,
279
+ "max_length": 20,
280
+ "min_length": 0,
281
+ "model_type": "siglip_vision_model",
282
+ "no_repeat_ngram_size": 0,
283
+ "num_attention_heads": 16,
284
+ "num_beam_groups": 1,
285
+ "num_beams": 1,
286
+ "num_channels": 3,
287
+ "num_hidden_layers": 27,
288
+ "num_image_tokens": 256,
289
+ "num_return_sequences": 1,
290
+ "output_attentions": false,
291
+ "output_hidden_states": false,
292
+ "output_scores": false,
293
+ "pad_token_id": null,
294
+ "patch_size": 14,
295
+ "prefix": null,
296
+ "problem_type": null,
297
+ "projection_dim": 2048,
298
+ "projector_hidden_act": "gelu_fast",
299
+ "pruned_heads": {},
300
+ "remove_invalid_values": false,
301
+ "repetition_penalty": 1.0,
302
+ "return_dict": true,
303
+ "return_dict_in_generate": false,
304
+ "sep_token_id": null,
305
+ "suppress_tokens": null,
306
+ "task_specific_params": null,
307
+ "temperature": 1.0,
308
+ "tf_legacy_loss": false,
309
+ "tie_encoder_decoder": false,
310
+ "tie_word_embeddings": true,
311
+ "tokenizer_class": null,
312
+ "top_k": 50,
313
+ "top_p": 1.0,
314
+ "torch_dtype": "bfloat16",
315
+ "torchscript": false,
316
+ "typical_p": 1.0,
317
+ "use_bfloat16": false,
318
+ "vision_use_head": false
319
+ },
320
+ "vision_tower_lr": null,
321
+ "weight_memory_efficient": true
322
+ }
mm_projector/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "",
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:1bdcfcbad0aed971784497edab7903851727c0a65568d4cece999444d0c3ed6f
3
+ size 122203760