cristianmanosalva commited on
Commit
b26e4ac
·
verified ·
1 Parent(s): 1fa3bf2

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,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: raulgdp/xml-roberta-large-finetuned-ner
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - biobert_json
8
+ metrics:
9
+ - precision
10
+ - recall
11
+ - f1
12
+ - accuracy
13
+ model-index:
14
+ - name: NER-finetuning-XMLR-CM-V1
15
+ results:
16
+ - task:
17
+ name: Token Classification
18
+ type: token-classification
19
+ dataset:
20
+ name: biobert_json
21
+ type: biobert_json
22
+ config: Biobert_json
23
+ split: validation
24
+ args: Biobert_json
25
+ metrics:
26
+ - name: Precision
27
+ type: precision
28
+ value: 0.9336523819882532
29
+ - name: Recall
30
+ type: recall
31
+ value: 0.9595349877040018
32
+ - name: F1
33
+ type: f1
34
+ value: 0.9464167585446528
35
+ - name: Accuracy
36
+ type: accuracy
37
+ value: 0.9819591471596839
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
+ # NER-finetuning-XMLR-CM-V1
44
+
45
+ This model is a fine-tuned version of [raulgdp/xml-roberta-large-finetuned-ner](https://huggingface.co/raulgdp/xml-roberta-large-finetuned-ner) on the biobert_json dataset.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.0849
48
+ - Precision: 0.9337
49
+ - Recall: 0.9595
50
+ - F1: 0.9464
51
+ - Accuracy: 0.9820
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: 2e-05
71
+ - train_batch_size: 16
72
+ - eval_batch_size: 16
73
+ - seed: 42
74
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
75
+ - lr_scheduler_type: linear
76
+ - num_epochs: 5
77
+
78
+ ### Training results
79
+
80
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
81
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
82
+ | 0.2697 | 1.0 | 612 | 0.0995 | 0.9022 | 0.9392 | 0.9203 | 0.9726 |
83
+ | 0.0954 | 2.0 | 1224 | 0.0909 | 0.9171 | 0.9586 | 0.9374 | 0.9778 |
84
+ | 0.0661 | 3.0 | 1836 | 0.0789 | 0.9337 | 0.9581 | 0.9457 | 0.9816 |
85
+ | 0.0533 | 4.0 | 2448 | 0.0853 | 0.9317 | 0.9594 | 0.9454 | 0.9811 |
86
+ | 0.035 | 5.0 | 3060 | 0.0849 | 0.9337 | 0.9595 | 0.9464 | 0.9820 |
87
+
88
+
89
+ ### Framework versions
90
+
91
+ - Transformers 4.44.2
92
+ - Pytorch 2.4.1+cu121
93
+ - Datasets 3.1.0
94
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "raulgdp/xml-roberta-large-finetuned-ner",
3
+ "_num_labels": 8,
4
+ "architectures": [
5
+ "XLMRobertaForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "B_CANCER_CONCEPT",
16
+ "1": "B_CHEMOTHERAPY",
17
+ "2": "B_DATE",
18
+ "3": "B_DRUG",
19
+ "4": "B_FAMILY",
20
+ "5": "B_FREQ",
21
+ "6": "B_IMPLICIT_DATE",
22
+ "7": "B_INTERVAL",
23
+ "8": "B_METRIC",
24
+ "9": "B_OCURRENCE_EVENT",
25
+ "10": "B_QUANTITY",
26
+ "11": "B_RADIOTHERAPY",
27
+ "12": "B_SMOKER_STATUS",
28
+ "13": "B_STAGE",
29
+ "14": "B_SURGERY",
30
+ "15": "B_TNM",
31
+ "16": "I_CANCER_CONCEPT",
32
+ "17": "I_DATE",
33
+ "18": "I_DRUG",
34
+ "19": "I_FAMILY",
35
+ "20": "I_FREQ",
36
+ "21": "I_IMPLICIT_DATE",
37
+ "22": "I_INTERVAL",
38
+ "23": "I_METRIC",
39
+ "24": "I_OCURRENCE_EVENT",
40
+ "25": "I_SMOKER_STATUS",
41
+ "26": "I_STAGE",
42
+ "27": "I_SURGERY",
43
+ "28": "I_TNM",
44
+ "29": "O"
45
+ },
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 4096,
48
+ "label2id": {
49
+ "B_CANCER_CONCEPT": 0,
50
+ "B_CHEMOTHERAPY": 1,
51
+ "B_DATE": 2,
52
+ "B_DRUG": 3,
53
+ "B_FAMILY": 4,
54
+ "B_FREQ": 5,
55
+ "B_IMPLICIT_DATE": 6,
56
+ "B_INTERVAL": 7,
57
+ "B_METRIC": 8,
58
+ "B_OCURRENCE_EVENT": 9,
59
+ "B_QUANTITY": 10,
60
+ "B_RADIOTHERAPY": 11,
61
+ "B_SMOKER_STATUS": 12,
62
+ "B_STAGE": 13,
63
+ "B_SURGERY": 14,
64
+ "B_TNM": 15,
65
+ "I_CANCER_CONCEPT": 16,
66
+ "I_DATE": 17,
67
+ "I_DRUG": 18,
68
+ "I_FAMILY": 19,
69
+ "I_FREQ": 20,
70
+ "I_IMPLICIT_DATE": 21,
71
+ "I_INTERVAL": 22,
72
+ "I_METRIC": 23,
73
+ "I_OCURRENCE_EVENT": 24,
74
+ "I_SMOKER_STATUS": 25,
75
+ "I_STAGE": 26,
76
+ "I_SURGERY": 27,
77
+ "I_TNM": 28,
78
+ "O": 29
79
+ },
80
+ "layer_norm_eps": 1e-05,
81
+ "max_position_embeddings": 514,
82
+ "model_type": "xlm-roberta",
83
+ "num_attention_heads": 16,
84
+ "num_hidden_layers": 24,
85
+ "output_past": true,
86
+ "pad_token_id": 1,
87
+ "position_embedding_type": "absolute",
88
+ "torch_dtype": "float32",
89
+ "transformers_version": "4.44.2",
90
+ "type_vocab_size": 1,
91
+ "use_cache": true,
92
+ "vocab_size": 250002
93
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8f37a437027dc30e8c7f01c2f5203bfa33f5ff05dc7d053b82df03547308444
3
+ size 2235534864
runs/Nov20_14-00-40_972e66497d93/events.out.tfevents.1732111411.972e66497d93.376.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a2e2db2fa1cc87fe4cd8048bcf1450628670a892eb22d08f4241e3757acb790
3
+ size 10418
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,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
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,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "250001": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "mask_token": "<mask>",
50
+ "max_length": 512,
51
+ "model_max_length": 512,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "stride": 0,
55
+ "tokenizer_class": "XLMRobertaTokenizer",
56
+ "truncation_side": "right",
57
+ "truncation_strategy": "longest_first",
58
+ "unk_token": "<unk>"
59
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2874d5c4d02a70ba10048279bd78d0655c52c9939928b671957b0ac7422f703
3
+ size 5176