VampeeHuntee
commited on
Commit
•
c0a5f9e
1
Parent(s):
fb41d95
End of training
Browse files- .gitattributes +1 -0
- README.md +75 -0
- config.json +74 -0
- model.safetensors +3 -0
- sentencepiece.bpe.model +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,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- vi
|
4 |
+
license: mit
|
5 |
+
base_model: FacebookAI/xlm-roberta-large
|
6 |
+
tags:
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: xlm-roberta-large_baseline_syllables
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# xlm-roberta-large_baseline_syllables
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [FacebookAI/xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large) on the covid19_ner dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.0838
|
21 |
+
- Patient Id: 0.9883
|
22 |
+
- Name: 0.9409
|
23 |
+
- Gender: 0.9712
|
24 |
+
- Age: 0.9767
|
25 |
+
- Job: 0.8506
|
26 |
+
- Location: 0.9670
|
27 |
+
- Organization: 0.9134
|
28 |
+
- Date: 0.9860
|
29 |
+
- Symptom And Disease: 0.8820
|
30 |
+
- Transportation: 0.9773
|
31 |
+
- F1 Macro: 0.9453
|
32 |
+
- F1 Micro: 0.9587
|
33 |
+
|
34 |
+
## Model description
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Intended uses & limitations
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training and evaluation data
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training procedure
|
47 |
+
|
48 |
+
### Training hyperparameters
|
49 |
+
|
50 |
+
The following hyperparameters were used during training:
|
51 |
+
- learning_rate: 2e-05
|
52 |
+
- train_batch_size: 8
|
53 |
+
- eval_batch_size: 8
|
54 |
+
- seed: 42
|
55 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
56 |
+
- lr_scheduler_type: linear
|
57 |
+
- num_epochs: 5
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| Training Loss | Epoch | Step | Validation Loss | Patient Id | Name | Gender | Age | Job | Location | Organization | Date | Symptom And Disease | Transportation | F1 Macro | F1 Micro |
|
62 |
+
|:-------------:|:-----:|:----:|:---------------:|:----------:|:------:|:------:|:------:|:------:|:--------:|:------------:|:------:|:-------------------:|:--------------:|:--------:|:--------:|
|
63 |
+
| 0.1707 | 1.0 | 629 | 0.1042 | 0.9528 | 0.9227 | 0.8406 | 0.9523 | 0.5899 | 0.9308 | 0.8045 | 0.9874 | 0.8248 | 0.96 | 0.8766 | 0.9140 |
|
64 |
+
| 0.0475 | 2.0 | 1258 | 0.0811 | 0.9841 | 0.9372 | 0.9591 | 0.9876 | 0.6849 | 0.9350 | 0.8817 | 0.9847 | 0.8584 | 0.9831 | 0.9196 | 0.9390 |
|
65 |
+
| 0.0312 | 3.0 | 1887 | 0.0744 | 0.9856 | 0.9297 | 0.9691 | 0.9875 | 0.7554 | 0.9578 | 0.8826 | 0.9869 | 0.8648 | 0.9659 | 0.9285 | 0.9498 |
|
66 |
+
| 0.0196 | 4.0 | 2516 | 0.0808 | 0.9883 | 0.9465 | 0.9644 | 0.9835 | 0.8346 | 0.9635 | 0.9136 | 0.9856 | 0.8730 | 0.9886 | 0.9442 | 0.9565 |
|
67 |
+
| 0.0119 | 5.0 | 3145 | 0.0838 | 0.9883 | 0.9409 | 0.9712 | 0.9767 | 0.8506 | 0.9670 | 0.9134 | 0.9860 | 0.8820 | 0.9773 | 0.9453 | 0.9587 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.41.2
|
73 |
+
- Pytorch 2.1.2
|
74 |
+
- Datasets 2.19.2
|
75 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "FacebookAI/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": "O",
|
15 |
+
"1": "B-PATIENT_ID",
|
16 |
+
"2": "I-PATIENT_ID",
|
17 |
+
"3": "B-NAME",
|
18 |
+
"4": "I-NAME",
|
19 |
+
"5": "B-GENDER",
|
20 |
+
"6": "I-GENDER",
|
21 |
+
"7": "B-AGE",
|
22 |
+
"8": "I-AGE",
|
23 |
+
"9": "B-JOB",
|
24 |
+
"10": "I-JOB",
|
25 |
+
"11": "B-LOCATION",
|
26 |
+
"12": "I-LOCATION",
|
27 |
+
"13": "B-ORGANIZATION",
|
28 |
+
"14": "I-ORGANIZATION",
|
29 |
+
"15": "B-DATE",
|
30 |
+
"16": "I-DATE",
|
31 |
+
"17": "B-SYMPTOM_AND_DISEASE",
|
32 |
+
"18": "I-SYMPTOM_AND_DISEASE",
|
33 |
+
"19": "B-TRANSPORTATION",
|
34 |
+
"20": "I-TRANSPORTATION"
|
35 |
+
},
|
36 |
+
"initializer_range": 0.02,
|
37 |
+
"intermediate_size": 4096,
|
38 |
+
"label2id": {
|
39 |
+
"B-AGE": 7,
|
40 |
+
"B-DATE": 15,
|
41 |
+
"B-GENDER": 5,
|
42 |
+
"B-JOB": 9,
|
43 |
+
"B-LOCATION": 11,
|
44 |
+
"B-NAME": 3,
|
45 |
+
"B-ORGANIZATION": 13,
|
46 |
+
"B-PATIENT_ID": 1,
|
47 |
+
"B-SYMPTOM_AND_DISEASE": 17,
|
48 |
+
"B-TRANSPORTATION": 19,
|
49 |
+
"I-AGE": 8,
|
50 |
+
"I-DATE": 16,
|
51 |
+
"I-GENDER": 6,
|
52 |
+
"I-JOB": 10,
|
53 |
+
"I-LOCATION": 12,
|
54 |
+
"I-NAME": 4,
|
55 |
+
"I-ORGANIZATION": 14,
|
56 |
+
"I-PATIENT_ID": 2,
|
57 |
+
"I-SYMPTOM_AND_DISEASE": 18,
|
58 |
+
"I-TRANSPORTATION": 20,
|
59 |
+
"O": 0
|
60 |
+
},
|
61 |
+
"layer_norm_eps": 1e-05,
|
62 |
+
"max_position_embeddings": 514,
|
63 |
+
"model_type": "xlm-roberta",
|
64 |
+
"num_attention_heads": 16,
|
65 |
+
"num_hidden_layers": 24,
|
66 |
+
"output_past": true,
|
67 |
+
"pad_token_id": 1,
|
68 |
+
"position_embedding_type": "absolute",
|
69 |
+
"torch_dtype": "float32",
|
70 |
+
"transformers_version": "4.41.2",
|
71 |
+
"type_vocab_size": 1,
|
72 |
+
"use_cache": true,
|
73 |
+
"vocab_size": 250002
|
74 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dba8e6ad73017d05840e5a753ade6a54d616597886c60f499257e81fffc0ebfc
|
3 |
+
size 2235497956
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
3 |
+
size 5069051
|
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:d8b9c9a925ead00bb17d0c6469792b89e3eb4e638eb88df9d42e67e7c1ad55b1
|
3 |
+
size 5240
|