RaushanTurganbay HF Staff commited on
Commit
dc3acec
·
verified ·
1 Parent(s): e3aa348

Upload processor

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
chat_template.jinja ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {% for message in messages %}{{'<|im_start|>' + message['role'] + ' '}}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>' }}{% endfor %}{# Render all video then #}{% for content in message['content'] | selectattr('type', 'equalto', 'video') %}{{ '<video>' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ '
2
+ ' + content['text'] }}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ '
3
+ ' + content['text'] }}{% endgeneration %}{% endfor %}{% endif %}{{'<|im_end|>'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
4
+ ' }}{% endif %}
processor_config.json ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_pad": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_grid_pinpoints": [
9
+ [
10
+ 384,
11
+ 384
12
+ ],
13
+ [
14
+ 384,
15
+ 768
16
+ ],
17
+ [
18
+ 384,
19
+ 1152
20
+ ],
21
+ [
22
+ 384,
23
+ 1536
24
+ ],
25
+ [
26
+ 384,
27
+ 1920
28
+ ],
29
+ [
30
+ 384,
31
+ 2304
32
+ ],
33
+ [
34
+ 768,
35
+ 384
36
+ ],
37
+ [
38
+ 768,
39
+ 768
40
+ ],
41
+ [
42
+ 768,
43
+ 1152
44
+ ],
45
+ [
46
+ 768,
47
+ 1536
48
+ ],
49
+ [
50
+ 768,
51
+ 1920
52
+ ],
53
+ [
54
+ 768,
55
+ 2304
56
+ ],
57
+ [
58
+ 1152,
59
+ 384
60
+ ],
61
+ [
62
+ 1152,
63
+ 768
64
+ ],
65
+ [
66
+ 1152,
67
+ 1152
68
+ ],
69
+ [
70
+ 1152,
71
+ 1536
72
+ ],
73
+ [
74
+ 1152,
75
+ 1920
76
+ ],
77
+ [
78
+ 1152,
79
+ 2304
80
+ ],
81
+ [
82
+ 1536,
83
+ 384
84
+ ],
85
+ [
86
+ 1536,
87
+ 768
88
+ ],
89
+ [
90
+ 1536,
91
+ 1152
92
+ ],
93
+ [
94
+ 1536,
95
+ 1536
96
+ ],
97
+ [
98
+ 1536,
99
+ 1920
100
+ ],
101
+ [
102
+ 1536,
103
+ 2304
104
+ ],
105
+ [
106
+ 1920,
107
+ 384
108
+ ],
109
+ [
110
+ 1920,
111
+ 768
112
+ ],
113
+ [
114
+ 1920,
115
+ 1152
116
+ ],
117
+ [
118
+ 1920,
119
+ 1536
120
+ ],
121
+ [
122
+ 1920,
123
+ 1920
124
+ ],
125
+ [
126
+ 1920,
127
+ 2304
128
+ ],
129
+ [
130
+ 2304,
131
+ 384
132
+ ],
133
+ [
134
+ 2304,
135
+ 768
136
+ ],
137
+ [
138
+ 2304,
139
+ 1152
140
+ ],
141
+ [
142
+ 2304,
143
+ 1536
144
+ ],
145
+ [
146
+ 2304,
147
+ 1920
148
+ ],
149
+ [
150
+ 2304,
151
+ 2304
152
+ ]
153
+ ],
154
+ "image_mean": [
155
+ 0.5,
156
+ 0.5,
157
+ 0.5
158
+ ],
159
+ "image_processor_type": "LlavaOnevisionImageProcessor",
160
+ "image_std": [
161
+ 0.5,
162
+ 0.5,
163
+ 0.5
164
+ ],
165
+ "resample": 3,
166
+ "rescale_factor": 0.00392156862745098,
167
+ "size": {
168
+ "height": 384,
169
+ "width": 384
170
+ }
171
+ },
172
+ "image_token": "<image>",
173
+ "num_additional_image_tokens": 0,
174
+ "patch_size": 14,
175
+ "processor_class": "LlavaProcessor",
176
+ "vision_feature_select_strategy": "full"
177
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c444ca8e2127f1074a2cfec39e437fdc909de7b4f3713f91af2c4a9d1fdf9fe9
3
+ size 11418630
tokenizer_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "additional_special_tokens": [
4
+ "<|im_start|>",
5
+ "<|im_end|>"
6
+ ],
7
+ "backend": "tokenizers",
8
+ "bos_token": null,
9
+ "clean_up_tokenization_spaces": false,
10
+ "eos_token": "<|im_end|>",
11
+ "errors": "replace",
12
+ "extra_special_tokens": [
13
+ "<|im_start|>",
14
+ "<|im_end|>"
15
+ ],
16
+ "is_local": false,
17
+ "max_length": null,
18
+ "model_max_length": 32768,
19
+ "model_specific_special_tokens": {},
20
+ "pad_to_multiple_of": null,
21
+ "pad_token": "<|endoftext|>",
22
+ "pad_token_type_id": 0,
23
+ "padding_side": "right",
24
+ "processor_class": "LlavaProcessor",
25
+ "split_special_tokens": false,
26
+ "tokenizer_class": "Qwen2Tokenizer",
27
+ "unk_token": null
28
+ }