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