hf-transformers-bot commited on
Commit
2745659
·
verified ·
1 Parent(s): e2359af

Add tiny processor fixture for testing

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.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
+ }
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "rhymes-ai/Aria",
3
+ "architectures": [
4
+ "AriaForConditionalGeneration"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "modeling_aria.AriaConfig",
8
+ "AutoModelForCausalLM": "modeling_aria.AriaForConditionalGeneration"
9
+ },
10
+ "ignore_index": -100,
11
+ "image_token_index": 9,
12
+ "initializer_range": 0.02,
13
+ "model_type": "aria",
14
+ "pad_token_id": 2,
15
+ "projector_patch_to_query_dict": {
16
+ "1225": 128,
17
+ "4900": 256
18
+ },
19
+ "text_config": {
20
+ "hidden_size": 2560,
21
+ "intermediate_size": 13568,
22
+ "max_position_embeddings": 65536,
23
+ "model_type": "aria_text_model",
24
+ "moe_intermediate_size": 1664,
25
+ "moe_num_experts": 64,
26
+ "moe_topk": 6,
27
+ "num_attention_heads": 20,
28
+ "num_experts_per_tok": 6,
29
+ "num_hidden_layers": 28,
30
+ "num_key_value_heads": 20,
31
+ "rope_theta": 5000000,
32
+ "vocab_size": 100352
33
+ },
34
+ "torch_dtype": "bfloat16",
35
+ "transformers_version": "4.47.0.dev0",
36
+ "vision_config": {
37
+ "_flash_attn_2_enabled": true,
38
+ "architectures": [
39
+ "AriaVisionModel"
40
+ ],
41
+ "attention_heads": 16,
42
+ "image_size": 980,
43
+ "intermediate_size": 4304,
44
+ "model_type": "idefics3_vision",
45
+ "num_hidden_layers": 27,
46
+ "patch_size": 14,
47
+ "torch_dtype": "bfloat16"
48
+ },
49
+ "vision_feature_layer": -1,
50
+ "vocab_size": 617
51
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 2,
6
+ "transformers_version": "4.47.0.dev0"
7
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_transform": null,
3
+ "auto_map": {
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,
12
+ 0.5
13
+ ],
14
+ "image_processor_type": "AriaImageProcessor",
15
+ "image_std": [
16
+ 0.5,
17
+ 0.5,
18
+ 0.5
19
+ ],
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.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff