hf-transformers-bot commited on
Commit
01fe532
·
verified ·
1 Parent(s): 7e30460

Update tiny models for Pix2StructForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Pix2StructForConditionalGeneration"
4
+ ],
5
+ "decoder_start_token_id": 0,
6
+ "dtype": "float32",
7
+ "eos_token_id": 1,
8
+ "initializer_factor": 1.0,
9
+ "initializer_range": 0.02,
10
+ "is_encoder_decoder": true,
11
+ "is_vqa": false,
12
+ "model_type": "pix2struct",
13
+ "pad_token_id": 0,
14
+ "projection_dim": 64,
15
+ "text_config": {
16
+ "add_cross_attention": false,
17
+ "attention_dropout": 0.1,
18
+ "bos_token_id": 0,
19
+ "d_ff": 2048,
20
+ "d_kv": 3,
21
+ "decoder_start_token_id": 0,
22
+ "dense_act_fn": "gelu_new",
23
+ "dropout": 0.1,
24
+ "dropout_rate": 0.1,
25
+ "eos_token_id": 1,
26
+ "hidden_size": 12,
27
+ "initializer_factor": 1.0,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 37,
30
+ "is_decoder": true,
31
+ "is_encoder_decoder": true,
32
+ "layer_norm_epsilon": 1e-06,
33
+ "max_position_embeddings": 512,
34
+ "model_type": "pix2struct_text_model",
35
+ "num_heads": 4,
36
+ "num_layers": 2,
37
+ "pad_token_id": 0,
38
+ "projection_dim": 32,
39
+ "relative_attention_max_distance": 128,
40
+ "relative_attention_num_buckets": 32,
41
+ "tie_word_embeddings": false,
42
+ "use_cache": false,
43
+ "vocab_size": 50344
44
+ },
45
+ "tie_word_embeddings": false,
46
+ "transformers_version": "5.16.0.dev0",
47
+ "vision_config": {
48
+ "attention_dropout": 0.1,
49
+ "d_ff": 2048,
50
+ "d_kv": 64,
51
+ "dense_act_fn": "gelu_new",
52
+ "dropout": 0.1,
53
+ "dropout_rate": 0.0,
54
+ "hidden_size": 12,
55
+ "image_size": 30,
56
+ "initializer_factor": 1.0,
57
+ "initializer_range": 0.02,
58
+ "intermediate_size": 37,
59
+ "layer_norm_eps": 1e-06,
60
+ "model_type": "pix2struct_vision_model",
61
+ "num_attention_heads": 4,
62
+ "num_channels": 3,
63
+ "num_hidden_layers": 2,
64
+ "patch_embed_hidden_size": 12,
65
+ "patch_size": 2,
66
+ "projection_dim": 32,
67
+ "relative_attention_max_distance": 128,
68
+ "relative_attention_num_buckets": 32,
69
+ "seq_len": 4096
70
+ }
71
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 0,
5
+ "eos_token_id": 1,
6
+ "output_attentions": false,
7
+ "output_hidden_states": false,
8
+ "pad_token_id": 0,
9
+ "transformers_version": "5.16.0.dev0",
10
+ "use_cache": false
11
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3b1f882656956e3a7a46e2e309023fc77a542c9179010397467f781236bcc99
3
+ size 6521528
preprocessor_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 30,
4
+ "width": 30
5
+ },
6
+ "do_convert_rgb": true,
7
+ "do_normalize": true,
8
+ "image_processor_type": "Pix2StructImageProcessor",
9
+ "is_vqa": false,
10
+ "max_patches": 2048,
11
+ "patch_size": {
12
+ "height": 16,
13
+ "width": 16
14
+ },
15
+ "size": {
16
+ "height": 30,
17
+ "width": 30
18
+ }
19
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "eos_token": "</s>",
4
+ "extra_ids": 100,
5
+ "extra_special_tokens": [
6
+ "<extra_id_0>",
7
+ "<extra_id_1>",
8
+ "<extra_id_2>",
9
+ "<extra_id_3>",
10
+ "<extra_id_4>",
11
+ "<extra_id_5>",
12
+ "<extra_id_6>",
13
+ "<extra_id_7>",
14
+ "<extra_id_8>",
15
+ "<extra_id_9>",
16
+ "<extra_id_10>",
17
+ "<extra_id_11>",
18
+ "<extra_id_12>",
19
+ "<extra_id_13>",
20
+ "<extra_id_14>",
21
+ "<extra_id_15>",
22
+ "<extra_id_16>",
23
+ "<extra_id_17>",
24
+ "<extra_id_18>",
25
+ "<extra_id_19>",
26
+ "<extra_id_20>",
27
+ "<extra_id_21>",
28
+ "<extra_id_22>",
29
+ "<extra_id_23>",
30
+ "<extra_id_24>",
31
+ "<extra_id_25>",
32
+ "<extra_id_26>",
33
+ "<extra_id_27>",
34
+ "<extra_id_28>",
35
+ "<extra_id_29>",
36
+ "<extra_id_30>",
37
+ "<extra_id_31>",
38
+ "<extra_id_32>",
39
+ "<extra_id_33>",
40
+ "<extra_id_34>",
41
+ "<extra_id_35>",
42
+ "<extra_id_36>",
43
+ "<extra_id_37>",
44
+ "<extra_id_38>",
45
+ "<extra_id_39>",
46
+ "<extra_id_40>",
47
+ "<extra_id_41>",
48
+ "<extra_id_42>",
49
+ "<extra_id_43>",
50
+ "<extra_id_44>",
51
+ "<extra_id_45>",
52
+ "<extra_id_46>",
53
+ "<extra_id_47>",
54
+ "<extra_id_48>",
55
+ "<extra_id_49>",
56
+ "<extra_id_50>",
57
+ "<extra_id_51>",
58
+ "<extra_id_52>",
59
+ "<extra_id_53>",
60
+ "<extra_id_54>",
61
+ "<extra_id_55>",
62
+ "<extra_id_56>",
63
+ "<extra_id_57>",
64
+ "<extra_id_58>",
65
+ "<extra_id_59>",
66
+ "<extra_id_60>",
67
+ "<extra_id_61>",
68
+ "<extra_id_62>",
69
+ "<extra_id_63>",
70
+ "<extra_id_64>",
71
+ "<extra_id_65>",
72
+ "<extra_id_66>",
73
+ "<extra_id_67>",
74
+ "<extra_id_68>",
75
+ "<extra_id_69>",
76
+ "<extra_id_70>",
77
+ "<extra_id_71>",
78
+ "<extra_id_72>",
79
+ "<extra_id_73>",
80
+ "<extra_id_74>",
81
+ "<extra_id_75>",
82
+ "<extra_id_76>",
83
+ "<extra_id_77>",
84
+ "<extra_id_78>",
85
+ "<extra_id_79>",
86
+ "<extra_id_80>",
87
+ "<extra_id_81>",
88
+ "<extra_id_82>",
89
+ "<extra_id_83>",
90
+ "<extra_id_84>",
91
+ "<extra_id_85>",
92
+ "<extra_id_86>",
93
+ "<extra_id_87>",
94
+ "<extra_id_88>",
95
+ "<extra_id_89>",
96
+ "<extra_id_90>",
97
+ "<extra_id_91>",
98
+ "<extra_id_92>",
99
+ "<extra_id_93>",
100
+ "<extra_id_94>",
101
+ "<extra_id_95>",
102
+ "<extra_id_96>",
103
+ "<extra_id_97>",
104
+ "<extra_id_98>",
105
+ "<extra_id_99>"
106
+ ],
107
+ "is_local": true,
108
+ "local_files_only": false,
109
+ "model_max_length": 1000000000000000019884624838656,
110
+ "pad_token": "<pad>",
111
+ "processor_class": "Pix2StructProcessor",
112
+ "sp_model_kwargs": {},
113
+ "tokenizer_class": "TokenizersBackend",
114
+ "unk_token": "<unk>"
115
+ }