ybelkada commited on
Commit
a29ce92
1 Parent(s): 30e6756

Upload Pix2StructForConditionalGeneration

Browse files
Files changed (2) hide show
  1. config.json +178 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "_name_or_path": "/home/younes_huggingface_co/code/pix2struct-checkpoints/deplot/matcha-plotqa-v1",
4
+ "architectures": [
5
+ "Pix2StructForConditionalGeneration"
6
+ ],
7
+ "decoder_start_token_id": 0,
8
+ "initializer_factor": 1.0,
9
+ "initializer_range": 0.02,
10
+ "is_vqa": false,
11
+ "model_type": "pix2struct",
12
+ "pad_token_id": 0,
13
+ "text_config": {
14
+ "_name_or_path": "",
15
+ "add_cross_attention": false,
16
+ "architectures": null,
17
+ "bad_words_ids": null,
18
+ "begin_suppress_tokens": null,
19
+ "bos_token_id": null,
20
+ "chunk_size_feed_forward": 0,
21
+ "cross_attention_hidden_size": null,
22
+ "d_ff": 2048,
23
+ "d_kv": 64,
24
+ "decoder_start_token_id": 0,
25
+ "dense_act_fn": "gelu_new",
26
+ "diversity_penalty": 0.0,
27
+ "do_sample": false,
28
+ "dropout_rate": 0.1,
29
+ "early_stopping": false,
30
+ "encoder_hidden_size": 768,
31
+ "encoder_no_repeat_ngram_size": 0,
32
+ "eos_token_id": 1,
33
+ "exponential_decay_length_penalty": null,
34
+ "finetuning_task": null,
35
+ "forced_bos_token_id": null,
36
+ "forced_eos_token_id": null,
37
+ "hidden_size": 768,
38
+ "id2label": {
39
+ "0": "LABEL_0",
40
+ "1": "LABEL_1"
41
+ },
42
+ "initializer_factor": 1.0,
43
+ "initializer_range": 0.02,
44
+ "is_decoder": false,
45
+ "is_encoder_decoder": false,
46
+ "label2id": {
47
+ "LABEL_0": 0,
48
+ "LABEL_1": 1
49
+ },
50
+ "layer_norm_epsilon": 1e-06,
51
+ "length_penalty": 1.0,
52
+ "max_length": 20,
53
+ "min_length": 0,
54
+ "model_type": "pix2struct_text_model",
55
+ "no_repeat_ngram_size": 0,
56
+ "num_beam_groups": 1,
57
+ "num_beams": 1,
58
+ "num_heads": 12,
59
+ "num_layers": 12,
60
+ "num_return_sequences": 1,
61
+ "output_attentions": false,
62
+ "output_hidden_states": false,
63
+ "output_scores": false,
64
+ "pad_token_id": 0,
65
+ "prefix": null,
66
+ "problem_type": null,
67
+ "pruned_heads": {},
68
+ "relative_attention_max_distance": 128,
69
+ "relative_attention_num_buckets": 32,
70
+ "remove_invalid_values": false,
71
+ "repetition_penalty": 1.0,
72
+ "return_dict": true,
73
+ "return_dict_in_generate": false,
74
+ "sep_token_id": null,
75
+ "suppress_tokens": null,
76
+ "task_specific_params": null,
77
+ "temperature": 1.0,
78
+ "tf_legacy_loss": false,
79
+ "tie_encoder_decoder": false,
80
+ "tie_word_embeddings": false,
81
+ "tokenizer_class": null,
82
+ "top_k": 50,
83
+ "top_p": 1.0,
84
+ "torch_dtype": null,
85
+ "torchscript": false,
86
+ "transformers_version": "4.28.0.dev0",
87
+ "typical_p": 1.0,
88
+ "use_bfloat16": false,
89
+ "use_cache": false,
90
+ "vocab_size": 50244
91
+ },
92
+ "tie_word_embeddings": false,
93
+ "torch_dtype": "float32",
94
+ "transformers_version": null,
95
+ "vision_config": {
96
+ "_name_or_path": "",
97
+ "add_cross_attention": false,
98
+ "architectures": null,
99
+ "attention_dropout": 0.0,
100
+ "bad_words_ids": null,
101
+ "begin_suppress_tokens": null,
102
+ "bos_token_id": null,
103
+ "chunk_size_feed_forward": 0,
104
+ "cross_attention_hidden_size": null,
105
+ "d_ff": 2048,
106
+ "d_kv": 64,
107
+ "decoder_start_token_id": null,
108
+ "dense_act_fn": "gelu_new",
109
+ "diversity_penalty": 0.0,
110
+ "do_sample": false,
111
+ "dropout_rate": 0.0,
112
+ "early_stopping": false,
113
+ "encoder_no_repeat_ngram_size": 0,
114
+ "eos_token_id": null,
115
+ "exponential_decay_length_penalty": null,
116
+ "finetuning_task": null,
117
+ "forced_bos_token_id": null,
118
+ "forced_eos_token_id": null,
119
+ "hidden_size": 768,
120
+ "id2label": {
121
+ "0": "LABEL_0",
122
+ "1": "LABEL_1"
123
+ },
124
+ "initializer_factor": 1.0,
125
+ "initializer_range": 0.02,
126
+ "is_decoder": false,
127
+ "is_encoder_decoder": false,
128
+ "label2id": {
129
+ "LABEL_0": 0,
130
+ "LABEL_1": 1
131
+ },
132
+ "layer_norm_bias": false,
133
+ "layer_norm_eps": 1e-06,
134
+ "length_penalty": 1.0,
135
+ "max_length": 20,
136
+ "min_length": 0,
137
+ "model_type": "pix2struct_vision_model",
138
+ "no_repeat_ngram_size": 0,
139
+ "num_attention_heads": 12,
140
+ "num_beam_groups": 1,
141
+ "num_beams": 1,
142
+ "num_channels": 3,
143
+ "num_hidden_layers": 12,
144
+ "num_return_sequences": 1,
145
+ "output_attentions": false,
146
+ "output_hidden_states": false,
147
+ "output_scores": false,
148
+ "pad_token_id": null,
149
+ "patch_embed_hidden_size": 768,
150
+ "patch_size": 16,
151
+ "prefix": null,
152
+ "problem_type": null,
153
+ "projection_dim": 768,
154
+ "pruned_heads": {},
155
+ "relative_attention_max_distance": 128,
156
+ "relative_attention_num_buckets": 32,
157
+ "remove_invalid_values": false,
158
+ "repetition_penalty": 1.0,
159
+ "return_dict": true,
160
+ "return_dict_in_generate": false,
161
+ "sep_token_id": null,
162
+ "seq_len": 4096,
163
+ "suppress_tokens": null,
164
+ "task_specific_params": null,
165
+ "temperature": 1.0,
166
+ "tf_legacy_loss": false,
167
+ "tie_encoder_decoder": false,
168
+ "tie_word_embeddings": true,
169
+ "tokenizer_class": null,
170
+ "top_k": 50,
171
+ "top_p": 1.0,
172
+ "torch_dtype": null,
173
+ "torchscript": false,
174
+ "transformers_version": "4.28.0.dev0",
175
+ "typical_p": 1.0,
176
+ "use_bfloat16": false
177
+ }
178
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53d33ab54072ec57033827ec8dad95fab3f62bbe2676b3cd8c4204197c3d71ca
3
+ size 1129238081