icfrowne commited on
Commit
7cc881d
·
verified ·
1 Parent(s): 4f026ef

End of training

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: SCUT-DLVCLab/lilt-roberta-en-base
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: lilt-en-funsd
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
+ # lilt-en-funsd
15
+
16
+ This model is a fine-tuned version of [SCUT-DLVCLab/lilt-roberta-en-base](https://huggingface.co/SCUT-DLVCLab/lilt-roberta-en-base) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 1.5192
19
+ - Answer: {'precision': 0.8623024830699775, 'recall': 0.9351285189718482, 'f1': 0.897240164415737, 'number': 817}
20
+ - Header: {'precision': 0.5980392156862745, 'recall': 0.5126050420168067, 'f1': 0.5520361990950226, 'number': 119}
21
+ - Question: {'precision': 0.9070191431175935, 'recall': 0.9238625812441968, 'f1': 0.9153633854645814, 'number': 1077}
22
+ - Overall Precision: 0.8729
23
+ - Overall Recall: 0.9041
24
+ - Overall F1: 0.8882
25
+ - Overall Accuracy: 0.8317
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 5e-05
45
+ - train_batch_size: 8
46
+ - eval_batch_size: 8
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - training_steps: 2500
51
+ - mixed_precision_training: Native AMP
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Answer | Header | Question | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
56
+ |:-------------:|:--------:|:----:|:---------------:|:--------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
57
+ | 0.41 | 10.5263 | 200 | 1.0931 | {'precision': 0.8183856502242153, 'recall': 0.8935128518971848, 'f1': 0.8543007606787594, 'number': 817} | {'precision': 0.42138364779874216, 'recall': 0.5630252100840336, 'f1': 0.48201438848920863, 'number': 119} | {'precision': 0.8991185112634672, 'recall': 0.8523676880222841, 'f1': 0.8751191611058151, 'number': 1077} | 0.8277 | 0.8520 | 0.8397 | 0.7869 |
58
+ | 0.0535 | 21.0526 | 400 | 1.2583 | {'precision': 0.8495475113122172, 'recall': 0.9192166462668299, 'f1': 0.8830099941211051, 'number': 817} | {'precision': 0.5636363636363636, 'recall': 0.5210084033613446, 'f1': 0.5414847161572053, 'number': 119} | {'precision': 0.8898999090081893, 'recall': 0.9080779944289693, 'f1': 0.8988970588235294, 'number': 1077} | 0.8557 | 0.8897 | 0.8724 | 0.8223 |
59
+ | 0.0132 | 31.5789 | 600 | 1.3993 | {'precision': 0.8563348416289592, 'recall': 0.9265605875152999, 'f1': 0.8900646678424456, 'number': 817} | {'precision': 0.6116504854368932, 'recall': 0.5294117647058824, 'f1': 0.5675675675675675, 'number': 119} | {'precision': 0.9144486692015209, 'recall': 0.89322191272052, 'f1': 0.9037106622827619, 'number': 1077} | 0.8740 | 0.8852 | 0.8796 | 0.8171 |
60
+ | 0.0078 | 42.1053 | 800 | 1.4683 | {'precision': 0.8583042973286876, 'recall': 0.9045287637698899, 'f1': 0.8808104886769966, 'number': 817} | {'precision': 0.684931506849315, 'recall': 0.42016806722689076, 'f1': 0.5208333333333334, 'number': 119} | {'precision': 0.9023041474654377, 'recall': 0.9090064995357474, 'f1': 0.9056429232192413, 'number': 1077} | 0.8757 | 0.8783 | 0.8770 | 0.8070 |
61
+ | 0.0035 | 52.6316 | 1000 | 1.4809 | {'precision': 0.8633177570093458, 'recall': 0.9045287637698899, 'f1': 0.8834429169157203, 'number': 817} | {'precision': 0.6582278481012658, 'recall': 0.4369747899159664, 'f1': 0.5252525252525252, 'number': 119} | {'precision': 0.886443661971831, 'recall': 0.9350046425255338, 'f1': 0.9100768187980117, 'number': 1077} | 0.8682 | 0.8932 | 0.8805 | 0.8184 |
62
+ | 0.0032 | 63.1579 | 1200 | 1.4947 | {'precision': 0.8544018058690744, 'recall': 0.9265605875152999, 'f1': 0.889019377568996, 'number': 817} | {'precision': 0.5238095238095238, 'recall': 0.46218487394957986, 'f1': 0.4910714285714286, 'number': 119} | {'precision': 0.9100185528756958, 'recall': 0.9108635097493036, 'f1': 0.9104408352668213, 'number': 1077} | 0.8666 | 0.8907 | 0.8785 | 0.8247 |
63
+ | 0.0016 | 73.6842 | 1400 | 1.4909 | {'precision': 0.8579676674364896, 'recall': 0.9094247246022031, 'f1': 0.8829471182412357, 'number': 817} | {'precision': 0.6666666666666666, 'recall': 0.5378151260504201, 'f1': 0.5953488372093023, 'number': 119} | {'precision': 0.9136822773186409, 'recall': 0.9238625812441968, 'f1': 0.9187442289935365, 'number': 1077} | 0.8786 | 0.8952 | 0.8868 | 0.8234 |
64
+ | 0.0006 | 84.2105 | 1600 | 1.5053 | {'precision': 0.8689492325855962, 'recall': 0.9008567931456548, 'f1': 0.8846153846153847, 'number': 817} | {'precision': 0.5922330097087378, 'recall': 0.5126050420168067, 'f1': 0.5495495495495496, 'number': 119} | {'precision': 0.8995475113122172, 'recall': 0.9229340761374187, 'f1': 0.9110907424381303, 'number': 1077} | 0.8715 | 0.8897 | 0.8805 | 0.8269 |
65
+ | 0.0005 | 94.7368 | 1800 | 1.5094 | {'precision': 0.8648648648648649, 'recall': 0.9400244798041616, 'f1': 0.9008797653958945, 'number': 817} | {'precision': 0.6138613861386139, 'recall': 0.5210084033613446, 'f1': 0.5636363636363637, 'number': 119} | {'precision': 0.9150141643059491, 'recall': 0.8997214484679665, 'f1': 0.9073033707865169, 'number': 1077} | 0.8784 | 0.8937 | 0.8860 | 0.8309 |
66
+ | 0.0004 | 105.2632 | 2000 | 1.5111 | {'precision': 0.8807017543859649, 'recall': 0.9216646266829865, 'f1': 0.9007177033492823, 'number': 817} | {'precision': 0.61, 'recall': 0.5126050420168067, 'f1': 0.5570776255707762, 'number': 119} | {'precision': 0.8981064021641119, 'recall': 0.924791086350975, 'f1': 0.9112534309240622, 'number': 1077} | 0.8769 | 0.8992 | 0.8879 | 0.8322 |
67
+ | 0.0004 | 115.7895 | 2200 | 1.5100 | {'precision': 0.8672768878718535, 'recall': 0.9277845777233782, 'f1': 0.8965109402720284, 'number': 817} | {'precision': 0.6145833333333334, 'recall': 0.4957983193277311, 'f1': 0.5488372093023256, 'number': 119} | {'precision': 0.9016245487364621, 'recall': 0.9275766016713092, 'f1': 0.91441647597254, 'number': 1077} | 0.8739 | 0.9021 | 0.8878 | 0.8312 |
68
+ | 0.0002 | 126.3158 | 2400 | 1.5192 | {'precision': 0.8623024830699775, 'recall': 0.9351285189718482, 'f1': 0.897240164415737, 'number': 817} | {'precision': 0.5980392156862745, 'recall': 0.5126050420168067, 'f1': 0.5520361990950226, 'number': 119} | {'precision': 0.9070191431175935, 'recall': 0.9238625812441968, 'f1': 0.9153633854645814, 'number': 1077} | 0.8729 | 0.9041 | 0.8882 | 0.8317 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.43.3
74
+ - Pytorch 2.0.0+cu118
75
+ - Datasets 2.20.0
76
+ - Tokenizers 0.19.1
logs/events.out.tfevents.1722268471.41165257f2cc.5643.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d60fcfc314846d3377741cc1e9b826cfd88a544bec3fdf276d97f99b80fbdb7c
3
- size 13880
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5ca5315364a90a3efbaf22ab94b40562b95db59e61535d53199fc8af4bcbacf
3
+ size 14234
logs/events.out.tfevents.1722270005.41165257f2cc.5643.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:491d9e576252cdfdae9226f96b9be9ce9a5a567c0e3fad31b6074fbcb6a9bbe5
3
+ size 592
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:71e0c6b9038570661eba6e4c5e8f6ac1e4902cc8819e6b6e1e8671781ef1bd9a
3
  size 520727564
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f62d0ed2bee001537afeb8f9aa2f8156803e732409d12d4319186cc9a9373c01
3
  size 520727564
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": true,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "LayoutLMv3FeatureExtractor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "ocr_lang": null,
18
+ "processor_class": "LayoutLMv3Processor",
19
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 224,
23
+ "width": 224
24
+ },
25
+ "tesseract_config": ""
26
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": true,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "cls_token_box": [
49
+ 0,
50
+ 0,
51
+ 0,
52
+ 0
53
+ ],
54
+ "eos_token": "</s>",
55
+ "errors": "replace",
56
+ "mask_token": "<mask>",
57
+ "model_max_length": 512,
58
+ "only_label_first_subword": true,
59
+ "pad_token": "<pad>",
60
+ "pad_token_box": [
61
+ 0,
62
+ 0,
63
+ 0,
64
+ 0
65
+ ],
66
+ "pad_token_label": -100,
67
+ "processor_class": "LayoutLMv3Processor",
68
+ "sep_token": "</s>",
69
+ "sep_token_box": [
70
+ 0,
71
+ 0,
72
+ 0,
73
+ 0
74
+ ],
75
+ "tokenizer_class": "LayoutLMv3Tokenizer",
76
+ "trim_offsets": true,
77
+ "unk_token": "<unk>"
78
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff