End of training
Browse files- README.md +54 -0
- added_tokens.json +20 -0
- generation_config.json +8 -0
- preprocessor_config.json +26 -0
- runs/Mar13_15-46-22_3a6c3faecf36/events.out.tfevents.1678722429.3a6c3faecf36.318.0 +2 -2
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +31 -0
- tokenizer.json +0 -0
- tokenizer_config.json +22 -0
README.md
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- imagefolder
|
7 |
+
model-index:
|
8 |
+
- name: donut-base-finetuned-Latvian-receipts-v2
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# donut-base-finetuned-Latvian-receipts-v2
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [naver-clova-ix/donut-base](https://huggingface.co/naver-clova-ix/donut-base) on the imagefolder dataset.
|
18 |
+
|
19 |
+
## Model description
|
20 |
+
|
21 |
+
More information needed
|
22 |
+
|
23 |
+
## Intended uses & limitations
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Training and evaluation data
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training procedure
|
32 |
+
|
33 |
+
### Training hyperparameters
|
34 |
+
|
35 |
+
The following hyperparameters were used during training:
|
36 |
+
- learning_rate: 2e-05
|
37 |
+
- train_batch_size: 2
|
38 |
+
- eval_batch_size: 8
|
39 |
+
- seed: 42
|
40 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
41 |
+
- lr_scheduler_type: linear
|
42 |
+
- num_epochs: 3
|
43 |
+
- mixed_precision_training: Native AMP
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
### Framework versions
|
50 |
+
|
51 |
+
- Transformers 4.26.1
|
52 |
+
- Pytorch 1.13.1+cu116
|
53 |
+
- Datasets 2.10.1
|
54 |
+
- Tokenizers 0.13.2
|
added_tokens.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s_PVN_maksataja_numurs>": 57539,
|
3 |
+
"</s_datums>": 57537,
|
4 |
+
"</s_laiks>": 57535,
|
5 |
+
"</s_nosaukums>": 57533,
|
6 |
+
"</s_receipt_nr>": 57531,
|
7 |
+
"</s_summa>": 57529,
|
8 |
+
"<s_PVN_maksataja_numurs>": 57538,
|
9 |
+
"<s_datums>": 57536,
|
10 |
+
"<s_iitcdip>": 57523,
|
11 |
+
"<s_laiks>": 57534,
|
12 |
+
"<s_nosaukums>": 57532,
|
13 |
+
"<s_receipt_nr>": 57530,
|
14 |
+
"<s_summa>": 57528,
|
15 |
+
"<s_synthdog>": 57524,
|
16 |
+
"<sep/>": 57522,
|
17 |
+
"ķ": 57525,
|
18 |
+
"ļ": 57526,
|
19 |
+
"ņ": 57527
|
20 |
+
}
|
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.26.1"
|
8 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "DonutImageProcessor",
|
14 |
+
"image_std": [
|
15 |
+
0.5,
|
16 |
+
0.5,
|
17 |
+
0.5
|
18 |
+
],
|
19 |
+
"processor_class": "DonutProcessor",
|
20 |
+
"resample": 2,
|
21 |
+
"rescale_factor": 0.00392156862745098,
|
22 |
+
"size": [
|
23 |
+
720,
|
24 |
+
960
|
25 |
+
]
|
26 |
+
}
|
runs/Mar13_15-46-22_3a6c3faecf36/events.out.tfevents.1678722429.3a6c3faecf36.318.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3b85dbc2e5a403edd6aee47ee2e85f8359251cc299e4bc84daae1655549f3dee
|
3 |
+
size 9708
|
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,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s_summa>",
|
4 |
+
"</s_summa>",
|
5 |
+
"<s_receipt_nr>",
|
6 |
+
"</s_receipt_nr>",
|
7 |
+
"<s_nosaukums>",
|
8 |
+
"</s_nosaukums>",
|
9 |
+
"<s_laiks>",
|
10 |
+
"</s_laiks>",
|
11 |
+
"<s_datums>",
|
12 |
+
"</s_datums>",
|
13 |
+
"<s_PVN_maksataja_numurs>",
|
14 |
+
"</s_PVN_maksataja_numurs>",
|
15 |
+
"<s>",
|
16 |
+
"</s>"
|
17 |
+
],
|
18 |
+
"bos_token": "<s>",
|
19 |
+
"cls_token": "<s>",
|
20 |
+
"eos_token": "</s>",
|
21 |
+
"mask_token": {
|
22 |
+
"content": "<mask>",
|
23 |
+
"lstrip": true,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
},
|
28 |
+
"pad_token": "<pad>",
|
29 |
+
"sep_token": "</s>",
|
30 |
+
"unk_token": "<unk>"
|
31 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"__type": "AddedToken",
|
7 |
+
"content": "<mask>",
|
8 |
+
"lstrip": true,
|
9 |
+
"normalized": true,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"model_max_length": 1000000000000000019884624838656,
|
14 |
+
"name_or_path": "naver-clova-ix/donut-base",
|
15 |
+
"pad_token": "<pad>",
|
16 |
+
"processor_class": "DonutProcessor",
|
17 |
+
"sep_token": "</s>",
|
18 |
+
"sp_model_kwargs": {},
|
19 |
+
"special_tokens_map_file": null,
|
20 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
21 |
+
"unk_token": "<unk>"
|
22 |
+
}
|