VampeeHuntee commited on
Commit
96086d4
1 Parent(s): f066be0

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,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - vi
4
+ license: mit
5
+ base_model: FacebookAI/xlm-roberta-base
6
+ tags:
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: xlm-roberta-base_covid_ner_full
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-base_covid_ner_full
17
+
18
+ This model is a fine-tuned version of [FacebookAI/xlm-roberta-base](https://huggingface.co/FacebookAI/xlm-roberta-base) on the covid19_ner dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0873
21
+ - Patient Id: 0.9883
22
+ - Name: 0.9446
23
+ - Gender: 0.9785
24
+ - Age: 0.9765
25
+ - Job: 0.7063
26
+ - Location: 0.9538
27
+ - Organization: 0.8807
28
+ - Date: 0.9851
29
+ - Symptom And Disease: 0.8886
30
+ - Transportation: 1.0
31
+ - F1 Macro: 0.9302
32
+ - F1 Micro: 0.9499
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.2425 | 1.0 | 629 | 0.0989 | 0.9661 | 0.8889 | 0.8030 | 0.9068 | 0.3358 | 0.9152 | 0.8045 | 0.9843 | 0.8291 | 0.9222 | 0.8356 | 0.9001 |
64
+ | 0.0596 | 2.0 | 1258 | 0.0885 | 0.9807 | 0.9446 | 0.9283 | 0.9620 | 0.4786 | 0.9462 | 0.8665 | 0.9810 | 0.8690 | 0.9885 | 0.8945 | 0.9367 |
65
+ | 0.0376 | 3.0 | 1887 | 0.0899 | 0.9828 | 0.9284 | 0.9483 | 0.9765 | 0.6406 | 0.9458 | 0.8720 | 0.9865 | 0.8783 | 1.0 | 0.9159 | 0.9423 |
66
+ | 0.0257 | 4.0 | 2516 | 0.0919 | 0.9875 | 0.9362 | 0.9766 | 0.9805 | 0.6818 | 0.9505 | 0.8827 | 0.9869 | 0.8871 | 1.0 | 0.9270 | 0.9484 |
67
+ | 0.0172 | 5.0 | 3145 | 0.0873 | 0.9883 | 0.9446 | 0.9785 | 0.9765 | 0.7063 | 0.9538 | 0.8807 | 0.9851 | 0.8886 | 1.0 | 0.9302 | 0.9499 |
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-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": "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": 3072,
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": 12,
65
+ "num_hidden_layers": 12,
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:c299f0e6dd59897d8012cb58fd65a8bf5ff68760752073fec2e64ed15c170305
3
+ size 1109900868
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:d9bc676add2b57c86b24e96d5f68c2bb3929794adc98895d0da766829f3e3f5c
3
+ size 5240