Upload processor
Browse files- chat_template.json +3 -0
- preprocessor_config.json +43 -39
- processor_config.json +7 -0
- tokenizer_config.json +1 -0
chat_template.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}{% elif message['content'] is iterable %}{% for item in message['content'] %}{% if item['type'] == 'text' %}{{ item['text'] }}{% elif item['type'] == 'image' %}<fim_prefix><|img|><fim_suffix>{% endif %}{% endfor %}{% endif %}<|im_end|>\n{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
|
3 |
+
}
|
preprocessor_config.json
CHANGED
@@ -4,6 +4,8 @@
|
|
4 |
"AutoImageProcessor": "rhymes-ai/Aria--vision_processor.AriaVisionProcessor",
|
5 |
"AutoProcessor": "rhymes-ai/Aria--processing_aria.AriaProcessor"
|
6 |
},
|
|
|
|
|
7 |
"image_mean": [
|
8 |
0.5,
|
9 |
0.5,
|
@@ -18,82 +20,84 @@
|
|
18 |
"max_image_size": 980,
|
19 |
"min_image_size": 336,
|
20 |
"processor_class": "AriaProcessor",
|
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 |
],
|
70 |
[
|
71 |
-
|
72 |
-
|
73 |
],
|
74 |
[
|
75 |
-
|
76 |
-
|
77 |
],
|
78 |
[
|
79 |
-
|
80 |
-
|
81 |
],
|
82 |
[
|
83 |
-
|
84 |
-
|
85 |
],
|
86 |
[
|
87 |
-
|
88 |
-
|
89 |
],
|
90 |
[
|
91 |
-
|
92 |
-
|
93 |
],
|
94 |
[
|
95 |
-
|
96 |
-
|
97 |
]
|
98 |
]
|
99 |
}
|
|
|
4 |
"AutoImageProcessor": "rhymes-ai/Aria--vision_processor.AriaVisionProcessor",
|
5 |
"AutoProcessor": "rhymes-ai/Aria--processing_aria.AriaProcessor"
|
6 |
},
|
7 |
+
"do_convert_rgb": true,
|
8 |
+
"do_normalize": true,
|
9 |
"image_mean": [
|
10 |
0.5,
|
11 |
0.5,
|
|
|
20 |
"max_image_size": 980,
|
21 |
"min_image_size": 336,
|
22 |
"processor_class": "AriaProcessor",
|
23 |
+
"resample": 3,
|
24 |
+
"split_image": false,
|
25 |
+
"split_resolutions": [
|
26 |
[
|
27 |
+
490,
|
28 |
+
980
|
29 |
],
|
30 |
[
|
31 |
+
490,
|
32 |
+
1470
|
33 |
],
|
34 |
[
|
35 |
+
490,
|
36 |
+
1960
|
37 |
],
|
38 |
[
|
39 |
+
490,
|
40 |
+
2450
|
41 |
],
|
42 |
[
|
43 |
+
490,
|
44 |
+
2940
|
45 |
],
|
46 |
[
|
47 |
+
490,
|
48 |
+
3430
|
49 |
],
|
50 |
[
|
51 |
+
490,
|
52 |
+
3920
|
53 |
],
|
54 |
[
|
55 |
+
980,
|
56 |
+
1960
|
57 |
],
|
58 |
[
|
59 |
+
980,
|
60 |
+
1470
|
61 |
],
|
62 |
[
|
63 |
+
980,
|
64 |
+
980
|
65 |
],
|
66 |
[
|
67 |
+
980,
|
68 |
+
490
|
69 |
],
|
70 |
[
|
71 |
+
1470,
|
72 |
+
490
|
73 |
],
|
74 |
[
|
75 |
+
1470,
|
76 |
+
980
|
77 |
],
|
78 |
[
|
79 |
+
1960,
|
80 |
+
490
|
81 |
],
|
82 |
[
|
83 |
+
1960,
|
84 |
+
980
|
85 |
],
|
86 |
[
|
87 |
+
2450,
|
88 |
+
490
|
89 |
],
|
90 |
[
|
91 |
+
2940,
|
92 |
+
490
|
93 |
],
|
94 |
[
|
95 |
+
3430,
|
96 |
+
490
|
97 |
],
|
98 |
[
|
99 |
+
3920,
|
100 |
+
490
|
101 |
]
|
102 |
]
|
103 |
}
|
processor_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"processor_class": "AriaProcessor",
|
3 |
+
"size_conversion": {
|
4 |
+
"490": 128,
|
5 |
+
"980": 256
|
6 |
+
}
|
7 |
+
}
|
tokenizer_config.json
CHANGED
@@ -4952,6 +4952,7 @@
|
|
4952 |
"legacy": true,
|
4953 |
"model_max_length": 1000000000000000019884624838656,
|
4954 |
"pad_token": "<pad>",
|
|
|
4955 |
"sp_model_kwargs": {},
|
4956 |
"spaces_between_special_tokens": false,
|
4957 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
4952 |
"legacy": true,
|
4953 |
"model_max_length": 1000000000000000019884624838656,
|
4954 |
"pad_token": "<pad>",
|
4955 |
+
"processor_class": "AriaProcessor",
|
4956 |
"sp_model_kwargs": {},
|
4957 |
"spaces_between_special_tokens": false,
|
4958 |
"tokenizer_class": "LlamaTokenizer",
|