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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "datalab-to/table_rec_2_test2",
|
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 |
+
"causal": true,
|
46 |
+
"chunk_size_feed_forward": 0,
|
47 |
+
"conv1d_width": 4,
|
48 |
+
"cross_attention_hidden_size": null,
|
49 |
+
"cross_attn_layers": [
|
50 |
+
0,
|
51 |
+
1,
|
52 |
+
2,
|
53 |
+
3,
|
54 |
+
4,
|
55 |
+
5,
|
56 |
+
6,
|
57 |
+
7,
|
58 |
+
8,
|
59 |
+
9
|
60 |
+
],
|
61 |
+
"decoder_start_token_id": null,
|
62 |
+
"diversity_penalty": 0.0,
|
63 |
+
"do_sample": false,
|
64 |
+
"double_residual_flow": false,
|
65 |
+
"dropout": 0.1,
|
66 |
+
"early_stopping": false,
|
67 |
+
"encoder_cross_attn_layers": [
|
68 |
+
0,
|
69 |
+
1,
|
70 |
+
2,
|
71 |
+
3,
|
72 |
+
4,
|
73 |
+
5,
|
74 |
+
6,
|
75 |
+
7,
|
76 |
+
8,
|
77 |
+
9
|
78 |
+
],
|
79 |
+
"encoder_hidden_size": 1024,
|
80 |
+
"encoder_no_repeat_ngram_size": 0,
|
81 |
+
"eos_token_id": 1,
|
82 |
+
"exponential_decay_length_penalty": null,
|
83 |
+
"final_w_init_variance_scale": 0.3333333333333333,
|
84 |
+
"finetuning_task": null,
|
85 |
+
"forced_bos_token_id": null,
|
86 |
+
"forced_eos_token_id": null,
|
87 |
+
"global_attn_layers": [
|
88 |
+
0,
|
89 |
+
1,
|
90 |
+
2,
|
91 |
+
3,
|
92 |
+
4,
|
93 |
+
5,
|
94 |
+
6,
|
95 |
+
7,
|
96 |
+
8,
|
97 |
+
9
|
98 |
+
],
|
99 |
+
"head_dim": 64,
|
100 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
101 |
+
"hidden_size": 512,
|
102 |
+
"id2label": {
|
103 |
+
"0": "LABEL_0",
|
104 |
+
"1": "LABEL_1"
|
105 |
+
},
|
106 |
+
"init_std": 0.02,
|
107 |
+
"intermediate_size": 2048,
|
108 |
+
"is_decoder": false,
|
109 |
+
"is_encoder_decoder": false,
|
110 |
+
"label2id": {
|
111 |
+
"LABEL_0": 0,
|
112 |
+
"LABEL_1": 1
|
113 |
+
},
|
114 |
+
"layer_norm_eps": 1e-05,
|
115 |
+
"length_penalty": 1.0,
|
116 |
+
"logits_soft_cap": 30.0,
|
117 |
+
"lru_width": 512,
|
118 |
+
"max_length": 20,
|
119 |
+
"min_length": 0,
|
120 |
+
"model_type": "surya_tablerec",
|
121 |
+
"no_repeat_ngram_size": 0,
|
122 |
+
"num_attention_heads": 8,
|
123 |
+
"num_beam_groups": 1,
|
124 |
+
"num_beams": 1,
|
125 |
+
"num_hidden_layers": 6,
|
126 |
+
"num_key_value_heads": 4,
|
127 |
+
"num_return_sequences": 1,
|
128 |
+
"output_attentions": false,
|
129 |
+
"output_hidden_states": false,
|
130 |
+
"output_scores": false,
|
131 |
+
"pad_token_id": 0,
|
132 |
+
"pause_token_id": 2,
|
133 |
+
"prefix": null,
|
134 |
+
"problem_type": null,
|
135 |
+
"property_embed_size": 64,
|
136 |
+
"pruned_heads": {},
|
137 |
+
"query_end_token_id": 4,
|
138 |
+
"remove_invalid_values": false,
|
139 |
+
"repetition_penalty": 1.0,
|
140 |
+
"return_dict": true,
|
141 |
+
"return_dict_in_generate": false,
|
142 |
+
"rms_norm_eps": 1e-06,
|
143 |
+
"rope_theta": 10000.0,
|
144 |
+
"self_attn_layers": [
|
145 |
+
0,
|
146 |
+
1,
|
147 |
+
2,
|
148 |
+
3,
|
149 |
+
4,
|
150 |
+
5,
|
151 |
+
6,
|
152 |
+
7,
|
153 |
+
8,
|
154 |
+
9
|
155 |
+
],
|
156 |
+
"sep_token_id": null,
|
157 |
+
"special_token_count": 5,
|
158 |
+
"suppress_tokens": null,
|
159 |
+
"task_specific_params": null,
|
160 |
+
"temperature": 1.0,
|
161 |
+
"tf_legacy_loss": false,
|
162 |
+
"tie_encoder_decoder": false,
|
163 |
+
"tie_word_embeddings": false,
|
164 |
+
"tokenizer_class": null,
|
165 |
+
"top_k": 50,
|
166 |
+
"top_p": 1.0,
|
167 |
+
"torch_dtype": null,
|
168 |
+
"torchscript": false,
|
169 |
+
"typical_p": 1.0,
|
170 |
+
"use_bfloat16": false,
|
171 |
+
"use_cache": true,
|
172 |
+
"vocab_size": 1025,
|
173 |
+
"w_init_variance_scale": 0.01
|
174 |
+
},
|
175 |
+
"decoder_end_token_id": 1,
|
176 |
+
"decoder_start_token_id": 1,
|
177 |
+
"encoder": {
|
178 |
+
"_attn_implementation_autoset": true,
|
179 |
+
"_name_or_path": "",
|
180 |
+
"add_cross_attention": false,
|
181 |
+
"architectures": null,
|
182 |
+
"attention_probs_dropout_prob": 0.0,
|
183 |
+
"bad_words_ids": null,
|
184 |
+
"begin_suppress_tokens": null,
|
185 |
+
"bos_token_id": null,
|
186 |
+
"chunk_size_feed_forward": 0,
|
187 |
+
"cross_attention_hidden_size": null,
|
188 |
+
"decoder_start_token_id": null,
|
189 |
+
"depths": [
|
190 |
+
2,
|
191 |
+
2,
|
192 |
+
12,
|
193 |
+
2
|
194 |
+
],
|
195 |
+
"diversity_penalty": 0.0,
|
196 |
+
"do_sample": false,
|
197 |
+
"drop_path_rate": 0.1,
|
198 |
+
"early_stopping": false,
|
199 |
+
"embed_dim": 128,
|
200 |
+
"encoder_length": 1024,
|
201 |
+
"encoder_no_repeat_ngram_size": 0,
|
202 |
+
"eos_token_id": null,
|
203 |
+
"exponential_decay_length_penalty": null,
|
204 |
+
"finetuning_task": null,
|
205 |
+
"forced_bos_token_id": null,
|
206 |
+
"forced_eos_token_id": null,
|
207 |
+
"hidden_act": "gelu",
|
208 |
+
"hidden_dropout_prob": 0.0,
|
209 |
+
"hidden_size": 1024,
|
210 |
+
"id2label": {
|
211 |
+
"0": "LABEL_0",
|
212 |
+
"1": "LABEL_1"
|
213 |
+
},
|
214 |
+
"image_size": [
|
215 |
+
768,
|
216 |
+
768
|
217 |
+
],
|
218 |
+
"initializer_range": 0.02,
|
219 |
+
"is_decoder": false,
|
220 |
+
"is_encoder_decoder": false,
|
221 |
+
"label2id": {
|
222 |
+
"LABEL_0": 0,
|
223 |
+
"LABEL_1": 1
|
224 |
+
},
|
225 |
+
"layer_norm_eps": 1e-05,
|
226 |
+
"length_penalty": 1.0,
|
227 |
+
"max_length": 20,
|
228 |
+
"min_length": 0,
|
229 |
+
"mlp_ratio": 4.0,
|
230 |
+
"model_type": "donut-swin",
|
231 |
+
"no_repeat_ngram_size": 0,
|
232 |
+
"num_beam_groups": 1,
|
233 |
+
"num_beams": 1,
|
234 |
+
"num_channels": 3,
|
235 |
+
"num_heads": [
|
236 |
+
4,
|
237 |
+
8,
|
238 |
+
16,
|
239 |
+
32
|
240 |
+
],
|
241 |
+
"num_kv_heads": [
|
242 |
+
4,
|
243 |
+
8,
|
244 |
+
16,
|
245 |
+
32
|
246 |
+
],
|
247 |
+
"num_layers": 4,
|
248 |
+
"num_return_sequences": 1,
|
249 |
+
"output_attentions": false,
|
250 |
+
"output_hidden_states": false,
|
251 |
+
"output_scores": false,
|
252 |
+
"pad_token_id": null,
|
253 |
+
"patch_size": 4,
|
254 |
+
"prefix": null,
|
255 |
+
"problem_type": null,
|
256 |
+
"pruned_heads": {},
|
257 |
+
"qkv_bias": true,
|
258 |
+
"remove_invalid_values": false,
|
259 |
+
"repetition_penalty": 1.0,
|
260 |
+
"return_dict": true,
|
261 |
+
"return_dict_in_generate": false,
|
262 |
+
"sep_token_id": null,
|
263 |
+
"suppress_tokens": null,
|
264 |
+
"task_specific_params": null,
|
265 |
+
"temperature": 1.0,
|
266 |
+
"tf_legacy_loss": false,
|
267 |
+
"tie_encoder_decoder": false,
|
268 |
+
"tie_word_embeddings": true,
|
269 |
+
"tokenizer_class": null,
|
270 |
+
"top_k": 50,
|
271 |
+
"top_p": 1.0,
|
272 |
+
"torch_dtype": null,
|
273 |
+
"torchscript": false,
|
274 |
+
"typical_p": 1.0,
|
275 |
+
"use_absolute_embeddings": false,
|
276 |
+
"use_bfloat16": false,
|
277 |
+
"use_positional_embeddings": true,
|
278 |
+
"window_size": 8
|
279 |
+
},
|
280 |
+
"eos_token_id": 1,
|
281 |
+
"is_encoder_decoder": true,
|
282 |
+
"model_type": "vision-encoder-decoder",
|
283 |
+
"pad_token_id": 0,
|
284 |
+
"tie_word_embeddings": false,
|
285 |
+
"torch_dtype": "float16",
|
286 |
+
"transformers_version": "4.47.1"
|
287 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec8ad09033fd671818b7bbf318bd9459898cba77f9a14a757a5b1fb1369412e9
|
3 |
+
size 211219536
|