bathmaraj commited on
Commit
79b501f
1 Parent(s): f761a85

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.6214
19
+ - Answer: {'precision': 0.8792899408284024, 'recall': 0.9094247246022031, 'f1': 0.8941034897713599, 'number': 817}
20
+ - Header: {'precision': 0.6078431372549019, 'recall': 0.5210084033613446, 'f1': 0.5610859728506787, 'number': 119}
21
+ - Question: {'precision': 0.8960573476702509, 'recall': 0.9285051067780873, 'f1': 0.9119927040583674, 'number': 1077}
22
+ - Overall Precision: 0.8749
23
+ - Overall Recall: 0.8967
24
+ - Overall F1: 0.8857
25
+ - Overall Accuracy: 0.8129
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.4022 | 10.5263 | 200 | 1.0717 | {'precision': 0.8156424581005587, 'recall': 0.8935128518971848, 'f1': 0.852803738317757, 'number': 817} | {'precision': 0.452991452991453, 'recall': 0.44537815126050423, 'f1': 0.4491525423728814, 'number': 119} | {'precision': 0.8516579406631762, 'recall': 0.9062209842154132, 'f1': 0.8780926675663517, 'number': 1077} | 0.8151 | 0.8738 | 0.8434 | 0.7966 |
58
+ | 0.0484 | 21.0526 | 400 | 1.2460 | {'precision': 0.8537794299876085, 'recall': 0.8433292533659731, 'f1': 0.8485221674876847, 'number': 817} | {'precision': 0.5454545454545454, 'recall': 0.5546218487394958, 'f1': 0.5499999999999999, 'number': 119} | {'precision': 0.8713398402839396, 'recall': 0.9117920148560817, 'f1': 0.8911070780399274, 'number': 1077} | 0.8453 | 0.8629 | 0.8540 | 0.8008 |
59
+ | 0.0143 | 31.5789 | 600 | 1.5585 | {'precision': 0.8566433566433567, 'recall': 0.8996328029375765, 'f1': 0.8776119402985075, 'number': 817} | {'precision': 0.5294117647058824, 'recall': 0.5294117647058824, 'f1': 0.5294117647058824, 'number': 119} | {'precision': 0.8879310344827587, 'recall': 0.8607242339832869, 'f1': 0.8741159830268741, 'number': 1077} | 0.8535 | 0.8569 | 0.8552 | 0.7935 |
60
+ | 0.0079 | 42.1053 | 800 | 1.5146 | {'precision': 0.8556338028169014, 'recall': 0.8922888616891065, 'f1': 0.8735769922109047, 'number': 817} | {'precision': 0.47761194029850745, 'recall': 0.5378151260504201, 'f1': 0.5059288537549407, 'number': 119} | {'precision': 0.8851540616246498, 'recall': 0.8802228412256268, 'f1': 0.88268156424581, 'number': 1077} | 0.8464 | 0.8649 | 0.8555 | 0.7989 |
61
+ | 0.0041 | 52.6316 | 1000 | 1.5279 | {'precision': 0.8536299765807962, 'recall': 0.8922888616891065, 'f1': 0.8725314183123878, 'number': 817} | {'precision': 0.6, 'recall': 0.5042016806722689, 'f1': 0.547945205479452, 'number': 119} | {'precision': 0.8764342453662842, 'recall': 0.9220055710306406, 'f1': 0.8986425339366516, 'number': 1077} | 0.8539 | 0.8852 | 0.8693 | 0.8063 |
62
+ | 0.0031 | 63.1579 | 1200 | 1.5225 | {'precision': 0.8413793103448276, 'recall': 0.8959608323133414, 'f1': 0.8678126852400712, 'number': 817} | {'precision': 0.5794392523364486, 'recall': 0.5210084033613446, 'f1': 0.5486725663716815, 'number': 119} | {'precision': 0.8873499538319483, 'recall': 0.8922934076137419, 'f1': 0.8898148148148148, 'number': 1077} | 0.8519 | 0.8718 | 0.8618 | 0.8014 |
63
+ | 0.0016 | 73.6842 | 1400 | 1.6214 | {'precision': 0.8792899408284024, 'recall': 0.9094247246022031, 'f1': 0.8941034897713599, 'number': 817} | {'precision': 0.6078431372549019, 'recall': 0.5210084033613446, 'f1': 0.5610859728506787, 'number': 119} | {'precision': 0.8960573476702509, 'recall': 0.9285051067780873, 'f1': 0.9119927040583674, 'number': 1077} | 0.8749 | 0.8967 | 0.8857 | 0.8129 |
64
+ | 0.0011 | 84.2105 | 1600 | 1.7158 | {'precision': 0.8770186335403727, 'recall': 0.8641370869033048, 'f1': 0.8705302096177557, 'number': 817} | {'precision': 0.5419847328244275, 'recall': 0.5966386554621849, 'f1': 0.568, 'number': 119} | {'precision': 0.9052044609665427, 'recall': 0.904363974001857, 'f1': 0.9047840222944729, 'number': 1077} | 0.8703 | 0.8698 | 0.8701 | 0.8070 |
65
+ | 0.001 | 94.7368 | 1800 | 1.6261 | {'precision': 0.8481735159817352, 'recall': 0.9094247246022031, 'f1': 0.8777318369757826, 'number': 817} | {'precision': 0.6017699115044248, 'recall': 0.5714285714285714, 'f1': 0.5862068965517241, 'number': 119} | {'precision': 0.9050751879699248, 'recall': 0.8941504178272981, 'f1': 0.8995796356842597, 'number': 1077} | 0.8641 | 0.8813 | 0.8726 | 0.8128 |
66
+ | 0.0004 | 105.2632 | 2000 | 1.6253 | {'precision': 0.8611435239206534, 'recall': 0.9033047735618115, 'f1': 0.8817204301075269, 'number': 817} | {'precision': 0.625, 'recall': 0.5462184873949579, 'f1': 0.5829596412556054, 'number': 119} | {'precision': 0.894404332129964, 'recall': 0.9201485608170845, 'f1': 0.9070938215102976, 'number': 1077} | 0.8671 | 0.8912 | 0.8790 | 0.8194 |
67
+ | 0.0001 | 115.7895 | 2200 | 1.6711 | {'precision': 0.8823529411764706, 'recall': 0.8812729498164015, 'f1': 0.8818126148193509, 'number': 817} | {'precision': 0.6283185840707964, 'recall': 0.5966386554621849, 'f1': 0.6120689655172413, 'number': 119} | {'precision': 0.8967391304347826, 'recall': 0.9192200557103064, 'f1': 0.9078404401650619, 'number': 1077} | 0.8760 | 0.8847 | 0.8804 | 0.8190 |
68
+ | 0.0002 | 126.3158 | 2400 | 1.6682 | {'precision': 0.8756038647342995, 'recall': 0.8873929008567931, 'f1': 0.8814589665653496, 'number': 817} | {'precision': 0.6330275229357798, 'recall': 0.5798319327731093, 'f1': 0.6052631578947367, 'number': 119} | {'precision': 0.8997289972899729, 'recall': 0.924791086350975, 'f1': 0.9120879120879122, 'number': 1077} | 0.8757 | 0.8892 | 0.8824 | 0.8179 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.40.2
74
+ - Pytorch 2.2.1+cu121
75
+ - Datasets 2.19.1
76
+ - Tokenizers 0.19.1
logs/events.out.tfevents.1715689211.f430693b1af3.3291.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d2f943e1e35850994bb122313e8e076e745111716f69855beee67e1195e96ffb
3
- size 13646
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84e395bd9959b97740c182a1f375028ca973f32603673a520a29e12f277147cc
3
+ size 14000
logs/events.out.tfevents.1715690677.f430693b1af3.3291.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7060c935ca2f99e8bf5f31244e5eebd77b69b8703d8c5110d69650f305557963
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:bd2cd7c25cf3d2000fc097e7dfd26c0b922bd7370752b816ccaa8c8dcc01b5d6
3
  size 520727564
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42e3bd8c393c3ef6213ec124652becf0d799723edabbf6f40225d6925af74b99
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