arrietafernando
commited on
Commit
•
4646096
1
Parent(s):
903ace0
End of training
Browse files- README.md +77 -0
- logs/events.out.tfevents.1699588681.HAL9000.local.36438.0 +2 -2
- logs/events.out.tfevents.1699591332.HAL9000.local.36438.1 +3 -0
- merges.txt +0 -0
- model.safetensors +1 -1
- preprocessor_config.json +26 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +78 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: SCUT-DLVCLab/lilt-roberta-en-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- funsd-layoutlmv3
|
8 |
+
model-index:
|
9 |
+
- name: lilt-en-funsd
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# lilt-en-funsd
|
17 |
+
|
18 |
+
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.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.5526
|
21 |
+
- Answer: {'precision': 0.8434684684684685, 'recall': 0.9167686658506732, 'f1': 0.8785923753665689, 'number': 817}
|
22 |
+
- Header: {'precision': 0.6494845360824743, 'recall': 0.5294117647058824, 'f1': 0.5833333333333334, 'number': 119}
|
23 |
+
- Question: {'precision': 0.8929219600725953, 'recall': 0.9136490250696379, 'f1': 0.9031665901789812, 'number': 1077}
|
24 |
+
- Overall Precision: 0.8606
|
25 |
+
- Overall Recall: 0.8922
|
26 |
+
- Overall F1: 0.8761
|
27 |
+
- Overall Accuracy: 0.7988
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 5e-05
|
47 |
+
- train_batch_size: 8
|
48 |
+
- eval_batch_size: 8
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- training_steps: 2500
|
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.1122 | 10.53 | 200 | 0.3663 | {'precision': 0.7907488986784141, 'recall': 0.8788249694002448, 'f1': 0.832463768115942, 'number': 817} | {'precision': 0.4888888888888889, 'recall': 0.5546218487394958, 'f1': 0.5196850393700787, 'number': 119} | {'precision': 0.8885630498533724, 'recall': 0.8440111420612814, 'f1': 0.8657142857142858, 'number': 1077} | 0.8195 | 0.8410 | 0.8301 | 0.7813 |
|
59 |
+
| 0.0121 | 21.05 | 400 | 0.3856 | {'precision': 0.8256880733944955, 'recall': 0.8812729498164015, 'f1': 0.8525754884547069, 'number': 817} | {'precision': 0.6021505376344086, 'recall': 0.47058823529411764, 'f1': 0.5283018867924528, 'number': 119} | {'precision': 0.8739946380697051, 'recall': 0.9080779944289693, 'f1': 0.8907103825136613, 'number': 1077} | 0.8417 | 0.8713 | 0.8562 | 0.8060 |
|
60 |
+
| 0.0038 | 31.58 | 600 | 0.4187 | {'precision': 0.8352534562211982, 'recall': 0.8873929008567931, 'f1': 0.8605341246290802, 'number': 817} | {'precision': 0.59, 'recall': 0.4957983193277311, 'f1': 0.5388127853881278, 'number': 119} | {'precision': 0.8956197576887233, 'recall': 0.8922934076137419, 'f1': 0.8939534883720931, 'number': 1077} | 0.8550 | 0.8669 | 0.8609 | 0.8082 |
|
61 |
+
| 0.0018 | 42.11 | 800 | 0.4984 | {'precision': 0.8299319727891157, 'recall': 0.8959608323133414, 'f1': 0.8616833431430253, 'number': 817} | {'precision': 0.6111111111111112, 'recall': 0.46218487394957986, 'f1': 0.5263157894736842, 'number': 119} | {'precision': 0.8860055607043559, 'recall': 0.8876508820798514, 'f1': 0.8868274582560296, 'number': 1077} | 0.8498 | 0.8659 | 0.8578 | 0.7950 |
|
62 |
+
| 0.0015 | 52.63 | 1000 | 0.4974 | {'precision': 0.830316742081448, 'recall': 0.8984088127294981, 'f1': 0.8630217519106408, 'number': 817} | {'precision': 0.6161616161616161, 'recall': 0.5126050420168067, 'f1': 0.5596330275229358, 'number': 119} | {'precision': 0.9015151515151515, 'recall': 0.8839368616527391, 'f1': 0.8926394749179559, 'number': 1077} | 0.8568 | 0.8679 | 0.8623 | 0.7888 |
|
63 |
+
| 0.0012 | 63.16 | 1200 | 0.5089 | {'precision': 0.8566473988439306, 'recall': 0.9069767441860465, 'f1': 0.8810939357907253, 'number': 817} | {'precision': 0.5981308411214953, 'recall': 0.5378151260504201, 'f1': 0.5663716814159291, 'number': 119} | {'precision': 0.9059590316573557, 'recall': 0.903435468895079, 'f1': 0.904695490469549, 'number': 1077} | 0.8690 | 0.8833 | 0.8761 | 0.8067 |
|
64 |
+
| 0.0006 | 73.68 | 1400 | 0.5012 | {'precision': 0.8409090909090909, 'recall': 0.9057527539779682, 'f1': 0.8721272834413673, 'number': 817} | {'precision': 0.6043956043956044, 'recall': 0.46218487394957986, 'f1': 0.5238095238095237, 'number': 119} | {'precision': 0.8840182648401826, 'recall': 0.8987929433611885, 'f1': 0.8913443830570903, 'number': 1077} | 0.8533 | 0.8758 | 0.8644 | 0.7997 |
|
65 |
+
| 0.0003 | 84.21 | 1600 | 0.5316 | {'precision': 0.8506944444444444, 'recall': 0.8996328029375765, 'f1': 0.874479476502082, 'number': 817} | {'precision': 0.5775862068965517, 'recall': 0.5630252100840336, 'f1': 0.5702127659574467, 'number': 119} | {'precision': 0.8932481751824818, 'recall': 0.9090064995357474, 'f1': 0.9010584445467096, 'number': 1077} | 0.8579 | 0.8847 | 0.8711 | 0.8003 |
|
66 |
+
| 0.0002 | 94.74 | 1800 | 0.5347 | {'precision': 0.8617401668653158, 'recall': 0.8849449204406364, 'f1': 0.8731884057971013, 'number': 817} | {'precision': 0.5317460317460317, 'recall': 0.5630252100840336, 'f1': 0.5469387755102041, 'number': 119} | {'precision': 0.8999081726354453, 'recall': 0.9099350046425255, 'f1': 0.9048938134810711, 'number': 1077} | 0.8617 | 0.8793 | 0.8704 | 0.7979 |
|
67 |
+
| 0.0002 | 105.26 | 2000 | 0.5526 | {'precision': 0.8434684684684685, 'recall': 0.9167686658506732, 'f1': 0.8785923753665689, 'number': 817} | {'precision': 0.6494845360824743, 'recall': 0.5294117647058824, 'f1': 0.5833333333333334, 'number': 119} | {'precision': 0.8929219600725953, 'recall': 0.9136490250696379, 'f1': 0.9031665901789812, 'number': 1077} | 0.8606 | 0.8922 | 0.8761 | 0.7988 |
|
68 |
+
| 0.0001 | 115.79 | 2200 | 0.5488 | {'precision': 0.8368953880764904, 'recall': 0.9106487148102815, 'f1': 0.8722157092614302, 'number': 817} | {'precision': 0.5833333333333334, 'recall': 0.5294117647058824, 'f1': 0.5550660792951542, 'number': 119} | {'precision': 0.8835740072202166, 'recall': 0.9090064995357474, 'f1': 0.8961098398169337, 'number': 1077} | 0.8485 | 0.8872 | 0.8674 | 0.8017 |
|
69 |
+
| 0.0001 | 126.32 | 2400 | 0.5510 | {'precision': 0.8372615039281706, 'recall': 0.9130966952264382, 'f1': 0.8735362997658079, 'number': 817} | {'precision': 0.6074766355140186, 'recall': 0.5462184873949579, 'f1': 0.575221238938053, 'number': 119} | {'precision': 0.895264116575592, 'recall': 0.9127205199628597, 'f1': 0.9039080459770115, 'number': 1077} | 0.8559 | 0.8912 | 0.8732 | 0.8024 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.35.0
|
75 |
+
- Pytorch 2.1.0
|
76 |
+
- Datasets 2.9.0
|
77 |
+
- Tokenizers 0.14.1
|
logs/events.out.tfevents.1699588681.HAL9000.local.36438.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f74f6cb41f5eaf74b3cf901a837e6948820c0aa31910b68ed0b0383d0251a128
|
3 |
+
size 12893
|
logs/events.out.tfevents.1699591332.HAL9000.local.36438.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:934234e3253036700fac608d8ff867996e99e264ab7486c60e86c622e0d84d56
|
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:
|
3 |
size 520727564
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b092f7038fb1b2882242fd42ac28cffcdd6fbf32b0a79bc591faab76261887fd
|
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
|
|