marcelomoreno26 commited on
Commit
dcb3133
1 Parent(s): 36d2352

End of training

Browse files
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: marcelomoreno26/donut-base-receipts
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: donut-base-receipts2
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # donut-base-receipts2
15
+
16
+ This model is a fine-tuned version of [marcelomoreno26/donut-base-receipts](https://huggingface.co/marcelomoreno26/donut-base-receipts) on an unknown dataset.
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 2e-05
36
+ - train_batch_size: 1
37
+ - eval_batch_size: 4
38
+ - seed: 42
39
+ - gradient_accumulation_steps: 4
40
+ - total_train_batch_size: 4
41
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
+ - lr_scheduler_type: linear
43
+ - num_epochs: 7
44
+ - mixed_precision_training: Native AMP
45
+
46
+ ### Training results
47
+
48
+
49
+
50
+ ### Framework versions
51
+
52
+ - Transformers 4.39.1
53
+ - Pytorch 2.2.1
54
+ - Datasets 2.18.0
55
+ - Tokenizers 0.15.2
added_tokens.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</s_Date_value>": 57548,
3
+ "</s_Prod_item_value>": 57546,
4
+ "</s_Prod_list>": 57540,
5
+ "</s_Prod_price_value>": 57544,
6
+ "</s_Prod_quantity_value>": 57542,
7
+ "</s_Store_addr_value>": 57538,
8
+ "</s_Store_name_value>": 57536,
9
+ "</s_Subtotal_value>": 57550,
10
+ "</s_Tax_list>": 57532,
11
+ "</s_Tax_value>": 57534,
12
+ "</s_Tel_value>": 57530,
13
+ "</s_Time_value>": 57528,
14
+ "</s_Tips_list>": 57552,
15
+ "</s_Tips_value>": 57554,
16
+ "</s_Total_value>": 57526,
17
+ "<s_Date_value>": 57547,
18
+ "<s_Prod_item_value>": 57545,
19
+ "<s_Prod_list>": 57539,
20
+ "<s_Prod_price_value>": 57543,
21
+ "<s_Prod_quantity_value>": 57541,
22
+ "<s_Store_addr_value>": 57537,
23
+ "<s_Store_name_value>": 57535,
24
+ "<s_Subtotal_value>": 57549,
25
+ "<s_Tax_list>": 57531,
26
+ "<s_Tax_value>": 57533,
27
+ "<s_Tel_value>": 57529,
28
+ "<s_Time_value>": 57527,
29
+ "<s_Tips_list>": 57551,
30
+ "<s_Tips_value>": 57553,
31
+ "<s_Total_value>": 57525,
32
+ "<s_iitcdip>": 57523,
33
+ "<s_synthdog>": 57524,
34
+ "<sep/>": 57522
35
+ }
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.39.1"
8
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_thumbnail",
8
+ "do_align_long_axis",
9
+ "do_pad",
10
+ "random_padding",
11
+ "do_rescale",
12
+ "rescale_factor",
13
+ "do_normalize",
14
+ "image_mean",
15
+ "image_std",
16
+ "return_tensors",
17
+ "data_format",
18
+ "input_data_format"
19
+ ],
20
+ "do_align_long_axis": false,
21
+ "do_normalize": true,
22
+ "do_pad": true,
23
+ "do_rescale": true,
24
+ "do_resize": true,
25
+ "do_thumbnail": true,
26
+ "image_mean": [
27
+ 0.5,
28
+ 0.5,
29
+ 0.5
30
+ ],
31
+ "image_processor_type": "DonutImageProcessor",
32
+ "image_std": [
33
+ 0.5,
34
+ 0.5,
35
+ 0.5
36
+ ],
37
+ "processor_class": "DonutProcessor",
38
+ "resample": 2,
39
+ "rescale_factor": 0.00392156862745098,
40
+ "size": {
41
+ "height": 960,
42
+ "width": 720
43
+ }
44
+ }
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,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<s_Total_value>",
4
+ "</s_Total_value>",
5
+ "<s_Time_value>",
6
+ "</s_Time_value>",
7
+ "<s_Tel_value>",
8
+ "</s_Tel_value>",
9
+ "<s_Tax_list>",
10
+ "</s_Tax_list>",
11
+ "<s_Tax_value>",
12
+ "</s_Tax_value>",
13
+ "<s_Store_name_value>",
14
+ "</s_Store_name_value>",
15
+ "<s_Store_addr_value>",
16
+ "</s_Store_addr_value>",
17
+ "<s_Prod_list>",
18
+ "</s_Prod_list>",
19
+ "<s_Prod_quantity_value>",
20
+ "</s_Prod_quantity_value>",
21
+ "<s_Prod_price_value>",
22
+ "</s_Prod_price_value>",
23
+ "<s_Prod_item_value>",
24
+ "</s_Prod_item_value>",
25
+ "<s_Date_value>",
26
+ "</s_Date_value>",
27
+ "<s_Subtotal_value>",
28
+ "</s_Subtotal_value>",
29
+ "<s_Tips_list>",
30
+ "</s_Tips_list>",
31
+ "<s_Tips_value>",
32
+ "</s_Tips_value>",
33
+ "<s>",
34
+ "</s>"
35
+ ],
36
+ "bos_token": {
37
+ "content": "<s>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false
42
+ },
43
+ "cls_token": {
44
+ "content": "<s>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false
49
+ },
50
+ "eos_token": {
51
+ "content": "</s>",
52
+ "lstrip": false,
53
+ "normalized": false,
54
+ "rstrip": false,
55
+ "single_word": false
56
+ },
57
+ "mask_token": {
58
+ "content": "<mask>",
59
+ "lstrip": true,
60
+ "normalized": true,
61
+ "rstrip": false,
62
+ "single_word": false
63
+ },
64
+ "pad_token": {
65
+ "content": "<pad>",
66
+ "lstrip": false,
67
+ "normalized": false,
68
+ "rstrip": false,
69
+ "single_word": false
70
+ },
71
+ "sep_token": {
72
+ "content": "</s>",
73
+ "lstrip": false,
74
+ "normalized": false,
75
+ "rstrip": false,
76
+ "single_word": false
77
+ },
78
+ "unk_token": {
79
+ "content": "<unk>",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": false,
83
+ "single_word": false
84
+ }
85
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "57521": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": true,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "57522": {
44
+ "content": "<sep/>",
45
+ "lstrip": false,
46
+ "normalized": true,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": false
50
+ },
51
+ "57523": {
52
+ "content": "<s_iitcdip>",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "57524": {
60
+ "content": "<s_synthdog>",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ },
67
+ "57525": {
68
+ "content": "<s_Total_value>",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ },
75
+ "57526": {
76
+ "content": "</s_Total_value>",
77
+ "lstrip": false,
78
+ "normalized": false,
79
+ "rstrip": false,
80
+ "single_word": false,
81
+ "special": true
82
+ },
83
+ "57527": {
84
+ "content": "<s_Time_value>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": true
90
+ },
91
+ "57528": {
92
+ "content": "</s_Time_value>",
93
+ "lstrip": false,
94
+ "normalized": false,
95
+ "rstrip": false,
96
+ "single_word": false,
97
+ "special": true
98
+ },
99
+ "57529": {
100
+ "content": "<s_Tel_value>",
101
+ "lstrip": false,
102
+ "normalized": false,
103
+ "rstrip": false,
104
+ "single_word": false,
105
+ "special": true
106
+ },
107
+ "57530": {
108
+ "content": "</s_Tel_value>",
109
+ "lstrip": false,
110
+ "normalized": false,
111
+ "rstrip": false,
112
+ "single_word": false,
113
+ "special": true
114
+ },
115
+ "57531": {
116
+ "content": "<s_Tax_list>",
117
+ "lstrip": false,
118
+ "normalized": false,
119
+ "rstrip": false,
120
+ "single_word": false,
121
+ "special": true
122
+ },
123
+ "57532": {
124
+ "content": "</s_Tax_list>",
125
+ "lstrip": false,
126
+ "normalized": false,
127
+ "rstrip": false,
128
+ "single_word": false,
129
+ "special": true
130
+ },
131
+ "57533": {
132
+ "content": "<s_Tax_value>",
133
+ "lstrip": false,
134
+ "normalized": false,
135
+ "rstrip": false,
136
+ "single_word": false,
137
+ "special": true
138
+ },
139
+ "57534": {
140
+ "content": "</s_Tax_value>",
141
+ "lstrip": false,
142
+ "normalized": false,
143
+ "rstrip": false,
144
+ "single_word": false,
145
+ "special": true
146
+ },
147
+ "57535": {
148
+ "content": "<s_Store_name_value>",
149
+ "lstrip": false,
150
+ "normalized": false,
151
+ "rstrip": false,
152
+ "single_word": false,
153
+ "special": true
154
+ },
155
+ "57536": {
156
+ "content": "</s_Store_name_value>",
157
+ "lstrip": false,
158
+ "normalized": false,
159
+ "rstrip": false,
160
+ "single_word": false,
161
+ "special": true
162
+ },
163
+ "57537": {
164
+ "content": "<s_Store_addr_value>",
165
+ "lstrip": false,
166
+ "normalized": false,
167
+ "rstrip": false,
168
+ "single_word": false,
169
+ "special": true
170
+ },
171
+ "57538": {
172
+ "content": "</s_Store_addr_value>",
173
+ "lstrip": false,
174
+ "normalized": false,
175
+ "rstrip": false,
176
+ "single_word": false,
177
+ "special": true
178
+ },
179
+ "57539": {
180
+ "content": "<s_Prod_list>",
181
+ "lstrip": false,
182
+ "normalized": false,
183
+ "rstrip": false,
184
+ "single_word": false,
185
+ "special": true
186
+ },
187
+ "57540": {
188
+ "content": "</s_Prod_list>",
189
+ "lstrip": false,
190
+ "normalized": false,
191
+ "rstrip": false,
192
+ "single_word": false,
193
+ "special": true
194
+ },
195
+ "57541": {
196
+ "content": "<s_Prod_quantity_value>",
197
+ "lstrip": false,
198
+ "normalized": false,
199
+ "rstrip": false,
200
+ "single_word": false,
201
+ "special": true
202
+ },
203
+ "57542": {
204
+ "content": "</s_Prod_quantity_value>",
205
+ "lstrip": false,
206
+ "normalized": false,
207
+ "rstrip": false,
208
+ "single_word": false,
209
+ "special": true
210
+ },
211
+ "57543": {
212
+ "content": "<s_Prod_price_value>",
213
+ "lstrip": false,
214
+ "normalized": false,
215
+ "rstrip": false,
216
+ "single_word": false,
217
+ "special": true
218
+ },
219
+ "57544": {
220
+ "content": "</s_Prod_price_value>",
221
+ "lstrip": false,
222
+ "normalized": false,
223
+ "rstrip": false,
224
+ "single_word": false,
225
+ "special": true
226
+ },
227
+ "57545": {
228
+ "content": "<s_Prod_item_value>",
229
+ "lstrip": false,
230
+ "normalized": false,
231
+ "rstrip": false,
232
+ "single_word": false,
233
+ "special": true
234
+ },
235
+ "57546": {
236
+ "content": "</s_Prod_item_value>",
237
+ "lstrip": false,
238
+ "normalized": false,
239
+ "rstrip": false,
240
+ "single_word": false,
241
+ "special": true
242
+ },
243
+ "57547": {
244
+ "content": "<s_Date_value>",
245
+ "lstrip": false,
246
+ "normalized": false,
247
+ "rstrip": false,
248
+ "single_word": false,
249
+ "special": true
250
+ },
251
+ "57548": {
252
+ "content": "</s_Date_value>",
253
+ "lstrip": false,
254
+ "normalized": false,
255
+ "rstrip": false,
256
+ "single_word": false,
257
+ "special": true
258
+ },
259
+ "57549": {
260
+ "content": "<s_Subtotal_value>",
261
+ "lstrip": false,
262
+ "normalized": false,
263
+ "rstrip": false,
264
+ "single_word": false,
265
+ "special": true
266
+ },
267
+ "57550": {
268
+ "content": "</s_Subtotal_value>",
269
+ "lstrip": false,
270
+ "normalized": false,
271
+ "rstrip": false,
272
+ "single_word": false,
273
+ "special": true
274
+ },
275
+ "57551": {
276
+ "content": "<s_Tips_list>",
277
+ "lstrip": false,
278
+ "normalized": false,
279
+ "rstrip": false,
280
+ "single_word": false,
281
+ "special": true
282
+ },
283
+ "57552": {
284
+ "content": "</s_Tips_list>",
285
+ "lstrip": false,
286
+ "normalized": false,
287
+ "rstrip": false,
288
+ "single_word": false,
289
+ "special": true
290
+ },
291
+ "57553": {
292
+ "content": "<s_Tips_value>",
293
+ "lstrip": false,
294
+ "normalized": false,
295
+ "rstrip": false,
296
+ "single_word": false,
297
+ "special": true
298
+ },
299
+ "57554": {
300
+ "content": "</s_Tips_value>",
301
+ "lstrip": false,
302
+ "normalized": false,
303
+ "rstrip": false,
304
+ "single_word": false,
305
+ "special": true
306
+ }
307
+ },
308
+ "additional_special_tokens": [
309
+ "<s_Total_value>",
310
+ "</s_Total_value>",
311
+ "<s_Time_value>",
312
+ "</s_Time_value>",
313
+ "<s_Tel_value>",
314
+ "</s_Tel_value>",
315
+ "<s_Tax_list>",
316
+ "</s_Tax_list>",
317
+ "<s_Tax_value>",
318
+ "</s_Tax_value>",
319
+ "<s_Store_name_value>",
320
+ "</s_Store_name_value>",
321
+ "<s_Store_addr_value>",
322
+ "</s_Store_addr_value>",
323
+ "<s_Prod_list>",
324
+ "</s_Prod_list>",
325
+ "<s_Prod_quantity_value>",
326
+ "</s_Prod_quantity_value>",
327
+ "<s_Prod_price_value>",
328
+ "</s_Prod_price_value>",
329
+ "<s_Prod_item_value>",
330
+ "</s_Prod_item_value>",
331
+ "<s_Date_value>",
332
+ "</s_Date_value>",
333
+ "<s_Subtotal_value>",
334
+ "</s_Subtotal_value>",
335
+ "<s_Tips_list>",
336
+ "</s_Tips_list>",
337
+ "<s_Tips_value>",
338
+ "</s_Tips_value>",
339
+ "<s>",
340
+ "</s>"
341
+ ],
342
+ "bos_token": "<s>",
343
+ "clean_up_tokenization_spaces": true,
344
+ "cls_token": "<s>",
345
+ "eos_token": "</s>",
346
+ "mask_token": "<mask>",
347
+ "max_length": 512,
348
+ "model_max_length": 1000000000000000019884624838656,
349
+ "pad_to_multiple_of": null,
350
+ "pad_token": "<pad>",
351
+ "pad_token_type_id": 0,
352
+ "padding_side": "right",
353
+ "processor_class": "DonutProcessor",
354
+ "sep_token": "</s>",
355
+ "sp_model_kwargs": {},
356
+ "stride": 0,
357
+ "tokenizer_class": "XLMRobertaTokenizer",
358
+ "truncation_side": "right",
359
+ "truncation_strategy": "longest_first",
360
+ "unk_token": "<unk>"
361
+ }