qanastek commited on
Commit
3cddb07
1 Parent(s): 53160e5

BioBERT V1.1 model trained on FrenchMedMCQA using Wikipedia BM25 external knowledge

Browse files
config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dmis-lab/biobert-v1.1",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
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": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6",
20
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9",
23
+ "10": "LABEL_10",
24
+ "11": "LABEL_11",
25
+ "12": "LABEL_12",
26
+ "13": "LABEL_13",
27
+ "14": "LABEL_14",
28
+ "15": "LABEL_15",
29
+ "16": "LABEL_16",
30
+ "17": "LABEL_17",
31
+ "18": "LABEL_18",
32
+ "19": "LABEL_19",
33
+ "20": "LABEL_20",
34
+ "21": "LABEL_21",
35
+ "22": "LABEL_22",
36
+ "23": "LABEL_23",
37
+ "24": "LABEL_24",
38
+ "25": "LABEL_25",
39
+ "26": "LABEL_26",
40
+ "27": "LABEL_27",
41
+ "28": "LABEL_28",
42
+ "29": "LABEL_29",
43
+ "30": "LABEL_30"
44
+ },
45
+ "initializer_range": 0.02,
46
+ "intermediate_size": 3072,
47
+ "label2id": {
48
+ "LABEL_0": 0,
49
+ "LABEL_1": 1,
50
+ "LABEL_10": 10,
51
+ "LABEL_11": 11,
52
+ "LABEL_12": 12,
53
+ "LABEL_13": 13,
54
+ "LABEL_14": 14,
55
+ "LABEL_15": 15,
56
+ "LABEL_16": 16,
57
+ "LABEL_17": 17,
58
+ "LABEL_18": 18,
59
+ "LABEL_19": 19,
60
+ "LABEL_2": 2,
61
+ "LABEL_20": 20,
62
+ "LABEL_21": 21,
63
+ "LABEL_22": 22,
64
+ "LABEL_23": 23,
65
+ "LABEL_24": 24,
66
+ "LABEL_25": 25,
67
+ "LABEL_26": 26,
68
+ "LABEL_27": 27,
69
+ "LABEL_28": 28,
70
+ "LABEL_29": 29,
71
+ "LABEL_3": 3,
72
+ "LABEL_30": 30,
73
+ "LABEL_4": 4,
74
+ "LABEL_5": 5,
75
+ "LABEL_6": 6,
76
+ "LABEL_7": 7,
77
+ "LABEL_8": 8,
78
+ "LABEL_9": 9
79
+ },
80
+ "layer_norm_eps": 1e-12,
81
+ "max_position_embeddings": 512,
82
+ "model_type": "bert",
83
+ "num_attention_heads": 12,
84
+ "num_hidden_layers": 12,
85
+ "pad_token_id": 0,
86
+ "position_embedding_type": "absolute",
87
+ "problem_type": "single_label_classification",
88
+ "torch_dtype": "float32",
89
+ "transformers_version": "4.18.0",
90
+ "type_vocab_size": 2,
91
+ "use_cache": true,
92
+ "vocab_size": 28996
93
+ }
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c59e476f258026c1224572d39dd2749b94a080f47f527d5cf41713cffaddc727
3
+ size 866789277
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a1d14e1a7ae3a933e64a02529d84ca875185eb6eedbe2da6f776a2cd2563eb9
3
+ size 433407405
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eac35a75470483733ef2559b641f153185f391fe23c7947bd33323cbccf35cc5
3
+ size 17563
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:703982142fcedd14e5792d976b42adce5e182c36b7f363756bb8375901668f30
3
+ size 623
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": "/users/ylabrak/.cache/huggingface/transformers/118da8438a7854000cfcf052566f83ae4f4159ac25796e49e16c3b18746041b4.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "dmis-lab/biobert-v1.1", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
trainer_state.json ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.16666666666666666,
3
+ "best_model_checkpoint": "biobert-v1.1-finetuned-frenchmedmcqa/checkpoint-952",
4
+ "epoch": 7.0,
5
+ "global_step": 952,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 1.0,
12
+ "eval_accuracy": 0.13782051282051283,
13
+ "eval_f1": 0.03338750451426508,
14
+ "eval_loss": 3.1616480350494385,
15
+ "eval_precision": 0.01899449375410914,
16
+ "eval_recall": 0.13782051282051283,
17
+ "eval_runtime": 5.2204,
18
+ "eval_samples_per_second": 59.765,
19
+ "eval_steps_per_second": 3.831,
20
+ "step": 136
21
+ },
22
+ {
23
+ "epoch": 2.0,
24
+ "eval_accuracy": 0.16025641025641027,
25
+ "eval_f1": 0.06942300892072582,
26
+ "eval_loss": 2.8957390785217285,
27
+ "eval_precision": 0.04520268867434859,
28
+ "eval_recall": 0.16025641025641027,
29
+ "eval_runtime": 5.1606,
30
+ "eval_samples_per_second": 60.458,
31
+ "eval_steps_per_second": 3.875,
32
+ "step": 272
33
+ },
34
+ {
35
+ "epoch": 3.0,
36
+ "eval_accuracy": 0.15384615384615385,
37
+ "eval_f1": 0.0817681987234755,
38
+ "eval_loss": 2.722668170928955,
39
+ "eval_precision": 0.10610228539576365,
40
+ "eval_recall": 0.15384615384615385,
41
+ "eval_runtime": 5.1585,
42
+ "eval_samples_per_second": 60.483,
43
+ "eval_steps_per_second": 3.877,
44
+ "step": 408
45
+ },
46
+ {
47
+ "epoch": 3.68,
48
+ "learning_rate": 1.2647058823529412e-05,
49
+ "loss": 3.2368,
50
+ "step": 500
51
+ },
52
+ {
53
+ "epoch": 4.0,
54
+ "eval_accuracy": 0.15705128205128205,
55
+ "eval_f1": 0.06610402141868449,
56
+ "eval_loss": 2.653123617172241,
57
+ "eval_precision": 0.061101876500489406,
58
+ "eval_recall": 0.15705128205128205,
59
+ "eval_runtime": 5.1556,
60
+ "eval_samples_per_second": 60.516,
61
+ "eval_steps_per_second": 3.879,
62
+ "step": 544
63
+ },
64
+ {
65
+ "epoch": 5.0,
66
+ "eval_accuracy": 0.15384615384615385,
67
+ "eval_f1": 0.08432282082065398,
68
+ "eval_loss": 2.648888349533081,
69
+ "eval_precision": 0.08665532400061121,
70
+ "eval_recall": 0.15384615384615385,
71
+ "eval_runtime": 5.1699,
72
+ "eval_samples_per_second": 60.349,
73
+ "eval_steps_per_second": 3.869,
74
+ "step": 680
75
+ },
76
+ {
77
+ "epoch": 6.0,
78
+ "eval_accuracy": 0.13782051282051283,
79
+ "eval_f1": 0.08504238712449276,
80
+ "eval_loss": 2.684257745742798,
81
+ "eval_precision": 0.08323137866407097,
82
+ "eval_recall": 0.13782051282051283,
83
+ "eval_runtime": 5.1788,
84
+ "eval_samples_per_second": 60.246,
85
+ "eval_steps_per_second": 3.862,
86
+ "step": 816
87
+ },
88
+ {
89
+ "epoch": 7.0,
90
+ "eval_accuracy": 0.16666666666666666,
91
+ "eval_f1": 0.11330544110085618,
92
+ "eval_loss": 2.5864272117614746,
93
+ "eval_precision": 0.12433231913455035,
94
+ "eval_recall": 0.16666666666666666,
95
+ "eval_runtime": 5.1662,
96
+ "eval_samples_per_second": 60.393,
97
+ "eval_steps_per_second": 3.871,
98
+ "step": 952
99
+ }
100
+ ],
101
+ "max_steps": 1360,
102
+ "num_train_epochs": 10,
103
+ "total_flos": 1979672148207138.0,
104
+ "trial_name": null,
105
+ "trial_params": null
106
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aba052851e122ec4dd03692c037212e78abde9529a4aa1aad00013df9555ad07
3
+ size 3119
vocab.txt ADDED
The diff for this file is too large to render. See raw diff