RaushanTurganbay HF staff commited on
Commit
d069344
·
verified ·
1 Parent(s): 7da7577

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
added_tokens.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "<image>": 151646,
3
+ "<|endoftext|>": 151643,
4
+ "<|im_end|>": 151645,
5
+ "<|im_start|>": 151644
6
+ }
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n'}}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>' }}{% endfor %}{# Render all videos first #}{% 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') %}{{ '\n' + content['text'] }}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ '\n' + content['text'] }}{% endgeneration %}{% endfor %}{% endif %}{{'<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
3
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "do_center_crop": false,
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_pad": true,
7
+ "do_rescale": true,
8
+ "do_resize": true,
9
+ "image_grid_pinpoints": [
10
+ [
11
+ 384,
12
+ 384
13
+ ],
14
+ [
15
+ 384,
16
+ 768
17
+ ],
18
+ [
19
+ 384,
20
+ 1152
21
+ ],
22
+ [
23
+ 384,
24
+ 1536
25
+ ],
26
+ [
27
+ 384,
28
+ 1920
29
+ ],
30
+ [
31
+ 384,
32
+ 2304
33
+ ],
34
+ [
35
+ 768,
36
+ 384
37
+ ],
38
+ [
39
+ 768,
40
+ 768
41
+ ],
42
+ [
43
+ 768,
44
+ 1152
45
+ ],
46
+ [
47
+ 768,
48
+ 1536
49
+ ],
50
+ [
51
+ 768,
52
+ 1920
53
+ ],
54
+ [
55
+ 768,
56
+ 2304
57
+ ],
58
+ [
59
+ 1152,
60
+ 384
61
+ ],
62
+ [
63
+ 1152,
64
+ 768
65
+ ],
66
+ [
67
+ 1152,
68
+ 1152
69
+ ],
70
+ [
71
+ 1152,
72
+ 1536
73
+ ],
74
+ [
75
+ 1152,
76
+ 1920
77
+ ],
78
+ [
79
+ 1152,
80
+ 2304
81
+ ],
82
+ [
83
+ 1536,
84
+ 384
85
+ ],
86
+ [
87
+ 1536,
88
+ 768
89
+ ],
90
+ [
91
+ 1536,
92
+ 1152
93
+ ],
94
+ [
95
+ 1536,
96
+ 1536
97
+ ],
98
+ [
99
+ 1536,
100
+ 1920
101
+ ],
102
+ [
103
+ 1536,
104
+ 2304
105
+ ],
106
+ [
107
+ 1920,
108
+ 384
109
+ ],
110
+ [
111
+ 1920,
112
+ 768
113
+ ],
114
+ [
115
+ 1920,
116
+ 1152
117
+ ],
118
+ [
119
+ 1920,
120
+ 1536
121
+ ],
122
+ [
123
+ 1920,
124
+ 1920
125
+ ],
126
+ [
127
+ 1920,
128
+ 2304
129
+ ],
130
+ [
131
+ 2304,
132
+ 384
133
+ ],
134
+ [
135
+ 2304,
136
+ 768
137
+ ],
138
+ [
139
+ 2304,
140
+ 1152
141
+ ],
142
+ [
143
+ 2304,
144
+ 1536
145
+ ],
146
+ [
147
+ 2304,
148
+ 1920
149
+ ],
150
+ [
151
+ 2304,
152
+ 2304
153
+ ]
154
+ ],
155
+ "image_mean": [
156
+ 0.5,
157
+ 0.5,
158
+ 0.5
159
+ ],
160
+ "image_processor_type": "LlavaNextImageProcessor",
161
+ "image_std": [
162
+ 0.5,
163
+ 0.5,
164
+ 0.5
165
+ ],
166
+ "processor_class": "LlavaNextVideoProcessor",
167
+ "resample": 3,
168
+ "rescale_factor": 0.00392156862745098,
169
+ "size": {
170
+ "height": 384,
171
+ "width": 384
172
+ }
173
+ }
processor_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_token": "<image>",
3
+ "num_additional_image_tokens": 0,
4
+ "patch_size": null,
5
+ "processor_class": "LlavaNextVideoProcessor",
6
+ "video_token": "<image>",
7
+ "vision_feature_select_strategy": null
8
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|im_end|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "image_token": "<image>",
14
+ "pad_token": {
15
+ "content": "<|endoftext|>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "video_token": "<image>"
22
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32e8f623d8dce60b5a93496ec810434ef744287ac041cf2c6032743a3578baa5
3
+ size 11418450
tokenizer_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<image>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ }
36
+ },
37
+ "additional_special_tokens": [
38
+ "<|im_start|>",
39
+ "<|im_end|>"
40
+ ],
41
+ "bos_token": null,
42
+ "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
43
+ "clean_up_tokenization_spaces": false,
44
+ "eos_token": "<|im_end|>",
45
+ "errors": "replace",
46
+ "extra_special_tokens": {
47
+ "image_token": "<image>",
48
+ "video_token": "<image>"
49
+ },
50
+ "image_token": "<image>",
51
+ "model_max_length": 131072,
52
+ "pad_token": "<|endoftext|>",
53
+ "padding_side": "left",
54
+ "processor_class": "LlavaNextVideoProcessor",
55
+ "split_special_tokens": false,
56
+ "tokenizer_class": "Qwen2Tokenizer",
57
+ "unk_token": null,
58
+ "video_token": "<image>"
59
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff