princeton-nlp commited on
Commit
d376ab5
1 Parent(s): 8a8f570
config.json ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "add_mae_decoder": true,
4
+ "add_text_decoder": true,
5
+ "architectures": [
6
+ "PTPForConditionalGeneration"
7
+ ],
8
+ "decoder_start_token_id": 0,
9
+ "eos_token_id": 1,
10
+ "image_mode": "RGB",
11
+ "initializer_factor": 1.0,
12
+ "initializer_range": 0.02,
13
+ "is_encoder_decoder": true,
14
+ "mae_weight": 1.0,
15
+ "model_type": "ptp",
16
+ "pad_token_id": 1,
17
+ "text_config": {
18
+ "_name_or_path": "",
19
+ "add_cross_attention": false,
20
+ "architectures": null,
21
+ "attention_dropout": 0.1,
22
+ "bad_words_ids": null,
23
+ "begin_suppress_tokens": null,
24
+ "bos_token_id": null,
25
+ "chunk_size_feed_forward": 0,
26
+ "cross_attention_hidden_size": null,
27
+ "d_ff": 3072,
28
+ "d_kv": 64,
29
+ "decoder_start_token_id": 0,
30
+ "dense_act_fn": "gelu_new",
31
+ "diversity_penalty": 0.0,
32
+ "do_sample": false,
33
+ "dropout_rate": 0.1,
34
+ "early_stopping": false,
35
+ "emb_layer_norm": true,
36
+ "encoder_hidden_size": 768,
37
+ "encoder_no_repeat_ngram_size": 0,
38
+ "eos_token_id": 1,
39
+ "exponential_decay_length_penalty": null,
40
+ "finetuning_task": null,
41
+ "forced_bos_token_id": null,
42
+ "forced_eos_token_id": null,
43
+ "hidden_size": 768,
44
+ "id2label": {
45
+ "0": "LABEL_0",
46
+ "1": "LABEL_1"
47
+ },
48
+ "initializer_factor": 1.0,
49
+ "initializer_range": 0.02,
50
+ "is_decoder": true,
51
+ "is_encoder_decoder": false,
52
+ "is_glu": true,
53
+ "label2id": {
54
+ "LABEL_0": 0,
55
+ "LABEL_1": 1
56
+ },
57
+ "layer_norm_eps": 1e-06,
58
+ "layer_norm_epsilon": 1e-06,
59
+ "length_penalty": 1.0,
60
+ "max_length": 20,
61
+ "min_length": 0,
62
+ "model_type": "ptp_text_decoder",
63
+ "no_repeat_ngram_size": 0,
64
+ "num_beam_groups": 1,
65
+ "num_beams": 1,
66
+ "num_heads": 12,
67
+ "num_layers": 12,
68
+ "num_return_sequences": 1,
69
+ "output_attentions": false,
70
+ "output_hidden_states": false,
71
+ "output_scores": false,
72
+ "pad_token_id": 1,
73
+ "prefix": null,
74
+ "problem_type": null,
75
+ "pruned_heads": {},
76
+ "remove_invalid_values": false,
77
+ "repetition_penalty": 1.0,
78
+ "return_dict": true,
79
+ "return_dict_in_generate": false,
80
+ "sep_token_id": null,
81
+ "suppress_tokens": null,
82
+ "task_specific_params": null,
83
+ "temperature": 1.0,
84
+ "tf_legacy_loss": false,
85
+ "tie_encoder_decoder": false,
86
+ "tie_word_embeddings": true,
87
+ "tokenizer_class": null,
88
+ "top_k": 50,
89
+ "top_p": 1.0,
90
+ "torch_dtype": null,
91
+ "torchscript": false,
92
+ "transformers_version": "4.34.1",
93
+ "typical_p": 1.0,
94
+ "use_bfloat16": false,
95
+ "use_cache": false,
96
+ "vocab_size": 50265
97
+ },
98
+ "text_weight": 1.0,
99
+ "torch_dtype": "float32",
100
+ "transformers_version": null,
101
+ "vision_config": {
102
+ "_name_or_path": "",
103
+ "add_cross_attention": false,
104
+ "architectures": null,
105
+ "attention_probs_dropout_prob": 0.1,
106
+ "bad_words_ids": null,
107
+ "begin_suppress_tokens": null,
108
+ "bos_token_id": null,
109
+ "chunk_size_feed_forward": 0,
110
+ "cross_attention_hidden_size": null,
111
+ "decoder_hidden_size": 512,
112
+ "decoder_intermediate_size": 2048,
113
+ "decoder_num_attention_heads": 16,
114
+ "decoder_num_hidden_layers": 8,
115
+ "decoder_start_token_id": null,
116
+ "diversity_penalty": 0.0,
117
+ "do_sample": false,
118
+ "early_stopping": false,
119
+ "embedding_layernorm": false,
120
+ "encoder_no_repeat_ngram_size": 0,
121
+ "eos_token_id": null,
122
+ "exponential_decay_length_penalty": null,
123
+ "finetuning_task": null,
124
+ "forced_bos_token_id": null,
125
+ "forced_eos_token_id": null,
126
+ "hidden_act": "gelu",
127
+ "hidden_dropout_prob": 0.1,
128
+ "hidden_size": 768,
129
+ "id2label": {
130
+ "0": "LABEL_0",
131
+ "1": "LABEL_1"
132
+ },
133
+ "image_mode": "RGB",
134
+ "image_size": [
135
+ 16,
136
+ 8176
137
+ ],
138
+ "initializer_factor": 1.0,
139
+ "initializer_range": 0.02,
140
+ "intermediate_size": 3072,
141
+ "is_decoder": false,
142
+ "is_encoder_decoder": false,
143
+ "label2id": {
144
+ "LABEL_0": 0,
145
+ "LABEL_1": 1
146
+ },
147
+ "layer_norm_eps": 1e-12,
148
+ "length_penalty": 1.0,
149
+ "max_length": 20,
150
+ "min_length": 0,
151
+ "model_type": "ptp_vision",
152
+ "no_repeat_ngram_size": 0,
153
+ "norm_pix_loss": true,
154
+ "num_attention_heads": 12,
155
+ "num_beam_groups": 1,
156
+ "num_beams": 1,
157
+ "num_channels": 3,
158
+ "num_hidden_layers": 12,
159
+ "num_return_sequences": 1,
160
+ "output_attentions": false,
161
+ "output_hidden_states": false,
162
+ "output_scores": false,
163
+ "pad_token_id": null,
164
+ "patch_size": 16,
165
+ "prefix": null,
166
+ "problem_type": null,
167
+ "pruned_heads": {},
168
+ "qkv_bias": true,
169
+ "remove_invalid_values": false,
170
+ "repetition_penalty": 1.0,
171
+ "return_dict": true,
172
+ "return_dict_in_generate": false,
173
+ "sep_token_id": null,
174
+ "suppress_tokens": null,
175
+ "task_specific_params": null,
176
+ "temperature": 1.0,
177
+ "tf_legacy_loss": false,
178
+ "tie_encoder_decoder": false,
179
+ "tie_word_embeddings": true,
180
+ "tokenizer_class": null,
181
+ "top_k": 50,
182
+ "top_p": 1.0,
183
+ "torch_dtype": "float32",
184
+ "torchscript": false,
185
+ "transformers_version": "4.34.1",
186
+ "typical_p": 1.0,
187
+ "use_bfloat16": false
188
+ }
189
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": false,
4
+ "image_processor_type": "PTPImageProcessor",
5
+ "max_patches": 2048,
6
+ "patch_size": {
7
+ "height": 16,
8
+ "width": 16
9
+ },
10
+ "processor_class": "PTPProcessor"
11
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7553b06b8af90a11a16fe9f6f05202fffd7e2544cd3fa591d610f671e110c0f
3
+ size 1176703306
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "mask_token": {
17
+ "content": "<mask>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "pad_token": {
24
+ "content": "<pad>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "</s>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<pad>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "50264": {
30
+ "content": "<mask>",
31
+ "lstrip": false,
32
+ "normalized": true,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ }
37
+ },
38
+ "bos_token": "<s>",
39
+ "clean_up_tokenization_spaces": true,
40
+ "eos_token": "</s>",
41
+ "errors": "replace",
42
+ "mask_token": "<mask>",
43
+ "model_max_length": 1000000000000000019884624838656,
44
+ "pad_token": "<pad>",
45
+ "processor_class": "Pix2StructProcessor",
46
+ "tokenizer_class": "GPT2Tokenizer",
47
+ "unk_token": "</s>"
48
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff