anvorja commited on
Commit
8c730e6
·
verified ·
1 Parent(s): ef3a8a8

End of training

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: cc-by-4.0
4
+ base_model: NazaGara/NER-fine-tuned-BETO
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: biobert-ner-finetuned
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # biobert-ner-finetuned
21
+
22
+ This model is a fine-tuned version of [NazaGara/NER-fine-tuned-BETO](https://huggingface.co/NazaGara/NER-fine-tuned-BETO) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0988
25
+ - Precision: 0.9505
26
+ - Recall: 0.9665
27
+ - F1: 0.9584
28
+ - Accuracy: 0.9778
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 12
49
+ - eval_batch_size: 12
50
+ - seed: 42
51
+ - gradient_accumulation_steps: 3
52
+ - total_train_batch_size: 36
53
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
54
+ - lr_scheduler_type: linear
55
+ - lr_scheduler_warmup_steps: 500
56
+ - num_epochs: 10
57
+ - mixed_precision_training: Native AMP
58
+
59
+ ### Training results
60
+
61
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
62
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
63
+ | 0.3897 | 1.0 | 272 | 0.2170 | 0.8909 | 0.8755 | 0.8831 | 0.9430 |
64
+ | 0.146 | 2.0 | 544 | 0.1118 | 0.9242 | 0.9641 | 0.9438 | 0.9710 |
65
+ | 0.0929 | 3.0 | 816 | 0.1015 | 0.9403 | 0.9648 | 0.9524 | 0.9755 |
66
+ | 0.0794 | 4.0 | 1088 | 0.0988 | 0.9505 | 0.9665 | 0.9584 | 0.9778 |
67
+ | 0.0576 | 5.0 | 1360 | 0.1028 | 0.9502 | 0.9658 | 0.9580 | 0.9772 |
68
+ | 0.0439 | 6.0 | 1632 | 0.1088 | 0.9450 | 0.9640 | 0.9544 | 0.9759 |
69
+ | 0.0343 | 7.0 | 1904 | 0.1063 | 0.9479 | 0.9683 | 0.9580 | 0.9777 |
70
+ | 0.0314 | 8.0 | 2176 | 0.1117 | 0.9481 | 0.9678 | 0.9578 | 0.9777 |
71
+ | 0.0275 | 9.0 | 2448 | 0.1122 | 0.9512 | 0.9655 | 0.9583 | 0.9781 |
72
+ | 0.0218 | 10.0 | 2720 | 0.1155 | 0.9512 | 0.9656 | 0.9583 | 0.9781 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.46.2
78
+ - Pytorch 2.5.1+cu118
79
+ - Datasets 3.1.0
80
+ - Tokenizers 0.20.3
final_model/config.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "NazaGara/NER-fine-tuned-BETO",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "B_CANCER_CONCEPT",
14
+ "1": "B_CHEMOTHERAPY",
15
+ "2": "B_DATE",
16
+ "3": "B_DRUG",
17
+ "4": "B_FAMILY",
18
+ "5": "B_FREQ",
19
+ "6": "B_IMPLICIT_DATE",
20
+ "7": "B_INTERVAL",
21
+ "8": "B_METRIC",
22
+ "9": "B_OCURRENCE_EVENT",
23
+ "10": "B_QUANTITY",
24
+ "11": "B_RADIOTHERAPY",
25
+ "12": "B_SMOKER_STATUS",
26
+ "13": "B_STAGE",
27
+ "14": "B_SURGERY",
28
+ "15": "B_TNM",
29
+ "16": "I_CANCER_CONCEPT",
30
+ "17": "I_DATE",
31
+ "18": "I_DRUG",
32
+ "19": "I_FAMILY",
33
+ "20": "I_FREQ",
34
+ "21": "I_IMPLICIT_DATE",
35
+ "22": "I_INTERVAL",
36
+ "23": "I_METRIC",
37
+ "24": "I_OCURRENCE_EVENT",
38
+ "25": "I_SMOKER_STATUS",
39
+ "26": "I_STAGE",
40
+ "27": "I_SURGERY",
41
+ "28": "I_TNM",
42
+ "29": "O"
43
+ },
44
+ "initializer_range": 0.02,
45
+ "intermediate_size": 3072,
46
+ "label2id": {
47
+ "B_CANCER_CONCEPT": 0,
48
+ "B_CHEMOTHERAPY": 1,
49
+ "B_DATE": 2,
50
+ "B_DRUG": 3,
51
+ "B_FAMILY": 4,
52
+ "B_FREQ": 5,
53
+ "B_IMPLICIT_DATE": 6,
54
+ "B_INTERVAL": 7,
55
+ "B_METRIC": 8,
56
+ "B_OCURRENCE_EVENT": 9,
57
+ "B_QUANTITY": 10,
58
+ "B_RADIOTHERAPY": 11,
59
+ "B_SMOKER_STATUS": 12,
60
+ "B_STAGE": 13,
61
+ "B_SURGERY": 14,
62
+ "B_TNM": 15,
63
+ "I_CANCER_CONCEPT": 16,
64
+ "I_DATE": 17,
65
+ "I_DRUG": 18,
66
+ "I_FAMILY": 19,
67
+ "I_FREQ": 20,
68
+ "I_IMPLICIT_DATE": 21,
69
+ "I_INTERVAL": 22,
70
+ "I_METRIC": 23,
71
+ "I_OCURRENCE_EVENT": 24,
72
+ "I_SMOKER_STATUS": 25,
73
+ "I_STAGE": 26,
74
+ "I_SURGERY": 27,
75
+ "I_TNM": 28,
76
+ "O": 29
77
+ },
78
+ "layer_norm_eps": 1e-12,
79
+ "max_position_embeddings": 512,
80
+ "model_type": "bert",
81
+ "num_attention_heads": 12,
82
+ "num_hidden_layers": 12,
83
+ "output_past": true,
84
+ "pad_token_id": 1,
85
+ "position_embedding_type": "absolute",
86
+ "torch_dtype": "float32",
87
+ "transformers_version": "4.46.2",
88
+ "type_vocab_size": 2,
89
+ "use_cache": true,
90
+ "vocab_size": 31002
91
+ }
final_model/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ecf467f8a01271c59dc0968b6ffee16b6b737225bcab7876b3420cf2a2f80dd
3
+ size 437212710
final_model/special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
final_model/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
final_model/tokenizer_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[MASK]",
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
+ "3": {
21
+ "content": "[UNK]",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "4": {
29
+ "content": "[CLS]",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "5": {
37
+ "content": "[SEP]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "[CLS]",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": false,
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "num_labels": 9,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "strip_accents": false,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "BertTokenizer",
58
+ "unk_token": "[UNK]"
59
+ }
final_model/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:27eccda04461d96279cdb0179a6d8c00c3e988d32526100a0c7d5e31fbcbe43f
3
  size 437156776
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bead9cbc6958861ada97fe22c909489e1c826baaab89e8b80708e758a512c70
3
  size 437156776