pabRomero commited on
Commit
48a9b94
·
verified ·
1 Parent(s): 8b43839

Training in progress, epoch 0

Browse files
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google-bert/bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: ClinicalBERT-full-finetuned-ner-pablo
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # ClinicalBERT-full-finetuned-ner-pablo
20
+
21
+ This model is a fine-tuned version of [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1106
24
+ - Precision: 0.8053
25
+ - Recall: 0.7889
26
+ - F1: 0.7970
27
+ - Accuracy: 0.9702
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 0.0002
47
+ - train_batch_size: 4
48
+ - eval_batch_size: 4
49
+ - seed: 42
50
+ - gradient_accumulation_steps: 4
51
+ - total_train_batch_size: 16
52
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
53
+ - lr_scheduler_type: linear
54
+ - lr_scheduler_warmup_ratio: 0.05
55
+ - num_epochs: 3
56
+ - mixed_precision_training: Native AMP
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
61
+ |:-------------:|:------:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
62
+ | 0.1409 | 0.9998 | 2608 | 0.1348 | 0.7629 | 0.7266 | 0.7443 | 0.9643 |
63
+ | 0.095 | 2.0 | 5217 | 0.1152 | 0.7834 | 0.7656 | 0.7744 | 0.9678 |
64
+ | 0.0639 | 2.9994 | 7824 | 0.1106 | 0.8053 | 0.7889 | 0.7970 | 0.9702 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.44.0
70
+ - Pytorch 2.4.0+cu124
71
+ - Datasets 2.21.0
72
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "medicalai/ClinicalBERT",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForTokenClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-Drug",
14
+ "2": "I-Drug",
15
+ "3": "B-Reason",
16
+ "4": "I-Reason",
17
+ "5": "B-Route",
18
+ "6": "I-Route",
19
+ "7": "B-Strength",
20
+ "8": "I-Strength",
21
+ "9": "B-Form",
22
+ "10": "I-Form",
23
+ "11": "B-Dosage",
24
+ "12": "I-Dosage",
25
+ "13": "B-Frequency",
26
+ "14": "I-Frequency",
27
+ "15": "B-Duration",
28
+ "16": "I-Duration",
29
+ "17": "B-ADE",
30
+ "18": "I-ADE"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "label2id": {
34
+ "B-ADE": 17,
35
+ "B-Dosage": 11,
36
+ "B-Drug": 1,
37
+ "B-Duration": 15,
38
+ "B-Form": 9,
39
+ "B-Frequency": 13,
40
+ "B-Reason": 3,
41
+ "B-Route": 5,
42
+ "B-Strength": 7,
43
+ "I-ADE": 18,
44
+ "I-Dosage": 12,
45
+ "I-Drug": 2,
46
+ "I-Duration": 16,
47
+ "I-Form": 10,
48
+ "I-Frequency": 14,
49
+ "I-Reason": 4,
50
+ "I-Route": 6,
51
+ "I-Strength": 8,
52
+ "O": 0
53
+ },
54
+ "max_position_embeddings": 512,
55
+ "model_type": "distilbert",
56
+ "n_heads": 12,
57
+ "n_layers": 6,
58
+ "output_past": true,
59
+ "pad_token_id": 0,
60
+ "qa_dropout": 0.1,
61
+ "seq_classif_dropout": 0.2,
62
+ "sinusoidal_pos_embds": false,
63
+ "tie_weights_": true,
64
+ "torch_dtype": "float32",
65
+ "transformers_version": "4.44.0",
66
+ "vocab_size": 119547
67
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7ca82e191ba1e51a99a912edd0f8eb4aa81663a1123b3017feb82efdd899ac5
3
+ size 539007116
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "full_tokenizer_file": null,
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "DistilBertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05510e024316963c95fdcc30486907efeeba7ee820ab258c291b2c5a05a51db6
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff