Upload folder using huggingface_hub
Browse files- config.json +2 -42
- generation_config.json +1 -1
- tokenizer_config.json +2 -2
config.json
CHANGED
@@ -118,48 +118,9 @@
|
|
118 |
},
|
119 |
"rope_theta": 1000000.0,
|
120 |
"sliding_window": 32768,
|
121 |
-
"
|
122 |
-
"architectures": [
|
123 |
-
"Qwen2_5_VLForConditionalGeneration"
|
124 |
-
],
|
125 |
-
"attention_dropout": 0.0,
|
126 |
-
"bos_token_id": 151643,
|
127 |
-
"eos_token_id": 151645,
|
128 |
-
"hidden_act": "silu",
|
129 |
-
"hidden_size": 2048,
|
130 |
-
"image_token_id": null,
|
131 |
-
"initializer_range": 0.02,
|
132 |
-
"intermediate_size": 11008,
|
133 |
-
"max_position_embeddings": 128000,
|
134 |
-
"max_window_layers": 70,
|
135 |
-
"model_type": "qwen2_5_vl_text",
|
136 |
-
"num_attention_heads": 16,
|
137 |
-
"num_hidden_layers": 36,
|
138 |
-
"num_key_value_heads": 2,
|
139 |
-
"rms_norm_eps": 1e-06,
|
140 |
-
"rope_scaling": {
|
141 |
-
"mrope_section": [
|
142 |
-
16,
|
143 |
-
24,
|
144 |
-
24
|
145 |
-
],
|
146 |
-
"rope_type": "default",
|
147 |
-
"type": "default"
|
148 |
-
},
|
149 |
-
"rope_theta": 1000000.0,
|
150 |
-
"sliding_window": 32768,
|
151 |
-
"tie_word_embeddings": true,
|
152 |
-
"torch_dtype": "bfloat16",
|
153 |
-
"use_cache": true,
|
154 |
-
"use_sliding_window": false,
|
155 |
-
"video_token_id": null,
|
156 |
-
"vision_end_token_id": 151653,
|
157 |
-
"vision_start_token_id": 151652,
|
158 |
-
"vision_token_id": 151654,
|
159 |
-
"vocab_size": 151936
|
160 |
-
},
|
161 |
"torch_dtype": "bfloat16",
|
162 |
-
"transformers_version": "4.
|
163 |
"unsloth_fixed": true,
|
164 |
"use_cache": true,
|
165 |
"use_sliding_window": false,
|
@@ -176,7 +137,6 @@
|
|
176 |
"hidden_size": 1280,
|
177 |
"in_channels": 3,
|
178 |
"in_chans": 3,
|
179 |
-
"initializer_range": 0.02,
|
180 |
"intermediate_size": 3420,
|
181 |
"model_type": "qwen2_5_vl",
|
182 |
"num_heads": 16,
|
|
|
118 |
},
|
119 |
"rope_theta": 1000000.0,
|
120 |
"sliding_window": 32768,
|
121 |
+
"tie_word_embeddings": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
"torch_dtype": "bfloat16",
|
123 |
+
"transformers_version": "4.51.3",
|
124 |
"unsloth_fixed": true,
|
125 |
"use_cache": true,
|
126 |
"use_sliding_window": false,
|
|
|
137 |
"hidden_size": 1280,
|
138 |
"in_channels": 3,
|
139 |
"in_chans": 3,
|
|
|
140 |
"intermediate_size": 3420,
|
141 |
"model_type": "qwen2_5_vl",
|
142 |
"num_heads": 16,
|
generation_config.json
CHANGED
@@ -9,5 +9,5 @@
|
|
9 |
"pad_token_id": 151654,
|
10 |
"repetition_penalty": 1.05,
|
11 |
"temperature": 1e-06,
|
12 |
-
"transformers_version": "4.
|
13 |
}
|
|
|
9 |
"pad_token_id": 151654,
|
10 |
"repetition_penalty": 1.05,
|
11 |
"temperature": 1e-06,
|
12 |
+
"transformers_version": "4.51.3"
|
13 |
}
|
tokenizer_config.json
CHANGED
@@ -195,6 +195,7 @@
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
|
|
198 |
"clean_up_tokenization_spaces": false,
|
199 |
"eos_token": "<|im_end|>",
|
200 |
"errors": "replace",
|
@@ -205,6 +206,5 @@
|
|
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 |
}
|
|
|
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",
|
|
|
206 |
"processor_class": "Qwen2_5_VLProcessor",
|
207 |
"split_special_tokens": false,
|
208 |
"tokenizer_class": "Qwen2Tokenizer",
|
209 |
+
"unk_token": null
|
|
|
210 |
}
|