Upload folder using huggingface_hub
Browse files- generation_config.json +3 -3
- preprocessor_config.json +8 -18
- tokenizer.json +2 -2
- tokenizer_config.json +2 -20
generation_config.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
{
|
| 2 |
-
"attn_implementation": "flash_attention_2",
|
| 3 |
"bos_token_id": 151643,
|
|
|
|
| 4 |
"do_sample": true,
|
| 5 |
"eos_token_id": [
|
| 6 |
151645,
|
| 7 |
151643
|
| 8 |
],
|
| 9 |
-
"
|
| 10 |
"temperature": 0.01,
|
| 11 |
-
"top_k": 1,
|
| 12 |
"top_p": 0.001,
|
|
|
|
| 13 |
"transformers_version": "4.47.1"
|
| 14 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"bos_token_id": 151643,
|
| 3 |
+
"pad_token_id": 151643,
|
| 4 |
"do_sample": true,
|
| 5 |
"eos_token_id": [
|
| 6 |
151645,
|
| 7 |
151643
|
| 8 |
],
|
| 9 |
+
"repetition_penalty": 1.0,
|
| 10 |
"temperature": 0.01,
|
|
|
|
| 11 |
"top_p": 0.001,
|
| 12 |
+
"top_k": 1,
|
| 13 |
"transformers_version": "4.47.1"
|
| 14 |
}
|
preprocessor_config.json
CHANGED
|
@@ -1,29 +1,19 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
|
|
|
| 6 |
"image_mean": [
|
| 7 |
0.48145466,
|
| 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 |
-
"
|
| 18 |
-
"
|
| 19 |
-
|
| 20 |
-
"patch_size": 14,
|
| 21 |
-
"processor_class": "Qwen2VLProcessor",
|
| 22 |
-
"resample": 3,
|
| 23 |
-
"rescale_factor": 0.00392156862745098,
|
| 24 |
-
"size": {
|
| 25 |
-
"max_pixels": 12845056,
|
| 26 |
-
"min_pixels": 3136
|
| 27 |
-
},
|
| 28 |
-
"temporal_patch_size": 2
|
| 29 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"min_pixels": 3136,
|
| 3 |
+
"max_pixels": 12845056,
|
| 4 |
+
"patch_size": 14,
|
| 5 |
+
"temporal_patch_size": 2,
|
| 6 |
+
"merge_size": 2,
|
| 7 |
"image_mean": [
|
| 8 |
0.48145466,
|
| 9 |
0.4578275,
|
| 10 |
0.40821073
|
| 11 |
],
|
|
|
|
| 12 |
"image_std": [
|
| 13 |
0.26862954,
|
| 14 |
0.26130258,
|
| 15 |
0.27577711
|
| 16 |
],
|
| 17 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 18 |
+
"processor_class": "Qwen2VLProcessor"
|
| 19 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb63a0a23eef3d5b01063a9880a1925a65aaf4d1591d519910ee3527852950a0
|
| 3 |
+
size 7029741
|
tokenizer_config.json
CHANGED
|
@@ -114,33 +114,15 @@
|
|
| 114 |
"special": true
|
| 115 |
}
|
| 116 |
},
|
| 117 |
-
"additional_special_tokens": [
|
| 118 |
-
"<|im_start|>",
|
| 119 |
-
"<|im_end|>",
|
| 120 |
-
"<|object_ref_start|>",
|
| 121 |
-
"<|object_ref_end|>",
|
| 122 |
-
"<|box_start|>",
|
| 123 |
-
"<|box_end|>",
|
| 124 |
-
"<|quad_start|>",
|
| 125 |
-
"<|quad_end|>",
|
| 126 |
-
"<|vision_start|>",
|
| 127 |
-
"<|vision_end|>",
|
| 128 |
-
"<|vision_pad|>",
|
| 129 |
-
"<|image_pad|>",
|
| 130 |
-
"<|video_pad|>"
|
| 131 |
-
],
|
| 132 |
"bos_token": null,
|
| 133 |
"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 %}",
|
| 134 |
"clean_up_tokenization_spaces": false,
|
| 135 |
"eos_token": "<|im_end|>",
|
|
|
|
| 136 |
"errors": "replace",
|
| 137 |
-
"extra_special_tokens": {},
|
| 138 |
-
"max_pixels": 1003520,
|
| 139 |
-
"min_pixels": 200704,
|
| 140 |
"model_max_length": 32768,
|
| 141 |
"pad_token": "<|endoftext|>",
|
| 142 |
-
"padding_side": "left",
|
| 143 |
-
"processor_class": "Qwen2VLProcessor",
|
| 144 |
"split_special_tokens": false,
|
| 145 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 146 |
"unk_token": null
|
|
|
|
| 114 |
"special": true
|
| 115 |
}
|
| 116 |
},
|
| 117 |
+
"additional_special_tokens": ["<|im_start|>", "<|im_end|>", "<|object_ref_start|>","<|object_ref_end|>","<|box_start|>","<|box_end|>","<|quad_start|>","<|quad_end|>","<|vision_start|>","<|vision_end|>","<|vision_pad|>","<|image_pad|>","<|video_pad|>"],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
"bos_token": null,
|
| 119 |
"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 %}",
|
| 120 |
"clean_up_tokenization_spaces": false,
|
| 121 |
"eos_token": "<|im_end|>",
|
| 122 |
+
"padding_side": "left",
|
| 123 |
"errors": "replace",
|
|
|
|
|
|
|
|
|
|
| 124 |
"model_max_length": 32768,
|
| 125 |
"pad_token": "<|endoftext|>",
|
|
|
|
|
|
|
| 126 |
"split_special_tokens": false,
|
| 127 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 128 |
"unk_token": null
|