Tianning commited on
Commit
53a006b
1 Parent(s): 8184555

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "PromptNougatModel"
4
+ ],
5
+ "decoder": {
6
+ "use_image_bias": true,
7
+ "BartAttention_implement": "sdpa",
8
+ "_name_or_path": "",
9
+ "activation_dropout": 0.0,
10
+ "activation_function": "gelu",
11
+ "add_cross_attention": false,
12
+ "add_final_layer_norm": true,
13
+ "architectures": null,
14
+ "attention_dropout": 0.0,
15
+ "bad_words_ids": null,
16
+ "begin_suppress_tokens": null,
17
+ "bos_token_id": 0,
18
+ "chunk_size_feed_forward": 0,
19
+ "classifier_dropout": 0.0,
20
+ "cross_attention_hidden_size": null,
21
+ "d_model": 1024,
22
+ "decoder_attention_heads": 16,
23
+ "decoder_ffn_dim": 4096,
24
+ "decoder_layerdrop": 0.0,
25
+ "decoder_layers": 4,
26
+ "decoder_start_token_id": 0,
27
+ "diversity_penalty": 0.0,
28
+ "do_sample": false,
29
+ "dropout": 0.1,
30
+ "early_stopping": false,
31
+ "encoder_attention_heads": 16,
32
+ "encoder_ffn_dim": 4096,
33
+ "encoder_layerdrop": 0.0,
34
+ "encoder_layers": 12,
35
+ "encoder_no_repeat_ngram_size": 0,
36
+ "eos_token_id": 2,
37
+ "exponential_decay_length_penalty": null,
38
+ "finetuning_task": null,
39
+ "forced_bos_token_id": null,
40
+ "forced_eos_token_id": 2,
41
+ "hidden_dimension": 1024,
42
+ "id2label": {
43
+ "0": "LABEL_0",
44
+ "1": "LABEL_1",
45
+ "2": "LABEL_2"
46
+ },
47
+ "image_embedding_size": [
48
+ 28,
49
+ 21
50
+ ],
51
+ "image_size": [
52
+ 896,
53
+ 672
54
+ ],
55
+ "init_std": 0.02,
56
+ "is_decoder": true,
57
+ "is_encoder_decoder": true,
58
+ "label2id": {
59
+ "LABEL_0": 0,
60
+ "LABEL_1": 1,
61
+ "LABEL_2": 2
62
+ },
63
+ "length_penalty": 1.0,
64
+ "max_length": 4096,
65
+ "max_position_embeddings": 4096,
66
+ "min_length": 0,
67
+ "model_type": "promptbart",
68
+ "no_repeat_ngram_size": 0,
69
+ "num_beam_groups": 1,
70
+ "num_beams": 1,
71
+ "num_hidden_layers": 12,
72
+ "num_return_sequences": 1,
73
+ "omit_ratio": 0,
74
+ "output_attentions": false,
75
+ "output_hidden_states": false,
76
+ "output_scores": false,
77
+ "pad_token_id": 1,
78
+ "position_decoder_decay": 1.0,
79
+ "position_decoder_hidden_size": 256,
80
+ "position_decoder_layers": 3,
81
+ "prefix": null,
82
+ "problem_type": null,
83
+ "prompt_embed_dim": 1024,
84
+ "pruned_heads": {},
85
+ "remove_invalid_values": false,
86
+ "repetition_penalty": 1.0,
87
+ "return_dict": true,
88
+ "return_dict_in_generate": false,
89
+ "scale_embedding": true,
90
+ "sep_token_id": null,
91
+ "suppress_tokens": null,
92
+ "task_specific_params": null,
93
+ "temperature": 1.0,
94
+ "tf_legacy_loss": false,
95
+ "tie_encoder_decoder": false,
96
+ "tie_word_embeddings": true,
97
+ "tokenizer_class": null,
98
+ "top_k": 50,
99
+ "top_p": 1.0,
100
+ "torch_dtype": null,
101
+ "torchscript": false,
102
+ "typical_p": 1.0,
103
+ "unk_token_id": 3,
104
+ "use_bfloat16": false,
105
+ "use_cache": true,
106
+ "vocab_size": 50000
107
+ },
108
+ "encoder": {
109
+ "_name_or_path": "",
110
+ "add_cross_attention": false,
111
+ "architectures": null,
112
+ "attention_probs_dropout_prob": 0.0,
113
+ "bad_words_ids": null,
114
+ "begin_suppress_tokens": null,
115
+ "bos_token_id": null,
116
+ "chunk_size_feed_forward": 0,
117
+ "cross_attention_hidden_size": null,
118
+ "decoder_start_token_id": null,
119
+ "depths": [
120
+ 2,
121
+ 2,
122
+ 14,
123
+ 2
124
+ ],
125
+ "diversity_penalty": 0.0,
126
+ "do_sample": false,
127
+ "drop_path_rate": 0.1,
128
+ "early_stopping": false,
129
+ "embed_dim": 128,
130
+ "encoder_layer": [
131
+ 2,
132
+ 2,
133
+ 14,
134
+ 2
135
+ ],
136
+ "encoder_no_repeat_ngram_size": 0,
137
+ "encoder_stride": 32,
138
+ "eos_token_id": null,
139
+ "exponential_decay_length_penalty": null,
140
+ "finetuning_task": null,
141
+ "forced_bos_token_id": null,
142
+ "forced_eos_token_id": null,
143
+ "hidden_act": "gelu",
144
+ "hidden_dropout_prob": 0.0,
145
+ "hidden_size": 1024,
146
+ "id2label": {
147
+ "0": "LABEL_0",
148
+ "1": "LABEL_1"
149
+ },
150
+ "image_size": [
151
+ 896,
152
+ 672
153
+ ],
154
+ "initializer_range": 0.02,
155
+ "input_size": [
156
+ 896,
157
+ 672
158
+ ],
159
+ "is_decoder": false,
160
+ "is_encoder_decoder": false,
161
+ "label2id": {
162
+ "LABEL_0": 0,
163
+ "LABEL_1": 1
164
+ },
165
+ "layer_norm_eps": 1e-05,
166
+ "length_penalty": 1.0,
167
+ "max_length": 20,
168
+ "min_length": 0,
169
+ "mlp_ratio": 4.0,
170
+ "model_type": "swin",
171
+ "no_repeat_ngram_size": 0,
172
+ "num_beam_groups": 1,
173
+ "num_beams": 1,
174
+ "num_channels": 3,
175
+ "num_heads": [
176
+ 4,
177
+ 8,
178
+ 16,
179
+ 32
180
+ ],
181
+ "num_layers": 4,
182
+ "num_return_sequences": 1,
183
+ "out_features": [
184
+ "stage4"
185
+ ],
186
+ "out_indices": [
187
+ 4
188
+ ],
189
+ "output_attentions": false,
190
+ "output_hidden_states": false,
191
+ "output_scores": false,
192
+ "pad_token_id": null,
193
+ "patch_size": 4,
194
+ "prefix": null,
195
+ "problem_type": null,
196
+ "pruned_heads": {},
197
+ "qkv_bias": true,
198
+ "remove_invalid_values": false,
199
+ "repetition_penalty": 1.0,
200
+ "return_dict": true,
201
+ "return_dict_in_generate": false,
202
+ "sep_token_id": null,
203
+ "stage_names": [
204
+ "stem",
205
+ "stage1",
206
+ "stage2",
207
+ "stage3",
208
+ "stage4"
209
+ ],
210
+ "suppress_tokens": null,
211
+ "task_specific_params": null,
212
+ "temperature": 1.0,
213
+ "tf_legacy_loss": false,
214
+ "tie_encoder_decoder": false,
215
+ "tie_word_embeddings": true,
216
+ "tokenizer_class": null,
217
+ "top_k": 50,
218
+ "top_p": 1.0,
219
+ "torch_dtype": null,
220
+ "torchscript": false,
221
+ "typical_p": 1.0,
222
+ "use_absolute_embeddings": false,
223
+ "use_bfloat16": false,
224
+ "window_size": 7
225
+ },
226
+ "is_encoder_decoder": true,
227
+ "model_type": "lougat",
228
+ "tie_word_embeddings": false,
229
+ "torch_dtype": "float32",
230
+ "transformers_version": "4.39.3"
231
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87ea6de7d6c000a492a0a94ac0ee4bfef2768ad9b2fd307b6c674fe4cfe3a696
3
+ size 992270736
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_align_long_axis": false,
3
+ "do_crop_margin": false,
4
+ "do_normalize": true,
5
+ "do_pad": false,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "do_thumbnail": false,
9
+ "image_mean": [
10
+ 0.485,
11
+ 0.456,
12
+ 0.406
13
+ ],
14
+ "image_processor_type": "LougatImageProcessor",
15
+ "image_std": [
16
+ 0.229,
17
+ 0.224,
18
+ 0.225
19
+ ],
20
+ "processor_class": "NougatProcessor",
21
+ "resample": 2,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "height": 896,
25
+ "width": 672
26
+ }
27
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "<pad>",
5
+ "unk_token": "<unk>"
6
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[START_REF]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "5": {
44
+ "content": "[END_REF]",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "6": {
52
+ "content": "[IMAGE]",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "7": {
60
+ "content": "<fragments>",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ },
67
+ "8": {
68
+ "content": "</fragments>",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ },
75
+ "9": {
76
+ "content": "<work>",
77
+ "lstrip": false,
78
+ "normalized": false,
79
+ "rstrip": false,
80
+ "single_word": false,
81
+ "special": true
82
+ },
83
+ "10": {
84
+ "content": "</work>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": true
90
+ },
91
+ "11": {
92
+ "content": "[START_SUP]",
93
+ "lstrip": false,
94
+ "normalized": false,
95
+ "rstrip": false,
96
+ "single_word": false,
97
+ "special": true
98
+ },
99
+ "12": {
100
+ "content": "[END_SUP]",
101
+ "lstrip": false,
102
+ "normalized": false,
103
+ "rstrip": false,
104
+ "single_word": false,
105
+ "special": true
106
+ },
107
+ "13": {
108
+ "content": "[START_SUB]",
109
+ "lstrip": false,
110
+ "normalized": false,
111
+ "rstrip": false,
112
+ "single_word": false,
113
+ "special": true
114
+ },
115
+ "14": {
116
+ "content": "[END_SUB]",
117
+ "lstrip": false,
118
+ "normalized": false,
119
+ "rstrip": false,
120
+ "single_word": false,
121
+ "special": true
122
+ },
123
+ "15": {
124
+ "content": "[START_DNA]",
125
+ "lstrip": false,
126
+ "normalized": false,
127
+ "rstrip": false,
128
+ "single_word": false,
129
+ "special": true
130
+ },
131
+ "16": {
132
+ "content": "[END_DNA]",
133
+ "lstrip": false,
134
+ "normalized": false,
135
+ "rstrip": false,
136
+ "single_word": false,
137
+ "special": true
138
+ },
139
+ "17": {
140
+ "content": "[START_AMINO]",
141
+ "lstrip": false,
142
+ "normalized": false,
143
+ "rstrip": false,
144
+ "single_word": false,
145
+ "special": true
146
+ },
147
+ "18": {
148
+ "content": "[END_AMINO]",
149
+ "lstrip": false,
150
+ "normalized": false,
151
+ "rstrip": false,
152
+ "single_word": false,
153
+ "special": true
154
+ },
155
+ "19": {
156
+ "content": "[START_SMILES]",
157
+ "lstrip": false,
158
+ "normalized": false,
159
+ "rstrip": false,
160
+ "single_word": false,
161
+ "special": true
162
+ },
163
+ "20": {
164
+ "content": "[END_SMILES]",
165
+ "lstrip": false,
166
+ "normalized": false,
167
+ "rstrip": false,
168
+ "single_word": false,
169
+ "special": true
170
+ },
171
+ "21": {
172
+ "content": "[START_I_SMILES]",
173
+ "lstrip": false,
174
+ "normalized": false,
175
+ "rstrip": false,
176
+ "single_word": false,
177
+ "special": true
178
+ },
179
+ "22": {
180
+ "content": "[END_I_SMILES]",
181
+ "lstrip": false,
182
+ "normalized": false,
183
+ "rstrip": false,
184
+ "single_word": false,
185
+ "special": true
186
+ }
187
+ },
188
+ "additional_special_tokens": [],
189
+ "bos_token": "<s>",
190
+ "clean_up_tokenization_spaces": false,
191
+ "eos_token": "</s>",
192
+ "max_length": 4096,
193
+ "model_max_length": 4096,
194
+ "pad_to_multiple_of": null,
195
+ "pad_token": "<pad>",
196
+ "pad_token_type_id": 0,
197
+ "padding_side": "right",
198
+ "processor_class": "NougatProcessor",
199
+ "stride": 0,
200
+ "tokenizer_class": "NougatTokenizer",
201
+ "truncation_side": "right",
202
+ "truncation_strategy": "longest_first",
203
+ "unk_token": "<unk>",
204
+ "vocab_file": null
205
+ }