sudheer997 commited on
Commit
55fafdf
1 Parent(s): 98003a9

End of training

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - funsd-layoutlmv3
7
+ model-index:
8
+ - name: lilt-en-funsd
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
+ # lilt-en-funsd
16
+
17
+ This model is a fine-tuned version of [SCUT-DLVCLab/lilt-roberta-en-base](https://huggingface.co/SCUT-DLVCLab/lilt-roberta-en-base) on the funsd-layoutlmv3 dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 1.4726
20
+ - Answer: {'precision': 0.8964677222898904, 'recall': 0.9008567931456548, 'f1': 0.8986568986568988, 'number': 817}
21
+ - Header: {'precision': 0.7446808510638298, 'recall': 0.5882352941176471, 'f1': 0.6572769953051643, 'number': 119}
22
+ - Question: {'precision': 0.8958517210944396, 'recall': 0.9424326833797586, 'f1': 0.918552036199095, 'number': 1077}
23
+ - Overall Precision: 0.8892
24
+ - Overall Recall: 0.9046
25
+ - Overall F1: 0.8968
26
+ - Overall Accuracy: 0.8387
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 5e-05
46
+ - train_batch_size: 8
47
+ - eval_batch_size: 8
48
+ - seed: 42
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - training_steps: 2500
52
+ - mixed_precision_training: Native AMP
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Answer | Header | Question | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
57
+ |:-------------:|:------:|:----:|:---------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
58
+ | 0.4172 | 10.53 | 200 | 0.8947 | {'precision': 0.8194444444444444, 'recall': 0.8665850673194615, 'f1': 0.842355740630577, 'number': 817} | {'precision': 0.5284552845528455, 'recall': 0.5462184873949579, 'f1': 0.5371900826446281, 'number': 119} | {'precision': 0.845414847161572, 'recall': 0.8987929433611885, 'f1': 0.8712871287128714, 'number': 1077} | 0.8166 | 0.8649 | 0.8400 | 0.8019 |
59
+ | 0.0368 | 21.05 | 400 | 1.1681 | {'precision': 0.8507972665148064, 'recall': 0.9143206854345165, 'f1': 0.8814159292035397, 'number': 817} | {'precision': 0.45962732919254656, 'recall': 0.6218487394957983, 'f1': 0.5285714285714286, 'number': 119} | {'precision': 0.888671875, 'recall': 0.8449396471680595, 'f1': 0.866254164683484, 'number': 1077} | 0.8391 | 0.8599 | 0.8494 | 0.8104 |
60
+ | 0.0132 | 31.58 | 600 | 1.3663 | {'precision': 0.8438914027149321, 'recall': 0.9130966952264382, 'f1': 0.8771310993533216, 'number': 817} | {'precision': 0.6511627906976745, 'recall': 0.47058823529411764, 'f1': 0.5463414634146342, 'number': 119} | {'precision': 0.8687943262411347, 'recall': 0.9099350046425255, 'f1': 0.888888888888889, 'number': 1077} | 0.8494 | 0.8852 | 0.8669 | 0.8101 |
61
+ | 0.0061 | 42.11 | 800 | 1.4360 | {'precision': 0.8648018648018648, 'recall': 0.9082007343941249, 'f1': 0.8859701492537313, 'number': 817} | {'precision': 0.6867469879518072, 'recall': 0.4789915966386555, 'f1': 0.5643564356435644, 'number': 119} | {'precision': 0.8886910062333037, 'recall': 0.9266480965645311, 'f1': 0.9072727272727273, 'number': 1077} | 0.8706 | 0.8927 | 0.8815 | 0.8045 |
62
+ | 0.0043 | 52.63 | 1000 | 1.4084 | {'precision': 0.8550057537399309, 'recall': 0.9094247246022031, 'f1': 0.8813760379596678, 'number': 817} | {'precision': 0.6344086021505376, 'recall': 0.4957983193277311, 'f1': 0.5566037735849056, 'number': 119} | {'precision': 0.8842010771992819, 'recall': 0.914577530176416, 'f1': 0.8991328160657235, 'number': 1077} | 0.8608 | 0.8877 | 0.8741 | 0.8265 |
63
+ | 0.002 | 63.16 | 1200 | 1.4017 | {'precision': 0.8716136631330977, 'recall': 0.9057527539779682, 'f1': 0.8883553421368547, 'number': 817} | {'precision': 0.6593406593406593, 'recall': 0.5042016806722689, 'f1': 0.5714285714285715, 'number': 119} | {'precision': 0.8825088339222615, 'recall': 0.9275766016713092, 'f1': 0.9044816659121775, 'number': 1077} | 0.8682 | 0.8937 | 0.8808 | 0.8194 |
64
+ | 0.0018 | 73.68 | 1400 | 1.4379 | {'precision': 0.857307249712313, 'recall': 0.9118727050183598, 'f1': 0.8837485172004744, 'number': 817} | {'precision': 0.6761904761904762, 'recall': 0.5966386554621849, 'f1': 0.6339285714285715, 'number': 119} | {'precision': 0.8941068139963168, 'recall': 0.9015784586815228, 'f1': 0.8978270920018492, 'number': 1077} | 0.8675 | 0.8877 | 0.8775 | 0.8242 |
65
+ | 0.0014 | 84.21 | 1600 | 1.4741 | {'precision': 0.8871359223300971, 'recall': 0.8947368421052632, 'f1': 0.890920170627666, 'number': 817} | {'precision': 0.7590361445783133, 'recall': 0.5294117647058824, 'f1': 0.6237623762376238, 'number': 119} | {'precision': 0.8777969018932874, 'recall': 0.947075208913649, 'f1': 0.9111210361768646, 'number': 1077} | 0.8768 | 0.9011 | 0.8888 | 0.8407 |
66
+ | 0.0005 | 94.74 | 1800 | 1.5542 | {'precision': 0.871824480369515, 'recall': 0.9241126070991432, 'f1': 0.8972073677956032, 'number': 817} | {'precision': 0.7111111111111111, 'recall': 0.5378151260504201, 'f1': 0.6124401913875598, 'number': 119} | {'precision': 0.9029038112522686, 'recall': 0.9238625812441968, 'f1': 0.9132629646626893, 'number': 1077} | 0.8814 | 0.9011 | 0.8912 | 0.8219 |
67
+ | 0.0008 | 105.26 | 2000 | 1.4726 | {'precision': 0.8964677222898904, 'recall': 0.9008567931456548, 'f1': 0.8986568986568988, 'number': 817} | {'precision': 0.7446808510638298, 'recall': 0.5882352941176471, 'f1': 0.6572769953051643, 'number': 119} | {'precision': 0.8958517210944396, 'recall': 0.9424326833797586, 'f1': 0.918552036199095, 'number': 1077} | 0.8892 | 0.9046 | 0.8968 | 0.8387 |
68
+ | 0.0003 | 115.79 | 2200 | 1.5233 | {'precision': 0.8910179640718563, 'recall': 0.9106487148102815, 'f1': 0.900726392251816, 'number': 817} | {'precision': 0.71, 'recall': 0.5966386554621849, 'f1': 0.6484018264840181, 'number': 119} | {'precision': 0.9049773755656109, 'recall': 0.9285051067780873, 'f1': 0.916590284142988, 'number': 1077} | 0.8897 | 0.9016 | 0.8956 | 0.8354 |
69
+ | 0.0001 | 126.32 | 2400 | 1.5261 | {'precision': 0.8817966903073287, 'recall': 0.9130966952264382, 'f1': 0.8971737823211066, 'number': 817} | {'precision': 0.7319587628865979, 'recall': 0.5966386554621849, 'f1': 0.6574074074074073, 'number': 119} | {'precision': 0.8998194945848376, 'recall': 0.9257195914577531, 'f1': 0.9125858123569794, 'number': 1077} | 0.8844 | 0.9011 | 0.8927 | 0.8362 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.27.1
75
+ - Pytorch 1.13.1+cu116
76
+ - Datasets 2.10.1
77
+ - Tokenizers 0.13.2
logs/events.out.tfevents.1679131159.3b223368f9c6.171.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fb5943cda6aab21cd800eceac25a049978ea79da9b663d1ef3517e35ea162a5
3
- size 12293
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:897f7766d436784e2f10e09697e9d3dc610276e374ffe18988fc296b5cd178da
3
+ size 12647
logs/events.out.tfevents.1679132943.3b223368f9c6.171.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf46230e01a8054ca1ee7122ac1d2865dc7f7a4756788db064d6c9d1520d1163
3
+ size 592
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
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
+ }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:881df4e195117321a05954445b996b894c521bbf7040babe15e18269a6104db4
3
  size 520821201
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1f428c46e5432e55f643c51d07a24cd6ef9cc0e77a91a02d1465b7e3bc8808c
3
  size 520821201
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,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "cls_token": {
12
+ "__type": "AddedToken",
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "cls_token_box": [
20
+ 0,
21
+ 0,
22
+ 0,
23
+ 0
24
+ ],
25
+ "eos_token": {
26
+ "__type": "AddedToken",
27
+ "content": "</s>",
28
+ "lstrip": false,
29
+ "normalized": true,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ },
33
+ "errors": "replace",
34
+ "mask_token": {
35
+ "__type": "AddedToken",
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": true,
39
+ "rstrip": false,
40
+ "single_word": false
41
+ },
42
+ "model_max_length": 512,
43
+ "only_label_first_subword": true,
44
+ "pad_token": {
45
+ "__type": "AddedToken",
46
+ "content": "<pad>",
47
+ "lstrip": false,
48
+ "normalized": true,
49
+ "rstrip": false,
50
+ "single_word": false
51
+ },
52
+ "pad_token_box": [
53
+ 0,
54
+ 0,
55
+ 0,
56
+ 0
57
+ ],
58
+ "pad_token_label": -100,
59
+ "processor_class": "LayoutLMv3Processor",
60
+ "sep_token": {
61
+ "__type": "AddedToken",
62
+ "content": "</s>",
63
+ "lstrip": false,
64
+ "normalized": true,
65
+ "rstrip": false,
66
+ "single_word": false
67
+ },
68
+ "sep_token_box": [
69
+ 0,
70
+ 0,
71
+ 0,
72
+ 0
73
+ ],
74
+ "special_tokens_map_file": null,
75
+ "tokenizer_class": "LayoutLMv3Tokenizer",
76
+ "trim_offsets": true,
77
+ "unk_token": {
78
+ "__type": "AddedToken",
79
+ "content": "<unk>",
80
+ "lstrip": false,
81
+ "normalized": true,
82
+ "rstrip": false,
83
+ "single_word": false
84
+ }
85
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff