Upload folder using huggingface_hub
Browse files- chat_template.json +3 -0
- config.json +64 -77
- generation_config.json +13 -12
- merges.txt +0 -1
- preprocessor_config.json +20 -38
- tokenizer_config.json +1 -2
- video_preprocessor_config.json +20 -40
chat_template.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {%- if messages[0].content is string %}\n {{- messages[0].content }}\n {%- else %}\n {%- for content in messages[0].content %}\n {%- if 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].content is string %}\n {{- messages[0].content }}\n {%- else %}\n {%- for content in messages[0].content %}\n {%- if 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- set point_cloud_count = namespace(value=0) %}\n{%- set point_cloud_count = namespace(value=0) %}\n{%- for message in messages %}\n {%- if message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' }}\n {%- if message.content is string %}\n {{- message.content }}\n {%- else %}\n {%- for content in message.content %}\n {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}\n <|vision_start|><|image_pad|><|vision_end|>\n {%- elif content.type == 'video' or 'video' in content %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}\n <|vision_start|><|video_pad|><|vision_end|>\n {%- elif content.type == 'point_cloud' or 'point_cloud' in content %}\n {%- set point_cloud_count.value = point_cloud_count.value + 1 %}\n {%- if add_vision_id %}Point Cloud {{ point_cloud_count.value }}: {% endif -%}\n <|point_cloud_start|><|point_cloud_pad|><|point_cloud_end|>\n {%- elif 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role + '\\n' }}\n {%- if message.content is string %}\n {{- message.content }}\n {%- else %}\n {%- for content_item in message.content %}\n {%- if 'text' in content_item %}\n {{- content_item.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and message.content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {%- if message.content is string %}\n {{- message.content }}\n {%- else %}\n {%- for content in message.content %}\n {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}\n <|vision_start|><|image_pad|><|vision_end|>\n {%- elif content.type == 'video' or 'video' in content %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}\n <|vision_start|><|video_pad|><|vision_end|>\n {%- elif content.type == 'point_cloud' or 'point_cloud' in content %}\n {%- set point_cloud_count.value = point_cloud_count.value + 1 %}\n {%- if add_vision_id %}Point Cloud {{ point_cloud_count.value }}: {% endif -%}\n <|point_cloud_start|><|point_cloud_pad|><|point_cloud_end|>\n {%- elif 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n"
|
| 3 |
+
}
|
config.json
CHANGED
|
@@ -2,74 +2,13 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"Qwen3VLForConditionalGeneration"
|
| 4 |
],
|
| 5 |
-
"bg_token_id": 151673,
|
| 6 |
-
"ce_loss_threshold": 0.05,
|
| 7 |
-
"decoder_mode": "joint",
|
| 8 |
-
"dtype": "float32",
|
| 9 |
-
"eos_token_id": 151645,
|
| 10 |
"image_token_id": 151655,
|
| 11 |
-
"mask_decoder_config": {
|
| 12 |
-
"decoder_chunk_size": 8,
|
| 13 |
-
"dtype": "float32",
|
| 14 |
-
"mask_decoder_embedding_input_dim": 2560,
|
| 15 |
-
"mask_decoder_transformer_dim": 512,
|
| 16 |
-
"model_type": "qwen3_vl_mask_decoder",
|
| 17 |
-
"transformer_attention_downsample_rate": 2,
|
| 18 |
-
"transformer_depth": 2,
|
| 19 |
-
"transformer_embedding_dim": 512,
|
| 20 |
-
"transformer_mlp_dim": 2048,
|
| 21 |
-
"transformer_num_heads": 8,
|
| 22 |
-
"utonia_enc_channels": [
|
| 23 |
-
54,
|
| 24 |
-
108,
|
| 25 |
-
216,
|
| 26 |
-
432,
|
| 27 |
-
576
|
| 28 |
-
]
|
| 29 |
-
},
|
| 30 |
-
"mask_decoder_fusion_mode": "concat",
|
| 31 |
"model_type": "qwen3_vl",
|
| 32 |
-
"pad_token_id": 151643,
|
| 33 |
-
"point_cloud_config": {
|
| 34 |
-
"ckpt_path": null,
|
| 35 |
-
"downsample_ratio": 20,
|
| 36 |
-
"drop_path_rate": 0.0,
|
| 37 |
-
"dtype": "float32",
|
| 38 |
-
"embed_dim": 64,
|
| 39 |
-
"geo_decoder_downsample_ratio": 1,
|
| 40 |
-
"geo_decoder_ln_post": true,
|
| 41 |
-
"geo_decoder_mlp_expand_ratio": 4,
|
| 42 |
-
"heads": 16,
|
| 43 |
-
"include_pi": false,
|
| 44 |
-
"label_type": "binary",
|
| 45 |
-
"model_type": "qwen3_vl_point_cloud",
|
| 46 |
-
"num_decoder_layers": 16,
|
| 47 |
-
"num_encoder_layers": 8,
|
| 48 |
-
"num_freqs": 8,
|
| 49 |
-
"num_latents": 4096,
|
| 50 |
-
"output_hidden_size": 2560,
|
| 51 |
-
"pc_sharpedge_size": 0,
|
| 52 |
-
"pc_size": 81920,
|
| 53 |
-
"point_feats": 4,
|
| 54 |
-
"qk_norm": true,
|
| 55 |
-
"qkv_bias": false,
|
| 56 |
-
"scale_factor": 1.0039506158752403,
|
| 57 |
-
"surface_extractor": null,
|
| 58 |
-
"use_ln_post": true,
|
| 59 |
-
"volume_decoder": null,
|
| 60 |
-
"width": 1024
|
| 61 |
-
},
|
| 62 |
-
"point_cloud_encoder_type": "utonia",
|
| 63 |
-
"point_cloud_end_token_id": 151670,
|
| 64 |
-
"point_cloud_start_token_id": 151669,
|
| 65 |
-
"point_cloud_token_id": 151671,
|
| 66 |
-
"seg_loss_weight": 1.0,
|
| 67 |
-
"seg_token_id": 151672,
|
| 68 |
"text_config": {
|
| 69 |
"attention_bias": false,
|
| 70 |
"attention_dropout": 0.0,
|
| 71 |
"bos_token_id": 151643,
|
| 72 |
-
"dtype": "
|
| 73 |
"eos_token_id": 151645,
|
| 74 |
"head_dim": 128,
|
| 75 |
"hidden_act": "silu",
|
|
@@ -97,18 +36,7 @@
|
|
| 97 |
"vocab_size": 151936
|
| 98 |
},
|
| 99 |
"tie_word_embeddings": true,
|
| 100 |
-
"transformers_version": "4.57.
|
| 101 |
-
"use_mask_decoder": true,
|
| 102 |
-
"utonia_ckpt_path": "/vinowan-cfs/zhezhu/code/verl/third_party/Utonia/ckpt/utonia.pth",
|
| 103 |
-
"utonia_enc_channels": [
|
| 104 |
-
54,
|
| 105 |
-
108,
|
| 106 |
-
216,
|
| 107 |
-
432,
|
| 108 |
-
576
|
| 109 |
-
],
|
| 110 |
-
"utonia_num_tokens": 4096,
|
| 111 |
-
"utonia_scale": 5.0,
|
| 112 |
"video_token_id": 151656,
|
| 113 |
"vision_config": {
|
| 114 |
"deepstack_visual_indexes": [
|
|
@@ -117,7 +45,6 @@
|
|
| 117 |
17
|
| 118 |
],
|
| 119 |
"depth": 24,
|
| 120 |
-
"dtype": "float32",
|
| 121 |
"hidden_act": "gelu_pytorch_tanh",
|
| 122 |
"hidden_size": 1024,
|
| 123 |
"in_channels": 3,
|
|
@@ -131,6 +58,66 @@
|
|
| 131 |
"spatial_merge_size": 2,
|
| 132 |
"temporal_patch_size": 2
|
| 133 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
"vision_end_token_id": 151653,
|
| 135 |
-
"vision_start_token_id": 151652
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"Qwen3VLForConditionalGeneration"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"image_token_id": 151655,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"model_type": "qwen3_vl",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
"text_config": {
|
| 8 |
"attention_bias": false,
|
| 9 |
"attention_dropout": 0.0,
|
| 10 |
"bos_token_id": 151643,
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
"eos_token_id": 151645,
|
| 13 |
"head_dim": 128,
|
| 14 |
"hidden_act": "silu",
|
|
|
|
| 36 |
"vocab_size": 151936
|
| 37 |
},
|
| 38 |
"tie_word_embeddings": true,
|
| 39 |
+
"transformers_version": "4.57.0.dev0",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
"video_token_id": 151656,
|
| 41 |
"vision_config": {
|
| 42 |
"deepstack_visual_indexes": [
|
|
|
|
| 45 |
17
|
| 46 |
],
|
| 47 |
"depth": 24,
|
|
|
|
| 48 |
"hidden_act": "gelu_pytorch_tanh",
|
| 49 |
"hidden_size": 1024,
|
| 50 |
"in_channels": 3,
|
|
|
|
| 58 |
"spatial_merge_size": 2,
|
| 59 |
"temporal_patch_size": 2
|
| 60 |
},
|
| 61 |
+
"point_cloud_config": {
|
| 62 |
+
"model_type": "qwen3_vl_point_cloud",
|
| 63 |
+
"attn_implementation": "flash_attention_2",
|
| 64 |
+
"num_latents": 4096,
|
| 65 |
+
"embed_dim": 64,
|
| 66 |
+
"width": 1024,
|
| 67 |
+
"heads": 16,
|
| 68 |
+
"num_encoder_layers": 8,
|
| 69 |
+
"num_decoder_layers": 16,
|
| 70 |
+
"qkv_bias": false,
|
| 71 |
+
"qk_norm": true,
|
| 72 |
+
"scale_factor": 1.0039506158752403,
|
| 73 |
+
"geo_decoder_mlp_expand_ratio": 4,
|
| 74 |
+
"num_freqs": 8,
|
| 75 |
+
"include_pi": false,
|
| 76 |
+
"point_feats": 4,
|
| 77 |
+
"pc_size": 81920,
|
| 78 |
+
"pc_sharpedge_size": 0,
|
| 79 |
+
"geo_decoder_downsample_ratio": 1,
|
| 80 |
+
"geo_decoder_ln_post": true,
|
| 81 |
+
"output_hidden_size": 2560
|
| 82 |
+
},
|
| 83 |
"vision_end_token_id": 151653,
|
| 84 |
+
"vision_start_token_id": 151652,
|
| 85 |
+
"point_cloud_token_id": 151671,
|
| 86 |
+
"point_cloud_end_token_id": 151670,
|
| 87 |
+
"point_cloud_start_token_id": 151669,
|
| 88 |
+
"seg_loss_weight": 1.0,
|
| 89 |
+
"ce_loss_threshold": 0.05,
|
| 90 |
+
"seg_token_id": 151672,
|
| 91 |
+
"bg_token_id": 151673,
|
| 92 |
+
"decoder_mode": "joint",
|
| 93 |
+
"use_mask_decoder": true,
|
| 94 |
+
"point_cloud_encoder_type": "utonia",
|
| 95 |
+
"utonia_ckpt_path": "/vinowan-cfs/zhezhu/code/verl/third_party/Utonia/ckpt/utonia.pth",
|
| 96 |
+
"utonia_scale": 5.0,
|
| 97 |
+
"utonia_num_tokens": 4096,
|
| 98 |
+
"utonia_enc_channels": [
|
| 99 |
+
54,
|
| 100 |
+
108,
|
| 101 |
+
216,
|
| 102 |
+
432,
|
| 103 |
+
576
|
| 104 |
+
],
|
| 105 |
+
"mask_decoder_config": {
|
| 106 |
+
"model_type": "qwen3_vl_mask_decoder",
|
| 107 |
+
"transformer_depth": 2,
|
| 108 |
+
"transformer_embedding_dim": 512,
|
| 109 |
+
"transformer_num_heads": 8,
|
| 110 |
+
"transformer_mlp_dim": 2048,
|
| 111 |
+
"transformer_attention_downsample_rate": 2,
|
| 112 |
+
"mask_decoder_transformer_dim": 512,
|
| 113 |
+
"mask_decoder_embedding_input_dim": 2560,
|
| 114 |
+
"utonia_enc_channels": [
|
| 115 |
+
54,
|
| 116 |
+
108,
|
| 117 |
+
216,
|
| 118 |
+
432,
|
| 119 |
+
576
|
| 120 |
+
],
|
| 121 |
+
"decoder_chunk_size": 8
|
| 122 |
+
}
|
| 123 |
+
}
|
generation_config.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
| 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 |
+
"top_k": 20,
|
| 10 |
+
"top_p": 0.8,
|
| 11 |
+
"repetition_penalty": 1.0,
|
| 12 |
+
"temperature": 0.7,
|
| 13 |
+
"transformers_version": "4.56.0"
|
| 14 |
+
}
|
merges.txt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
#version: 0.2
|
| 2 |
Ġ Ġ
|
| 3 |
ĠĠ ĠĠ
|
| 4 |
i n
|
|
|
|
|
|
|
| 1 |
Ġ Ġ
|
| 2 |
ĠĠ ĠĠ
|
| 3 |
i n
|
preprocessor_config.json
CHANGED
|
@@ -1,39 +1,21 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
0.5
|
| 23 |
-
],
|
| 24 |
-
"input_data_format": null,
|
| 25 |
-
"max_pixels": null,
|
| 26 |
-
"merge_size": 2,
|
| 27 |
-
"min_pixels": null,
|
| 28 |
-
"pad_size": null,
|
| 29 |
-
"patch_size": 16,
|
| 30 |
-
"processor_class": "Qwen3VLProcessor",
|
| 31 |
-
"resample": 3,
|
| 32 |
-
"rescale_factor": 0.00392156862745098,
|
| 33 |
-
"return_tensors": null,
|
| 34 |
-
"size": {
|
| 35 |
-
"longest_edge": 16777216,
|
| 36 |
-
"shortest_edge": 65536
|
| 37 |
-
},
|
| 38 |
-
"temporal_patch_size": 2
|
| 39 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 16777216,
|
| 4 |
+
"shortest_edge": 65536
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"image_processor_type": "Qwen2VLImageProcessorFast"
|
| 21 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tokenizer_config.json
CHANGED
|
@@ -272,13 +272,12 @@
|
|
| 272 |
"<|BG|>"
|
| 273 |
],
|
| 274 |
"bos_token": null,
|
|
|
|
| 275 |
"clean_up_tokenization_spaces": false,
|
| 276 |
"eos_token": "<|im_end|>",
|
| 277 |
"errors": "replace",
|
| 278 |
-
"extra_special_tokens": {},
|
| 279 |
"model_max_length": 262144,
|
| 280 |
"pad_token": "<|endoftext|>",
|
| 281 |
-
"processor_class": "Qwen3VLProcessor",
|
| 282 |
"split_special_tokens": false,
|
| 283 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 284 |
"unk_token": null
|
|
|
|
| 272 |
"<|BG|>"
|
| 273 |
],
|
| 274 |
"bos_token": null,
|
| 275 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {%- if messages[0].content is string %}\n {{- messages[0].content }}\n {%- else %}\n {%- for content in messages[0].content %}\n {%- if 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].content is string %}\n {{- messages[0].content }}\n {%- else %}\n {%- for content in messages[0].content %}\n {%- if 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- set point_cloud_count = namespace(value=0) %}\n{%- set point_cloud_count = namespace(value=0) %}\n{%- for message in messages %}\n {%- if message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' }}\n {%- if message.content is string %}\n {{- message.content }}\n {%- else %}\n {%- for content in message.content %}\n {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}\n <|vision_start|><|image_pad|><|vision_end|>\n {%- elif content.type == 'video' or 'video' in content %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}\n <|vision_start|><|video_pad|><|vision_end|>\n {%- elif content.type == 'point_cloud' or 'point_cloud' in content %}\n {%- set point_cloud_count.value = point_cloud_count.value + 1 %}\n {%- if add_vision_id %}Point Cloud {{ point_cloud_count.value }}: {% endif -%}\n <|point_cloud_start|><|point_cloud_pad|><|point_cloud_end|>\n {%- elif 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role + '\\n' }}\n {%- if message.content is string %}\n {{- message.content }}\n {%- else %}\n {%- for content_item in message.content %}\n {%- if 'text' in content_item %}\n {{- content_item.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and message.content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {%- if message.content is string %}\n {{- message.content }}\n {%- else %}\n {%- for content in message.content %}\n {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}\n <|vision_start|><|image_pad|><|vision_end|>\n {%- elif content.type == 'video' or 'video' in content %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}\n <|vision_start|><|video_pad|><|vision_end|>\n {%- elif content.type == 'point_cloud' or 'point_cloud' in content %}\n {%- set point_cloud_count.value = point_cloud_count.value + 1 %}\n {%- if add_vision_id %}Point Cloud {{ point_cloud_count.value }}: {% endif -%}\n <|point_cloud_start|><|point_cloud_pad|><|point_cloud_end|>\n {%- elif 'text' in content %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
| 276 |
"clean_up_tokenization_spaces": false,
|
| 277 |
"eos_token": "<|im_end|>",
|
| 278 |
"errors": "replace",
|
|
|
|
| 279 |
"model_max_length": 262144,
|
| 280 |
"pad_token": "<|endoftext|>",
|
|
|
|
| 281 |
"split_special_tokens": false,
|
| 282 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 283 |
"unk_token": null
|
video_preprocessor_config.json
CHANGED
|
@@ -1,41 +1,21 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
],
|
| 23 |
-
"input_data_format": null,
|
| 24 |
-
"max_frames": 768,
|
| 25 |
-
"merge_size": 2,
|
| 26 |
-
"min_frames": 4,
|
| 27 |
-
"num_frames": null,
|
| 28 |
-
"pad_size": null,
|
| 29 |
-
"patch_size": 16,
|
| 30 |
-
"processor_class": "Qwen3VLProcessor",
|
| 31 |
-
"resample": 3,
|
| 32 |
-
"rescale_factor": 0.00392156862745098,
|
| 33 |
-
"return_metadata": false,
|
| 34 |
-
"size": {
|
| 35 |
-
"longest_edge": 25165824,
|
| 36 |
-
"shortest_edge": 4096
|
| 37 |
-
},
|
| 38 |
-
"temporal_patch_size": 2,
|
| 39 |
-
"video_metadata": null,
|
| 40 |
-
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 41 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 25165824,
|
| 4 |
+
"shortest_edge": 4096
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 21 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|