End of training
Browse files- .gitattributes +1 -0
- README.md +120 -0
- config.json +38 -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-base
|
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-Base-Conll2003-English-NER-Finetune-BinaryClass-WeightedLoss
|
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.952513966480447
|
29 |
+
- name: Recall
|
30 |
+
type: recall
|
31 |
+
value: 0.9660056657223796
|
32 |
+
- name: F1
|
33 |
+
type: f1
|
34 |
+
value: 0.9592123769338959
|
35 |
+
- name: Accuracy
|
36 |
+
type: accuracy
|
37 |
+
value: 0.9906536018089803
|
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-Base-Conll2003-English-NER-Finetune-BinaryClass-WeightedLoss
|
44 |
+
|
45 |
+
This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the conll2003 dataset.
|
46 |
+
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 0.1110
|
48 |
+
- Precision: 0.9525
|
49 |
+
- Recall: 0.9660
|
50 |
+
- F1: 0.9592
|
51 |
+
- Accuracy: 0.9907
|
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.3351 | 0.3333 | 1441 | 0.1107 | 0.9131 | 0.9377 | 0.9252 | 0.9814 |
|
84 |
+
| 0.0357 | 0.6667 | 2882 | 0.0501 | 0.9500 | 0.9446 | 0.9473 | 0.9882 |
|
85 |
+
| 0.0239 | 1.0 | 4323 | 0.0662 | 0.9481 | 0.9479 | 0.9480 | 0.9883 |
|
86 |
+
| 0.0178 | 1.3333 | 5764 | 0.0667 | 0.9489 | 0.9603 | 0.9546 | 0.9899 |
|
87 |
+
| 0.0188 | 1.6667 | 7205 | 0.0712 | 0.9488 | 0.9575 | 0.9531 | 0.9895 |
|
88 |
+
| 0.018 | 2.0 | 8646 | 0.0605 | 0.9524 | 0.9559 | 0.9541 | 0.9902 |
|
89 |
+
| 0.0119 | 2.3333 | 10087 | 0.0840 | 0.9487 | 0.9662 | 0.9574 | 0.9901 |
|
90 |
+
| 0.0124 | 2.6667 | 11528 | 0.0758 | 0.9486 | 0.9641 | 0.9563 | 0.9901 |
|
91 |
+
| 0.0112 | 3.0 | 12969 | 0.0664 | 0.9559 | 0.9628 | 0.9593 | 0.9910 |
|
92 |
+
| 0.0082 | 3.3333 | 14410 | 0.0939 | 0.9483 | 0.9603 | 0.9543 | 0.9899 |
|
93 |
+
| 0.0083 | 3.6667 | 15851 | 0.0681 | 0.9555 | 0.9591 | 0.9573 | 0.9907 |
|
94 |
+
| 0.0077 | 4.0 | 17292 | 0.0686 | 0.9555 | 0.9572 | 0.9563 | 0.9902 |
|
95 |
+
| 0.0055 | 4.3333 | 18733 | 0.0852 | 0.9498 | 0.9642 | 0.9569 | 0.9905 |
|
96 |
+
| 0.005 | 4.6667 | 20174 | 0.0795 | 0.9530 | 0.9653 | 0.9591 | 0.9907 |
|
97 |
+
| 0.0049 | 5.0 | 21615 | 0.0871 | 0.9526 | 0.9614 | 0.9570 | 0.9900 |
|
98 |
+
| 0.0042 | 5.3333 | 23056 | 0.1054 | 0.9482 | 0.9658 | 0.9569 | 0.9898 |
|
99 |
+
| 0.0045 | 5.6667 | 24497 | 0.0764 | 0.9559 | 0.9598 | 0.9579 | 0.9905 |
|
100 |
+
| 0.0043 | 6.0 | 25938 | 0.0996 | 0.9510 | 0.9662 | 0.9585 | 0.9905 |
|
101 |
+
| 0.0037 | 6.3333 | 27379 | 0.0909 | 0.9539 | 0.9641 | 0.9590 | 0.9908 |
|
102 |
+
| 0.003 | 6.6667 | 28820 | 0.1010 | 0.9519 | 0.9639 | 0.9579 | 0.9905 |
|
103 |
+
| 0.003 | 7.0 | 30261 | 0.0944 | 0.9510 | 0.9632 | 0.9571 | 0.9905 |
|
104 |
+
| 0.0037 | 7.3333 | 31702 | 0.1041 | 0.9514 | 0.9642 | 0.9578 | 0.9903 |
|
105 |
+
| 0.0021 | 7.6667 | 33143 | 0.1048 | 0.9520 | 0.9658 | 0.9589 | 0.9907 |
|
106 |
+
| 0.0029 | 8.0 | 34584 | 0.1001 | 0.9526 | 0.9651 | 0.9588 | 0.9907 |
|
107 |
+
| 0.0019 | 8.3333 | 36025 | 0.1098 | 0.9525 | 0.9653 | 0.9588 | 0.9906 |
|
108 |
+
| 0.0019 | 8.6667 | 37466 | 0.1027 | 0.9538 | 0.9651 | 0.9594 | 0.9906 |
|
109 |
+
| 0.0019 | 9.0 | 38907 | 0.0990 | 0.9543 | 0.9653 | 0.9598 | 0.9908 |
|
110 |
+
| 0.0018 | 9.3333 | 40348 | 0.1086 | 0.9537 | 0.9655 | 0.9595 | 0.9907 |
|
111 |
+
| 0.0014 | 9.6667 | 41789 | 0.1090 | 0.9533 | 0.9658 | 0.9595 | 0.9907 |
|
112 |
+
| 0.0014 | 10.0 | 43230 | 0.1110 | 0.9525 | 0.9660 | 0.9592 | 0.9907 |
|
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,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "xlm-roberta-base",
|
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": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "B-PER",
|
15 |
+
"1": "I-PER",
|
16 |
+
"2": "O"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"B-PER": 0,
|
22 |
+
"I-PER": 1,
|
23 |
+
"O": 2
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-05,
|
26 |
+
"max_position_embeddings": 514,
|
27 |
+
"model_type": "xlm-roberta",
|
28 |
+
"num_attention_heads": 12,
|
29 |
+
"num_hidden_layers": 12,
|
30 |
+
"output_past": true,
|
31 |
+
"pad_token_id": 1,
|
32 |
+
"position_embedding_type": "absolute",
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.41.1",
|
35 |
+
"type_vocab_size": 1,
|
36 |
+
"use_cache": true,
|
37 |
+
"vocab_size": 250002
|
38 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:28b8463b019d63e9f71a31484ee841c435325cfc0519bd25b7278c45f798cc39
|
3 |
+
size 1109845500
|
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:de2c752d4c1278bc0aeb0a75906f3f8a999d4a12a5943c90d7789590c68c8630
|
3 |
+
size 5176
|