Upload folder using huggingface_hub
Browse files- chat_template.json +3 -0
- config.json +52 -0
- generation_config.json +14 -0
- merges.txt +0 -0
- model-00001-of-00038.safetensors +3 -0
- model-00002-of-00038.safetensors +3 -0
- model-00003-of-00038.safetensors +3 -0
- model-00004-of-00038.safetensors +3 -0
- model-00005-of-00038.safetensors +3 -0
- model-00006-of-00038.safetensors +3 -0
- model-00007-of-00038.safetensors +3 -0
- model-00008-of-00038.safetensors +3 -0
- model-00009-of-00038.safetensors +3 -0
- model-00010-of-00038.safetensors +3 -0
- model-00011-of-00038.safetensors +3 -0
- model-00012-of-00038.safetensors +3 -0
- model-00013-of-00038.safetensors +3 -0
- model-00014-of-00038.safetensors +3 -0
- model-00015-of-00038.safetensors +3 -0
- model-00016-of-00038.safetensors +3 -0
- model-00017-of-00038.safetensors +3 -0
- model-00018-of-00038.safetensors +3 -0
- model-00019-of-00038.safetensors +3 -0
- model-00020-of-00038.safetensors +3 -0
- model-00021-of-00038.safetensors +3 -0
- model-00022-of-00038.safetensors +3 -0
- model-00023-of-00038.safetensors +3 -0
- model-00024-of-00038.safetensors +3 -0
- model-00025-of-00038.safetensors +3 -0
- model-00026-of-00038.safetensors +3 -0
- model-00027-of-00038.safetensors +3 -0
- model-00028-of-00038.safetensors +3 -0
- model-00029-of-00038.safetensors +3 -0
- model-00030-of-00038.safetensors +3 -0
- model-00031-of-00038.safetensors +3 -0
- model-00032-of-00038.safetensors +3 -0
- model-00033-of-00038.safetensors +3 -0
- model-00034-of-00038.safetensors +3 -0
- model-00035-of-00038.safetensors +3 -0
- model-00036-of-00038.safetensors +3 -0
- model-00037-of-00038.safetensors +3 -0
- model-00038-of-00038.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +19 -0
- tokenizer.json +0 -0
- tokenizer_config.json +207 -0
- vocab.json +0 -0
chat_template.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"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 and harmless assistant. You are Qwen developed by Alibaba. Answer in the language of the question. You should think step-by-step.<|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 %}"
|
3 |
+
}
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Qwen2VLForConditionalGeneration"
|
4 |
+
],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"bos_token_id": 151643,
|
7 |
+
"eos_token_id": 151645,
|
8 |
+
"vision_start_token_id": 151652,
|
9 |
+
"vision_end_token_id": 151653,
|
10 |
+
"vision_token_id": 151654,
|
11 |
+
"image_token_id": 151655,
|
12 |
+
"video_token_id": 151656,
|
13 |
+
"hidden_act": "silu",
|
14 |
+
"hidden_size": 8192,
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 29568,
|
17 |
+
"max_position_embeddings": 128000,
|
18 |
+
"max_window_layers": 80,
|
19 |
+
"model_type": "qwen2_vl",
|
20 |
+
"num_attention_heads": 64,
|
21 |
+
"num_hidden_layers": 80,
|
22 |
+
"num_key_value_heads": 8,
|
23 |
+
"rms_norm_eps": 1e-06,
|
24 |
+
"rope_theta": 1000000.0,
|
25 |
+
"sliding_window": 32768,
|
26 |
+
"tie_word_embeddings": false,
|
27 |
+
"torch_dtype": "bfloat16",
|
28 |
+
"transformers_version": "4.41.2",
|
29 |
+
"use_cache": true,
|
30 |
+
"use_sliding_window": false,
|
31 |
+
"vision_config": {
|
32 |
+
"depth": 32,
|
33 |
+
"embed_dim": 1280,
|
34 |
+
"mlp_ratio": 4,
|
35 |
+
"num_heads": 16,
|
36 |
+
"in_chans": 3,
|
37 |
+
"hidden_size": 8192,
|
38 |
+
"patch_size": 14,
|
39 |
+
"spatial_merge_size": 2,
|
40 |
+
"spatial_patch_size": 14,
|
41 |
+
"temporal_patch_size": 2
|
42 |
+
},
|
43 |
+
"rope_scaling": {
|
44 |
+
"type": "mrope",
|
45 |
+
"mrope_section": [
|
46 |
+
16,
|
47 |
+
24,
|
48 |
+
24
|
49 |
+
]
|
50 |
+
},
|
51 |
+
"vocab_size": 152064
|
52 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +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.00,
|
10 |
+
"temperature": 0.01,
|
11 |
+
"top_p": 0.001,
|
12 |
+
"top_k": 1,
|
13 |
+
"transformers_version": "4.37.0"
|
14 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model-00001-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83773da0605b78550a8b38a40614fcdc87cebb9c178733519c96631114773d9f
|
3 |
+
size 3890187664
|
model-00002-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:903380c42484315fd8326ec6ac7c164979ca53dae0499b6427edc08b866047e3
|
3 |
+
size 3812769392
|
model-00003-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:015962b4aa22dcea9ca2e709150dbde423f3bc87e75ee34aa14821dc6ad70b2b
|
3 |
+
size 3995183944
|
model-00004-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82ba45a91ca09d04943460a2920afb9d7cad0ccebbc55e3cd6a21585ec0f4ee6
|
3 |
+
size 3995183944
|
model-00005-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a15a09944cf8636e0b90a878bb1be5e7a83c5dc336a214be82563403a2d7afe
|
3 |
+
size 3995200440
|
model-00006-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ef4d521409655d1f02dad45f62c54a20e9676a1402ac38602d63abd6998f66e
|
3 |
+
size 3812769400
|
model-00007-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9163cfd87bd91c54af2171fb907e6a39603f80417aa72231708a07fa8dc9d42
|
3 |
+
size 3995183968
|
model-00008-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd72fc6800f8ede9b56a5503e3afe381c87281af49661f257fe11d839db79961
|
3 |
+
size 3995183968
|
model-00009-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1102e6e61a0605c725c1e6a6392679205cd5bc280c4a73aa75b2c11339db141b
|
3 |
+
size 3995200464
|
model-00010-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65b268f4cd27527a48694fddddd024f8a30f0c52d84b369ea5e3c9ec4aacd917
|
3 |
+
size 3812769424
|
model-00011-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:148b586228d3cc26104824db4c24a77d2774a631dfae3d22791d880024e3b543
|
3 |
+
size 3995183968
|
model-00012-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:634567ffde76719ea8960a08eaf60a7345aeb4211813696516e6fc62d7178891
|
3 |
+
size 3995183968
|
model-00013-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:abb317fe6f1d9ab6b95ea9b14717e4bfc27ffb4473a477558ef2e0be8108b533
|
3 |
+
size 3995200464
|
model-00014-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c769dc7163ad7b4a1ea1cbf9cbe4b7538b418933a241be83c4712e7a48e1ec40
|
3 |
+
size 3812769424
|
model-00015-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8ca572612384591db6671ed5511d7b22f4b65b5d5bd58bc6b345c2de5c7d619
|
3 |
+
size 3995183968
|
model-00016-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64b78959c371b18fe6a6b305341f7280b3a32fcd11af2ab4b0396c11b6962f86
|
3 |
+
size 3995183968
|
model-00017-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:21f9caf94e4297ff08402f4091b875034b3dfae33251556e9b9fff660e4c0bda
|
3 |
+
size 3995200464
|
model-00018-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac7d0e2da329be937e6941bb737a184c80b2630be7ee8970cc6b25dd4e350207
|
3 |
+
size 3812769424
|
model-00019-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9510215eaef0abe901e682abcd99bdb6a4660c28eb08c0980ff697b4bbcdb38c
|
3 |
+
size 3995183968
|
model-00020-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:158b82664037a5e02d556129ba3fa076baac71d8be805be5a88175a73b07e9c4
|
3 |
+
size 3995183968
|
model-00021-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5749f0d7ec613a5c8507bdd03d220ad2832e5de4b833950216828cc6d7fe8ddd
|
3 |
+
size 3995200464
|
model-00022-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d1a4b4e5170f1ecba9e8ee17ce00a4ab3d585ff1224df0bb830959a8f5935b48
|
3 |
+
size 3812769424
|
model-00023-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9fa39e8ea74b79b8ae181bf850b773993653056b6e858042407c38ff614dc861
|
3 |
+
size 3995183968
|
model-00024-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04fda4efe855578d3a5f1696d0b05d37cc5be0990c9b566693eb8479f907acb8
|
3 |
+
size 3995183968
|
model-00025-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c519888e306b6809ed85a811fd2028dfcb7d1a75cf373c1ba417ecf6aa21b0e
|
3 |
+
size 3995200464
|
model-00026-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d0fb0e974e6b2ace65dbbb23bdf17c86279cd208a85d04266bfe4bd2ee97116
|
3 |
+
size 3812769424
|
model-00027-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64bf6d81b61ef41c72d6eda03eb452cf29223d3f61b20b9783ba82be2beaf9f8
|
3 |
+
size 3995183968
|
model-00028-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:32736e81b8541156f54376621819f751ee48f8d11a2e0f48b1bffe1e207f1060
|
3 |
+
size 3995183968
|
model-00029-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9626eaf5ee148ce35a0520b16d50cd44d14c2468fccb7d4a3676aefd14ef4999
|
3 |
+
size 3995200464
|
model-00030-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e83b2d3bc46e48d6afa773a4dcc71ae6872d40229c1aa18e55dc844ff109f842
|
3 |
+
size 3812769424
|
model-00031-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71876a8cfdd5d7001224c1a7131add9bce2a55da5b27dcca20b3523bb45ecc3a
|
3 |
+
size 3995183968
|
model-00032-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:acdf764cfd2c43852e5e501857c9a7c14e251f6c32398141c1963862ed4cce9b
|
3 |
+
size 3995183968
|
model-00033-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3bcf5a4c34a855bf5c6f84f86e62548093437998e804c30d811df21cc572eef
|
3 |
+
size 3995200464
|
model-00034-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ac0aa4bb5d06cb890b0874f63aac7c414c2dfb90a78cb2e7f1dbc49da9d4338
|
3 |
+
size 3812769424
|
model-00035-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3cf986c2377ba1adced8e7de422923f41c276a6c3432a542bad0e760c31f3a39
|
3 |
+
size 3995183968
|
model-00036-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c77b360785ed9b369d4bf20d78c68cbd19a472c6dd8361c92ce641f9c6e081cf
|
3 |
+
size 3995183968
|
model-00037-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57bcfedcb93054f31f5b2153012909599d22c771ff086fc1bef549de64ecf666
|
3 |
+
size 2239829584
|
model-00038-of-00038.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa6a2bbb1791bff5a39fb5282734ca6994f1d2f7e3efc4daf90f5e2a7675e7ed
|
3 |
+
size 2491416704
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
preprocessor_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"min_pixels": 261856,
|
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
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"151646": {
|
29 |
+
"content": "<|object_ref_start|>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"151647": {
|
37 |
+
"content": "<|object_ref_end|>",
|
38 |
+
"lstrip": false,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
},
|
44 |
+
"151648": {
|
45 |
+
"content": "<|box_start|>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": false,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false,
|
50 |
+
"special": true
|
51 |
+
},
|
52 |
+
"151649": {
|
53 |
+
"content": "<|box_end|>",
|
54 |
+
"lstrip": false,
|
55 |
+
"normalized": false,
|
56 |
+
"rstrip": false,
|
57 |
+
"single_word": false,
|
58 |
+
"special": true
|
59 |
+
},
|
60 |
+
"151650": {
|
61 |
+
"content": "<|quad_start|>",
|
62 |
+
"lstrip": false,
|
63 |
+
"normalized": false,
|
64 |
+
"rstrip": false,
|
65 |
+
"single_word": false,
|
66 |
+
"special": true
|
67 |
+
},
|
68 |
+
"151651": {
|
69 |
+
"content": "<|quad_end|>",
|
70 |
+
"lstrip": false,
|
71 |
+
"normalized": false,
|
72 |
+
"rstrip": false,
|
73 |
+
"single_word": false,
|
74 |
+
"special": true
|
75 |
+
},
|
76 |
+
"151652": {
|
77 |
+
"content": "<|vision_start|>",
|
78 |
+
"lstrip": false,
|
79 |
+
"normalized": false,
|
80 |
+
"rstrip": false,
|
81 |
+
"single_word": false,
|
82 |
+
"special": true
|
83 |
+
},
|
84 |
+
"151653": {
|
85 |
+
"content": "<|vision_end|>",
|
86 |
+
"lstrip": false,
|
87 |
+
"normalized": false,
|
88 |
+
"rstrip": false,
|
89 |
+
"single_word": false,
|
90 |
+
"special": true
|
91 |
+
},
|
92 |
+
"151654": {
|
93 |
+
"content": "<|vision_pad|>",
|
94 |
+
"lstrip": false,
|
95 |
+
"normalized": false,
|
96 |
+
"rstrip": false,
|
97 |
+
"single_word": false,
|
98 |
+
"special": true
|
99 |
+
},
|
100 |
+
"151655": {
|
101 |
+
"content": "<|image_pad|>",
|
102 |
+
"lstrip": false,
|
103 |
+
"normalized": false,
|
104 |
+
"rstrip": false,
|
105 |
+
"single_word": false,
|
106 |
+
"special": true
|
107 |
+
},
|
108 |
+
"151656": {
|
109 |
+
"content": "<|video_pad|>",
|
110 |
+
"lstrip": false,
|
111 |
+
"normalized": false,
|
112 |
+
"rstrip": false,
|
113 |
+
"single_word": false,
|
114 |
+
"special": true
|
115 |
+
},
|
116 |
+
"151657": {
|
117 |
+
"content": "<tool_call>",
|
118 |
+
"lstrip": false,
|
119 |
+
"normalized": false,
|
120 |
+
"rstrip": false,
|
121 |
+
"single_word": false,
|
122 |
+
"special": false
|
123 |
+
},
|
124 |
+
"151658": {
|
125 |
+
"content": "</tool_call>",
|
126 |
+
"lstrip": false,
|
127 |
+
"normalized": false,
|
128 |
+
"rstrip": false,
|
129 |
+
"single_word": false,
|
130 |
+
"special": false
|
131 |
+
},
|
132 |
+
"151659": {
|
133 |
+
"content": "<|fim_prefix|>",
|
134 |
+
"lstrip": false,
|
135 |
+
"normalized": false,
|
136 |
+
"rstrip": false,
|
137 |
+
"single_word": false,
|
138 |
+
"special": false
|
139 |
+
},
|
140 |
+
"151660": {
|
141 |
+
"content": "<|fim_middle|>",
|
142 |
+
"lstrip": false,
|
143 |
+
"normalized": false,
|
144 |
+
"rstrip": false,
|
145 |
+
"single_word": false,
|
146 |
+
"special": false
|
147 |
+
},
|
148 |
+
"151661": {
|
149 |
+
"content": "<|fim_suffix|>",
|
150 |
+
"lstrip": false,
|
151 |
+
"normalized": false,
|
152 |
+
"rstrip": false,
|
153 |
+
"single_word": false,
|
154 |
+
"special": false
|
155 |
+
},
|
156 |
+
"151662": {
|
157 |
+
"content": "<|fim_pad|>",
|
158 |
+
"lstrip": false,
|
159 |
+
"normalized": false,
|
160 |
+
"rstrip": false,
|
161 |
+
"single_word": false,
|
162 |
+
"special": false
|
163 |
+
},
|
164 |
+
"151663": {
|
165 |
+
"content": "<|repo_name|>",
|
166 |
+
"lstrip": false,
|
167 |
+
"normalized": false,
|
168 |
+
"rstrip": false,
|
169 |
+
"single_word": false,
|
170 |
+
"special": false
|
171 |
+
},
|
172 |
+
"151664": {
|
173 |
+
"content": "<|file_sep|>",
|
174 |
+
"lstrip": false,
|
175 |
+
"normalized": false,
|
176 |
+
"rstrip": false,
|
177 |
+
"single_word": false,
|
178 |
+
"special": false
|
179 |
+
}
|
180 |
+
},
|
181 |
+
"additional_special_tokens": [
|
182 |
+
"<|im_start|>",
|
183 |
+
"<|im_end|>",
|
184 |
+
"<|object_ref_start|>",
|
185 |
+
"<|object_ref_end|>",
|
186 |
+
"<|box_start|>",
|
187 |
+
"<|box_end|>",
|
188 |
+
"<|quad_start|>",
|
189 |
+
"<|quad_end|>",
|
190 |
+
"<|vision_start|>",
|
191 |
+
"<|vision_end|>",
|
192 |
+
"<|vision_pad|>",
|
193 |
+
"<|image_pad|>",
|
194 |
+
"<|video_pad|>"
|
195 |
+
],
|
196 |
+
"bos_token": null,
|
197 |
+
"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 and harmless assistant. You are Qwen developed by Alibaba. You should think step-by-step.<|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 %}",
|
198 |
+
"clean_up_tokenization_spaces": false,
|
199 |
+
"eos_token": "<|im_end|>",
|
200 |
+
"errors": "replace",
|
201 |
+
"model_max_length": 131072,
|
202 |
+
"pad_token": "<|endoftext|>",
|
203 |
+
"split_special_tokens": false,
|
204 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
205 |
+
"unk_token": null,
|
206 |
+
"add_bos_token": false
|
207 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|