phuoc2k9 commited on
Commit
8930951
·
verified ·
1 Parent(s): 3268fe2

Training complete

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.6384
22
+ - Accuracy: 0.8007
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.7438 | 1.0 | 10 | 1.8410 | 0.2970 |
54
+ | 1.4729 | 2.0 | 20 | 1.0655 | 0.5852 |
55
+ | 0.9161 | 3.0 | 30 | 0.7775 | 0.7075 |
56
+ | 0.6509 | 4.0 | 40 | 0.6808 | 0.7477 |
57
+ | 0.4923 | 5.0 | 50 | 0.6315 | 0.7603 |
58
+ | 0.3818 | 6.0 | 60 | 0.6120 | 0.7756 |
59
+ | 0.3096 | 7.0 | 70 | 0.6025 | 0.7742 |
60
+ | 0.2546 | 8.0 | 80 | 0.5992 | 0.7861 |
61
+ | 0.2089 | 9.0 | 90 | 0.6075 | 0.7883 |
62
+ | 0.178 | 10.0 | 100 | 0.6149 | 0.7877 |
63
+ | 0.159 | 11.0 | 110 | 0.6219 | 0.8012 |
64
+ | 0.139 | 12.0 | 120 | 0.6282 | 0.7997 |
65
+ | 0.1239 | 13.0 | 130 | 0.6222 | 0.7970 |
66
+ | 0.1115 | 14.0 | 140 | 0.6311 | 0.7915 |
67
+ | 0.1015 | 15.0 | 150 | 0.6336 | 0.7976 |
68
+ | 0.0958 | 16.0 | 160 | 0.6321 | 0.7955 |
69
+ | 0.0898 | 17.0 | 170 | 0.6352 | 0.7990 |
70
+ | 0.0874 | 18.0 | 180 | 0.6464 | 0.7981 |
71
+ | 0.0841 | 19.0 | 190 | 0.6380 | 0.7992 |
72
+ | 0.0819 | 20.0 | 200 | 0.6384 | 0.8007 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.48.2
78
+ - Pytorch 2.5.1+cu124
79
+ - Datasets 3.2.0
80
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "d4data/biomedical-ner-all",
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-Age",
14
+ "2": "I-Age",
15
+ "3": "B-Personal_background",
16
+ "4": "B-Sex",
17
+ "5": "B-History",
18
+ "6": "I-History",
19
+ "7": "B-Sign_symptom",
20
+ "8": "I-Sign_symptom",
21
+ "9": "B-Detailed_description",
22
+ "10": "I-Detailed_description",
23
+ "11": "B-Duration",
24
+ "12": "I-Duration",
25
+ "13": "B-Clinical_event",
26
+ "14": "B-Nonbiological_location",
27
+ "15": "I-Nonbiological_location",
28
+ "16": "B-Biological_structure",
29
+ "17": "B-Activity",
30
+ "18": "I-Activity",
31
+ "19": "B-Diagnostic_procedure",
32
+ "20": "I-Diagnostic_procedure",
33
+ "21": "B-Lab_value",
34
+ "22": "I-Lab_value",
35
+ "23": "B-Outcome",
36
+ "24": "B-Disease_disorder",
37
+ "25": "I-Disease_disorder",
38
+ "26": "I-Biological_structure",
39
+ "27": "B-Severity",
40
+ "28": "I-Severity",
41
+ "29": "B-Texture",
42
+ "30": "I-Texture",
43
+ "31": "B-Therapeutic_procedure",
44
+ "32": "I-Therapeutic_procedure",
45
+ "33": "B-Medication",
46
+ "34": "I-Medication",
47
+ "35": "B-Date",
48
+ "36": "I-Date",
49
+ "37": "B-Frequency",
50
+ "38": "B-Volume",
51
+ "39": "I-Volume",
52
+ "40": "B-Distance",
53
+ "41": "I-Distance",
54
+ "42": "B-Coreference",
55
+ "43": "I-Coreference",
56
+ "44": "I-Clinical_event",
57
+ "45": "B-Subject",
58
+ "46": "I-Subject",
59
+ "47": "B-Family_history",
60
+ "48": "I-Family_history",
61
+ "49": "I-Personal_background",
62
+ "50": "B-Administration",
63
+ "51": "I-Administration",
64
+ "52": "B-Dosage",
65
+ "53": "I-Dosage",
66
+ "54": "B-Other_entity",
67
+ "55": "I-Other_entity",
68
+ "56": "I-Frequency",
69
+ "57": "B-Other_event",
70
+ "58": "I-Other_event",
71
+ "59": "B-Quantitative_concept",
72
+ "60": "B-Occupation",
73
+ "61": "B-Shape",
74
+ "62": "I-Occupation",
75
+ "63": "B-Color",
76
+ "64": "I-Color",
77
+ "65": "B-Area",
78
+ "66": "I-Area",
79
+ "67": "B-Biological_attribute",
80
+ "68": "I-Biological_attribute",
81
+ "69": "I-Outcome",
82
+ "70": "I-Shape",
83
+ "71": "B-Qualitative_concept",
84
+ "72": "B-Time",
85
+ "73": "I-Time",
86
+ "74": "I-Quantitative_concept",
87
+ "75": "I-Qualitative_concept",
88
+ "76": "B-Height",
89
+ "77": "I-Height",
90
+ "78": "B-Weight",
91
+ "79": "I-Weight",
92
+ "80": "I-Sex",
93
+ "81": "B-Mass",
94
+ "82": "I-Mass"
95
+ },
96
+ "initializer_range": 0.02,
97
+ "label2id": {
98
+ "B-Activity": 17,
99
+ "B-Administration": 50,
100
+ "B-Age": 1,
101
+ "B-Area": 65,
102
+ "B-Biological_attribute": 67,
103
+ "B-Biological_structure": 16,
104
+ "B-Clinical_event": 13,
105
+ "B-Color": 63,
106
+ "B-Coreference": 42,
107
+ "B-Date": 35,
108
+ "B-Detailed_description": 9,
109
+ "B-Diagnostic_procedure": 19,
110
+ "B-Disease_disorder": 24,
111
+ "B-Distance": 40,
112
+ "B-Dosage": 52,
113
+ "B-Duration": 11,
114
+ "B-Family_history": 47,
115
+ "B-Frequency": 37,
116
+ "B-Height": 76,
117
+ "B-History": 5,
118
+ "B-Lab_value": 21,
119
+ "B-Mass": 81,
120
+ "B-Medication": 33,
121
+ "B-Nonbiological_location": 14,
122
+ "B-Occupation": 60,
123
+ "B-Other_entity": 54,
124
+ "B-Other_event": 57,
125
+ "B-Outcome": 23,
126
+ "B-Personal_background": 3,
127
+ "B-Qualitative_concept": 71,
128
+ "B-Quantitative_concept": 59,
129
+ "B-Severity": 27,
130
+ "B-Sex": 4,
131
+ "B-Shape": 61,
132
+ "B-Sign_symptom": 7,
133
+ "B-Subject": 45,
134
+ "B-Texture": 29,
135
+ "B-Therapeutic_procedure": 31,
136
+ "B-Time": 72,
137
+ "B-Volume": 38,
138
+ "B-Weight": 78,
139
+ "I-Activity": 18,
140
+ "I-Administration": 51,
141
+ "I-Age": 2,
142
+ "I-Area": 66,
143
+ "I-Biological_attribute": 68,
144
+ "I-Biological_structure": 26,
145
+ "I-Clinical_event": 44,
146
+ "I-Color": 64,
147
+ "I-Coreference": 43,
148
+ "I-Date": 36,
149
+ "I-Detailed_description": 10,
150
+ "I-Diagnostic_procedure": 20,
151
+ "I-Disease_disorder": 25,
152
+ "I-Distance": 41,
153
+ "I-Dosage": 53,
154
+ "I-Duration": 12,
155
+ "I-Family_history": 48,
156
+ "I-Frequency": 56,
157
+ "I-Height": 77,
158
+ "I-History": 6,
159
+ "I-Lab_value": 22,
160
+ "I-Mass": 82,
161
+ "I-Medication": 34,
162
+ "I-Nonbiological_location": 15,
163
+ "I-Occupation": 62,
164
+ "I-Other_entity": 55,
165
+ "I-Other_event": 58,
166
+ "I-Outcome": 69,
167
+ "I-Personal_background": 49,
168
+ "I-Qualitative_concept": 75,
169
+ "I-Quantitative_concept": 74,
170
+ "I-Severity": 28,
171
+ "I-Sex": 80,
172
+ "I-Shape": 70,
173
+ "I-Sign_symptom": 8,
174
+ "I-Subject": 46,
175
+ "I-Texture": 30,
176
+ "I-Therapeutic_procedure": 32,
177
+ "I-Time": 73,
178
+ "I-Volume": 39,
179
+ "I-Weight": 79,
180
+ "O": 0
181
+ },
182
+ "max_position_embeddings": 512,
183
+ "model_type": "distilbert",
184
+ "n_heads": 12,
185
+ "n_layers": 6,
186
+ "pad_token_id": 0,
187
+ "qa_dropout": 0.1,
188
+ "seq_classif_dropout": 0.2,
189
+ "sinusoidal_pos_embds": false,
190
+ "tie_weights_": true,
191
+ "torch_dtype": "float32",
192
+ "transformers_version": "4.48.2",
193
+ "vocab_size": 30522
194
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a11b57a42b991931e72d27c75204a87b4fdbc5de08179b746eb57434b661951c
3
+ size 265719180
runs/Feb11_06-50-31_f26b9cc97ceb/events.out.tfevents.1739256632.f26b9cc97ceb.467.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:998012db651fb50b341c227e1de58ef75a254a22d8818ab2a950bb304c55a9c5
3
+ size 9266
runs/Feb11_06-51-45_f26b9cc97ceb/events.out.tfevents.1739256706.f26b9cc97ceb.467.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af6d0e9e5aac280d64e8266b1c9c3316b78c4decbcfcc4dfcecb3cb165767033
3
+ size 9266
runs/Feb11_06-52-47_f26b9cc97ceb/events.out.tfevents.1739256767.f26b9cc97ceb.467.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41f3c4cef40985bd3e33ea34e987c2d08d355acf013cb943c38960fed491d417
3
+ size 9266
runs/Feb11_06-53-33_f26b9cc97ceb/events.out.tfevents.1739256813.f26b9cc97ceb.467.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02c55ae301f13c97d3061f0b09255ce6b4acecc1a65feaf9dd87b41755d982db
3
+ size 9266
runs/Feb11_06-53-59_f26b9cc97ceb/events.out.tfevents.1739256839.f26b9cc97ceb.467.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d281c058e2e8b2493251da7c6be24ca6b3e7635312a09c0fad2e1f98cc9b9349
3
+ size 9266
runs/Feb11_06-54-57_f26b9cc97ceb/events.out.tfevents.1739256898.f26b9cc97ceb.467.5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bc13d7dc4b2e056ce3be2f41cdda09e0a25bfc84c8775578be8949d910b17fb
3
+ size 9266
runs/Feb11_06-56-56_f26b9cc97ceb/events.out.tfevents.1739257017.f26b9cc97ceb.467.6 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22342b252b360ab4fb34cdf649be850546d8b36b46e1b4a3c6e74cbf79b98f2c
3
+ size 20180
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:f396eaa9a34c583855aab36beb2b599c3b9c1d454b0086fed080a9ff06212f25
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff