vikp commited on
Commit
0813b80
1 Parent(s): c158f1d

Upload model

Browse files
Files changed (4) hide show
  1. README.md +199 -0
  2. config.json +350 -0
  3. generation_config.json +8 -0
  4. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vikp/table_rec_ar3",
3
+ "architectures": [
4
+ "TableRecEncoderDecoderModel"
5
+ ],
6
+ "decoder": {
7
+ "_name_or_path": "",
8
+ "add_cross_attention": false,
9
+ "architectures": null,
10
+ "attention_bias": false,
11
+ "attention_dropout": 0.0,
12
+ "attention_window_size": 16,
13
+ "aux_heads": 0,
14
+ "bad_words_ids": null,
15
+ "begin_suppress_tokens": null,
16
+ "block_types": [
17
+ "attention"
18
+ ],
19
+ "bos_token_id": 2,
20
+ "causal": true,
21
+ "chunk_size_feed_forward": 0,
22
+ "conv1d_width": 4,
23
+ "cross_attention_hidden_size": null,
24
+ "cross_attn_layers": [
25
+ 0,
26
+ 1,
27
+ 2,
28
+ 3
29
+ ],
30
+ "decoder_start_token_id": null,
31
+ "diversity_penalty": 0.0,
32
+ "do_sample": false,
33
+ "early_stopping": false,
34
+ "encoder_cross_attn_layers": [
35
+ 0,
36
+ 1,
37
+ 2,
38
+ 3
39
+ ],
40
+ "encoder_hidden_size": 1024,
41
+ "encoder_no_repeat_ngram_size": 0,
42
+ "eos_token_id": 1,
43
+ "exponential_decay_length_penalty": null,
44
+ "final_w_init_variance_scale": 0.5,
45
+ "finetuning_task": null,
46
+ "forced_bos_token_id": null,
47
+ "forced_eos_token_id": null,
48
+ "global_attn_layers": [
49
+ 0,
50
+ 1,
51
+ 2,
52
+ 3
53
+ ],
54
+ "head_dim": 64,
55
+ "hidden_activation": "gelu_pytorch_tanh",
56
+ "hidden_size": 512,
57
+ "id2label": {
58
+ "0": "LABEL_0",
59
+ "1": "LABEL_1"
60
+ },
61
+ "init_std": 0.02,
62
+ "intermediate_size": 2048,
63
+ "is_decoder": false,
64
+ "is_encoder_decoder": false,
65
+ "label2id": {
66
+ "LABEL_0": 0,
67
+ "LABEL_1": 1
68
+ },
69
+ "length_penalty": 1.0,
70
+ "logits_soft_cap": 30.0,
71
+ "lru_width": 512,
72
+ "max_classes": 9,
73
+ "max_height": 1031,
74
+ "max_length": 20,
75
+ "max_width": 1031,
76
+ "min_length": 0,
77
+ "model_type": "surya_tablerec",
78
+ "no_repeat_ngram_size": 0,
79
+ "num_attention_heads": 8,
80
+ "num_beam_groups": 1,
81
+ "num_beams": 1,
82
+ "num_hidden_layers": 4,
83
+ "num_key_value_heads": 4,
84
+ "num_return_sequences": 1,
85
+ "out_box_size": 1024,
86
+ "output_attentions": false,
87
+ "output_hidden_states": false,
88
+ "output_scores": false,
89
+ "pad_token_id": 0,
90
+ "prefix": null,
91
+ "problem_type": null,
92
+ "pruned_heads": {},
93
+ "remove_invalid_values": false,
94
+ "repetition_penalty": 1.0,
95
+ "return_dict": true,
96
+ "return_dict_in_generate": false,
97
+ "rms_norm_eps": 1e-06,
98
+ "rope_theta": 10000.0,
99
+ "self_attn_layers": [
100
+ 0,
101
+ 1,
102
+ 2,
103
+ 3
104
+ ],
105
+ "sep_token_id": null,
106
+ "suppress_tokens": null,
107
+ "task_specific_params": null,
108
+ "temperature": 1.0,
109
+ "tf_legacy_loss": false,
110
+ "tie_encoder_decoder": false,
111
+ "tie_word_embeddings": false,
112
+ "tokenizer_class": null,
113
+ "top_k": 50,
114
+ "top_p": 1.0,
115
+ "torch_dtype": null,
116
+ "torchscript": false,
117
+ "typical_p": 1.0,
118
+ "use_bfloat16": false,
119
+ "use_cache": true,
120
+ "vocab_size": 391,
121
+ "w_init_variance_scale": 0.01
122
+ },
123
+ "decoder_start_token_id": 2,
124
+ "encoder": {
125
+ "_name_or_path": "",
126
+ "add_cross_attention": false,
127
+ "architectures": null,
128
+ "attention_probs_dropout_prob": 0.0,
129
+ "bad_words_ids": null,
130
+ "begin_suppress_tokens": null,
131
+ "bos_token_id": null,
132
+ "chunk_size_feed_forward": 0,
133
+ "cross_attention_hidden_size": null,
134
+ "decoder_start_token_id": null,
135
+ "depths": [
136
+ 2,
137
+ 2,
138
+ 14,
139
+ 2
140
+ ],
141
+ "diversity_penalty": 0.0,
142
+ "do_sample": false,
143
+ "drop_path_rate": 0.1,
144
+ "early_stopping": false,
145
+ "embed_dim": 128,
146
+ "encoder_length": 1024,
147
+ "encoder_no_repeat_ngram_size": 0,
148
+ "eos_token_id": null,
149
+ "exponential_decay_length_penalty": null,
150
+ "finetuning_task": null,
151
+ "forced_bos_token_id": null,
152
+ "forced_eos_token_id": null,
153
+ "hidden_act": "gelu",
154
+ "hidden_dropout_prob": 0.0,
155
+ "hidden_size": 1024,
156
+ "id2label": {
157
+ "0": "LABEL_0",
158
+ "1": "LABEL_1"
159
+ },
160
+ "image_size": [
161
+ 640,
162
+ 640
163
+ ],
164
+ "initializer_range": 0.02,
165
+ "is_decoder": false,
166
+ "is_encoder_decoder": false,
167
+ "label2id": {
168
+ "LABEL_0": 0,
169
+ "LABEL_1": 1
170
+ },
171
+ "layer_norm_eps": 1e-05,
172
+ "length_penalty": 1.0,
173
+ "max_length": 20,
174
+ "min_length": 0,
175
+ "mlp_ratio": 4.0,
176
+ "model_type": "donut-swin",
177
+ "no_repeat_ngram_size": 0,
178
+ "num_beam_groups": 1,
179
+ "num_beams": 1,
180
+ "num_channels": 3,
181
+ "num_heads": [
182
+ 4,
183
+ 8,
184
+ 16,
185
+ 32
186
+ ],
187
+ "num_kv_heads": [
188
+ 4,
189
+ 8,
190
+ 16,
191
+ 32
192
+ ],
193
+ "num_layers": 4,
194
+ "num_return_sequences": 1,
195
+ "output_attentions": false,
196
+ "output_hidden_states": false,
197
+ "output_scores": false,
198
+ "pad_token_id": null,
199
+ "patch_size": 4,
200
+ "prefix": null,
201
+ "problem_type": null,
202
+ "pruned_heads": {},
203
+ "qkv_bias": true,
204
+ "remove_invalid_values": false,
205
+ "repetition_penalty": 1.0,
206
+ "return_dict": true,
207
+ "return_dict_in_generate": false,
208
+ "sep_token_id": null,
209
+ "suppress_tokens": null,
210
+ "task_specific_params": null,
211
+ "temperature": 1.0,
212
+ "tf_legacy_loss": false,
213
+ "tie_encoder_decoder": false,
214
+ "tie_word_embeddings": true,
215
+ "tokenizer_class": null,
216
+ "top_k": 50,
217
+ "top_p": 1.0,
218
+ "torch_dtype": null,
219
+ "torchscript": false,
220
+ "typical_p": 1.0,
221
+ "use_absolute_embeddings": true,
222
+ "use_bfloat16": false,
223
+ "window_size": 8
224
+ },
225
+ "eos_token_id": 1,
226
+ "is_encoder_decoder": true,
227
+ "model_type": "vision-encoder-decoder",
228
+ "pad_token_id": 0,
229
+ "text_encoder": {
230
+ "_name_or_path": "",
231
+ "add_cross_attention": false,
232
+ "architectures": null,
233
+ "attention_bias": false,
234
+ "attention_dropout": 0.0,
235
+ "attention_window_size": 16,
236
+ "aux_heads": 0,
237
+ "bad_words_ids": null,
238
+ "begin_suppress_tokens": null,
239
+ "block_types": [
240
+ "attention"
241
+ ],
242
+ "bos_token_id": 2,
243
+ "causal": false,
244
+ "chunk_size_feed_forward": 0,
245
+ "conv1d_width": 4,
246
+ "cross_attention_hidden_size": null,
247
+ "cross_attn_layers": [
248
+ 0,
249
+ 1,
250
+ 2,
251
+ 3,
252
+ 4,
253
+ 5
254
+ ],
255
+ "decoder_start_token_id": null,
256
+ "diversity_penalty": 0.0,
257
+ "do_sample": false,
258
+ "early_stopping": false,
259
+ "encoder_hidden_size": 1024,
260
+ "encoder_no_repeat_ngram_size": 0,
261
+ "eos_token_id": 1,
262
+ "exponential_decay_length_penalty": null,
263
+ "final_w_init_variance_scale": 0.5,
264
+ "finetuning_task": null,
265
+ "forced_bos_token_id": null,
266
+ "forced_eos_token_id": null,
267
+ "global_attn_layers": [
268
+ 0,
269
+ 1,
270
+ 2,
271
+ 3,
272
+ 4,
273
+ 5
274
+ ],
275
+ "head_dim": 64,
276
+ "hidden_activation": "gelu_pytorch_tanh",
277
+ "hidden_size": 1024,
278
+ "id2label": {
279
+ "0": "LABEL_0",
280
+ "1": "LABEL_1"
281
+ },
282
+ "init_std": 0.02,
283
+ "intermediate_size": 4096,
284
+ "is_decoder": false,
285
+ "is_encoder_decoder": false,
286
+ "iteration_count": 1,
287
+ "label2id": {
288
+ "LABEL_0": 0,
289
+ "LABEL_1": 1
290
+ },
291
+ "length_penalty": 1.0,
292
+ "logits_soft_cap": 30.0,
293
+ "lru_width": 1024,
294
+ "max_height": 1031,
295
+ "max_input_boxes": 256,
296
+ "max_length": 20,
297
+ "max_position_embeddings": 1024,
298
+ "max_width": 1031,
299
+ "min_length": 0,
300
+ "model_type": "surya_tablerec",
301
+ "no_repeat_ngram_size": 0,
302
+ "num_attention_heads": 16,
303
+ "num_beam_groups": 1,
304
+ "num_beams": 1,
305
+ "num_hidden_layers": 4,
306
+ "num_key_value_heads": 16,
307
+ "num_return_sequences": 1,
308
+ "output_attentions": false,
309
+ "output_hidden_states": false,
310
+ "output_scores": false,
311
+ "pad_token_id": 0,
312
+ "prefix": null,
313
+ "problem_type": null,
314
+ "pruned_heads": {},
315
+ "remove_invalid_values": false,
316
+ "repetition_penalty": 1.0,
317
+ "return_dict": true,
318
+ "return_dict_in_generate": false,
319
+ "rms_norm_eps": 1e-06,
320
+ "rope_theta": 10000.0,
321
+ "self_attn_layers": [
322
+ 0,
323
+ 1,
324
+ 2,
325
+ 3,
326
+ 4,
327
+ 5
328
+ ],
329
+ "sep_token_id": null,
330
+ "suppress_tokens": null,
331
+ "task_specific_params": null,
332
+ "temperature": 1.0,
333
+ "tf_legacy_loss": false,
334
+ "tie_encoder_decoder": false,
335
+ "tie_word_embeddings": true,
336
+ "tokenizer_class": null,
337
+ "top_k": 50,
338
+ "top_p": 1.0,
339
+ "torch_dtype": null,
340
+ "torchscript": false,
341
+ "typical_p": 1.0,
342
+ "use_bfloat16": false,
343
+ "use_cache": true,
344
+ "vocab_size": 391,
345
+ "w_init_variance_scale": 0.01
346
+ },
347
+ "tie_word_embeddings": false,
348
+ "torch_dtype": "float16",
349
+ "transformers_version": "4.41.2"
350
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "decoder_start_token_id": 2,
5
+ "eos_token_id": 1,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "4.41.2"
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3b376a1ff649613a404e4573c9cf087ce510848fbe9d4cce386d1703fb4d2f0
3
+ size 397009152