codymd commited on
Commit
67f3fbe
1 Parent(s): 47b7a29

End of training

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: xlnet/xlnet-base-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: xlnet-base-cased-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
+ # xlnet-base-cased-grammar-ner
18
+
19
+ This model is a fine-tuned version of [xlnet/xlnet-base-cased](https://huggingface.co/xlnet/xlnet-base-cased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.1027
22
+ - Accuracy: 0.9879
23
+ - F1 Macro: 0.7899
24
+ - F1 Micro: 0.9048
25
+ - Precision Macro: 0.8321
26
+ - Precision Micro: 0.9436
27
+ - Recall Macro: 0.7769
28
+ - Recall Micro: 0.8691
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.3654 | 1.0 | 93 | 0.2315 | 0.9329 | 0.2241 | 0.4091 | 0.2338 | 0.5016 | 0.2436 | 0.3454 |
60
+ | 0.1834 | 2.0 | 186 | 0.1603 | 0.9627 | 0.2982 | 0.6748 | 0.4007 | 0.8441 | 0.2733 | 0.5621 |
61
+ | 0.1161 | 3.0 | 279 | 0.1472 | 0.9649 | 0.4016 | 0.7249 | 0.4585 | 0.7494 | 0.3910 | 0.7020 |
62
+ | 0.0764 | 4.0 | 372 | 0.1233 | 0.9739 | 0.4844 | 0.7783 | 0.5824 | 0.8346 | 0.4487 | 0.7291 |
63
+ | 0.0561 | 5.0 | 465 | 0.1224 | 0.9738 | 0.4467 | 0.7792 | 0.5923 | 0.8650 | 0.4044 | 0.7088 |
64
+ | 0.0423 | 6.0 | 558 | 0.1135 | 0.9799 | 0.6021 | 0.8375 | 0.6885 | 0.8825 | 0.5619 | 0.7968 |
65
+ | 0.0319 | 7.0 | 651 | 0.0987 | 0.9820 | 0.6386 | 0.8541 | 0.6928 | 0.8841 | 0.6342 | 0.8262 |
66
+ | 0.0221 | 8.0 | 744 | 0.1034 | 0.9836 | 0.6463 | 0.8623 | 0.7605 | 0.9184 | 0.6045 | 0.8126 |
67
+ | 0.0175 | 9.0 | 837 | 0.0984 | 0.9852 | 0.6852 | 0.8794 | 0.7154 | 0.9045 | 0.6849 | 0.8555 |
68
+ | 0.0094 | 10.0 | 930 | 0.0985 | 0.9865 | 0.6985 | 0.8936 | 0.7434 | 0.9272 | 0.6914 | 0.8623 |
69
+ | 0.0078 | 11.0 | 1023 | 0.0987 | 0.9858 | 0.7314 | 0.8876 | 0.7563 | 0.9119 | 0.7406 | 0.8646 |
70
+ | 0.0056 | 12.0 | 1116 | 0.1051 | 0.9868 | 0.7501 | 0.8923 | 0.7955 | 0.9270 | 0.7410 | 0.8600 |
71
+ | 0.0047 | 13.0 | 1209 | 0.1027 | 0.9866 | 0.7606 | 0.8936 | 0.8116 | 0.9272 | 0.7469 | 0.8623 |
72
+ | 0.0031 | 14.0 | 1302 | 0.1009 | 0.9866 | 0.7762 | 0.8953 | 0.8034 | 0.9233 | 0.7769 | 0.8691 |
73
+ | 0.0027 | 15.0 | 1395 | 0.1008 | 0.9873 | 0.7763 | 0.8995 | 0.8073 | 0.9322 | 0.7769 | 0.8691 |
74
+ | 0.002 | 16.0 | 1488 | 0.1034 | 0.9884 | 0.7939 | 0.9067 | 0.8590 | 0.9505 | 0.7591 | 0.8668 |
75
+ | 0.0015 | 17.0 | 1581 | 0.1020 | 0.9881 | 0.7925 | 0.9059 | 0.8362 | 0.9459 | 0.7769 | 0.8691 |
76
+ | 0.0016 | 18.0 | 1674 | 0.1027 | 0.9879 | 0.7899 | 0.9048 | 0.8321 | 0.9436 | 0.7769 | 0.8691 |
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,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "xlnet/xlnet-base-cased",
3
+ "architectures": [
4
+ "XLNetForTokenClassification"
5
+ ],
6
+ "attn_type": "bi",
7
+ "bi_data": false,
8
+ "bos_token_id": 1,
9
+ "clamp_len": -1,
10
+ "d_head": 64,
11
+ "d_inner": 3072,
12
+ "d_model": 768,
13
+ "dropout": 0.1,
14
+ "end_n_top": 5,
15
+ "eos_token_id": 2,
16
+ "ff_activation": "gelu",
17
+ "id2label": {
18
+ "0": "B-U:PREP",
19
+ "1": "I-U:VERB:TENSE",
20
+ "2": "I-R:NOUN:INFL",
21
+ "3": "I-R:VERB:TENSE",
22
+ "4": "I-R:WO",
23
+ "5": "I-U:OTHER",
24
+ "6": "B-U:VERB",
25
+ "7": "B-R:VERB:INFL",
26
+ "8": "I-R:VERB:INFL",
27
+ "9": "B-R:VERB:SVA",
28
+ "10": "B-U:NOUN",
29
+ "11": "B-R:PREP",
30
+ "12": "I-U:NOUN",
31
+ "13": "B-U:CONJ",
32
+ "14": "I-R:PUNCT",
33
+ "15": "B-R:SPELL",
34
+ "16": "B-U:PRON",
35
+ "17": "I-R:SPELL",
36
+ "18": "B-R:WO",
37
+ "19": "I-R:MORPH",
38
+ "20": "B-R:VERB:TENSE",
39
+ "21": "B-R:NOUN",
40
+ "22": "I-R:OTHER",
41
+ "23": "B-U:DET",
42
+ "24": "B-U:PART",
43
+ "25": "B-R:ADV",
44
+ "26": "I-R:VERB:SVA",
45
+ "27": "I-R:DET",
46
+ "28": "B-R:NOUN:NUM",
47
+ "29": "O",
48
+ "30": "B-R:ADJ",
49
+ "31": "B-U:VERB:TENSE",
50
+ "32": "B-R:PRON",
51
+ "33": "I-U:VERB",
52
+ "34": "I-R:ADV",
53
+ "35": "I-R:VERB:FORM",
54
+ "36": "B-R:OTHER",
55
+ "37": "B-U:VERB:FORM",
56
+ "38": "B-U:ADV",
57
+ "39": "B-R:NOUN:INFL",
58
+ "40": "B-R:PART",
59
+ "41": "B-U:OTHER",
60
+ "42": "I-R:VERB",
61
+ "43": "B-R:PUNCT",
62
+ "44": "B-R:VERB",
63
+ "45": "B-R:DET",
64
+ "46": "B-R:MORPH",
65
+ "47": "I-R:NOUN",
66
+ "48": "B-R:VERB:FORM",
67
+ "49": "B-R:ADJ:FORM"
68
+ },
69
+ "initializer_range": 0.02,
70
+ "label2id": {
71
+ "B-R:ADJ": 30,
72
+ "B-R:ADJ:FORM": 49,
73
+ "B-R:ADV": 25,
74
+ "B-R:DET": 45,
75
+ "B-R:MORPH": 46,
76
+ "B-R:NOUN": 21,
77
+ "B-R:NOUN:INFL": 39,
78
+ "B-R:NOUN:NUM": 28,
79
+ "B-R:OTHER": 36,
80
+ "B-R:PART": 40,
81
+ "B-R:PREP": 11,
82
+ "B-R:PRON": 32,
83
+ "B-R:PUNCT": 43,
84
+ "B-R:SPELL": 15,
85
+ "B-R:VERB": 44,
86
+ "B-R:VERB:FORM": 48,
87
+ "B-R:VERB:INFL": 7,
88
+ "B-R:VERB:SVA": 9,
89
+ "B-R:VERB:TENSE": 20,
90
+ "B-R:WO": 18,
91
+ "B-U:ADV": 38,
92
+ "B-U:CONJ": 13,
93
+ "B-U:DET": 23,
94
+ "B-U:NOUN": 10,
95
+ "B-U:OTHER": 41,
96
+ "B-U:PART": 24,
97
+ "B-U:PREP": 0,
98
+ "B-U:PRON": 16,
99
+ "B-U:VERB": 6,
100
+ "B-U:VERB:FORM": 37,
101
+ "B-U:VERB:TENSE": 31,
102
+ "I-R:ADV": 34,
103
+ "I-R:DET": 27,
104
+ "I-R:MORPH": 19,
105
+ "I-R:NOUN": 47,
106
+ "I-R:NOUN:INFL": 2,
107
+ "I-R:OTHER": 22,
108
+ "I-R:PUNCT": 14,
109
+ "I-R:SPELL": 17,
110
+ "I-R:VERB": 42,
111
+ "I-R:VERB:FORM": 35,
112
+ "I-R:VERB:INFL": 8,
113
+ "I-R:VERB:SVA": 26,
114
+ "I-R:VERB:TENSE": 3,
115
+ "I-R:WO": 4,
116
+ "I-U:NOUN": 12,
117
+ "I-U:OTHER": 5,
118
+ "I-U:VERB": 33,
119
+ "I-U:VERB:TENSE": 1,
120
+ "O": 29
121
+ },
122
+ "layer_norm_eps": 1e-12,
123
+ "mem_len": null,
124
+ "model_type": "xlnet",
125
+ "n_head": 12,
126
+ "n_layer": 12,
127
+ "pad_token_id": 5,
128
+ "reuse_len": null,
129
+ "same_length": false,
130
+ "start_n_top": 5,
131
+ "summary_activation": "tanh",
132
+ "summary_last_dropout": 0.1,
133
+ "summary_type": "last",
134
+ "summary_use_proj": true,
135
+ "task_specific_params": {
136
+ "text-generation": {
137
+ "do_sample": true,
138
+ "max_length": 250
139
+ }
140
+ },
141
+ "torch_dtype": "float32",
142
+ "transformers_version": "4.46.3",
143
+ "untie_r": true,
144
+ "use_mems_eval": true,
145
+ "use_mems_train": false,
146
+ "vocab_size": 32000
147
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31a87717b48dca4a65a7b6a2178e1d41434c58c41a1efbc76c191bc73f9b084d
3
+ size 467049688
runs/Dec12_22-57-44_a365e7b9463b/events.out.tfevents.1734044265.a365e7b9463b.6288.13 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07584d79e21af95b0f9a95b298e70eef0f6041ccc6f170f96349acffa6f15319
3
+ size 23581
special_tokens_map.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<eop>",
4
+ "<eod>"
5
+ ],
6
+ "bos_token": "<s>",
7
+ "cls_token": "<cls>",
8
+ "eos_token": "</s>",
9
+ "mask_token": {
10
+ "content": "<mask>",
11
+ "lstrip": true,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<pad>",
17
+ "sep_token": "<sep>",
18
+ "unk_token": "<unk>"
19
+ }
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f8c1c0bc2854d1af911a8550288c1258af5ba50277f3a5c829b98eb86fc5646
3
+ size 798011
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<cls>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "<sep>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "5": {
44
+ "content": "<pad>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "6": {
52
+ "content": "<mask>",
53
+ "lstrip": true,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "7": {
60
+ "content": "<eod>",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ },
67
+ "8": {
68
+ "content": "<eop>",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ }
75
+ },
76
+ "additional_special_tokens": [
77
+ "<eop>",
78
+ "<eod>"
79
+ ],
80
+ "bos_token": "<s>",
81
+ "clean_up_tokenization_spaces": false,
82
+ "cls_token": "<cls>",
83
+ "do_lower_case": false,
84
+ "eos_token": "</s>",
85
+ "keep_accents": false,
86
+ "mask_token": "<mask>",
87
+ "model_max_length": 1000000000000000019884624838656,
88
+ "pad_token": "<pad>",
89
+ "remove_space": true,
90
+ "sep_token": "<sep>",
91
+ "tokenizer_class": "XLNetTokenizer",
92
+ "unk_token": "<unk>"
93
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7ad6e252df2329e16410b7d2847ac9c863ea72fd84c7fc7e32a3980925470b3
3
+ size 5304