Upload folder using huggingface_hub
Browse files- config.json +1 -41
- generation_config.json +1 -1
- tokenizer_config.json +2 -2
config.json
CHANGED
@@ -110,48 +110,9 @@
|
|
110 |
},
|
111 |
"rope_theta": 1000000.0,
|
112 |
"sliding_window": 32768,
|
113 |
-
"text_config": {
|
114 |
-
"architectures": [
|
115 |
-
"Qwen2_5_VLForConditionalGeneration"
|
116 |
-
],
|
117 |
-
"attention_dropout": 0.0,
|
118 |
-
"bos_token_id": 151643,
|
119 |
-
"eos_token_id": 151645,
|
120 |
-
"hidden_act": "silu",
|
121 |
-
"hidden_size": 3584,
|
122 |
-
"image_token_id": null,
|
123 |
-
"initializer_range": 0.02,
|
124 |
-
"intermediate_size": 18944,
|
125 |
-
"max_position_embeddings": 128000,
|
126 |
-
"max_window_layers": 28,
|
127 |
-
"model_type": "qwen2_5_vl_text",
|
128 |
-
"num_attention_heads": 28,
|
129 |
-
"num_hidden_layers": 28,
|
130 |
-
"num_key_value_heads": 4,
|
131 |
-
"rms_norm_eps": 1e-06,
|
132 |
-
"rope_scaling": {
|
133 |
-
"mrope_section": [
|
134 |
-
16,
|
135 |
-
24,
|
136 |
-
24
|
137 |
-
],
|
138 |
-
"rope_type": "default",
|
139 |
-
"type": "default"
|
140 |
-
},
|
141 |
-
"rope_theta": 1000000.0,
|
142 |
-
"sliding_window": 32768,
|
143 |
-
"torch_dtype": "bfloat16",
|
144 |
-
"use_cache": true,
|
145 |
-
"use_sliding_window": false,
|
146 |
-
"video_token_id": null,
|
147 |
-
"vision_end_token_id": 151653,
|
148 |
-
"vision_start_token_id": 151652,
|
149 |
-
"vision_token_id": 151654,
|
150 |
-
"vocab_size": 152064
|
151 |
-
},
|
152 |
"tie_word_embeddings": false,
|
153 |
"torch_dtype": "bfloat16",
|
154 |
-
"transformers_version": "4.
|
155 |
"unsloth_fixed": true,
|
156 |
"use_cache": true,
|
157 |
"use_sliding_window": false,
|
@@ -168,7 +129,6 @@
|
|
168 |
"hidden_size": 1280,
|
169 |
"in_channels": 3,
|
170 |
"in_chans": 3,
|
171 |
-
"initializer_range": 0.02,
|
172 |
"intermediate_size": 3420,
|
173 |
"model_type": "qwen2_5_vl",
|
174 |
"num_heads": 16,
|
|
|
110 |
},
|
111 |
"rope_theta": 1000000.0,
|
112 |
"sliding_window": 32768,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
"tie_word_embeddings": false,
|
114 |
"torch_dtype": "bfloat16",
|
115 |
+
"transformers_version": "4.51.3",
|
116 |
"unsloth_fixed": true,
|
117 |
"use_cache": true,
|
118 |
"use_sliding_window": false,
|
|
|
129 |
"hidden_size": 1280,
|
130 |
"in_channels": 3,
|
131 |
"in_chans": 3,
|
|
|
132 |
"intermediate_size": 3420,
|
133 |
"model_type": "qwen2_5_vl",
|
134 |
"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 |
}
|