mehtasagar95 commited on
Commit
9f515ff
·
1 Parent(s): 24d9de8

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.7566
20
+ - Answer: {'precision': 0.8818713450292398, 'recall': 0.9228886168910648, 'f1': 0.9019138755980862, 'number': 817}
21
+ - Header: {'precision': 0.6597938144329897, 'recall': 0.5378151260504201, 'f1': 0.5925925925925926, 'number': 119}
22
+ - Question: {'precision': 0.8944494995450409, 'recall': 0.9127205199628597, 'f1': 0.9034926470588234, 'number': 1077}
23
+ - Overall Precision: 0.8781
24
+ - Overall Recall: 0.8947
25
+ - Overall F1: 0.8863
26
+ - Overall Accuracy: 0.7939
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.4354 | 10.53 | 200 | 1.0094 | {'precision': 0.8219954648526077, 'recall': 0.8873929008567931, 'f1': 0.8534432018834609, 'number': 817} | {'precision': 0.5617977528089888, 'recall': 0.42016806722689076, 'f1': 0.4807692307692308, 'number': 119} | {'precision': 0.8493723849372385, 'recall': 0.9424326833797586, 'f1': 0.8934859154929579, 'number': 1077} | 0.8264 | 0.8892 | 0.8567 | 0.7972 |
59
+ | 0.0503 | 21.05 | 400 | 1.2949 | {'precision': 0.8543577981651376, 'recall': 0.9118727050183598, 'f1': 0.8821788040260509, 'number': 817} | {'precision': 0.5658914728682171, 'recall': 0.6134453781512605, 'f1': 0.5887096774193549, 'number': 119} | {'precision': 0.9066147859922179, 'recall': 0.8653667595171773, 'f1': 0.8855106888361044, 'number': 1077} | 0.8625 | 0.8693 | 0.8659 | 0.8117 |
60
+ | 0.0143 | 31.58 | 600 | 1.3527 | {'precision': 0.8726190476190476, 'recall': 0.8971848225214198, 'f1': 0.8847314423657212, 'number': 817} | {'precision': 0.6666666666666666, 'recall': 0.5714285714285714, 'f1': 0.6153846153846153, 'number': 119} | {'precision': 0.8533674339300937, 'recall': 0.9294336118848654, 'f1': 0.8897777777777779, 'number': 1077} | 0.8520 | 0.8952 | 0.8731 | 0.8116 |
61
+ | 0.0064 | 42.11 | 800 | 1.6567 | {'precision': 0.8483466362599772, 'recall': 0.9106487148102815, 'f1': 0.8783943329397875, 'number': 817} | {'precision': 0.5564516129032258, 'recall': 0.5798319327731093, 'f1': 0.5679012345679013, 'number': 119} | {'precision': 0.8949814126394052, 'recall': 0.8941504178272981, 'f1': 0.8945657222480261, 'number': 1077} | 0.8551 | 0.8823 | 0.8685 | 0.7982 |
62
+ | 0.0051 | 52.63 | 1000 | 1.6856 | {'precision': 0.8542141230068337, 'recall': 0.9179926560587516, 'f1': 0.8849557522123894, 'number': 817} | {'precision': 0.66, 'recall': 0.5546218487394958, 'f1': 0.6027397260273973, 'number': 119} | {'precision': 0.9025069637883009, 'recall': 0.9025069637883009, 'f1': 0.9025069637883009, 'number': 1077} | 0.8701 | 0.8882 | 0.8791 | 0.7925 |
63
+ | 0.0029 | 63.16 | 1200 | 1.5031 | {'precision': 0.8860294117647058, 'recall': 0.8849449204406364, 'f1': 0.8854868340477648, 'number': 817} | {'precision': 0.6147540983606558, 'recall': 0.6302521008403361, 'f1': 0.6224066390041495, 'number': 119} | {'precision': 0.8724890829694323, 'recall': 0.9275766016713092, 'f1': 0.8991899189918992, 'number': 1077} | 0.8627 | 0.8927 | 0.8774 | 0.8117 |
64
+ | 0.0015 | 73.68 | 1400 | 1.6708 | {'precision': 0.8720657276995305, 'recall': 0.9094247246022031, 'f1': 0.89035350509287, 'number': 817} | {'precision': 0.5286624203821656, 'recall': 0.6974789915966386, 'f1': 0.6014492753623188, 'number': 119} | {'precision': 0.8897126969416126, 'recall': 0.8913649025069638, 'f1': 0.8905380333951762, 'number': 1077} | 0.8554 | 0.8872 | 0.8710 | 0.7958 |
65
+ | 0.0012 | 84.21 | 1600 | 1.7566 | {'precision': 0.8818713450292398, 'recall': 0.9228886168910648, 'f1': 0.9019138755980862, 'number': 817} | {'precision': 0.6597938144329897, 'recall': 0.5378151260504201, 'f1': 0.5925925925925926, 'number': 119} | {'precision': 0.8944494995450409, 'recall': 0.9127205199628597, 'f1': 0.9034926470588234, 'number': 1077} | 0.8781 | 0.8947 | 0.8863 | 0.7939 |
66
+ | 0.0006 | 94.74 | 1800 | 1.8482 | {'precision': 0.8781362007168458, 'recall': 0.8996328029375765, 'f1': 0.8887545344619106, 'number': 817} | {'precision': 0.5862068965517241, 'recall': 0.5714285714285714, 'f1': 0.5787234042553192, 'number': 119} | {'precision': 0.8949814126394052, 'recall': 0.8941504178272981, 'f1': 0.8945657222480261, 'number': 1077} | 0.8704 | 0.8773 | 0.8738 | 0.7913 |
67
+ | 0.0006 | 105.26 | 2000 | 1.7763 | {'precision': 0.8747072599531616, 'recall': 0.9143206854345165, 'f1': 0.8940754039497306, 'number': 817} | {'precision': 0.6095238095238096, 'recall': 0.5378151260504201, 'f1': 0.5714285714285715, 'number': 119} | {'precision': 0.8859489051094891, 'recall': 0.9015784586815228, 'f1': 0.8936953520478601, 'number': 1077} | 0.8672 | 0.8852 | 0.8761 | 0.7964 |
68
+ | 0.0003 | 115.79 | 2200 | 1.9186 | {'precision': 0.8813953488372093, 'recall': 0.9277845777233782, 'f1': 0.9039952295766249, 'number': 817} | {'precision': 0.6190476190476191, 'recall': 0.5462184873949579, 'f1': 0.5803571428571429, 'number': 119} | {'precision': 0.9025304592314901, 'recall': 0.8941504178272981, 'f1': 0.898320895522388, 'number': 1077} | 0.8789 | 0.8872 | 0.8831 | 0.7971 |
69
+ | 0.0002 | 126.32 | 2400 | 1.8948 | {'precision': 0.8780487804878049, 'recall': 0.9253365973072215, 'f1': 0.901072705601907, 'number': 817} | {'precision': 0.6261682242990654, 'recall': 0.5630252100840336, 'f1': 0.5929203539823009, 'number': 119} | {'precision': 0.9033457249070632, 'recall': 0.9025069637883009, 'f1': 0.9029261495587553, 'number': 1077} | 0.8782 | 0.8917 | 0.8849 | 0.7978 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.27.3
75
+ - Pytorch 1.13.1+cu116
76
+ - Datasets 2.10.1
77
+ - Tokenizers 0.13.2
logs/events.out.tfevents.1679876772.54b1dc62f36d.268.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e749c276b602075f450bf1ae14de062b0b6ebdda2798729ec7ee6cacd01300c3
3
- size 11632
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2164f38a1ba7b77840b5893f30ff7fbf01b235696a162e5615b35dc45c5a76e
3
+ size 12647
logs/events.out.tfevents.1679878403.54b1dc62f36d.268.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be4aae303655e86fc78e40e72a4b4dd9a8306ad441f43a88427a5c1292ec50cc
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:09e4c3f37eadc12408acc1b30451c9ac551701b2ec49961ababae0780a06f007
3
  size 520821201
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f37d280d0f638ba593ed732f1ca32d7bbd1142166e09d2f1bd6f64820df61976
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