xiaoyao9184 commited on
Commit
ae00ec3
·
verified ·
1 Parent(s): a34ee96

Add files using upload-large-folder tool

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