End of training
Browse files- .gitattributes +1 -0
- README.md +120 -0
- config.json +50 -0
- model.safetensors +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +3 -0
- tokenizer_config.json +54 -0
- training_args.bin +3 -0
.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: encoder
|
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.922421290659245
|
29 |
+
- name: Recall
|
30 |
+
type: recall
|
31 |
+
value: 0.9389164305949008
|
32 |
+
- name: F1
|
33 |
+
type: f1
|
34 |
+
value: 0.9305957708168815
|
35 |
+
- name: Accuracy
|
36 |
+
type: accuracy
|
37 |
+
value: 0.9842790998169484
|
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 |
+
# encoder
|
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.2344
|
48 |
+
- Precision: 0.9224
|
49 |
+
- Recall: 0.9389
|
50 |
+
- F1: 0.9306
|
51 |
+
- Accuracy: 0.9843
|
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.657 | 0.3333 | 1441 | 0.1806 | 0.8261 | 0.8383 | 0.8322 | 0.9700 |
|
84 |
+
| 0.0884 | 0.6667 | 2882 | 0.1383 | 0.8822 | 0.8913 | 0.8867 | 0.9783 |
|
85 |
+
| 0.0637 | 1.0 | 4323 | 0.1343 | 0.9032 | 0.9132 | 0.9082 | 0.9811 |
|
86 |
+
| 0.0427 | 1.3333 | 5764 | 0.1527 | 0.9014 | 0.9210 | 0.9111 | 0.9817 |
|
87 |
+
| 0.0412 | 1.6667 | 7205 | 0.1450 | 0.9109 | 0.9301 | 0.9204 | 0.9838 |
|
88 |
+
| 0.0391 | 2.0 | 8646 | 0.1459 | 0.9145 | 0.9221 | 0.9183 | 0.9832 |
|
89 |
+
| 0.0235 | 2.3333 | 10087 | 0.1848 | 0.9041 | 0.9313 | 0.9175 | 0.9821 |
|
90 |
+
| 0.0228 | 2.6667 | 11528 | 0.1539 | 0.9188 | 0.9375 | 0.9281 | 0.9846 |
|
91 |
+
| 0.0283 | 3.0 | 12969 | 0.1513 | 0.9137 | 0.9295 | 0.9215 | 0.9833 |
|
92 |
+
| 0.0176 | 3.3333 | 14410 | 0.1748 | 0.9232 | 0.9347 | 0.9289 | 0.9842 |
|
93 |
+
| 0.0177 | 3.6667 | 15851 | 0.1706 | 0.9234 | 0.9331 | 0.9282 | 0.9848 |
|
94 |
+
| 0.0191 | 4.0 | 17292 | 0.1784 | 0.9095 | 0.9309 | 0.9201 | 0.9829 |
|
95 |
+
| 0.0131 | 4.3333 | 18733 | 0.1862 | 0.9130 | 0.9361 | 0.9244 | 0.9833 |
|
96 |
+
| 0.0138 | 4.6667 | 20174 | 0.1883 | 0.9133 | 0.9322 | 0.9226 | 0.9827 |
|
97 |
+
| 0.0128 | 5.0 | 21615 | 0.1986 | 0.9104 | 0.9304 | 0.9203 | 0.9820 |
|
98 |
+
| 0.0112 | 5.3333 | 23056 | 0.2002 | 0.9172 | 0.9356 | 0.9263 | 0.9833 |
|
99 |
+
| 0.0097 | 5.6667 | 24497 | 0.1784 | 0.9257 | 0.9394 | 0.9325 | 0.9846 |
|
100 |
+
| 0.0068 | 6.0 | 25938 | 0.1929 | 0.9210 | 0.9333 | 0.9271 | 0.9838 |
|
101 |
+
| 0.0068 | 6.3333 | 27379 | 0.2086 | 0.9212 | 0.9382 | 0.9296 | 0.9840 |
|
102 |
+
| 0.0057 | 6.6667 | 28820 | 0.2035 | 0.9240 | 0.9368 | 0.9304 | 0.9844 |
|
103 |
+
| 0.006 | 7.0 | 30261 | 0.2098 | 0.9198 | 0.9379 | 0.9287 | 0.9841 |
|
104 |
+
| 0.0042 | 7.3333 | 31702 | 0.2236 | 0.9182 | 0.9327 | 0.9254 | 0.9835 |
|
105 |
+
| 0.0054 | 7.6667 | 33143 | 0.2267 | 0.9196 | 0.9361 | 0.9278 | 0.9833 |
|
106 |
+
| 0.0029 | 8.0 | 34584 | 0.2162 | 0.9257 | 0.9375 | 0.9316 | 0.9846 |
|
107 |
+
| 0.0022 | 8.3333 | 36025 | 0.2120 | 0.9241 | 0.9403 | 0.9322 | 0.9849 |
|
108 |
+
| 0.0045 | 8.6667 | 37466 | 0.2185 | 0.9247 | 0.9393 | 0.9319 | 0.9846 |
|
109 |
+
| 0.0029 | 9.0 | 38907 | 0.2182 | 0.9247 | 0.9387 | 0.9316 | 0.9846 |
|
110 |
+
| 0.0021 | 9.3333 | 40348 | 0.2316 | 0.9231 | 0.9394 | 0.9312 | 0.9842 |
|
111 |
+
| 0.002 | 9.6667 | 41789 | 0.2358 | 0.9226 | 0.9387 | 0.9306 | 0.9842 |
|
112 |
+
| 0.0019 | 10.0 | 43230 | 0.2344 | 0.9224 | 0.9389 | 0.9306 | 0.9843 |
|
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:092cd77e2929ec9764f95ae12b092504006f6e5765cac0cf633a3b5b4af3b17a
|
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:8373f9cd3d27591e1924426bcc1c8799bc5a9affc4fc857982c5d66668dd1f41
|
3 |
+
size 17082832
|
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:d6581b5bc4fcb15a5614c632eca21ae3b29ac1dd547ffb0b6dc43a0b0c2b6f64
|
3 |
+
size 5176
|