End of training
Browse files- README.md +85 -0
- logs/events.out.tfevents.1669920212.132-145-128-28.65525.0 +2 -2
- merges.txt +0 -0
- preprocessor_config.json +21 -0
- pytorch_model.bin +1 -1
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +86 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- funsd-layoutlmv3
|
7 |
+
model-index:
|
8 |
+
- name: LiLt-funsd-en
|
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-funsd-en
|
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.7735
|
20 |
+
- Answer: {'precision': 0.8693115519253208, 'recall': 0.9118727050183598, 'f1': 0.8900836320191159, 'number': 817}
|
21 |
+
- Header: {'precision': 0.6630434782608695, 'recall': 0.5126050420168067, 'f1': 0.5781990521327014, 'number': 119}
|
22 |
+
- Question: {'precision': 0.8992673992673993, 'recall': 0.9117920148560817, 'f1': 0.905486399262333, 'number': 1077}
|
23 |
+
- Overall Precision: 0.8760
|
24 |
+
- Overall Recall: 0.8882
|
25 |
+
- Overall F1: 0.8821
|
26 |
+
- Overall Accuracy: 0.8027
|
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: 4000
|
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.4108 | 10.53 | 200 | 0.9495 | {'precision': 0.7949260042283298, 'recall': 0.9204406364749081, 'f1': 0.8530913216108904, 'number': 817} | {'precision': 0.5338345864661654, 'recall': 0.5966386554621849, 'f1': 0.5634920634920635, 'number': 119} | {'precision': 0.8950914340712224, 'recall': 0.8635097493036211, 'f1': 0.8790170132325141, 'number': 1077} | 0.8277 | 0.8708 | 0.8487 | 0.7845 |
|
59 |
+
| 0.0402 | 21.05 | 400 | 1.3124 | {'precision': 0.8167597765363128, 'recall': 0.8947368421052632, 'f1': 0.8539719626168224, 'number': 817} | {'precision': 0.5071428571428571, 'recall': 0.5966386554621849, 'f1': 0.5482625482625483, 'number': 119} | {'precision': 0.9133398247322297, 'recall': 0.8709377901578459, 'f1': 0.8916349809885932, 'number': 1077} | 0.8438 | 0.8644 | 0.8540 | 0.7901 |
|
60 |
+
| 0.0141 | 31.58 | 600 | 1.4747 | {'precision': 0.8429378531073446, 'recall': 0.9130966952264382, 'f1': 0.8766157461809635, 'number': 817} | {'precision': 0.6493506493506493, 'recall': 0.42016806722689076, 'f1': 0.5102040816326531, 'number': 119} | {'precision': 0.8861788617886179, 'recall': 0.9108635097493036, 'f1': 0.8983516483516484, 'number': 1077} | 0.8589 | 0.8828 | 0.8707 | 0.7950 |
|
61 |
+
| 0.0079 | 42.11 | 800 | 1.6605 | {'precision': 0.8132464712269273, 'recall': 0.9167686658506732, 'f1': 0.8619102416570771, 'number': 817} | {'precision': 0.5407407407407407, 'recall': 0.6134453781512605, 'f1': 0.5748031496062992, 'number': 119} | {'precision': 0.8919925512104283, 'recall': 0.8895078922934077, 'f1': 0.8907484890748489, 'number': 1077} | 0.8357 | 0.8843 | 0.8593 | 0.7910 |
|
62 |
+
| 0.0064 | 52.63 | 1000 | 1.6328 | {'precision': 0.8551564310544612, 'recall': 0.9033047735618115, 'f1': 0.8785714285714284, 'number': 817} | {'precision': 0.7466666666666667, 'recall': 0.47058823529411764, 'f1': 0.5773195876288659, 'number': 119} | {'precision': 0.9029918404351768, 'recall': 0.924791086350975, 'f1': 0.9137614678899083, 'number': 1077} | 0.8770 | 0.8892 | 0.8831 | 0.7950 |
|
63 |
+
| 0.0091 | 63.16 | 1200 | 1.6620 | {'precision': 0.8280044101433297, 'recall': 0.9192166462668299, 'f1': 0.87122969837587, 'number': 817} | {'precision': 0.6875, 'recall': 0.46218487394957986, 'f1': 0.5527638190954773, 'number': 119} | {'precision': 0.9016697588126159, 'recall': 0.9025069637883009, 'f1': 0.9020881670533641, 'number': 1077} | 0.8610 | 0.8833 | 0.8720 | 0.7979 |
|
64 |
+
| 0.0031 | 73.68 | 1400 | 1.7310 | {'precision': 0.855039637599094, 'recall': 0.9241126070991432, 'f1': 0.8882352941176471, 'number': 817} | {'precision': 0.7023809523809523, 'recall': 0.4957983193277311, 'f1': 0.58128078817734, 'number': 119} | {'precision': 0.8969917958067457, 'recall': 0.9136490250696379, 'f1': 0.9052437902483901, 'number': 1077} | 0.8711 | 0.8932 | 0.8820 | 0.7938 |
|
65 |
+
| 0.002 | 84.21 | 1600 | 1.6978 | {'precision': 0.870023419203747, 'recall': 0.9094247246022031, 'f1': 0.8892878515858766, 'number': 817} | {'precision': 0.6987951807228916, 'recall': 0.48739495798319327, 'f1': 0.5742574257425742, 'number': 119} | {'precision': 0.9021237303785781, 'recall': 0.9071494893221913, 'f1': 0.9046296296296297, 'number': 1077} | 0.8802 | 0.8833 | 0.8817 | 0.8048 |
|
66 |
+
| 0.0023 | 94.74 | 1800 | 1.5996 | {'precision': 0.8639534883720931, 'recall': 0.9094247246022031, 'f1': 0.8861061419200955, 'number': 817} | {'precision': 0.6629213483146067, 'recall': 0.4957983193277311, 'f1': 0.5673076923076922, 'number': 119} | {'precision': 0.8969641214351426, 'recall': 0.9052924791086351, 'f1': 0.9011090573012939, 'number': 1077} | 0.8728 | 0.8828 | 0.8777 | 0.8026 |
|
67 |
+
| 0.0009 | 105.26 | 2000 | 1.7239 | {'precision': 0.8851674641148325, 'recall': 0.9057527539779682, 'f1': 0.8953418027828192, 'number': 817} | {'precision': 0.5726495726495726, 'recall': 0.5630252100840336, 'f1': 0.5677966101694915, 'number': 119} | {'precision': 0.889487870619946, 'recall': 0.9192200557103064, 'f1': 0.9041095890410958, 'number': 1077} | 0.8698 | 0.8927 | 0.8811 | 0.8008 |
|
68 |
+
| 0.0009 | 115.79 | 2200 | 1.6091 | {'precision': 0.8576349024110218, 'recall': 0.9143206854345165, 'f1': 0.8850710900473934, 'number': 817} | {'precision': 0.6213592233009708, 'recall': 0.5378151260504201, 'f1': 0.5765765765765765, 'number': 119} | {'precision': 0.8901098901098901, 'recall': 0.9025069637883009, 'f1': 0.896265560165975, 'number': 1077} | 0.8630 | 0.8857 | 0.8742 | 0.8093 |
|
69 |
+
| 0.0003 | 126.32 | 2400 | 1.7210 | {'precision': 0.8627450980392157, 'recall': 0.9155446756425949, 'f1': 0.8883610451306414, 'number': 817} | {'precision': 0.6555555555555556, 'recall': 0.4957983193277311, 'f1': 0.5645933014354068, 'number': 119} | {'precision': 0.8873994638069705, 'recall': 0.9220055710306406, 'f1': 0.9043715846994536, 'number': 1077} | 0.8671 | 0.8942 | 0.8804 | 0.8072 |
|
70 |
+
| 0.0006 | 136.84 | 2600 | 1.8215 | {'precision': 0.8293478260869566, 'recall': 0.9339045287637698, 'f1': 0.8785261945883708, 'number': 817} | {'precision': 0.5887850467289719, 'recall': 0.5294117647058824, 'f1': 0.5575221238938053, 'number': 119} | {'precision': 0.9232227488151659, 'recall': 0.904363974001857, 'f1': 0.9136960600375235, 'number': 1077} | 0.8646 | 0.8942 | 0.8791 | 0.7946 |
|
71 |
+
| 0.0002 | 147.37 | 2800 | 1.8084 | {'precision': 0.875886524822695, 'recall': 0.9069767441860465, 'f1': 0.8911605532170775, 'number': 817} | {'precision': 0.5752212389380531, 'recall': 0.5462184873949579, 'f1': 0.5603448275862069, 'number': 119} | {'precision': 0.8896860986547085, 'recall': 0.9210770659238626, 'f1': 0.9051094890510949, 'number': 1077} | 0.8669 | 0.8932 | 0.8799 | 0.8000 |
|
72 |
+
| 0.0002 | 157.89 | 3000 | 1.8224 | {'precision': 0.9067164179104478, 'recall': 0.8922888616891065, 'f1': 0.8994447871684145, 'number': 817} | {'precision': 0.6222222222222222, 'recall': 0.47058823529411764, 'f1': 0.5358851674641149, 'number': 119} | {'precision': 0.8937112488928255, 'recall': 0.9368616527390901, 'f1': 0.9147778785131461, 'number': 1077} | 0.8868 | 0.8912 | 0.8890 | 0.8082 |
|
73 |
+
| 0.0005 | 168.42 | 3200 | 1.7383 | {'precision': 0.8754406580493537, 'recall': 0.9118727050183598, 'f1': 0.8932853717026379, 'number': 817} | {'precision': 0.6451612903225806, 'recall': 0.5042016806722689, 'f1': 0.5660377358490566, 'number': 119} | {'precision': 0.8995475113122172, 'recall': 0.9229340761374187, 'f1': 0.9110907424381303, 'number': 1077} | 0.8780 | 0.8937 | 0.8858 | 0.8117 |
|
74 |
+
| 0.0002 | 178.95 | 3400 | 1.7757 | {'precision': 0.885954381752701, 'recall': 0.9033047735618115, 'f1': 0.8945454545454545, 'number': 817} | {'precision': 0.6896551724137931, 'recall': 0.5042016806722689, 'f1': 0.5825242718446602, 'number': 119} | {'precision': 0.9043321299638989, 'recall': 0.9303621169916435, 'f1': 0.917162471395881, 'number': 1077} | 0.8876 | 0.8942 | 0.8909 | 0.8104 |
|
75 |
+
| 0.0001 | 189.47 | 3600 | 1.7467 | {'precision': 0.8645833333333334, 'recall': 0.9143206854345165, 'f1': 0.8887566924449734, 'number': 817} | {'precision': 0.6354166666666666, 'recall': 0.5126050420168067, 'f1': 0.5674418604651162, 'number': 119} | {'precision': 0.9027522935779817, 'recall': 0.9136490250696379, 'f1': 0.9081679741578219, 'number': 1077} | 0.8741 | 0.8902 | 0.8821 | 0.8054 |
|
76 |
+
| 0.0002 | 200.0 | 3800 | 1.7730 | {'precision': 0.8631090487238979, 'recall': 0.9106487148102815, 'f1': 0.8862418106015486, 'number': 817} | {'precision': 0.6354166666666666, 'recall': 0.5126050420168067, 'f1': 0.5674418604651162, 'number': 119} | {'precision': 0.8952205882352942, 'recall': 0.904363974001857, 'f1': 0.899769053117783, 'number': 1077} | 0.8695 | 0.8838 | 0.8766 | 0.8024 |
|
77 |
+
| 0.0001 | 210.53 | 4000 | 1.7735 | {'precision': 0.8693115519253208, 'recall': 0.9118727050183598, 'f1': 0.8900836320191159, 'number': 817} | {'precision': 0.6630434782608695, 'recall': 0.5126050420168067, 'f1': 0.5781990521327014, 'number': 119} | {'precision': 0.8992673992673993, 'recall': 0.9117920148560817, 'f1': 0.905486399262333, 'number': 1077} | 0.8760 | 0.8882 | 0.8821 | 0.8027 |
|
78 |
+
|
79 |
+
|
80 |
+
### Framework versions
|
81 |
+
|
82 |
+
- Transformers 4.24.0
|
83 |
+
- Pytorch 1.12.1
|
84 |
+
- Datasets 2.7.1
|
85 |
+
- Tokenizers 0.13.2
|
logs/events.out.tfevents.1669920212.132-145-128-28.65525.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:7e48b51ef3d9091d607e67fc518b8c144418f35b30fa22855ef24e04258f77f7
|
3 |
+
size 17672
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
preprocessor_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"apply_ocr": true,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"feature_extractor_type": "LayoutLMv3FeatureExtractor",
|
6 |
+
"image_mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"ocr_lang": null,
|
17 |
+
"processor_class": "LayoutLMv3Processor",
|
18 |
+
"resample": 2,
|
19 |
+
"size": 224,
|
20 |
+
"tesseract_config": ""
|
21 |
+
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 520818271
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ca2cbc8a84d2d8339ccd7704f811e147c9fcf07418e9123fd41a7e213032fda
|
3 |
size 520818271
|
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,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"name_or_path": "SCUT-DLVCLab/lilt-roberta-en-base",
|
44 |
+
"only_label_first_subword": true,
|
45 |
+
"pad_token": {
|
46 |
+
"__type": "AddedToken",
|
47 |
+
"content": "<pad>",
|
48 |
+
"lstrip": false,
|
49 |
+
"normalized": true,
|
50 |
+
"rstrip": false,
|
51 |
+
"single_word": false
|
52 |
+
},
|
53 |
+
"pad_token_box": [
|
54 |
+
0,
|
55 |
+
0,
|
56 |
+
0,
|
57 |
+
0
|
58 |
+
],
|
59 |
+
"pad_token_label": -100,
|
60 |
+
"processor_class": "LayoutLMv3Processor",
|
61 |
+
"sep_token": {
|
62 |
+
"__type": "AddedToken",
|
63 |
+
"content": "</s>",
|
64 |
+
"lstrip": false,
|
65 |
+
"normalized": true,
|
66 |
+
"rstrip": false,
|
67 |
+
"single_word": false
|
68 |
+
},
|
69 |
+
"sep_token_box": [
|
70 |
+
0,
|
71 |
+
0,
|
72 |
+
0,
|
73 |
+
0
|
74 |
+
],
|
75 |
+
"special_tokens_map_file": null,
|
76 |
+
"tokenizer_class": "LayoutLMv3Tokenizer",
|
77 |
+
"trim_offsets": true,
|
78 |
+
"unk_token": {
|
79 |
+
"__type": "AddedToken",
|
80 |
+
"content": "<unk>",
|
81 |
+
"lstrip": false,
|
82 |
+
"normalized": true,
|
83 |
+
"rstrip": false,
|
84 |
+
"single_word": false
|
85 |
+
}
|
86 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|