danielhanchen commited on
Commit
b0a8401
·
verified ·
1 Parent(s): 9982887

Upload folder using huggingface_hub

Browse files
config.json CHANGED
@@ -3,13 +3,14 @@
3
  "Qwen2_5_VLForConditionalGeneration"
4
  ],
5
  "attention_dropout": 0.0,
 
6
  "eos_token_id": 151645,
7
  "hidden_act": "silu",
8
  "hidden_size": 3584,
9
  "image_token_id": 151655,
10
  "initializer_range": 0.02,
11
  "intermediate_size": 18944,
12
- "max_position_embeddings": 128000,
13
  "max_window_layers": 28,
14
  "model_type": "qwen2_5_vl",
15
  "num_attention_heads": 28,
@@ -26,10 +27,13 @@
26
  "llm_int8_enable_fp32_cpu_offload": false,
27
  "llm_int8_has_fp16_weight": false,
28
  "llm_int8_skip_modules": [
 
 
29
  "lm_head",
30
  "multi_modal_projector",
31
  "merger",
32
- "modality_projection"
 
33
  ],
34
  "llm_int8_threshold": 6.0,
35
  "load_in_4bit": true,
@@ -48,15 +52,84 @@
48
  },
49
  "rope_theta": 1000000.0,
50
  "sliding_window": 32768,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  "tie_word_embeddings": false,
52
- "torch_dtype": "bfloat16",
53
- "transformers_version": "4.51.3",
54
  "unsloth_fixed": true,
55
  "use_cache": true,
56
  "use_sliding_window": false,
57
  "video_token_id": 151656,
58
  "vision_config": {
59
  "depth": 32,
 
60
  "fullatt_block_indexes": [
61
  7,
62
  15,
@@ -67,6 +140,7 @@
67
  "hidden_size": 1280,
68
  "in_channels": 3,
69
  "in_chans": 3,
 
70
  "intermediate_size": 3420,
71
  "model_type": "qwen2_5_vl",
72
  "num_heads": 16,
@@ -76,7 +150,6 @@
76
  "spatial_patch_size": 14,
77
  "temporal_patch_size": 2,
78
  "tokens_per_second": 2,
79
- "torch_dtype": "bfloat16",
80
  "window_size": 112
81
  },
82
  "vision_end_token_id": 151653,
 
3
  "Qwen2_5_VLForConditionalGeneration"
4
  ],
5
  "attention_dropout": 0.0,
6
+ "dtype": "bfloat16",
7
  "eos_token_id": 151645,
8
  "hidden_act": "silu",
9
  "hidden_size": 3584,
10
  "image_token_id": 151655,
11
  "initializer_range": 0.02,
12
  "intermediate_size": 18944,
13
+ "max_position_embeddings": 32768,
14
  "max_window_layers": 28,
15
  "model_type": "qwen2_5_vl",
16
  "num_attention_heads": 28,
 
27
  "llm_int8_enable_fp32_cpu_offload": false,
28
  "llm_int8_has_fp16_weight": false,
29
  "llm_int8_skip_modules": [
30
+ "embed_tokens",
31
+ "embedding",
32
  "lm_head",
33
  "multi_modal_projector",
34
  "merger",
35
+ "modality_projection",
36
+ "router"
37
  ],
38
  "llm_int8_threshold": 6.0,
39
  "load_in_4bit": true,
 
52
  },
53
  "rope_theta": 1000000.0,
54
  "sliding_window": 32768,
55
+ "text_config": {
56
+ "architectures": [
57
+ "Qwen2_5_VLForConditionalGeneration"
58
+ ],
59
+ "attention_dropout": 0.0,
60
+ "bos_token_id": 151643,
61
+ "dtype": "bfloat16",
62
+ "eos_token_id": 151645,
63
+ "hidden_act": "silu",
64
+ "hidden_size": 3584,
65
+ "image_token_id": null,
66
+ "initializer_range": 0.02,
67
+ "intermediate_size": 18944,
68
+ "layer_types": [
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention",
73
+ "full_attention",
74
+ "full_attention",
75
+ "full_attention",
76
+ "full_attention",
77
+ "full_attention",
78
+ "full_attention",
79
+ "full_attention",
80
+ "full_attention",
81
+ "full_attention",
82
+ "full_attention",
83
+ "full_attention",
84
+ "full_attention",
85
+ "full_attention",
86
+ "full_attention",
87
+ "full_attention",
88
+ "full_attention",
89
+ "full_attention",
90
+ "full_attention",
91
+ "full_attention",
92
+ "full_attention",
93
+ "full_attention",
94
+ "full_attention",
95
+ "full_attention",
96
+ "full_attention"
97
+ ],
98
+ "max_position_embeddings": 128000,
99
+ "max_window_layers": 28,
100
+ "model_type": "qwen2_5_vl_text",
101
+ "num_attention_heads": 28,
102
+ "num_hidden_layers": 28,
103
+ "num_key_value_heads": 4,
104
+ "rms_norm_eps": 1e-06,
105
+ "rope_scaling": {
106
+ "mrope_section": [
107
+ 16,
108
+ 24,
109
+ 24
110
+ ],
111
+ "rope_type": "default",
112
+ "type": "default"
113
+ },
114
+ "rope_theta": 1000000.0,
115
+ "sliding_window": null,
116
+ "use_cache": true,
117
+ "use_sliding_window": false,
118
+ "video_token_id": null,
119
+ "vision_end_token_id": 151653,
120
+ "vision_start_token_id": 151652,
121
+ "vision_token_id": 151654,
122
+ "vocab_size": 152064
123
+ },
124
  "tie_word_embeddings": false,
125
+ "transformers_version": "4.56.1",
 
126
  "unsloth_fixed": true,
127
  "use_cache": true,
128
  "use_sliding_window": false,
129
  "video_token_id": 151656,
130
  "vision_config": {
131
  "depth": 32,
132
+ "dtype": "bfloat16",
133
  "fullatt_block_indexes": [
134
  7,
135
  15,
 
140
  "hidden_size": 1280,
141
  "in_channels": 3,
142
  "in_chans": 3,
143
+ "initializer_range": 0.02,
144
  "intermediate_size": 3420,
145
  "model_type": "qwen2_5_vl",
146
  "num_heads": 16,
 
150
  "spatial_patch_size": 14,
151
  "temporal_patch_size": 2,
152
  "tokens_per_second": 2,
 
153
  "window_size": 112
154
  },
155
  "vision_end_token_id": 151653,
generation_config.json CHANGED
@@ -5,9 +5,9 @@
5
  151645,
6
  151643
7
  ],
8
- "max_length": 128000,
9
  "pad_token_id": 151654,
10
  "repetition_penalty": 1.05,
11
  "temperature": 1e-06,
12
- "transformers_version": "4.51.3"
13
  }
 
5
  151645,
6
  151643
7
  ],
8
+ "max_length": 32768,
9
  "pad_token_id": 151654,
10
  "repetition_penalty": 1.05,
11
  "temperature": 1e-06,
12
+ "transformers_version": "4.56.1"
13
  }
preprocessor_config.json CHANGED
@@ -1,4 +1,10 @@
1
  {
 
 
 
 
 
 
2
  "do_convert_rgb": true,
3
  "do_normalize": true,
4
  "do_rescale": true,
@@ -8,12 +14,13 @@
8
  0.4578275,
9
  0.40821073
10
  ],
11
- "image_processor_type": "Qwen2VLImageProcessor",
12
  "image_std": [
13
  0.26862954,
14
  0.26130258,
15
  0.27577711
16
  ],
 
17
  "max_pixels": 12845056,
18
  "merge_size": 2,
19
  "min_pixels": 3136,
@@ -21,6 +28,7 @@
21
  "processor_class": "Qwen2_5_VLProcessor",
22
  "resample": 3,
23
  "rescale_factor": 0.00392156862745098,
 
24
  "size": {
25
  "longest_edge": 12845056,
26
  "shortest_edge": 3136
 
1
  {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "device": null,
6
+ "disable_grouping": null,
7
+ "do_center_crop": null,
8
  "do_convert_rgb": true,
9
  "do_normalize": true,
10
  "do_rescale": true,
 
14
  0.4578275,
15
  0.40821073
16
  ],
17
+ "image_processor_type": "Qwen2VLImageProcessorFast",
18
  "image_std": [
19
  0.26862954,
20
  0.26130258,
21
  0.27577711
22
  ],
23
+ "input_data_format": null,
24
  "max_pixels": 12845056,
25
  "merge_size": 2,
26
  "min_pixels": 3136,
 
28
  "processor_class": "Qwen2_5_VLProcessor",
29
  "resample": 3,
30
  "rescale_factor": 0.00392156862745098,
31
+ "return_tensors": null,
32
  "size": {
33
  "longest_edge": 12845056,
34
  "shortest_edge": 3136
tokenizer_config.json CHANGED
@@ -195,16 +195,16 @@
195
  "<|video_pad|>"
196
  ],
197
  "bos_token": null,
198
- "chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
199
  "clean_up_tokenization_spaces": false,
200
  "eos_token": "<|im_end|>",
201
  "errors": "replace",
202
  "extra_special_tokens": {},
203
- "model_max_length": 128000,
204
  "pad_token": "<|vision_pad|>",
205
  "padding_side": "left",
206
  "processor_class": "Qwen2_5_VLProcessor",
207
  "split_special_tokens": false,
208
  "tokenizer_class": "Qwen2Tokenizer",
209
- "unk_token": null
 
210
  }
 
195
  "<|video_pad|>"
196
  ],
197
  "bos_token": null,
 
198
  "clean_up_tokenization_spaces": false,
199
  "eos_token": "<|im_end|>",
200
  "errors": "replace",
201
  "extra_special_tokens": {},
202
+ "model_max_length": 32768,
203
  "pad_token": "<|vision_pad|>",
204
  "padding_side": "left",
205
  "processor_class": "Qwen2_5_VLProcessor",
206
  "split_special_tokens": false,
207
  "tokenizer_class": "Qwen2Tokenizer",
208
+ "unk_token": null,
209
+ "chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
210
  }
video_preprocessor_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "device": null,
6
+ "do_center_crop": null,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_pad": null,
10
+ "do_rescale": true,
11
+ "do_resize": true,
12
+ "do_sample_frames": false,
13
+ "fps": null,
14
+ "image_mean": [
15
+ 0.48145466,
16
+ 0.4578275,
17
+ 0.40821073
18
+ ],
19
+ "image_std": [
20
+ 0.26862954,
21
+ 0.26130258,
22
+ 0.27577711
23
+ ],
24
+ "input_data_format": null,
25
+ "max_frames": 768,
26
+ "max_pixels": 12845056,
27
+ "merge_size": 2,
28
+ "min_frames": 4,
29
+ "min_pixels": 3136,
30
+ "num_frames": null,
31
+ "patch_size": 14,
32
+ "processor_class": "Qwen2_5_VLProcessor",
33
+ "resample": 3,
34
+ "rescale_factor": 0.00392156862745098,
35
+ "return_metadata": false,
36
+ "size": {
37
+ "longest_edge": 12845056,
38
+ "shortest_edge": 3136
39
+ },
40
+ "size_divisor": null,
41
+ "temporal_patch_size": 2,
42
+ "video_metadata": null,
43
+ "video_processor_type": "Qwen2VLVideoProcessor"
44
+ }