xiaoyao9184 commited on
Commit
c141c58
·
verified ·
1 Parent(s): fc1b080

Add files using upload-large-folder tool

Browse files
Files changed (5) hide show
  1. README.md +3 -0
  2. config.json +292 -0
  3. manifest.json +1 -0
  4. model.safetensors +3 -0
  5. preprocessor_config.json +35 -0
README.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ ---
config.json ADDED
@@ -0,0 +1,292 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "datalab-to/table_rec_4",
3
+ "architectures": [
4
+ "TableRecEncoderDecoderModel"
5
+ ],
6
+ "decoder": {
7
+ "_attn_implementation_autoset": true,
8
+ "_name_or_path": "",
9
+ "add_cross_attention": false,
10
+ "architectures": null,
11
+ "attention_bias": false,
12
+ "attention_dropout": 0.0,
13
+ "attention_window_size": 16,
14
+ "aux_heads": 0,
15
+ "bad_words_ids": null,
16
+ "bbox_size": 1024,
17
+ "begin_suppress_tokens": null,
18
+ "block_types": [
19
+ "attention"
20
+ ],
21
+ "bos_token_id": 1,
22
+ "box_embed_size": 448,
23
+ "box_properties": [
24
+ [
25
+ "bbox",
26
+ 6,
27
+ "regression"
28
+ ],
29
+ [
30
+ "category",
31
+ 5,
32
+ "classification"
33
+ ],
34
+ [
35
+ "merges",
36
+ 4,
37
+ "classification"
38
+ ],
39
+ [
40
+ "colspan",
41
+ 1,
42
+ "regression"
43
+ ],
44
+ [
45
+ "is_header",
46
+ 2,
47
+ "classification"
48
+ ]
49
+ ],
50
+ "causal": true,
51
+ "chunk_size_feed_forward": 0,
52
+ "conv1d_width": 4,
53
+ "cross_attention_hidden_size": null,
54
+ "cross_attn_layers": [
55
+ 0,
56
+ 1,
57
+ 2,
58
+ 3,
59
+ 4,
60
+ 5,
61
+ 6,
62
+ 7,
63
+ 8,
64
+ 9
65
+ ],
66
+ "decoder_start_token_id": null,
67
+ "diversity_penalty": 0.0,
68
+ "do_sample": false,
69
+ "double_residual_flow": false,
70
+ "dropout": 0.1,
71
+ "early_stopping": false,
72
+ "encoder_cross_attn_layers": [
73
+ 0,
74
+ 1,
75
+ 2,
76
+ 3,
77
+ 4,
78
+ 5,
79
+ 6,
80
+ 7,
81
+ 8,
82
+ 9
83
+ ],
84
+ "encoder_hidden_size": 1024,
85
+ "encoder_no_repeat_ngram_size": 0,
86
+ "eos_token_id": 1,
87
+ "exponential_decay_length_penalty": null,
88
+ "final_w_init_variance_scale": 0.3333333333333333,
89
+ "finetuning_task": null,
90
+ "forced_bos_token_id": null,
91
+ "forced_eos_token_id": null,
92
+ "global_attn_layers": [
93
+ 0,
94
+ 1,
95
+ 2,
96
+ 3,
97
+ 4,
98
+ 5,
99
+ 6,
100
+ 7,
101
+ 8,
102
+ 9
103
+ ],
104
+ "head_dim": 64,
105
+ "hidden_activation": "gelu_pytorch_tanh",
106
+ "hidden_size": 512,
107
+ "id2label": {
108
+ "0": "LABEL_0",
109
+ "1": "LABEL_1"
110
+ },
111
+ "init_std": 0.02,
112
+ "intermediate_size": 2048,
113
+ "is_decoder": false,
114
+ "is_encoder_decoder": false,
115
+ "label2id": {
116
+ "LABEL_0": 0,
117
+ "LABEL_1": 1
118
+ },
119
+ "layer_norm_eps": 1e-05,
120
+ "length_penalty": 1.0,
121
+ "logits_soft_cap": 30.0,
122
+ "lru_width": 512,
123
+ "max_length": 20,
124
+ "min_length": 0,
125
+ "model_type": "surya_tablerec",
126
+ "no_repeat_ngram_size": 0,
127
+ "num_attention_heads": 8,
128
+ "num_beam_groups": 1,
129
+ "num_beams": 1,
130
+ "num_hidden_layers": 6,
131
+ "num_key_value_heads": 4,
132
+ "num_return_sequences": 1,
133
+ "output_attentions": false,
134
+ "output_hidden_states": false,
135
+ "output_scores": false,
136
+ "pad_token_id": 0,
137
+ "pause_token_id": 2,
138
+ "prefix": null,
139
+ "problem_type": null,
140
+ "property_embed_size": 64,
141
+ "pruned_heads": {},
142
+ "query_end_token_id": 4,
143
+ "remove_invalid_values": false,
144
+ "repetition_penalty": 1.0,
145
+ "return_dict": true,
146
+ "return_dict_in_generate": false,
147
+ "rms_norm_eps": 1e-06,
148
+ "rope_theta": 10000.0,
149
+ "self_attn_layers": [
150
+ 0,
151
+ 1,
152
+ 2,
153
+ 3,
154
+ 4,
155
+ 5,
156
+ 6,
157
+ 7,
158
+ 8,
159
+ 9
160
+ ],
161
+ "sep_token_id": null,
162
+ "special_token_count": 5,
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": false,
169
+ "tokenizer_class": null,
170
+ "top_k": 50,
171
+ "top_p": 1.0,
172
+ "torch_dtype": null,
173
+ "torchscript": false,
174
+ "typical_p": 1.0,
175
+ "use_bfloat16": false,
176
+ "use_cache": true,
177
+ "vocab_size": 1025,
178
+ "w_init_variance_scale": 0.01
179
+ },
180
+ "decoder_end_token_id": 1,
181
+ "decoder_start_token_id": 1,
182
+ "encoder": {
183
+ "_attn_implementation_autoset": true,
184
+ "_name_or_path": "",
185
+ "add_cross_attention": false,
186
+ "architectures": null,
187
+ "attention_probs_dropout_prob": 0.0,
188
+ "bad_words_ids": null,
189
+ "begin_suppress_tokens": null,
190
+ "bos_token_id": null,
191
+ "chunk_size_feed_forward": 0,
192
+ "cross_attention_hidden_size": null,
193
+ "decoder_start_token_id": null,
194
+ "depths": [
195
+ 2,
196
+ 2,
197
+ 12,
198
+ 2
199
+ ],
200
+ "diversity_penalty": 0.0,
201
+ "do_sample": false,
202
+ "drop_path_rate": 0.1,
203
+ "early_stopping": false,
204
+ "embed_dim": 128,
205
+ "encoder_length": 1024,
206
+ "encoder_no_repeat_ngram_size": 0,
207
+ "eos_token_id": null,
208
+ "exponential_decay_length_penalty": null,
209
+ "finetuning_task": null,
210
+ "forced_bos_token_id": null,
211
+ "forced_eos_token_id": null,
212
+ "hidden_act": "gelu",
213
+ "hidden_dropout_prob": 0.0,
214
+ "hidden_size": 1024,
215
+ "id2label": {
216
+ "0": "LABEL_0",
217
+ "1": "LABEL_1"
218
+ },
219
+ "image_size": [
220
+ 768,
221
+ 768
222
+ ],
223
+ "initializer_range": 0.02,
224
+ "is_decoder": false,
225
+ "is_encoder_decoder": false,
226
+ "label2id": {
227
+ "LABEL_0": 0,
228
+ "LABEL_1": 1
229
+ },
230
+ "layer_norm_eps": 1e-05,
231
+ "length_penalty": 1.0,
232
+ "max_length": 20,
233
+ "min_length": 0,
234
+ "mlp_ratio": 4.0,
235
+ "model_type": "donut-swin",
236
+ "no_repeat_ngram_size": 0,
237
+ "num_beam_groups": 1,
238
+ "num_beams": 1,
239
+ "num_channels": 3,
240
+ "num_heads": [
241
+ 4,
242
+ 8,
243
+ 16,
244
+ 32
245
+ ],
246
+ "num_kv_heads": [
247
+ 4,
248
+ 8,
249
+ 16,
250
+ 32
251
+ ],
252
+ "num_layers": 4,
253
+ "num_return_sequences": 1,
254
+ "output_attentions": false,
255
+ "output_hidden_states": false,
256
+ "output_scores": false,
257
+ "pad_token_id": null,
258
+ "patch_size": 4,
259
+ "prefix": null,
260
+ "problem_type": null,
261
+ "pruned_heads": {},
262
+ "qkv_bias": true,
263
+ "remove_invalid_values": false,
264
+ "repetition_penalty": 1.0,
265
+ "return_dict": true,
266
+ "return_dict_in_generate": false,
267
+ "sep_token_id": null,
268
+ "suppress_tokens": null,
269
+ "task_specific_params": null,
270
+ "temperature": 1.0,
271
+ "tf_legacy_loss": false,
272
+ "tie_encoder_decoder": false,
273
+ "tie_word_embeddings": true,
274
+ "tokenizer_class": null,
275
+ "top_k": 50,
276
+ "top_p": 1.0,
277
+ "torch_dtype": null,
278
+ "torchscript": false,
279
+ "typical_p": 1.0,
280
+ "use_absolute_embeddings": false,
281
+ "use_bfloat16": false,
282
+ "use_positional_embeddings": true,
283
+ "window_size": 8
284
+ },
285
+ "eos_token_id": 1,
286
+ "is_encoder_decoder": true,
287
+ "model_type": "vision-encoder-decoder",
288
+ "pad_token_id": 0,
289
+ "tie_word_embeddings": false,
290
+ "torch_dtype": "float16",
291
+ "transformers_version": "4.47.1"
292
+ }
manifest.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"files": ["model.safetensors", "config.json", "README.md", ".gitattributes", "preprocessor_config.json"]}
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e5093c424a4c8b98d153519f5240532388e209158f656ee701989174dcad6c4
3
+ size 211226808
preprocessor_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_align_long_axis": false,
3
+ "do_normalize": false,
4
+ "do_pad": false,
5
+ "do_rescale": false,
6
+ "do_resize": false,
7
+ "do_thumbnail": false,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "SuryaEncoderImageProcessor",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "max_size": {
20
+ "height": 768,
21
+ "width": 768
22
+ },
23
+ "patch_size": [
24
+ 4,
25
+ 4
26
+ ],
27
+ "processor_class": "SuryaProcessor",
28
+ "resample": 2,
29
+ "rescale_factor": 0.00392156862745098,
30
+ "size": {
31
+ "height": 2560,
32
+ "width": 1920
33
+ },
34
+ "train": false
35
+ }