Xenova HF staff commited on
Commit
1ca7584
1 Parent(s): 36e071a

Upload folder using huggingface_hub

Browse files
added_tokens.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</s_answer>": 57523,
3
+ "</s_question>": 57524,
4
+ "<no/>": 57525,
5
+ "<s_answer>": 57526,
6
+ "<s_docvqa>": 57527,
7
+ "<s_iitcdip>": 57528,
8
+ "<s_question>": 57529,
9
+ "<s_synthdog>": 57530,
10
+ "<sep/>": 57522,
11
+ "<yes/>": 57531
12
+ }
config.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "naver-clova-ix/donut-base-finetuned-docvqa",
3
+ "architectures": [
4
+ "VisionEncoderDecoderModel"
5
+ ],
6
+ "decoder": {
7
+ "_name_or_path": "",
8
+ "activation_dropout": 0.0,
9
+ "activation_function": "gelu",
10
+ "add_cross_attention": true,
11
+ "add_final_layer_norm": true,
12
+ "architectures": null,
13
+ "attention_dropout": 0.0,
14
+ "bad_words_ids": null,
15
+ "begin_suppress_tokens": null,
16
+ "bos_token_id": 0,
17
+ "chunk_size_feed_forward": 0,
18
+ "classifier_dropout": 0.0,
19
+ "cross_attention_hidden_size": null,
20
+ "d_model": 1024,
21
+ "decoder_attention_heads": 16,
22
+ "decoder_ffn_dim": 4096,
23
+ "decoder_layerdrop": 0.0,
24
+ "decoder_layers": 4,
25
+ "decoder_start_token_id": null,
26
+ "diversity_penalty": 0.0,
27
+ "do_sample": false,
28
+ "dropout": 0.1,
29
+ "early_stopping": false,
30
+ "encoder_attention_heads": 16,
31
+ "encoder_ffn_dim": 4096,
32
+ "encoder_layerdrop": 0.0,
33
+ "encoder_layers": 12,
34
+ "encoder_no_repeat_ngram_size": 0,
35
+ "eos_token_id": 2,
36
+ "exponential_decay_length_penalty": null,
37
+ "finetuning_task": null,
38
+ "forced_bos_token_id": null,
39
+ "forced_eos_token_id": 2,
40
+ "id2label": {
41
+ "0": "LABEL_0",
42
+ "1": "LABEL_1"
43
+ },
44
+ "init_std": 0.02,
45
+ "is_decoder": true,
46
+ "is_encoder_decoder": false,
47
+ "label2id": {
48
+ "LABEL_0": 0,
49
+ "LABEL_1": 1
50
+ },
51
+ "length_penalty": 1.0,
52
+ "max_length": 20,
53
+ "max_position_embeddings": 128,
54
+ "min_length": 0,
55
+ "model_type": "mbart",
56
+ "no_repeat_ngram_size": 0,
57
+ "num_beam_groups": 1,
58
+ "num_beams": 1,
59
+ "num_hidden_layers": 12,
60
+ "num_return_sequences": 1,
61
+ "output_attentions": false,
62
+ "output_hidden_states": false,
63
+ "output_scores": false,
64
+ "pad_token_id": 1,
65
+ "prefix": null,
66
+ "problem_type": null,
67
+ "pruned_heads": {},
68
+ "remove_invalid_values": false,
69
+ "repetition_penalty": 1.0,
70
+ "return_dict": true,
71
+ "return_dict_in_generate": false,
72
+ "scale_embedding": true,
73
+ "sep_token_id": null,
74
+ "suppress_tokens": null,
75
+ "task_specific_params": null,
76
+ "temperature": 1.0,
77
+ "tf_legacy_loss": false,
78
+ "tie_encoder_decoder": false,
79
+ "tie_word_embeddings": true,
80
+ "tokenizer_class": null,
81
+ "top_k": 50,
82
+ "top_p": 1.0,
83
+ "torch_dtype": null,
84
+ "torchscript": false,
85
+ "typical_p": 1.0,
86
+ "use_bfloat16": false,
87
+ "use_cache": true,
88
+ "vocab_size": 57532
89
+ },
90
+ "encoder": {
91
+ "_name_or_path": "",
92
+ "add_cross_attention": false,
93
+ "architectures": null,
94
+ "attention_probs_dropout_prob": 0.0,
95
+ "bad_words_ids": null,
96
+ "begin_suppress_tokens": null,
97
+ "bos_token_id": null,
98
+ "chunk_size_feed_forward": 0,
99
+ "cross_attention_hidden_size": null,
100
+ "decoder_start_token_id": null,
101
+ "depths": [
102
+ 2,
103
+ 2,
104
+ 14,
105
+ 2
106
+ ],
107
+ "diversity_penalty": 0.0,
108
+ "do_sample": false,
109
+ "drop_path_rate": 0.1,
110
+ "early_stopping": false,
111
+ "embed_dim": 128,
112
+ "encoder_no_repeat_ngram_size": 0,
113
+ "eos_token_id": null,
114
+ "exponential_decay_length_penalty": null,
115
+ "finetuning_task": null,
116
+ "forced_bos_token_id": null,
117
+ "forced_eos_token_id": null,
118
+ "hidden_act": "gelu",
119
+ "hidden_dropout_prob": 0.0,
120
+ "hidden_size": 1024,
121
+ "id2label": {
122
+ "0": "LABEL_0",
123
+ "1": "LABEL_1"
124
+ },
125
+ "image_size": [
126
+ 2560,
127
+ 1920
128
+ ],
129
+ "initializer_range": 0.02,
130
+ "is_decoder": false,
131
+ "is_encoder_decoder": false,
132
+ "label2id": {
133
+ "LABEL_0": 0,
134
+ "LABEL_1": 1
135
+ },
136
+ "layer_norm_eps": 1e-05,
137
+ "length_penalty": 1.0,
138
+ "max_length": 20,
139
+ "min_length": 0,
140
+ "mlp_ratio": 4.0,
141
+ "model_type": "donut-swin",
142
+ "no_repeat_ngram_size": 0,
143
+ "num_beam_groups": 1,
144
+ "num_beams": 1,
145
+ "num_channels": 3,
146
+ "num_heads": [
147
+ 4,
148
+ 8,
149
+ 16,
150
+ 32
151
+ ],
152
+ "num_layers": 4,
153
+ "num_return_sequences": 1,
154
+ "output_attentions": false,
155
+ "output_hidden_states": false,
156
+ "output_scores": false,
157
+ "pad_token_id": null,
158
+ "patch_size": 4,
159
+ "path_norm": true,
160
+ "prefix": null,
161
+ "problem_type": null,
162
+ "pruned_heads": {},
163
+ "qkv_bias": true,
164
+ "remove_invalid_values": false,
165
+ "repetition_penalty": 1.0,
166
+ "return_dict": true,
167
+ "return_dict_in_generate": false,
168
+ "sep_token_id": null,
169
+ "suppress_tokens": null,
170
+ "task_specific_params": null,
171
+ "temperature": 1.0,
172
+ "tf_legacy_loss": false,
173
+ "tie_encoder_decoder": false,
174
+ "tie_word_embeddings": true,
175
+ "tokenizer_class": null,
176
+ "top_k": 50,
177
+ "top_p": 1.0,
178
+ "torch_dtype": null,
179
+ "torchscript": false,
180
+ "typical_p": 1.0,
181
+ "use_absolute_embeddings": false,
182
+ "use_bfloat16": false,
183
+ "window_size": 10
184
+ },
185
+ "is_encoder_decoder": true,
186
+ "model_type": "vision-encoder-decoder",
187
+ "tie_word_embeddings": false,
188
+ "torch_dtype": "float32",
189
+ "transformers_version": "4.33.0.dev0"
190
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 2,
5
+ "forced_eos_token_id": 2,
6
+ "pad_token_id": 1,
7
+ "transformers_version": "4.33.0.dev0"
8
+ }
onnx/decoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145f1bcea8ec0db6bcac30087093781ec29b86dda1b5faad28ce4a5c7009f750
3
+ size 505136232
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:863b92e4f0bd48f786a3eefe4f1b996bd18945228c2569985f71405129818e53
3
+ size 505295421
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f93d5f5a2b0d8824f6e46669ac277156807b887c9e2587c95ea70405471370ba
3
+ size 127302452
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd37d20b35e8829714feff5af92e82d07a2331303a0415ab3de2bfc89ab3bb8b
3
+ size 127050973
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daf52060bf59ed395da452c86c970adfab1b45dc27885748ad4a3d13b53b6d9f
3
+ size 471517690
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c58c8012fac23f3cb1aa01962fab5c951524e98142432c664b6d2aa26c5e64e
3
+ size 118537995
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53a8a2102010e6f4c699aa92ab437202aa0a6868113248bca9d6d988f8505691
3
+ size 311503397
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8d6fbd8606261f3c04c9a61a93395647892a0759c48dee64ad701e03928bbf1
3
+ size 91383413
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "feature_extractor_type": "DonutFeatureExtractor",
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_processor_type": "DonutFeatureExtractor",
15
+ "image_std": [
16
+ 0.5,
17
+ 0.5,
18
+ 0.5
19
+ ],
20
+ "processor_class": "DonutProcessor",
21
+ "resample": 2,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "height": 2560,
25
+ "width": 1920
26
+ }
27
+ }
quantize_config.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "decoder_model": {
6
+ "op_types": [
7
+ "Unsqueeze",
8
+ "Slice",
9
+ "Equal",
10
+ "MatMul",
11
+ "Sqrt",
12
+ "Gather",
13
+ "Add",
14
+ "ReduceMean",
15
+ "Softmax",
16
+ "Where",
17
+ "Expand",
18
+ "Shape",
19
+ "Range",
20
+ "Constant",
21
+ "Reshape",
22
+ "Erf",
23
+ "Mul",
24
+ "Cast",
25
+ "Transpose",
26
+ "Concat",
27
+ "Sub",
28
+ "Squeeze",
29
+ "Div",
30
+ "Less",
31
+ "Pow",
32
+ "ConstantOfShape"
33
+ ],
34
+ "weight_type": "QInt8"
35
+ },
36
+ "encoder_model": {
37
+ "op_types": [
38
+ "Unsqueeze",
39
+ "Slice",
40
+ "MatMul",
41
+ "Equal",
42
+ "Sqrt",
43
+ "Gather",
44
+ "Add",
45
+ "ReduceMean",
46
+ "Softmax",
47
+ "Where",
48
+ "Conv",
49
+ "Expand",
50
+ "Shape",
51
+ "Range",
52
+ "Not",
53
+ "Constant",
54
+ "Reshape",
55
+ "Erf",
56
+ "Mul",
57
+ "Cast",
58
+ "Mod",
59
+ "Transpose",
60
+ "ScatterND",
61
+ "Concat",
62
+ "Pad",
63
+ "Sub",
64
+ "Div",
65
+ "Pow",
66
+ "ConstantOfShape"
67
+ ],
68
+ "weight_type": "QUInt8"
69
+ },
70
+ "decoder_model_merged": {
71
+ "op_types": [
72
+ "Unsqueeze",
73
+ "Slice",
74
+ "Equal",
75
+ "MatMul",
76
+ "Sqrt",
77
+ "Gather",
78
+ "Add",
79
+ "ReduceMean",
80
+ "Softmax",
81
+ "Where",
82
+ "Expand",
83
+ "Shape",
84
+ "Range",
85
+ "If",
86
+ "Constant",
87
+ "Reshape",
88
+ "Erf",
89
+ "Mul",
90
+ "Cast",
91
+ "Transpose",
92
+ "Concat",
93
+ "Squeeze",
94
+ "Sub",
95
+ "Div",
96
+ "Less",
97
+ "Pow",
98
+ "ConstantOfShape"
99
+ ],
100
+ "weight_type": "QInt8"
101
+ },
102
+ "decoder_with_past_model": {
103
+ "op_types": [
104
+ "Unsqueeze",
105
+ "Equal",
106
+ "MatMul",
107
+ "Sqrt",
108
+ "Gather",
109
+ "Add",
110
+ "ReduceMean",
111
+ "Softmax",
112
+ "Where",
113
+ "Expand",
114
+ "Shape",
115
+ "Range",
116
+ "Constant",
117
+ "Reshape",
118
+ "Erf",
119
+ "Mul",
120
+ "Cast",
121
+ "Transpose",
122
+ "Concat",
123
+ "Sub",
124
+ "Div",
125
+ "Pow",
126
+ "ConstantOfShape"
127
+ ],
128
+ "weight_type": "QInt8"
129
+ }
130
+ }
131
+ }
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb9e3dce4c326195d08fc3dd0f7e2eee1da8595c847bf4c1a9c78b7a82d47e2d
3
+ size 1296245
special_tokens_map.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "</s_answer>",
4
+ "</s_question>",
5
+ "<no/>",
6
+ "<s_answer>",
7
+ "<s_docvqa>",
8
+ "<s_iitcdip>",
9
+ "<s_question>",
10
+ "<s_synthdog>",
11
+ "<yes/>"
12
+ ],
13
+ "bos_token": "<s>",
14
+ "cls_token": "<s>",
15
+ "eos_token": "</s>",
16
+ "mask_token": {
17
+ "content": "<mask>",
18
+ "lstrip": true,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "pad_token": "<pad>",
24
+ "sep_token": "</s>",
25
+ "unk_token": "<unk>"
26
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "mask_token": {
7
+ "__type": "AddedToken",
8
+ "content": "<mask>",
9
+ "lstrip": true,
10
+ "normalized": true,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "model_max_length": 1000000000000000019884624838656,
15
+ "pad_token": "<pad>",
16
+ "processor_class": "DonutProcessor",
17
+ "sep_token": "</s>",
18
+ "sp_model_kwargs": {},
19
+ "tokenizer_class": "XLMRobertaTokenizer",
20
+ "unk_token": "<unk>"
21
+ }