End of training
Browse files- README.md +76 -0
- logs/events.out.tfevents.1716807097.c190ecb2bcd6.655.0 +2 -2
- logs/events.out.tfevents.1716807478.c190ecb2bcd6.655.1 +3 -0
- merges.txt +0 -0
- model.safetensors +1 -1
- preprocessor_config.json +43 -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,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.6046
|
19 |
+
- Answer: {'precision': 0.8879518072289156, 'recall': 0.9020807833537332, 'f1': 0.8949605343047966, 'number': 817}
|
20 |
+
- Header: {'precision': 0.6761904761904762, 'recall': 0.5966386554621849, 'f1': 0.6339285714285715, 'number': 119}
|
21 |
+
- Question: {'precision': 0.8968609865470852, 'recall': 0.9285051067780873, 'f1': 0.9124087591240877, 'number': 1077}
|
22 |
+
- Overall Precision: 0.8820
|
23 |
+
- Overall Recall: 0.8982
|
24 |
+
- Overall F1: 0.8900
|
25 |
+
- Overall Accuracy: 0.8187
|
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.3984 | 10.5263 | 200 | 0.9319 | {'precision': 0.837129840546697, 'recall': 0.8996328029375765, 'f1': 0.8672566371681416, 'number': 817} | {'precision': 0.5238095238095238, 'recall': 0.46218487394957986, 'f1': 0.4910714285714286, 'number': 119} | {'precision': 0.8606060606060606, 'recall': 0.9229340761374187, 'f1': 0.8906810035842293, 'number': 1077} | 0.8344 | 0.8862 | 0.8596 | 0.7926 |
|
58 |
+
| 0.0543 | 21.0526 | 400 | 1.1018 | {'precision': 0.8492520138089759, 'recall': 0.9033047735618115, 'f1': 0.8754448398576511, 'number': 817} | {'precision': 0.5688073394495413, 'recall': 0.5210084033613446, 'f1': 0.543859649122807, 'number': 119} | {'precision': 0.8731277533039647, 'recall': 0.9201485608170845, 'f1': 0.8960216998191681, 'number': 1077} | 0.8476 | 0.8897 | 0.8682 | 0.8133 |
|
59 |
+
| 0.0134 | 31.5789 | 600 | 1.5231 | {'precision': 0.838963963963964, 'recall': 0.9118727050183598, 'f1': 0.873900293255132, 'number': 817} | {'precision': 0.5727272727272728, 'recall': 0.5294117647058824, 'f1': 0.5502183406113538, 'number': 119} | {'precision': 0.9149338374291115, 'recall': 0.8987929433611885, 'f1': 0.9067915690866512, 'number': 1077} | 0.8638 | 0.8823 | 0.8729 | 0.8046 |
|
60 |
+
| 0.0101 | 42.1053 | 800 | 1.5678 | {'precision': 0.8509895227008148, 'recall': 0.8947368421052632, 'f1': 0.8723150357995225, 'number': 817} | {'precision': 0.5700934579439252, 'recall': 0.5126050420168067, 'f1': 0.5398230088495575, 'number': 119} | {'precision': 0.8781770376862401, 'recall': 0.9303621169916435, 'f1': 0.9035166816952209, 'number': 1077} | 0.8514 | 0.8912 | 0.8709 | 0.8052 |
|
61 |
+
| 0.0041 | 52.6316 | 1000 | 1.6538 | {'precision': 0.8399558498896247, 'recall': 0.9314565483476133, 'f1': 0.8833430063842136, 'number': 817} | {'precision': 0.6705882352941176, 'recall': 0.4789915966386555, 'f1': 0.5588235294117647, 'number': 119} | {'precision': 0.9063386944181646, 'recall': 0.8895078922934077, 'f1': 0.8978444236176195, 'number': 1077} | 0.8672 | 0.8823 | 0.8747 | 0.7979 |
|
62 |
+
| 0.0033 | 63.1579 | 1200 | 1.4464 | {'precision': 0.875, 'recall': 0.9167686658506732, 'f1': 0.895397489539749, 'number': 817} | {'precision': 0.6049382716049383, 'recall': 0.4117647058823529, 'f1': 0.49000000000000005, 'number': 119} | {'precision': 0.8777292576419214, 'recall': 0.9331476323119777, 'f1': 0.9045904590459046, 'number': 1077} | 0.8660 | 0.8957 | 0.8806 | 0.8152 |
|
63 |
+
| 0.0015 | 73.6842 | 1400 | 1.5128 | {'precision': 0.8679906542056075, 'recall': 0.9094247246022031, 'f1': 0.8882247459653317, 'number': 817} | {'precision': 0.6511627906976745, 'recall': 0.47058823529411764, 'f1': 0.5463414634146342, 'number': 119} | {'precision': 0.8906810035842294, 'recall': 0.9229340761374187, 'f1': 0.9065207478340173, 'number': 1077} | 0.8712 | 0.8907 | 0.8809 | 0.8213 |
|
64 |
+
| 0.0014 | 84.2105 | 1600 | 1.6089 | {'precision': 0.8555176336746303, 'recall': 0.9204406364749081, 'f1': 0.8867924528301887, 'number': 817} | {'precision': 0.6074766355140186, 'recall': 0.5462184873949579, 'f1': 0.575221238938053, 'number': 119} | {'precision': 0.8891820580474934, 'recall': 0.9387186629526463, 'f1': 0.913279132791328, 'number': 1077} | 0.8610 | 0.9081 | 0.8839 | 0.8172 |
|
65 |
+
| 0.0005 | 94.7368 | 1800 | 1.6500 | {'precision': 0.865967365967366, 'recall': 0.9094247246022031, 'f1': 0.8871641791044775, 'number': 817} | {'precision': 0.6513761467889908, 'recall': 0.5966386554621849, 'f1': 0.6228070175438596, 'number': 119} | {'precision': 0.9027522935779817, 'recall': 0.9136490250696379, 'f1': 0.9081679741578219, 'number': 1077} | 0.8741 | 0.8932 | 0.8835 | 0.8135 |
|
66 |
+
| 0.0005 | 105.2632 | 2000 | 1.6204 | {'precision': 0.8909090909090909, 'recall': 0.8996328029375765, 'f1': 0.8952496954933008, 'number': 817} | {'precision': 0.6403508771929824, 'recall': 0.6134453781512605, 'f1': 0.6266094420600858, 'number': 119} | {'precision': 0.8925399644760214, 'recall': 0.9331476323119777, 'f1': 0.9123921924648207, 'number': 1077} | 0.8780 | 0.9006 | 0.8892 | 0.8177 |
|
67 |
+
| 0.0004 | 115.7895 | 2200 | 1.6046 | {'precision': 0.8879518072289156, 'recall': 0.9020807833537332, 'f1': 0.8949605343047966, 'number': 817} | {'precision': 0.6761904761904762, 'recall': 0.5966386554621849, 'f1': 0.6339285714285715, 'number': 119} | {'precision': 0.8968609865470852, 'recall': 0.9285051067780873, 'f1': 0.9124087591240877, 'number': 1077} | 0.8820 | 0.8982 | 0.8900 | 0.8187 |
|
68 |
+
| 0.0002 | 126.3158 | 2400 | 1.6270 | {'precision': 0.8790035587188612, 'recall': 0.9069767441860465, 'f1': 0.8927710843373493, 'number': 817} | {'precision': 0.6574074074074074, 'recall': 0.5966386554621849, 'f1': 0.6255506607929515, 'number': 119} | {'precision': 0.8972046889089269, 'recall': 0.9238625812441968, 'f1': 0.9103385178408051, 'number': 1077} | 0.8772 | 0.8977 | 0.8873 | 0.8193 |
|
69 |
+
|
70 |
+
|
71 |
+
### Framework versions
|
72 |
+
|
73 |
+
- Transformers 4.41.1
|
74 |
+
- Pytorch 2.3.0+cu121
|
75 |
+
- Datasets 2.19.1
|
76 |
+
- Tokenizers 0.19.1
|
logs/events.out.tfevents.1716807097.c190ecb2bcd6.655.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:98adb59ffa28cfef78f70108decedad77e4fe53c5361f72eb496c306598c7ae8
|
3 |
+
size 14138
|
logs/events.out.tfevents.1716807478.c190ecb2bcd6.655.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7634047806ead90be57e0ffcc0c6265db26d8ef582885df37d4d4dd329b33d21
|
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:662a8ddb46583aaadaeab8dc758fae0d8fd2edadd2e53ed18f9bd4d75f6b8f63
|
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
|
|