swtb commited on
Commit
a8584ee
1 Parent(s): a65ce5d

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: xlm-roberta-large
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - conll2003
8
+ metrics:
9
+ - precision
10
+ - recall
11
+ - f1
12
+ - accuracy
13
+ model-index:
14
+ - name: XLM-RoBERTa-Large-Conll2003-English-NER-Finetune
15
+ results:
16
+ - task:
17
+ name: Token Classification
18
+ type: token-classification
19
+ dataset:
20
+ name: conll2003
21
+ type: conll2003
22
+ config: conll2003
23
+ split: test
24
+ args: conll2003
25
+ metrics:
26
+ - name: Precision
27
+ type: precision
28
+ value: 0.9247648902821317
29
+ - name: Recall
30
+ type: recall
31
+ value: 0.9401558073654391
32
+ - name: F1
33
+ type: f1
34
+ value: 0.932396839332748
35
+ - name: Accuracy
36
+ type: accuracy
37
+ value: 0.9851405190050608
38
+ ---
39
+
40
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
41
+ should probably proofread and complete it, then remove this comment. -->
42
+
43
+ # XLM-RoBERTa-Large-Conll2003-English-NER-Finetune
44
+
45
+ This model is a fine-tuned version of [xlm-roberta-large](https://huggingface.co/xlm-roberta-large) on the conll2003 dataset.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.2205
48
+ - Precision: 0.9248
49
+ - Recall: 0.9402
50
+ - F1: 0.9324
51
+ - Accuracy: 0.9851
52
+
53
+ ## Model description
54
+
55
+ More information needed
56
+
57
+ ## Intended uses & limitations
58
+
59
+ More information needed
60
+
61
+ ## Training and evaluation data
62
+
63
+ More information needed
64
+
65
+ ## Training procedure
66
+
67
+ ### Training hyperparameters
68
+
69
+ The following hyperparameters were used during training:
70
+ - learning_rate: 5e-06
71
+ - train_batch_size: 4
72
+ - eval_batch_size: 4
73
+ - seed: 42
74
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
75
+ - lr_scheduler_type: linear
76
+ - lr_scheduler_warmup_ratio: 0.05
77
+ - num_epochs: 10
78
+
79
+ ### Training results
80
+
81
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
82
+ |:-------------:|:------:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
83
+ | 0.6457 | 0.3333 | 1441 | 0.1841 | 0.8167 | 0.8336 | 0.8250 | 0.9674 |
84
+ | 0.0893 | 0.6667 | 2882 | 0.1399 | 0.8827 | 0.8950 | 0.8888 | 0.9781 |
85
+ | 0.0637 | 1.0 | 4323 | 0.1449 | 0.8939 | 0.9024 | 0.8981 | 0.9802 |
86
+ | 0.0457 | 1.3333 | 5764 | 0.1552 | 0.8955 | 0.9163 | 0.9057 | 0.9816 |
87
+ | 0.0387 | 1.6667 | 7205 | 0.1566 | 0.9041 | 0.9233 | 0.9136 | 0.9825 |
88
+ | 0.0401 | 2.0 | 8646 | 0.1493 | 0.8982 | 0.9311 | 0.9144 | 0.9824 |
89
+ | 0.0276 | 2.3333 | 10087 | 0.1655 | 0.9038 | 0.9299 | 0.9167 | 0.9820 |
90
+ | 0.0248 | 2.6667 | 11528 | 0.1783 | 0.9127 | 0.9309 | 0.9217 | 0.9829 |
91
+ | 0.0266 | 3.0 | 12969 | 0.1601 | 0.9120 | 0.9340 | 0.9228 | 0.9833 |
92
+ | 0.0166 | 3.3333 | 14410 | 0.1801 | 0.9181 | 0.9288 | 0.9234 | 0.9842 |
93
+ | 0.0187 | 3.6667 | 15851 | 0.1717 | 0.9170 | 0.9325 | 0.9247 | 0.9843 |
94
+ | 0.0185 | 4.0 | 17292 | 0.1653 | 0.9190 | 0.9343 | 0.9266 | 0.9844 |
95
+ | 0.0126 | 4.3333 | 18733 | 0.1845 | 0.9176 | 0.9343 | 0.9259 | 0.9843 |
96
+ | 0.0133 | 4.6667 | 20174 | 0.1855 | 0.9174 | 0.9322 | 0.9247 | 0.9837 |
97
+ | 0.0119 | 5.0 | 21615 | 0.1782 | 0.9168 | 0.9329 | 0.9248 | 0.9843 |
98
+ | 0.01 | 5.3333 | 23056 | 0.1892 | 0.9173 | 0.9366 | 0.9269 | 0.9843 |
99
+ | 0.0083 | 5.6667 | 24497 | 0.1800 | 0.9251 | 0.9343 | 0.9297 | 0.9845 |
100
+ | 0.0079 | 6.0 | 25938 | 0.1868 | 0.9237 | 0.9352 | 0.9294 | 0.9851 |
101
+ | 0.0059 | 6.3333 | 27379 | 0.2073 | 0.9178 | 0.9350 | 0.9263 | 0.9842 |
102
+ | 0.0068 | 6.6667 | 28820 | 0.2061 | 0.9195 | 0.9379 | 0.9286 | 0.9843 |
103
+ | 0.0062 | 7.0 | 30261 | 0.2011 | 0.9215 | 0.9377 | 0.9295 | 0.9846 |
104
+ | 0.0037 | 7.3333 | 31702 | 0.2100 | 0.9209 | 0.9373 | 0.9290 | 0.9846 |
105
+ | 0.0043 | 7.6667 | 33143 | 0.2145 | 0.9202 | 0.9389 | 0.9295 | 0.9847 |
106
+ | 0.0039 | 8.0 | 34584 | 0.2070 | 0.9256 | 0.9377 | 0.9316 | 0.9852 |
107
+ | 0.0024 | 8.3333 | 36025 | 0.2138 | 0.9218 | 0.9394 | 0.9306 | 0.9851 |
108
+ | 0.0034 | 8.6667 | 37466 | 0.2159 | 0.9229 | 0.9394 | 0.9311 | 0.9849 |
109
+ | 0.003 | 9.0 | 38907 | 0.2156 | 0.9244 | 0.9377 | 0.9310 | 0.9846 |
110
+ | 0.002 | 9.3333 | 40348 | 0.2201 | 0.9252 | 0.9402 | 0.9326 | 0.9849 |
111
+ | 0.0015 | 9.6667 | 41789 | 0.2217 | 0.9245 | 0.9393 | 0.9318 | 0.9850 |
112
+ | 0.0028 | 10.0 | 43230 | 0.2205 | 0.9248 | 0.9402 | 0.9324 | 0.9851 |
113
+
114
+
115
+ ### Framework versions
116
+
117
+ - Transformers 4.41.1
118
+ - Pytorch 2.3.0+cu121
119
+ - Datasets 2.19.1
120
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "xlm-roberta-large",
3
+ "architectures": [
4
+ "XLMRobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 1024,
13
+ "id2label": {
14
+ "0": "B-LOC",
15
+ "1": "B-MISC",
16
+ "2": "B-ORG",
17
+ "3": "B-PER",
18
+ "4": "I-LOC",
19
+ "5": "I-MISC",
20
+ "6": "I-ORG",
21
+ "7": "I-PER",
22
+ "8": "O"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 4096,
26
+ "label2id": {
27
+ "B-LOC": 0,
28
+ "B-MISC": 1,
29
+ "B-ORG": 2,
30
+ "B-PER": 3,
31
+ "I-LOC": 4,
32
+ "I-MISC": 5,
33
+ "I-ORG": 6,
34
+ "I-PER": 7,
35
+ "O": 8
36
+ },
37
+ "layer_norm_eps": 1e-05,
38
+ "max_position_embeddings": 514,
39
+ "model_type": "xlm-roberta",
40
+ "num_attention_heads": 16,
41
+ "num_hidden_layers": 24,
42
+ "output_past": true,
43
+ "pad_token_id": 1,
44
+ "position_embedding_type": "absolute",
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.41.1",
47
+ "type_vocab_size": 1,
48
+ "use_cache": true,
49
+ "vocab_size": 250002
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8de63b42dfd0359712224b59db7100314d5f24eab570b1dac9c77a5a3647a691
3
+ size 2235448756
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
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": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a56def25aa40facc030ea8b0b87f3688e4b3c39eb8b45d5702b3a1300fe2a20
3
+ size 17082734
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
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": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "XLMRobertaTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae2299bba8221340343166c40a08bcc08943721a8abc39c8323371520e114d9e
3
+ size 5112