indudesane commited on
Commit
72c0978
1 Parent(s): 77b2d77

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.5687
19
+ - Answer: {'precision': 0.8635294117647059, 'recall': 0.8984088127294981, 'f1': 0.8806238752249551, 'number': 817}
20
+ - Header: {'precision': 0.6781609195402298, 'recall': 0.4957983193277311, 'f1': 0.5728155339805825, 'number': 119}
21
+ - Question: {'precision': 0.8912655971479501, 'recall': 0.9285051067780873, 'f1': 0.9095043201455207, 'number': 1077}
22
+ - Overall Precision: 0.8708
23
+ - Overall Recall: 0.8907
24
+ - Overall F1: 0.8806
25
+ - Overall Accuracy: 0.8098
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.4119 | 10.5263 | 200 | 1.0913 | {'precision': 0.8155555555555556, 'recall': 0.8984088127294981, 'f1': 0.8549796156086196, 'number': 817} | {'precision': 0.5523809523809524, 'recall': 0.48739495798319327, 'f1': 0.5178571428571428, 'number': 119} | {'precision': 0.8904363974001857, 'recall': 0.8904363974001857, 'f1': 0.8904363974001857, 'number': 1077} | 0.8410 | 0.8698 | 0.8552 | 0.7742 |
58
+ | 0.0512 | 21.0526 | 400 | 1.3167 | {'precision': 0.8363636363636363, 'recall': 0.9008567931456548, 'f1': 0.8674130819092517, 'number': 817} | {'precision': 0.6160714285714286, 'recall': 0.5798319327731093, 'f1': 0.5974025974025975, 'number': 119} | {'precision': 0.8839122486288848, 'recall': 0.8978644382544104, 'f1': 0.8908337171810224, 'number': 1077} | 0.8495 | 0.8803 | 0.8646 | 0.7919 |
59
+ | 0.0159 | 31.5789 | 600 | 1.4418 | {'precision': 0.8539458186101295, 'recall': 0.8873929008567931, 'f1': 0.8703481392557022, 'number': 817} | {'precision': 0.5913978494623656, 'recall': 0.46218487394957986, 'f1': 0.5188679245283019, 'number': 119} | {'precision': 0.8617113223854796, 'recall': 0.9257195914577531, 'f1': 0.8925693822739481, 'number': 1077} | 0.8466 | 0.8828 | 0.8643 | 0.7994 |
60
+ | 0.0085 | 42.1053 | 800 | 1.3252 | {'precision': 0.8408839779005525, 'recall': 0.9314565483476133, 'f1': 0.8838559814169571, 'number': 817} | {'precision': 0.6176470588235294, 'recall': 0.5294117647058824, 'f1': 0.5701357466063349, 'number': 119} | {'precision': 0.8946412352406903, 'recall': 0.914577530176416, 'f1': 0.9044995408631772, 'number': 1077} | 0.8582 | 0.8987 | 0.8779 | 0.8077 |
61
+ | 0.0035 | 52.6316 | 1000 | 1.4334 | {'precision': 0.8364269141531323, 'recall': 0.8824969400244798, 'f1': 0.8588445503275759, 'number': 817} | {'precision': 0.6, 'recall': 0.5798319327731093, 'f1': 0.5897435897435898, 'number': 119} | {'precision': 0.8983516483516484, 'recall': 0.9108635097493036, 'f1': 0.9045643153526972, 'number': 1077} | 0.8560 | 0.8798 | 0.8677 | 0.7988 |
62
+ | 0.0031 | 63.1579 | 1200 | 1.3464 | {'precision': 0.8569780853517878, 'recall': 0.9094247246022031, 'f1': 0.8824228028503563, 'number': 817} | {'precision': 0.6836734693877551, 'recall': 0.5630252100840336, 'f1': 0.6175115207373272, 'number': 119} | {'precision': 0.8909090909090909, 'recall': 0.9099350046425255, 'f1': 0.90032154340836, 'number': 1077} | 0.8668 | 0.8892 | 0.8779 | 0.8164 |
63
+ | 0.0017 | 73.6842 | 1400 | 1.5019 | {'precision': 0.883054892601432, 'recall': 0.9057527539779682, 'f1': 0.8942598187311178, 'number': 817} | {'precision': 0.6565656565656566, 'recall': 0.5462184873949579, 'f1': 0.5963302752293578, 'number': 119} | {'precision': 0.8922528940338379, 'recall': 0.9303621169916435, 'f1': 0.9109090909090909, 'number': 1077} | 0.8772 | 0.8977 | 0.8873 | 0.8110 |
64
+ | 0.0008 | 84.2105 | 1600 | 1.5955 | {'precision': 0.8760631834750912, 'recall': 0.8824969400244798, 'f1': 0.8792682926829267, 'number': 817} | {'precision': 0.5925925925925926, 'recall': 0.5378151260504201, 'f1': 0.5638766519823789, 'number': 119} | {'precision': 0.8853046594982079, 'recall': 0.9173630454967502, 'f1': 0.9010487916096672, 'number': 1077} | 0.8661 | 0.8808 | 0.8734 | 0.8084 |
65
+ | 0.0006 | 94.7368 | 1800 | 1.5931 | {'precision': 0.8713592233009708, 'recall': 0.8788249694002448, 'f1': 0.8750761730652041, 'number': 817} | {'precision': 0.6122448979591837, 'recall': 0.5042016806722689, 'f1': 0.5529953917050692, 'number': 119} | {'precision': 0.8834519572953736, 'recall': 0.9220055710306406, 'f1': 0.9023171285779192, 'number': 1077} | 0.8656 | 0.8798 | 0.8726 | 0.7973 |
66
+ | 0.0006 | 105.2632 | 2000 | 1.5735 | {'precision': 0.8676122931442081, 'recall': 0.8984088127294981, 'f1': 0.8827420324714371, 'number': 817} | {'precision': 0.6176470588235294, 'recall': 0.5294117647058824, 'f1': 0.5701357466063349, 'number': 119} | {'precision': 0.8862222222222222, 'recall': 0.9257195914577531, 'f1': 0.9055404178019981, 'number': 1077} | 0.8654 | 0.8912 | 0.8781 | 0.8002 |
67
+ | 0.001 | 115.7895 | 2200 | 1.5605 | {'precision': 0.8543352601156069, 'recall': 0.9045287637698899, 'f1': 0.8787158145065399, 'number': 817} | {'precision': 0.6559139784946236, 'recall': 0.5126050420168067, 'f1': 0.5754716981132076, 'number': 119} | {'precision': 0.8935978358881875, 'recall': 0.9201485608170845, 'f1': 0.9066788655077767, 'number': 1077} | 0.8665 | 0.8897 | 0.8779 | 0.8073 |
68
+ | 0.0004 | 126.3158 | 2400 | 1.5687 | {'precision': 0.8635294117647059, 'recall': 0.8984088127294981, 'f1': 0.8806238752249551, 'number': 817} | {'precision': 0.6781609195402298, 'recall': 0.4957983193277311, 'f1': 0.5728155339805825, 'number': 119} | {'precision': 0.8912655971479501, 'recall': 0.9285051067780873, 'f1': 0.9095043201455207, 'number': 1077} | 0.8708 | 0.8907 | 0.8806 | 0.8098 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.41.2
74
+ - Pytorch 2.3.0+cu121
75
+ - Datasets 2.19.2
76
+ - Tokenizers 0.19.1
logs/events.out.tfevents.1718019259.ec3d4bad5ca9.8916.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6910208d98e34c66a4a4ed9f44b9e2a19d3628aebc8d1f9d7c833eba57911bf1
3
- size 13784
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c7a350000b6c78c4de662cd7bc8ce1ce3c7569229f1b0dc2ded9fe1279631a3
3
+ size 14138
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:77ac88c4b5d118365e3c63a16b090a9a31d92a1b74f330dacdbd4776931cb5ab
3
  size 520727564
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:186e029bfa9b0ad5018ccf853196bb9aa6a0c7e14bd10bed6f7f6c0da111bb18
3
  size 520727564
preprocessor_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "apply_ocr",
13
+ "ocr_lang",
14
+ "tesseract_config",
15
+ "return_tensors",
16
+ "data_format",
17
+ "input_data_format"
18
+ ],
19
+ "apply_ocr": true,
20
+ "do_normalize": true,
21
+ "do_rescale": true,
22
+ "do_resize": true,
23
+ "image_mean": [
24
+ 0.5,
25
+ 0.5,
26
+ 0.5
27
+ ],
28
+ "image_processor_type": "LayoutLMv3FeatureExtractor",
29
+ "image_std": [
30
+ 0.5,
31
+ 0.5,
32
+ 0.5
33
+ ],
34
+ "ocr_lang": null,
35
+ "processor_class": "LayoutLMv3Processor",
36
+ "resample": 2,
37
+ "rescale_factor": 0.00392156862745098,
38
+ "size": {
39
+ "height": 224,
40
+ "width": 224
41
+ },
42
+ "tesseract_config": ""
43
+ }
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