yonigozlan HF staff commited on
Commit
552621d
·
verified ·
1 Parent(s): eb2f4ed

Upload processor

Browse files
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n'}}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<image>\n' }}{% elif content['type'] == 'video' %}{{ '<video>\n' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{'<|im_end|>\n'}}{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant\n' }}{% endif %}"
3
+ }
preprocessor_config.json CHANGED
@@ -18,6 +18,7 @@
18
  ],
19
  "max_patches": 12,
20
  "min_patches": 1,
 
21
  "resample": 3,
22
  "rescale_factor": 0.00392156862745098,
23
  "size": {
 
18
  ],
19
  "max_patches": 12,
20
  "min_patches": 1,
21
+ "processor_class": "InternVLProcessor",
22
  "resample": 3,
23
  "rescale_factor": 0.00392156862745098,
24
  "size": {
processor_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "image_seq_length": 256,
3
+ "processor_class": "InternVLProcessor"
4
+ }
special_tokens_map.json CHANGED
@@ -13,69 +13,15 @@
13
  "<|vision_pad|>",
14
  "<|image_pad|>",
15
  "<|video_pad|>",
16
- {
17
- "content": "<img>",
18
- "lstrip": false,
19
- "normalized": false,
20
- "rstrip": false,
21
- "single_word": false
22
- },
23
- {
24
- "content": "</img>",
25
- "lstrip": false,
26
- "normalized": false,
27
- "rstrip": false,
28
- "single_word": false
29
- },
30
- {
31
- "content": "<IMG_CONTEXT>",
32
- "lstrip": false,
33
- "normalized": false,
34
- "rstrip": false,
35
- "single_word": false
36
- },
37
- {
38
- "content": "<quad>",
39
- "lstrip": false,
40
- "normalized": false,
41
- "rstrip": false,
42
- "single_word": false
43
- },
44
- {
45
- "content": "</quad>",
46
- "lstrip": false,
47
- "normalized": false,
48
- "rstrip": false,
49
- "single_word": false
50
- },
51
- {
52
- "content": "<ref>",
53
- "lstrip": false,
54
- "normalized": false,
55
- "rstrip": false,
56
- "single_word": false
57
- },
58
- {
59
- "content": "</ref>",
60
- "lstrip": false,
61
- "normalized": false,
62
- "rstrip": false,
63
- "single_word": false
64
- },
65
- {
66
- "content": "<box>",
67
- "lstrip": false,
68
- "normalized": false,
69
- "rstrip": false,
70
- "single_word": false
71
- },
72
- {
73
- "content": "</box>",
74
- "lstrip": false,
75
- "normalized": false,
76
- "rstrip": false,
77
- "single_word": false
78
- }
79
  ],
80
  "eos_token": {
81
  "content": "<|im_end|>",
 
13
  "<|vision_pad|>",
14
  "<|image_pad|>",
15
  "<|video_pad|>",
16
+ "<img>",
17
+ "</img>",
18
+ "<IMG_CONTEXT>",
19
+ "<quad>",
20
+ "</quad>",
21
+ "<ref>",
22
+ "</ref>",
23
+ "<box>",
24
+ "</box>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ],
26
  "eos_token": {
27
  "content": "<|im_end|>",
tokenizer_config.json CHANGED
@@ -283,6 +283,7 @@
283
  "extra_special_tokens": {},
284
  "model_max_length": 8192,
285
  "pad_token": "<|endoftext|>",
 
286
  "return_token_type_ids": false,
287
  "split_special_tokens": false,
288
  "tokenizer_class": "Qwen2Tokenizer",
 
283
  "extra_special_tokens": {},
284
  "model_max_length": 8192,
285
  "pad_token": "<|endoftext|>",
286
+ "processor_class": "InternVLProcessor",
287
  "return_token_type_ids": false,
288
  "split_special_tokens": false,
289
  "tokenizer_class": "Qwen2Tokenizer",