File size: 2,226 Bytes
a63d81a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
  "_class_name": "AutoProcessor",
  "_diffusers_version": "0.34.0",
  "_name_or_path": "Qwen/Qwen2.5-VL-7B-Instruct",
  "processor_type": "Qwen2_5_VLProcessor",
  "auto_map": {
    "AutoProcessor": "processing_qwen2_5_vl.Qwen2_5_VLProcessor"
  },
  "tokenizer_config": {
    "model_type": "qwen2_5_vl",
    "tokenizer_class": "Qwen2Tokenizer",
    "bos_token": "<|endoftext|>",
    "eos_token": "<|im_end|>",
    "pad_token": "<|endoftext|>",
    "unk_token": null,
    "add_bos_token": false,
    "add_eos_token": false,
    "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 %}"
  },
  "image_processor_config": {
    "image_processor_type": "Qwen2_5_VLImageProcessor",
    "do_resize": true,
    "size": {
      "min_pixels": 3136,
      "max_pixels": 12845056
    },
    "do_rescale": true,
    "rescale_factor": 0.00392156862745098,
    "do_normalize": true,
    "image_mean": [0.48145466, 0.4578275, 0.40821073],
    "image_std": [0.26862954, 0.26130258, 0.27577711]
  },
  "video_processor_config": {
    "video_processor_type": "Qwen2_5_VLVideoProcessor",
    "do_resize": true,
    "size": {
      "min_pixels": 3136,
      "max_pixels": 12845056
    },
    "fps": 2.0,
    "max_num_frames": 768
  }
}