trevorkwan commited on
Commit
250338d
1 Parent(s): 8522bfa

Upload 15 files

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
+ eval_nbest_predictions.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - squad_v2
7
+ model-index:
8
+ - name: bluebert_pubmed_mimic_uncased_squadv2
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # bluebert_pubmed_mimic_uncased_squadv2
16
+
17
+ This model is a fine-tuned version of [bionlp/bluebert_pubmed_mimic_uncased_L-12_H-768_A-12](https://huggingface.co/bionlp/bluebert_pubmed_mimic_uncased_L-12_H-768_A-12) on the squad_v2 dataset.
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 2e-05
37
+ - train_batch_size: 16
38
+ - eval_batch_size: 8
39
+ - seed: 42
40
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
+ - lr_scheduler_type: linear
42
+ - num_epochs: 3.0
43
+
44
+ ### Training results
45
+
46
+
47
+
48
+ ### Framework versions
49
+
50
+ - Transformers 4.29.2
51
+ - Pytorch 2.0.1
52
+ - Datasets 2.14.4
53
+ - Tokenizers 0.13.2
all_results.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_HasAns_exact": 63.529014844804315,
4
+ "eval_HasAns_f1": 71.24347457754129,
5
+ "eval_HasAns_total": 5928,
6
+ "eval_NoAns_exact": 69.50378469301934,
7
+ "eval_NoAns_f1": 69.50378469301934,
8
+ "eval_NoAns_total": 5945,
9
+ "eval_best_exact": 66.5206771666807,
10
+ "eval_best_exact_thresh": 0.0,
11
+ "eval_best_f1": 70.37238417381195,
12
+ "eval_best_f1_thresh": 0.0,
13
+ "eval_exact": 66.5206771666807,
14
+ "eval_f1": 70.37238417381182,
15
+ "eval_runtime": 205.1228,
16
+ "eval_samples": 11978,
17
+ "eval_samples_per_second": 58.394,
18
+ "eval_steps_per_second": 7.303,
19
+ "eval_total": 11873,
20
+ "train_loss": 1.3127011176813441,
21
+ "train_runtime": 19384.6994,
22
+ "train_samples": 130602,
23
+ "train_samples_per_second": 20.212,
24
+ "train_steps_per_second": 1.263
25
+ }
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bionlp/bluebert_pubmed_mimic_uncased_L-12_H-768_A-12",
3
+ "architectures": [
4
+ "BertForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.29.2",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
eval_nbest_predictions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7159fc5b72bc4392954450acbb733eddb026d11beb0b3424007e4e492a192e0c
3
+ size 57376841
eval_null_odds.json ADDED
The diff for this file is too large to render. See raw diff
 
eval_predictions.json ADDED
The diff for this file is too large to render. See raw diff
 
eval_results.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_HasAns_exact": 63.529014844804315,
4
+ "eval_HasAns_f1": 71.24347457754129,
5
+ "eval_HasAns_total": 5928,
6
+ "eval_NoAns_exact": 69.50378469301934,
7
+ "eval_NoAns_f1": 69.50378469301934,
8
+ "eval_NoAns_total": 5945,
9
+ "eval_best_exact": 66.5206771666807,
10
+ "eval_best_exact_thresh": 0.0,
11
+ "eval_best_f1": 70.37238417381195,
12
+ "eval_best_f1_thresh": 0.0,
13
+ "eval_exact": 66.5206771666807,
14
+ "eval_f1": 70.37238417381182,
15
+ "eval_runtime": 205.1228,
16
+ "eval_samples": 11978,
17
+ "eval_samples_per_second": 58.394,
18
+ "eval_steps_per_second": 7.303,
19
+ "eval_total": 11873
20
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f8c0c16d1f33d2733c31434c45c9218f84c1b2c533bd8b33f58881fc932a8bd
3
+ size 435644909
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,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": true,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 1000000000000000019884624838656,
8
+ "never_split": null,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "token": null,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 1.3127011176813441,
4
+ "train_runtime": 19384.6994,
5
+ "train_samples": 130602,
6
+ "train_samples_per_second": 20.212,
7
+ "train_steps_per_second": 1.263
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 24489,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.06,
12
+ "learning_rate": 1.959165339540202e-05,
13
+ "loss": 3.1241,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.12,
18
+ "learning_rate": 1.9183306790804037e-05,
19
+ "loss": 2.5382,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.18,
24
+ "learning_rate": 1.8774960186206054e-05,
25
+ "loss": 2.2802,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.25,
30
+ "learning_rate": 1.8366613581608072e-05,
31
+ "loss": 2.0981,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.31,
36
+ "learning_rate": 1.795826697701009e-05,
37
+ "loss": 1.9806,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.37,
42
+ "learning_rate": 1.7549920372412107e-05,
43
+ "loss": 1.8749,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.43,
48
+ "learning_rate": 1.714157376781412e-05,
49
+ "loss": 1.7845,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 0.49,
54
+ "learning_rate": 1.673322716321614e-05,
55
+ "loss": 1.7693,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 0.55,
60
+ "learning_rate": 1.6324880558618156e-05,
61
+ "loss": 1.6563,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 0.61,
66
+ "learning_rate": 1.5916533954020174e-05,
67
+ "loss": 1.6036,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 0.67,
72
+ "learning_rate": 1.550818734942219e-05,
73
+ "loss": 1.572,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 0.74,
78
+ "learning_rate": 1.5099840744824207e-05,
79
+ "loss": 1.547,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 0.8,
84
+ "learning_rate": 1.4691494140226225e-05,
85
+ "loss": 1.5027,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 0.86,
90
+ "learning_rate": 1.4283147535628244e-05,
91
+ "loss": 1.4847,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 0.92,
96
+ "learning_rate": 1.3874800931030258e-05,
97
+ "loss": 1.4495,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 0.98,
102
+ "learning_rate": 1.3466454326432276e-05,
103
+ "loss": 1.4558,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 1.04,
108
+ "learning_rate": 1.3058107721834295e-05,
109
+ "loss": 1.3089,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 1.1,
114
+ "learning_rate": 1.2649761117236313e-05,
115
+ "loss": 1.2217,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 1.16,
120
+ "learning_rate": 1.2241414512638327e-05,
121
+ "loss": 1.255,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 1.23,
126
+ "learning_rate": 1.1833067908040346e-05,
127
+ "loss": 1.1977,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 1.29,
132
+ "learning_rate": 1.1424721303442364e-05,
133
+ "loss": 1.209,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 1.35,
138
+ "learning_rate": 1.1016374698844381e-05,
139
+ "loss": 1.1799,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 1.41,
144
+ "learning_rate": 1.0608028094246397e-05,
145
+ "loss": 1.1807,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 1.47,
150
+ "learning_rate": 1.0199681489648415e-05,
151
+ "loss": 1.1597,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 1.53,
156
+ "learning_rate": 9.791334885050432e-06,
157
+ "loss": 1.1603,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 1.59,
162
+ "learning_rate": 9.382988280452448e-06,
163
+ "loss": 1.1847,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 1.65,
168
+ "learning_rate": 8.974641675854466e-06,
169
+ "loss": 1.1543,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 1.72,
174
+ "learning_rate": 8.566295071256483e-06,
175
+ "loss": 1.1336,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 1.78,
180
+ "learning_rate": 8.157948466658501e-06,
181
+ "loss": 1.1141,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 1.84,
186
+ "learning_rate": 7.749601862060517e-06,
187
+ "loss": 1.1361,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 1.9,
192
+ "learning_rate": 7.341255257462535e-06,
193
+ "loss": 1.142,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 1.96,
198
+ "learning_rate": 6.932908652864552e-06,
199
+ "loss": 1.1296,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 2.02,
204
+ "learning_rate": 6.5245620482665695e-06,
205
+ "loss": 1.0464,
206
+ "step": 16500
207
+ },
208
+ {
209
+ "epoch": 2.08,
210
+ "learning_rate": 6.116215443668586e-06,
211
+ "loss": 0.9281,
212
+ "step": 17000
213
+ },
214
+ {
215
+ "epoch": 2.14,
216
+ "learning_rate": 5.707868839070604e-06,
217
+ "loss": 0.9222,
218
+ "step": 17500
219
+ },
220
+ {
221
+ "epoch": 2.21,
222
+ "learning_rate": 5.2995222344726205e-06,
223
+ "loss": 0.9243,
224
+ "step": 18000
225
+ },
226
+ {
227
+ "epoch": 2.27,
228
+ "learning_rate": 4.891175629874638e-06,
229
+ "loss": 0.93,
230
+ "step": 18500
231
+ },
232
+ {
233
+ "epoch": 2.33,
234
+ "learning_rate": 4.482829025276656e-06,
235
+ "loss": 0.9329,
236
+ "step": 19000
237
+ },
238
+ {
239
+ "epoch": 2.39,
240
+ "learning_rate": 4.074482420678672e-06,
241
+ "loss": 0.9151,
242
+ "step": 19500
243
+ },
244
+ {
245
+ "epoch": 2.45,
246
+ "learning_rate": 3.66613581608069e-06,
247
+ "loss": 0.8925,
248
+ "step": 20000
249
+ },
250
+ {
251
+ "epoch": 2.51,
252
+ "learning_rate": 3.257789211482707e-06,
253
+ "loss": 0.9195,
254
+ "step": 20500
255
+ },
256
+ {
257
+ "epoch": 2.57,
258
+ "learning_rate": 2.849442606884724e-06,
259
+ "loss": 0.9131,
260
+ "step": 21000
261
+ },
262
+ {
263
+ "epoch": 2.63,
264
+ "learning_rate": 2.441096002286741e-06,
265
+ "loss": 0.8965,
266
+ "step": 21500
267
+ },
268
+ {
269
+ "epoch": 2.7,
270
+ "learning_rate": 2.0327493976887585e-06,
271
+ "loss": 0.9158,
272
+ "step": 22000
273
+ },
274
+ {
275
+ "epoch": 2.76,
276
+ "learning_rate": 1.6244027930907754e-06,
277
+ "loss": 0.9219,
278
+ "step": 22500
279
+ },
280
+ {
281
+ "epoch": 2.82,
282
+ "learning_rate": 1.2160561884927927e-06,
283
+ "loss": 0.9128,
284
+ "step": 23000
285
+ },
286
+ {
287
+ "epoch": 2.88,
288
+ "learning_rate": 8.0770958389481e-07,
289
+ "loss": 0.9106,
290
+ "step": 23500
291
+ },
292
+ {
293
+ "epoch": 2.94,
294
+ "learning_rate": 3.993629792968272e-07,
295
+ "loss": 0.9122,
296
+ "step": 24000
297
+ },
298
+ {
299
+ "epoch": 3.0,
300
+ "step": 24489,
301
+ "total_flos": 9.597903475284864e+16,
302
+ "train_loss": 1.3127011176813441,
303
+ "train_runtime": 19384.6994,
304
+ "train_samples_per_second": 20.212,
305
+ "train_steps_per_second": 1.263
306
+ }
307
+ ],
308
+ "max_steps": 24489,
309
+ "num_train_epochs": 3,
310
+ "total_flos": 9.597903475284864e+16,
311
+ "trial_name": null,
312
+ "trial_params": null
313
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b78f05e774f6439ad1fd9ae33476bad5b22934cf216972cb0cbdafb982e05655
3
+ size 4027
vocab.txt ADDED
The diff for this file is too large to render. See raw diff