Monster23 commited on
Commit
a0123a7
1 Parent(s): 163dc88

End of training

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/layoutlm-base-uncased
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: layoutlm-funsd
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ # layoutlm-funsd
14
+
15
+ This model is a fine-tuned version of [microsoft/layoutlm-base-uncased](https://huggingface.co/microsoft/layoutlm-base-uncased) on the None dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Loss: 0.0664
18
+ - Number-a: {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4}
19
+ - Number-q: {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4}
20
+ - Overall Precision: 0.0
21
+ - Overall Recall: 0.0
22
+ - Overall F1: 0.0
23
+ - Overall Accuracy: 0.9848
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 3e-05
43
+ - train_batch_size: 16
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 15
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Number-a | Number-q | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
54
+ |:-------------:|:-----:|:----:|:---------------:|:-----------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
55
+ | 1.057 | 1.0 | 1 | 1.0490 | {'precision': 0.02127659574468085, 'recall': 1.0, 'f1': 0.04166666666666667, 'number': 4} | {'precision': 0.017857142857142856, 'recall': 1.0, 'f1': 0.03508771929824561, 'number': 4} | 0.0194 | 1.0 | 0.0381 | 0.4905 |
56
+ | 1.0545 | 2.0 | 2 | 1.0490 | {'precision': 0.02127659574468085, 'recall': 1.0, 'f1': 0.04166666666666667, 'number': 4} | {'precision': 0.017857142857142856, 'recall': 1.0, 'f1': 0.03508771929824561, 'number': 4} | 0.0194 | 1.0 | 0.0381 | 0.4905 |
57
+ | 1.0577 | 3.0 | 3 | 1.0490 | {'precision': 0.02127659574468085, 'recall': 1.0, 'f1': 0.04166666666666667, 'number': 4} | {'precision': 0.017857142857142856, 'recall': 1.0, 'f1': 0.03508771929824561, 'number': 4} | 0.0194 | 1.0 | 0.0381 | 0.4905 |
58
+ | 1.0569 | 4.0 | 4 | 0.7616 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9431 |
59
+ | 0.7741 | 5.0 | 5 | 0.5454 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
60
+ | 0.5582 | 6.0 | 6 | 0.3809 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
61
+ | 0.3957 | 7.0 | 7 | 0.2636 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
62
+ | 0.271 | 8.0 | 8 | 0.1836 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
63
+ | 0.1909 | 9.0 | 9 | 0.1327 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
64
+ | 0.1385 | 10.0 | 10 | 0.1026 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
65
+ | 0.1066 | 11.0 | 11 | 0.0860 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
66
+ | 0.0894 | 12.0 | 12 | 0.0773 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
67
+ | 0.0812 | 13.0 | 13 | 0.0725 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
68
+ | 0.0754 | 14.0 | 14 | 0.0692 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
69
+ | 0.0729 | 15.0 | 15 | 0.0664 | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 4} | 0.0 | 0.0 | 0.0 | 0.9848 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.35.2
75
+ - Pytorch 2.1.1+cu121
76
+ - Datasets 2.15.0
77
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/layoutlm-base-uncased",
3
+ "architectures": [
4
+ "LayoutLMForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "O",
12
+ "1": "PO-NUMBER-Q",
13
+ "2": "PO-NUMBER-A"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "O": 0,
19
+ "PO-NUMBER-A": 2,
20
+ "PO-NUMBER-Q": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "max_2d_position_embeddings": 1024,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "layoutlm",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "output_past": true,
29
+ "pad_token_id": 0,
30
+ "position_embedding_type": "absolute",
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.35.2",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
logs/events.out.tfevents.1701505020.ysw.15130.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:522e39a5006cf2e085046ab1400b60cd2f146f2b4b45479edf0011b450d5c4b9
3
+ size 14628
logs/events.out.tfevents.1701874828.ysw.210629.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3767f13427f127bb859522773512b87f79eea7c3848b3dca11d8e947f9c1852e
3
+ size 4321
logs/events.out.tfevents.1701875023.ysw.211829.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c99b170834d230a858c1d80125becc3148fe617f32f5a9037466e2a9923dcdd
3
+ size 4321
logs/events.out.tfevents.1701875658.ysw.214768.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71d5be60596c6f36c8c5fa1dc6006f12257f36dde1364626c4923e820607ce4c
3
+ size 14404
logs/events.out.tfevents.1701876596.ysw.219275.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:358e7f96d1e87ad27c32242b8f10bcb93ae75094ba70e827c878162720c1d5fa
3
+ size 14404
logs/events.out.tfevents.1701877097.ysw.221558.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bae3268c95842f17317bd4e9dceb2d1e17e56746ebd0d6dfde0e82ffe531db42
3
+ size 14404
logs/events.out.tfevents.1701877365.ysw.222959.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08adc6552aad01088b485f75c4846ea1587566e6cca526a9256abb292d4ba1a4
3
+ size 9513
logs/events.out.tfevents.1701879491.ysw.232728.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceac1708be5cbd77f75c9e7e4d07ee23d9a2b4530dbe0b498e4c0c7a4eeafef2
3
+ size 14404
logs/events.out.tfevents.1701880516.ysw.237008.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f6cf41426e0b07d6e0225290feff7e173324b669920485b17e387638bdeafaf
3
+ size 14430
logs/events.out.tfevents.1701880943.ysw.239418.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e73b3b86689a8885b1ebc5491ffa14e3f9a5d3cb9c9edd4fb4021ddd60ada0a
3
+ size 14430
logs/events.out.tfevents.1701881098.ysw.240260.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceb39789277b8e44ea3d0b06226c9473d4907d6848112eba3faef73d73451a43
3
+ size 14430
logs/events.out.tfevents.1701881312.ysw.241424.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35cd299abb2d39c30f8191e1089499c20d1a8366cb06693bbdafef5274d7a57e
3
+ size 10837
logs/events.out.tfevents.1701881363.ysw.241904.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b95f07c0c3c0f7c543dc88886f04ddf7cd6676a1d4f9ef319d77b62ca54b04e3
3
+ size 14430
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3969c08a27ab8d1bed9c4b56d9212c054a07427784d398729c4049ca05e65df
3
+ size 450545908
preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": true,
3
+ "do_resize": true,
4
+ "feature_extractor_type": "LayoutLMv2FeatureExtractor",
5
+ "image_processor_type": "LayoutLMv2ImageProcessor",
6
+ "ocr_lang": null,
7
+ "processor_class": "LayoutLMv2Processor",
8
+ "resample": 2,
9
+ "size": {
10
+ "height": 224,
11
+ "width": 224
12
+ },
13
+ "tesseract_config": ""
14
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "additional_special_tokens": [],
45
+ "apply_ocr": false,
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "[CLS]",
48
+ "cls_token_box": [
49
+ 0,
50
+ 0,
51
+ 0,
52
+ 0
53
+ ],
54
+ "do_basic_tokenize": true,
55
+ "do_lower_case": true,
56
+ "mask_token": "[MASK]",
57
+ "model_max_length": 512,
58
+ "never_split": null,
59
+ "only_label_first_subword": true,
60
+ "pad_token": "[PAD]",
61
+ "pad_token_box": [
62
+ 0,
63
+ 0,
64
+ 0,
65
+ 0
66
+ ],
67
+ "pad_token_label": -100,
68
+ "processor_class": "LayoutLMv2Processor",
69
+ "sep_token": "[SEP]",
70
+ "sep_token_box": [
71
+ 1000,
72
+ 1000,
73
+ 1000,
74
+ 1000
75
+ ],
76
+ "strip_accents": null,
77
+ "tokenize_chinese_chars": true,
78
+ "tokenizer_class": "LayoutLMv2Tokenizer",
79
+ "unk_token": "[UNK]"
80
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a2b48988de587eb0a9ffa8ef4cb4ed6e828f35e134d5b753db3d4a4c0b80abb
3
+ size 4600
vocab.txt ADDED
The diff for this file is too large to render. See raw diff