codymd commited on
Commit
bf630be
1 Parent(s): e7ab3ba

End of training

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: albert/albert-base-v2
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: albert-base-v2-grammar-ner
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # albert-base-v2-grammar-ner
18
+
19
+ This model is a fine-tuned version of [albert/albert-base-v2](https://huggingface.co/albert/albert-base-v2) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.1134
22
+ - Accuracy: 0.9870
23
+ - F1 Macro: 0.7941
24
+ - F1 Micro: 0.9008
25
+ - Precision Macro: 0.8789
26
+ - Precision Micro: 0.9569
27
+ - Recall Macro: 0.7518
28
+ - Recall Micro: 0.8510
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 5e-05
48
+ - train_batch_size: 24
49
+ - eval_batch_size: 24
50
+ - seed: 42
51
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 18
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Micro | Precision Macro | Precision Micro | Recall Macro | Recall Micro |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:--------:|:---------------:|:---------------:|:------------:|:------------:|
59
+ | 0.4297 | 1.0 | 93 | 0.2896 | 0.9313 | 0.1318 | 0.4462 | 0.1897 | 0.5163 | 0.1281 | 0.3928 |
60
+ | 0.2521 | 2.0 | 186 | 0.2192 | 0.9452 | 0.2315 | 0.5160 | 0.3282 | 0.6752 | 0.1962 | 0.4176 |
61
+ | 0.167 | 3.0 | 279 | 0.1630 | 0.9662 | 0.3546 | 0.7198 | 0.4142 | 0.8358 | 0.3295 | 0.6321 |
62
+ | 0.1026 | 4.0 | 372 | 0.1343 | 0.9733 | 0.4185 | 0.7769 | 0.5241 | 0.8732 | 0.3797 | 0.6998 |
63
+ | 0.0718 | 5.0 | 465 | 0.1231 | 0.9738 | 0.4644 | 0.7794 | 0.5584 | 0.8525 | 0.4382 | 0.7178 |
64
+ | 0.0483 | 6.0 | 558 | 0.1269 | 0.9778 | 0.4778 | 0.8204 | 0.6262 | 0.9415 | 0.4164 | 0.7269 |
65
+ | 0.0335 | 7.0 | 651 | 0.1162 | 0.9804 | 0.6028 | 0.8416 | 0.6985 | 0.8834 | 0.5846 | 0.8036 |
66
+ | 0.0233 | 8.0 | 744 | 0.1203 | 0.9813 | 0.5736 | 0.8475 | 0.7429 | 0.9496 | 0.4988 | 0.7652 |
67
+ | 0.0171 | 9.0 | 837 | 0.1052 | 0.9836 | 0.6502 | 0.8671 | 0.7023 | 0.8964 | 0.6490 | 0.8397 |
68
+ | 0.01 | 10.0 | 930 | 0.1125 | 0.9805 | 0.6681 | 0.8477 | 0.6854 | 0.8535 | 0.6875 | 0.8420 |
69
+ | 0.0084 | 11.0 | 1023 | 0.1058 | 0.9862 | 0.7195 | 0.8894 | 0.8004 | 0.9287 | 0.6870 | 0.8533 |
70
+ | 0.0051 | 12.0 | 1116 | 0.1092 | 0.9870 | 0.8015 | 0.9015 | 0.8810 | 0.95 | 0.7612 | 0.8578 |
71
+ | 0.0031 | 13.0 | 1209 | 0.1131 | 0.9865 | 0.8006 | 0.8983 | 0.8827 | 0.9429 | 0.7592 | 0.8578 |
72
+ | 0.0017 | 14.0 | 1302 | 0.1106 | 0.9873 | 0.8058 | 0.9039 | 0.8748 | 0.9525 | 0.7749 | 0.8600 |
73
+ | 0.0012 | 15.0 | 1395 | 0.1111 | 0.9875 | 0.7985 | 0.9058 | 0.8818 | 0.9596 | 0.7576 | 0.8578 |
74
+ | 0.0009 | 16.0 | 1488 | 0.1128 | 0.9870 | 0.7941 | 0.9008 | 0.8789 | 0.9569 | 0.7518 | 0.8510 |
75
+ | 0.0008 | 17.0 | 1581 | 0.1133 | 0.9870 | 0.7941 | 0.9008 | 0.8789 | 0.9569 | 0.7518 | 0.8510 |
76
+ | 0.0008 | 18.0 | 1674 | 0.1134 | 0.9870 | 0.7941 | 0.9008 | 0.8789 | 0.9569 | 0.7518 | 0.8510 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.46.3
82
+ - Pytorch 2.5.1+cu121
83
+ - Datasets 3.2.0
84
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "albert/albert-base-v2",
3
+ "architectures": [
4
+ "AlbertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0,
7
+ "bos_token_id": 2,
8
+ "classifier_dropout_prob": 0.1,
9
+ "down_scale_factor": 1,
10
+ "embedding_size": 128,
11
+ "eos_token_id": 3,
12
+ "gap_size": 0,
13
+ "hidden_act": "gelu_new",
14
+ "hidden_dropout_prob": 0,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "B-U:PREP",
18
+ "1": "I-U:VERB:TENSE",
19
+ "2": "I-R:NOUN:INFL",
20
+ "3": "I-R:VERB:TENSE",
21
+ "4": "I-R:WO",
22
+ "5": "I-U:OTHER",
23
+ "6": "B-U:VERB",
24
+ "7": "B-R:VERB:INFL",
25
+ "8": "I-R:VERB:INFL",
26
+ "9": "B-R:VERB:SVA",
27
+ "10": "B-U:NOUN",
28
+ "11": "B-R:PREP",
29
+ "12": "I-U:NOUN",
30
+ "13": "B-U:CONJ",
31
+ "14": "I-R:PUNCT",
32
+ "15": "B-R:SPELL",
33
+ "16": "B-U:PRON",
34
+ "17": "I-R:SPELL",
35
+ "18": "B-R:WO",
36
+ "19": "I-R:MORPH",
37
+ "20": "B-R:VERB:TENSE",
38
+ "21": "B-R:NOUN",
39
+ "22": "I-R:OTHER",
40
+ "23": "B-U:DET",
41
+ "24": "B-U:PART",
42
+ "25": "B-R:ADV",
43
+ "26": "I-R:VERB:SVA",
44
+ "27": "I-R:DET",
45
+ "28": "B-R:NOUN:NUM",
46
+ "29": "O",
47
+ "30": "B-R:ADJ",
48
+ "31": "B-U:VERB:TENSE",
49
+ "32": "B-R:PRON",
50
+ "33": "I-U:VERB",
51
+ "34": "I-R:ADV",
52
+ "35": "I-R:VERB:FORM",
53
+ "36": "B-R:OTHER",
54
+ "37": "B-U:VERB:FORM",
55
+ "38": "B-U:ADV",
56
+ "39": "B-R:NOUN:INFL",
57
+ "40": "B-R:PART",
58
+ "41": "B-U:OTHER",
59
+ "42": "I-R:VERB",
60
+ "43": "B-R:PUNCT",
61
+ "44": "B-R:VERB",
62
+ "45": "B-R:DET",
63
+ "46": "B-R:MORPH",
64
+ "47": "I-R:NOUN",
65
+ "48": "B-R:VERB:FORM",
66
+ "49": "B-R:ADJ:FORM"
67
+ },
68
+ "initializer_range": 0.02,
69
+ "inner_group_num": 1,
70
+ "intermediate_size": 3072,
71
+ "label2id": {
72
+ "B-R:ADJ": 30,
73
+ "B-R:ADJ:FORM": 49,
74
+ "B-R:ADV": 25,
75
+ "B-R:DET": 45,
76
+ "B-R:MORPH": 46,
77
+ "B-R:NOUN": 21,
78
+ "B-R:NOUN:INFL": 39,
79
+ "B-R:NOUN:NUM": 28,
80
+ "B-R:OTHER": 36,
81
+ "B-R:PART": 40,
82
+ "B-R:PREP": 11,
83
+ "B-R:PRON": 32,
84
+ "B-R:PUNCT": 43,
85
+ "B-R:SPELL": 15,
86
+ "B-R:VERB": 44,
87
+ "B-R:VERB:FORM": 48,
88
+ "B-R:VERB:INFL": 7,
89
+ "B-R:VERB:SVA": 9,
90
+ "B-R:VERB:TENSE": 20,
91
+ "B-R:WO": 18,
92
+ "B-U:ADV": 38,
93
+ "B-U:CONJ": 13,
94
+ "B-U:DET": 23,
95
+ "B-U:NOUN": 10,
96
+ "B-U:OTHER": 41,
97
+ "B-U:PART": 24,
98
+ "B-U:PREP": 0,
99
+ "B-U:PRON": 16,
100
+ "B-U:VERB": 6,
101
+ "B-U:VERB:FORM": 37,
102
+ "B-U:VERB:TENSE": 31,
103
+ "I-R:ADV": 34,
104
+ "I-R:DET": 27,
105
+ "I-R:MORPH": 19,
106
+ "I-R:NOUN": 47,
107
+ "I-R:NOUN:INFL": 2,
108
+ "I-R:OTHER": 22,
109
+ "I-R:PUNCT": 14,
110
+ "I-R:SPELL": 17,
111
+ "I-R:VERB": 42,
112
+ "I-R:VERB:FORM": 35,
113
+ "I-R:VERB:INFL": 8,
114
+ "I-R:VERB:SVA": 26,
115
+ "I-R:VERB:TENSE": 3,
116
+ "I-R:WO": 4,
117
+ "I-U:NOUN": 12,
118
+ "I-U:OTHER": 5,
119
+ "I-U:VERB": 33,
120
+ "I-U:VERB:TENSE": 1,
121
+ "O": 29
122
+ },
123
+ "layer_norm_eps": 1e-12,
124
+ "max_position_embeddings": 512,
125
+ "model_type": "albert",
126
+ "net_structure_type": 0,
127
+ "num_attention_heads": 12,
128
+ "num_hidden_groups": 1,
129
+ "num_hidden_layers": 12,
130
+ "num_memory_blocks": 0,
131
+ "pad_token_id": 0,
132
+ "position_embedding_type": "absolute",
133
+ "torch_dtype": "float32",
134
+ "transformers_version": "4.46.3",
135
+ "type_vocab_size": 2,
136
+ "vocab_size": 30000
137
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a60dfffde906ef3f6f67934b2c8e4dee6a79cfa8d2c14de7dfc53fa0d1aa0a1
3
+ size 44529016
runs/Dec12_22-51-02_a365e7b9463b/events.out.tfevents.1734043863.a365e7b9463b.6288.11 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70f2a8324ac8041bf31a10c605d3c0c68999612bb088f8cddc7e93f614c0b73b
3
+ size 23489
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": {
6
+ "content": "[MASK]",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "[SEP]",
14
+ "unk_token": "<unk>"
15
+ }
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fefb02b667a6c5c2fe27602d28e5fb3428f66ab89c7d6f388e7c8d44a02d0336
3
+ size 760289
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "<unk>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "[CLS]",
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "[CLS]",
47
+ "do_lower_case": true,
48
+ "eos_token": "[SEP]",
49
+ "keep_accents": false,
50
+ "mask_token": "[MASK]",
51
+ "model_max_length": 512,
52
+ "pad_token": "<pad>",
53
+ "remove_space": true,
54
+ "sep_token": "[SEP]",
55
+ "tokenizer_class": "AlbertTokenizer",
56
+ "unk_token": "<unk>"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e944a7e2162a1e47bd7bd46a9392dde74acaca3843ae30a4807728a4b55a9d29
3
+ size 5304