someet commited on
Commit
ffefe89
1 Parent(s): 57d5d14

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.5254
19
+ - Answer: {'precision': 0.8486238532110092, 'recall': 0.9057527539779682, 'f1': 0.8762581409117821, 'number': 817}
20
+ - Header: {'precision': 0.65625, 'recall': 0.5294117647058824, 'f1': 0.586046511627907, 'number': 119}
21
+ - Question: {'precision': 0.9026629935720845, 'recall': 0.9127205199628597, 'f1': 0.9076638965835643, 'number': 1077}
22
+ - Overall Precision: 0.8683
23
+ - Overall Recall: 0.8872
24
+ - Overall F1: 0.8776
25
+ - Overall Accuracy: 0.8064
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.4037 | 10.53 | 200 | 1.0901 | {'precision': 0.8236658932714617, 'recall': 0.8690330477356181, 'f1': 0.8457415128052411, 'number': 817} | {'precision': 0.42528735632183906, 'recall': 0.6218487394957983, 'f1': 0.5051194539249146, 'number': 119} | {'precision': 0.871356783919598, 'recall': 0.8050139275766016, 'f1': 0.8368725868725869, 'number': 1077} | 0.8129 | 0.8202 | 0.8165 | 0.7725 |
58
+ | 0.0456 | 21.05 | 400 | 1.4102 | {'precision': 0.8165745856353591, 'recall': 0.9045287637698899, 'f1': 0.8583042973286875, 'number': 817} | {'precision': 0.6071428571428571, 'recall': 0.42857142857142855, 'f1': 0.5024630541871921, 'number': 119} | {'precision': 0.8835304822565969, 'recall': 0.9015784586815228, 'f1': 0.8924632352941178, 'number': 1077} | 0.8434 | 0.8748 | 0.8588 | 0.7879 |
59
+ | 0.0146 | 31.58 | 600 | 1.5424 | {'precision': 0.834056399132321, 'recall': 0.9412484700122399, 'f1': 0.8844163312248418, 'number': 817} | {'precision': 0.5118110236220472, 'recall': 0.5462184873949579, 'f1': 0.5284552845528455, 'number': 119} | {'precision': 0.9035004730368968, 'recall': 0.8867223769730733, 'f1': 0.895032802249297, 'number': 1077} | 0.8495 | 0.8887 | 0.8687 | 0.7913 |
60
+ | 0.0074 | 42.11 | 800 | 1.4579 | {'precision': 0.8571428571428571, 'recall': 0.8886168910648715, 'f1': 0.8725961538461537, 'number': 817} | {'precision': 0.5798319327731093, 'recall': 0.5798319327731093, 'f1': 0.5798319327731093, 'number': 119} | {'precision': 0.8590192644483362, 'recall': 0.9108635097493036, 'f1': 0.8841820639927895, 'number': 1077} | 0.8425 | 0.8823 | 0.8619 | 0.8063 |
61
+ | 0.0043 | 52.63 | 1000 | 1.8745 | {'precision': 0.8458100558659218, 'recall': 0.9265605875152999, 'f1': 0.8843457943925235, 'number': 817} | {'precision': 0.5641025641025641, 'recall': 0.5546218487394958, 'f1': 0.559322033898305, 'number': 119} | {'precision': 0.9229268292682927, 'recall': 0.8783658310120706, 'f1': 0.9000951474785919, 'number': 1077} | 0.8684 | 0.8788 | 0.8736 | 0.7883 |
62
+ | 0.0035 | 63.16 | 1200 | 1.8084 | {'precision': 0.8344086021505376, 'recall': 0.9498164014687882, 'f1': 0.8883800801373782, 'number': 817} | {'precision': 0.580952380952381, 'recall': 0.5126050420168067, 'f1': 0.5446428571428571, 'number': 119} | {'precision': 0.9076343072573044, 'recall': 0.8941504178272981, 'f1': 0.9008419083255378, 'number': 1077} | 0.8588 | 0.8942 | 0.8761 | 0.7965 |
63
+ | 0.0022 | 73.68 | 1400 | 1.4973 | {'precision': 0.8706586826347306, 'recall': 0.8898408812729498, 'f1': 0.8801452784503632, 'number': 817} | {'precision': 0.6176470588235294, 'recall': 0.5294117647058824, 'f1': 0.5701357466063349, 'number': 119} | {'precision': 0.8852313167259787, 'recall': 0.9238625812441968, 'f1': 0.9041344843253067, 'number': 1077} | 0.8661 | 0.8867 | 0.8763 | 0.8137 |
64
+ | 0.0025 | 84.21 | 1600 | 1.5254 | {'precision': 0.8486238532110092, 'recall': 0.9057527539779682, 'f1': 0.8762581409117821, 'number': 817} | {'precision': 0.65625, 'recall': 0.5294117647058824, 'f1': 0.586046511627907, 'number': 119} | {'precision': 0.9026629935720845, 'recall': 0.9127205199628597, 'f1': 0.9076638965835643, 'number': 1077} | 0.8683 | 0.8872 | 0.8776 | 0.8064 |
65
+ | 0.0006 | 94.74 | 1800 | 1.5072 | {'precision': 0.8583042973286876, 'recall': 0.9045287637698899, 'f1': 0.8808104886769966, 'number': 817} | {'precision': 0.64, 'recall': 0.5378151260504201, 'f1': 0.5844748858447488, 'number': 119} | {'precision': 0.8841354723707665, 'recall': 0.9210770659238626, 'f1': 0.9022282855843565, 'number': 1077} | 0.8617 | 0.8917 | 0.8765 | 0.8085 |
66
+ | 0.0004 | 105.26 | 2000 | 1.5540 | {'precision': 0.847926267281106, 'recall': 0.9008567931456548, 'f1': 0.8735905044510385, 'number': 817} | {'precision': 0.5959595959595959, 'recall': 0.4957983193277311, 'f1': 0.5412844036697246, 'number': 119} | {'precision': 0.8814016172506739, 'recall': 0.9108635097493036, 'f1': 0.8958904109589041, 'number': 1077} | 0.8538 | 0.8823 | 0.8678 | 0.8014 |
67
+ | 0.0002 | 115.79 | 2200 | 1.5880 | {'precision': 0.8609501738122828, 'recall': 0.9094247246022031, 'f1': 0.8845238095238096, 'number': 817} | {'precision': 0.5876288659793815, 'recall': 0.4789915966386555, 'f1': 0.5277777777777778, 'number': 119} | {'precision': 0.8843416370106761, 'recall': 0.9229340761374187, 'f1': 0.9032258064516129, 'number': 1077} | 0.8608 | 0.8912 | 0.8758 | 0.7986 |
68
+ | 0.0003 | 126.32 | 2400 | 1.5619 | {'precision': 0.8586326767091541, 'recall': 0.9069767441860465, 'f1': 0.8821428571428572, 'number': 817} | {'precision': 0.6021505376344086, 'recall': 0.47058823529411764, 'f1': 0.5283018867924528, 'number': 119} | {'precision': 0.8775510204081632, 'recall': 0.9182915506035283, 'f1': 0.8974591651542649, 'number': 1077} | 0.8574 | 0.8872 | 0.8721 | 0.8060 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.38.1
74
+ - Pytorch 2.2.1+cu118
75
+ - Datasets 2.17.1
76
+ - Tokenizers 0.15.2
logs/events.out.tfevents.1709099867.AL01DES009.3700.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:34325f21f487e36fe983079e94f38fdfe5f49855dbe7acf0ffeec56bb50a75ec
3
- size 12823
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d323c75fd55c36635af00eedb8a6b095e4e903281c4286bcf00f3ef6f89c2679
3
+ size 13892
logs/events.out.tfevents.1709100610.AL01DES009.3700.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:194a9d7d1ee4944e6bfb2035b74f14343602b151287f88a512f6985f7cb5d674
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:4d279d3596aa0065d33b83cb437a42165b9dadd492d0389326c41a698211c77b
3
  size 520727564
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a595cfb0bcc5f633dc0f0dde0a8cf928ab845a7636c3b0ad1a7fe4aa29e180b
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