davelotito commited on
Commit
34d8f1e
1 Parent(s): c08baf9

End of training

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: naver-clova-ix/donut-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - bleu
8
+ - wer
9
+ model-index:
10
+ - name: donut_experiment_bayesian_trial_20
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # donut_experiment_bayesian_trial_20
18
+
19
+ This model is a fine-tuned version of [naver-clova-ix/donut-base](https://huggingface.co/naver-clova-ix/donut-base) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.6042
22
+ - Bleu: 0.0711
23
+ - Precisions: [0.8440748440748441, 0.7924528301886793, 0.7493188010899182, 0.7064516129032258]
24
+ - Brevity Penalty: 0.0921
25
+ - Length Ratio: 0.2955
26
+ - Translation Length: 481
27
+ - Reference Length: 1628
28
+ - Cer: 0.7518
29
+ - Wer: 0.8208
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - learning_rate: 1.4151037707088747e-05
49
+ - train_batch_size: 1
50
+ - eval_batch_size: 1
51
+ - seed: 42
52
+ - gradient_accumulation_steps: 2
53
+ - total_train_batch_size: 2
54
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
55
+ - lr_scheduler_type: linear
56
+ - num_epochs: 4
57
+ - mixed_precision_training: Native AMP
58
+
59
+ ### Training results
60
+
61
+ | Training Loss | Epoch | Step | Validation Loss | Bleu | Precisions | Brevity Penalty | Length Ratio | Translation Length | Reference Length | Cer | Wer |
62
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:--------------------------------------------------------------------------------:|:---------------:|:------------:|:------------------:|:----------------:|:------:|:------:|
63
+ | 0.0012 | 1.0 | 253 | 0.6392 | 0.0724 | [0.8333333333333334, 0.7762237762237763, 0.7365591397849462, 0.6952380952380952] | 0.0954 | 0.2985 | 486 | 1628 | 0.7482 | 0.8193 |
64
+ | 0.0068 | 2.0 | 506 | 0.6212 | 0.0697 | [0.8413361169102297, 0.7867298578199052, 0.7452054794520548, 0.7012987012987013] | 0.0908 | 0.2942 | 479 | 1628 | 0.7527 | 0.8230 |
65
+ | 0.0087 | 3.0 | 759 | 0.6105 | 0.0687 | [0.83125, 0.7706855791962175, 0.726775956284153, 0.6828478964401294] | 0.0915 | 0.2948 | 480 | 1628 | 0.7573 | 0.8282 |
66
+ | 0.0056 | 4.0 | 1012 | 0.6042 | 0.0711 | [0.8440748440748441, 0.7924528301886793, 0.7493188010899182, 0.7064516129032258] | 0.0921 | 0.2955 | 481 | 1628 | 0.7518 | 0.8208 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.40.0
72
+ - Pytorch 2.1.0
73
+ - Datasets 2.18.0
74
+ - Tokenizers 0.19.1
added_tokens.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</s_address>": 57532,
3
+ "</s_company>": 57530,
4
+ "</s_date>": 57528,
5
+ "</s_total>": 57526,
6
+ "<s_address>": 57531,
7
+ "<s_company>": 57529,
8
+ "<s_date>": 57527,
9
+ "<s_iitcdip>": 57523,
10
+ "<s_synthdog>": 57524,
11
+ "<s_total>": 57525,
12
+ "<sep/>": 57522
13
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "eos_token_id": 2,
4
+ "forced_eos_token_id": 2,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.40.0"
7
+ }
metrics.jsonl CHANGED
@@ -1,3 +1,4 @@
1
  {"eval_loss": 0.6392162442207336, "eval_bleu": 0.0723659134366324, "eval_precisions": [0.8333333333333334, 0.7762237762237763, 0.7365591397849462, 0.6952380952380952], "eval_brevity_penalty": 0.095388787518951, "eval_length_ratio": 0.2985257985257985, "eval_translation_length": 486, "eval_reference_length": 1628, "eval_cer": 0.7481988417781257, "eval_wer": 0.8193477737643206, "eval_runtime": 70.8766, "eval_samples_per_second": 0.804, "eval_steps_per_second": 0.804, "epoch": 1.0}
2
  {"eval_loss": 0.6211599111557007, "eval_bleu": 0.06965957248797973, "eval_precisions": [0.8413361169102297, 0.7867298578199052, 0.7452054794520548, 0.7012987012987013], "eval_brevity_penalty": 0.09083165866825564, "eval_length_ratio": 0.2942260442260442, "eval_translation_length": 479, "eval_reference_length": 1628, "eval_cer": 0.7526982086438838, "eval_wer": 0.8229917913198584, "eval_runtime": 70.665, "eval_samples_per_second": 0.807, "eval_steps_per_second": 0.807, "epoch": 2.0}
3
  {"eval_loss": 0.6105175614356995, "eval_bleu": 0.06869034832144602, "eval_precisions": [0.83125, 0.7706855791962175, 0.726775956284153, 0.6828478964401294], "eval_brevity_penalty": 0.09147709493048638, "eval_length_ratio": 0.29484029484029484, "eval_translation_length": 480, "eval_reference_length": 1628, "eval_cer": 0.7573403902679113, "eval_wer": 0.8282259633904325, "eval_runtime": 70.7388, "eval_samples_per_second": 0.806, "eval_steps_per_second": 0.806, "epoch": 3.0}
 
 
1
  {"eval_loss": 0.6392162442207336, "eval_bleu": 0.0723659134366324, "eval_precisions": [0.8333333333333334, 0.7762237762237763, 0.7365591397849462, 0.6952380952380952], "eval_brevity_penalty": 0.095388787518951, "eval_length_ratio": 0.2985257985257985, "eval_translation_length": 486, "eval_reference_length": 1628, "eval_cer": 0.7481988417781257, "eval_wer": 0.8193477737643206, "eval_runtime": 70.8766, "eval_samples_per_second": 0.804, "eval_steps_per_second": 0.804, "epoch": 1.0}
2
  {"eval_loss": 0.6211599111557007, "eval_bleu": 0.06965957248797973, "eval_precisions": [0.8413361169102297, 0.7867298578199052, 0.7452054794520548, 0.7012987012987013], "eval_brevity_penalty": 0.09083165866825564, "eval_length_ratio": 0.2942260442260442, "eval_translation_length": 479, "eval_reference_length": 1628, "eval_cer": 0.7526982086438838, "eval_wer": 0.8229917913198584, "eval_runtime": 70.665, "eval_samples_per_second": 0.807, "eval_steps_per_second": 0.807, "epoch": 2.0}
3
  {"eval_loss": 0.6105175614356995, "eval_bleu": 0.06869034832144602, "eval_precisions": [0.83125, 0.7706855791962175, 0.726775956284153, 0.6828478964401294], "eval_brevity_penalty": 0.09147709493048638, "eval_length_ratio": 0.29484029484029484, "eval_translation_length": 480, "eval_reference_length": 1628, "eval_cer": 0.7573403902679113, "eval_wer": 0.8282259633904325, "eval_runtime": 70.7388, "eval_samples_per_second": 0.806, "eval_steps_per_second": 0.806, "epoch": 3.0}
4
+ {"eval_loss": 0.6041749715805054, "eval_bleu": 0.07106414809351409, "eval_precisions": [0.8440748440748441, 0.7924528301886793, 0.7493188010899182, 0.7064516129032258], "eval_brevity_penalty": 0.09212440522976928, "eval_length_ratio": 0.29545454545454547, "eval_translation_length": 481, "eval_reference_length": 1628, "eval_cer": 0.7518264371980812, "eval_wer": 0.8208459037250544, "eval_runtime": 70.6045, "eval_samples_per_second": 0.807, "eval_steps_per_second": 0.807, "epoch": 4.0}
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7c204651a0b252c64f5e57161c3b949b4c4b13d72d7e6793d73dde01b5a715bd
3
  size 809103512
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a0a740eb41dbfde76ae03188d3cdbb0a2f395f09cbd7b494f9e96c98b857ceb
3
  size 809103512
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
+ 720,
42
+ 960
43
+ ]
44
+ }
runs/Jul01_17-11-13_ip-172-16-165-117.ec2.internal/events.out.tfevents.1719853874.ip-172-16-165-117.ec2.internal.19172.3 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:861387f51527935eab009e037d1364daf5a46a396cae2cd23b1f3148d847484f
3
- size 12657
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1628f7aa04fb949a8f6fa1c14dde2b46928e4a9898223351d1b24bd4e21b1b7b
3
+ size 14294
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,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "<s_total>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "</s_total>",
12
+ "lstrip": false,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ {
18
+ "content": "<s_date>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ {
25
+ "content": "</s_date>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ },
31
+ {
32
+ "content": "<s_company>",
33
+ "lstrip": false,
34
+ "normalized": false,
35
+ "rstrip": false,
36
+ "single_word": false
37
+ },
38
+ {
39
+ "content": "</s_company>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false
44
+ },
45
+ {
46
+ "content": "<s_address>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false
51
+ },
52
+ {
53
+ "content": "</s_address>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false
58
+ },
59
+ {
60
+ "content": "<s>",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false
65
+ },
66
+ {
67
+ "content": "</s>",
68
+ "lstrip": false,
69
+ "normalized": false,
70
+ "rstrip": false,
71
+ "single_word": false
72
+ }
73
+ ],
74
+ "bos_token": {
75
+ "content": "<s>",
76
+ "lstrip": false,
77
+ "normalized": false,
78
+ "rstrip": false,
79
+ "single_word": false
80
+ },
81
+ "cls_token": {
82
+ "content": "<s>",
83
+ "lstrip": false,
84
+ "normalized": false,
85
+ "rstrip": false,
86
+ "single_word": false
87
+ },
88
+ "eos_token": {
89
+ "content": "</s>",
90
+ "lstrip": false,
91
+ "normalized": false,
92
+ "rstrip": false,
93
+ "single_word": false
94
+ },
95
+ "mask_token": {
96
+ "content": "<mask>",
97
+ "lstrip": true,
98
+ "normalized": true,
99
+ "rstrip": false,
100
+ "single_word": false
101
+ },
102
+ "pad_token": {
103
+ "content": "<pad>",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": false,
107
+ "single_word": false
108
+ },
109
+ "sep_token": {
110
+ "content": "</s>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false
115
+ },
116
+ "unk_token": {
117
+ "content": "<unk>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false
122
+ }
123
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ },
75
+ "57526": {
76
+ "content": "</s_total>",
77
+ "lstrip": false,
78
+ "normalized": false,
79
+ "rstrip": false,
80
+ "single_word": false,
81
+ "special": true
82
+ },
83
+ "57527": {
84
+ "content": "<s_date>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": true
90
+ },
91
+ "57528": {
92
+ "content": "</s_date>",
93
+ "lstrip": false,
94
+ "normalized": false,
95
+ "rstrip": false,
96
+ "single_word": false,
97
+ "special": true
98
+ },
99
+ "57529": {
100
+ "content": "<s_company>",
101
+ "lstrip": false,
102
+ "normalized": false,
103
+ "rstrip": false,
104
+ "single_word": false,
105
+ "special": true
106
+ },
107
+ "57530": {
108
+ "content": "</s_company>",
109
+ "lstrip": false,
110
+ "normalized": false,
111
+ "rstrip": false,
112
+ "single_word": false,
113
+ "special": true
114
+ },
115
+ "57531": {
116
+ "content": "<s_address>",
117
+ "lstrip": false,
118
+ "normalized": false,
119
+ "rstrip": false,
120
+ "single_word": false,
121
+ "special": true
122
+ },
123
+ "57532": {
124
+ "content": "</s_address>",
125
+ "lstrip": false,
126
+ "normalized": false,
127
+ "rstrip": false,
128
+ "single_word": false,
129
+ "special": true
130
+ }
131
+ },
132
+ "additional_special_tokens": [
133
+ "<s_total>",
134
+ "</s_total>",
135
+ "<s_date>",
136
+ "</s_date>",
137
+ "<s_company>",
138
+ "</s_company>",
139
+ "<s_address>",
140
+ "</s_address>",
141
+ "<s>",
142
+ "</s>"
143
+ ],
144
+ "bos_token": "<s>",
145
+ "clean_up_tokenization_spaces": true,
146
+ "cls_token": "<s>",
147
+ "eos_token": "</s>",
148
+ "mask_token": "<mask>",
149
+ "model_max_length": 1000000000000000019884624838656,
150
+ "pad_token": "<pad>",
151
+ "processor_class": "DonutProcessor",
152
+ "sep_token": "</s>",
153
+ "sp_model_kwargs": {},
154
+ "tokenizer_class": "XLMRobertaTokenizer",
155
+ "unk_token": "<unk>"
156
+ }