htkien95 commited on
Commit
f1412cd
·
verified ·
1 Parent(s): 73b11a7

Training complete

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: d4data/biomedical-ner-all
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: ner-biomedical-maccrobat2018
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # ner-biomedical-maccrobat2018
18
+
19
+ This model is a fine-tuned version of [d4data/biomedical-ner-all](https://huggingface.co/d4data/biomedical-ner-all) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.7250
22
+ - Accuracy: 0.7665
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 0.0001
42
+ - train_batch_size: 16
43
+ - eval_batch_size: 16
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 20
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
+ | 2.6575 | 1.0 | 10 | 1.7587 | 0.2575 |
54
+ | 1.4576 | 2.0 | 20 | 1.1109 | 0.5523 |
55
+ | 0.9363 | 3.0 | 30 | 0.8227 | 0.6823 |
56
+ | 0.6519 | 4.0 | 40 | 0.7157 | 0.7200 |
57
+ | 0.4871 | 5.0 | 50 | 0.6950 | 0.7298 |
58
+ | 0.3808 | 6.0 | 60 | 0.6697 | 0.7455 |
59
+ | 0.3106 | 7.0 | 70 | 0.6761 | 0.7481 |
60
+ | 0.2558 | 8.0 | 80 | 0.6697 | 0.7568 |
61
+ | 0.2151 | 9.0 | 90 | 0.6689 | 0.7546 |
62
+ | 0.1856 | 10.0 | 100 | 0.6743 | 0.7587 |
63
+ | 0.1617 | 11.0 | 110 | 0.7075 | 0.7569 |
64
+ | 0.1426 | 12.0 | 120 | 0.7087 | 0.7561 |
65
+ | 0.1282 | 13.0 | 130 | 0.6996 | 0.7624 |
66
+ | 0.1163 | 14.0 | 140 | 0.7200 | 0.7646 |
67
+ | 0.1068 | 15.0 | 150 | 0.7044 | 0.7673 |
68
+ | 0.0968 | 16.0 | 160 | 0.7150 | 0.7641 |
69
+ | 0.0934 | 17.0 | 170 | 0.7239 | 0.7673 |
70
+ | 0.0871 | 18.0 | 180 | 0.7264 | 0.7652 |
71
+ | 0.085 | 19.0 | 190 | 0.7269 | 0.7655 |
72
+ | 0.083 | 20.0 | 200 | 0.7250 | 0.7665 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.50.3
78
+ - Pytorch 2.6.0+cu124
79
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForTokenClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "hidden_dim": 3072,
10
+ "id2label": {
11
+ "0": "O",
12
+ "1": "B-Age",
13
+ "2": "I-Age",
14
+ "3": "B-Occupation",
15
+ "4": "I-Occupation",
16
+ "5": "B-Clinical_event",
17
+ "6": "B-Diagnostic_procedure",
18
+ "7": "I-Diagnostic_procedure",
19
+ "8": "B-Lab_value",
20
+ "9": "I-Lab_value",
21
+ "10": "B-Nonbiological_location",
22
+ "11": "I-Nonbiological_location",
23
+ "12": "B-History",
24
+ "13": "I-History",
25
+ "14": "B-Date",
26
+ "15": "I-Date",
27
+ "16": "B-Sign_symptom",
28
+ "17": "I-Sign_symptom",
29
+ "18": "B-Detailed_description",
30
+ "19": "I-Detailed_description",
31
+ "20": "B-Duration",
32
+ "21": "I-Duration",
33
+ "22": "B-Biological_structure",
34
+ "23": "B-Disease_disorder",
35
+ "24": "I-Disease_disorder",
36
+ "25": "I-Biological_structure",
37
+ "26": "B-Severity",
38
+ "27": "B-Shape",
39
+ "28": "B-Therapeutic_procedure",
40
+ "29": "I-Therapeutic_procedure",
41
+ "30": "B-Volume",
42
+ "31": "I-Volume",
43
+ "32": "B-Coreference",
44
+ "33": "I-Coreference",
45
+ "34": "I-Shape",
46
+ "35": "B-Medication",
47
+ "36": "I-Clinical_event",
48
+ "37": "B-Outcome",
49
+ "38": "B-Sex",
50
+ "39": "B-Distance",
51
+ "40": "I-Distance",
52
+ "41": "I-Medication",
53
+ "42": "B-Dosage",
54
+ "43": "I-Dosage",
55
+ "44": "B-Administration",
56
+ "45": "I-Administration",
57
+ "46": "I-Outcome",
58
+ "47": "B-Activity",
59
+ "48": "B-Personal_background",
60
+ "49": "B-Color",
61
+ "50": "B-Texture",
62
+ "51": "B-Subject",
63
+ "52": "I-Subject",
64
+ "53": "B-Family_history",
65
+ "54": "I-Family_history",
66
+ "55": "B-Other_entity",
67
+ "56": "I-Color",
68
+ "57": "I-Texture",
69
+ "58": "B-Frequency",
70
+ "59": "I-Frequency",
71
+ "60": "B-Area",
72
+ "61": "I-Area",
73
+ "62": "B-Qualitative_concept",
74
+ "63": "I-Severity",
75
+ "64": "I-Activity",
76
+ "65": "B-Time",
77
+ "66": "I-Time",
78
+ "67": "B-Other_event",
79
+ "68": "I-Other_event",
80
+ "69": "I-Personal_background",
81
+ "70": "B-Quantitative_concept",
82
+ "71": "I-Quantitative_concept",
83
+ "72": "B-Height",
84
+ "73": "I-Height",
85
+ "74": "B-Biological_attribute",
86
+ "75": "I-Biological_attribute",
87
+ "76": "I-Other_entity",
88
+ "77": "I-Qualitative_concept",
89
+ "78": "I-Sex",
90
+ "79": "B-Mass",
91
+ "80": "I-Mass",
92
+ "81": "B-Weight",
93
+ "82": "I-Weight"
94
+ },
95
+ "initializer_range": 0.02,
96
+ "label2id": {
97
+ "B-Activity": 47,
98
+ "B-Administration": 44,
99
+ "B-Age": 1,
100
+ "B-Area": 60,
101
+ "B-Biological_attribute": 74,
102
+ "B-Biological_structure": 22,
103
+ "B-Clinical_event": 5,
104
+ "B-Color": 49,
105
+ "B-Coreference": 32,
106
+ "B-Date": 14,
107
+ "B-Detailed_description": 18,
108
+ "B-Diagnostic_procedure": 6,
109
+ "B-Disease_disorder": 23,
110
+ "B-Distance": 39,
111
+ "B-Dosage": 42,
112
+ "B-Duration": 20,
113
+ "B-Family_history": 53,
114
+ "B-Frequency": 58,
115
+ "B-Height": 72,
116
+ "B-History": 12,
117
+ "B-Lab_value": 8,
118
+ "B-Mass": 79,
119
+ "B-Medication": 35,
120
+ "B-Nonbiological_location": 10,
121
+ "B-Occupation": 3,
122
+ "B-Other_entity": 55,
123
+ "B-Other_event": 67,
124
+ "B-Outcome": 37,
125
+ "B-Personal_background": 48,
126
+ "B-Qualitative_concept": 62,
127
+ "B-Quantitative_concept": 70,
128
+ "B-Severity": 26,
129
+ "B-Sex": 38,
130
+ "B-Shape": 27,
131
+ "B-Sign_symptom": 16,
132
+ "B-Subject": 51,
133
+ "B-Texture": 50,
134
+ "B-Therapeutic_procedure": 28,
135
+ "B-Time": 65,
136
+ "B-Volume": 30,
137
+ "B-Weight": 81,
138
+ "I-Activity": 64,
139
+ "I-Administration": 45,
140
+ "I-Age": 2,
141
+ "I-Area": 61,
142
+ "I-Biological_attribute": 75,
143
+ "I-Biological_structure": 25,
144
+ "I-Clinical_event": 36,
145
+ "I-Color": 56,
146
+ "I-Coreference": 33,
147
+ "I-Date": 15,
148
+ "I-Detailed_description": 19,
149
+ "I-Diagnostic_procedure": 7,
150
+ "I-Disease_disorder": 24,
151
+ "I-Distance": 40,
152
+ "I-Dosage": 43,
153
+ "I-Duration": 21,
154
+ "I-Family_history": 54,
155
+ "I-Frequency": 59,
156
+ "I-Height": 73,
157
+ "I-History": 13,
158
+ "I-Lab_value": 9,
159
+ "I-Mass": 80,
160
+ "I-Medication": 41,
161
+ "I-Nonbiological_location": 11,
162
+ "I-Occupation": 4,
163
+ "I-Other_entity": 76,
164
+ "I-Other_event": 68,
165
+ "I-Outcome": 46,
166
+ "I-Personal_background": 69,
167
+ "I-Qualitative_concept": 77,
168
+ "I-Quantitative_concept": 71,
169
+ "I-Severity": 63,
170
+ "I-Sex": 78,
171
+ "I-Shape": 34,
172
+ "I-Sign_symptom": 17,
173
+ "I-Subject": 52,
174
+ "I-Texture": 57,
175
+ "I-Therapeutic_procedure": 29,
176
+ "I-Time": 66,
177
+ "I-Volume": 31,
178
+ "I-Weight": 82,
179
+ "O": 0
180
+ },
181
+ "max_position_embeddings": 512,
182
+ "model_type": "distilbert",
183
+ "n_heads": 12,
184
+ "n_layers": 6,
185
+ "pad_token_id": 0,
186
+ "qa_dropout": 0.1,
187
+ "seq_classif_dropout": 0.2,
188
+ "sinusoidal_pos_embds": false,
189
+ "tie_weights_": true,
190
+ "torch_dtype": "float32",
191
+ "transformers_version": "4.50.3",
192
+ "vocab_size": 30522
193
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00ce800adb4876604a6f77eb206ae2fdc911002f19e5344a1485dff7dbe1d549
3
+ size 265719180
runs/Apr04_07-28-21_2467974bb524/events.out.tfevents.1743751702.2467974bb524.1268.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:012266444f0e46908abc1a0aac3cc8d954ae80454b1864d33a75ccc63dd54ba3
3
+ size 20148
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
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "cuda": 0,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 512,
51
+ "model_max_length": 512,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "stride": 0,
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "DistilBertTokenizer",
58
+ "truncation_side": "right",
59
+ "truncation_strategy": "longest_first",
60
+ "unk_token": "[UNK]"
61
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f30da536a07b4bbfcda9b2a9829ecd41275202f3f3c511f11fc765eeb2a6d670
3
+ size 5368
vocab.txt ADDED
The diff for this file is too large to render. See raw diff