Euanyu commited on
Commit
c70d82a
1 Parent(s): 8d5289d

pubmedbert finetuned model on caption and reference text of synthetic data

Browse files
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
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
+ "id2label": {
12
+ "0": "medical",
13
+ "1": "non-medical"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "false": 0,
19
+ "true": 1
20
+ },
21
+ "layer_norm_eps": 1e-12,
22
+ "max_position_embeddings": 512,
23
+ "model_type": "bert",
24
+ "num_attention_heads": 12,
25
+ "num_hidden_layers": 12,
26
+ "pad_token_id": 0,
27
+ "position_embedding_type": "absolute",
28
+ "problem_type": "single_label_classification",
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.42.4",
31
+ "type_vocab_size": 2,
32
+ "use_cache": true,
33
+ "vocab_size": 30522
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74aabb79f55360a62330a824a656c4178ea447a315e32a639e5a9d1dccbca482
3
+ size 437958648
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe807683dbbf39734dd8fe26e73ef5ebee76709ed069f6144944836e15caf378
3
+ size 876038394
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1009f72610c707071843ceb8911047082d96a67a4473a911b7d47836581eaade
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89efffcd74eff4bdde090bc0170c8689c86ba3b38a24022a1aa64dac7dd99e42
3
+ size 1064
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
trainer_state.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.16344858705997467,
3
+ "best_model_checkpoint": "pubmedbert_caption+ref_RTX6000/checkpoint-1230",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 3690,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.4065040650406504,
13
+ "grad_norm": 7.820664405822754,
14
+ "learning_rate": 2.75609756097561e-05,
15
+ "loss": 0.2074,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.8130081300813008,
20
+ "grad_norm": 2.407073974609375,
21
+ "learning_rate": 2.5121951219512197e-05,
22
+ "loss": 0.1646,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.9358961251405786,
28
+ "eval_f1": 0.9313383960406174,
29
+ "eval_f1_medical": 0.9490285342655068,
30
+ "eval_f1_non_medical": 0.9136482578157279,
31
+ "eval_loss": 0.16344858705997467,
32
+ "eval_precision": 0.9352860582386011,
33
+ "eval_recall": 0.9279290617594869,
34
+ "eval_runtime": 93.0813,
35
+ "eval_samples_per_second": 105.08,
36
+ "eval_steps_per_second": 3.287,
37
+ "step": 1230
38
+ },
39
+ {
40
+ "epoch": 1.2195121951219512,
41
+ "grad_norm": 2.0749707221984863,
42
+ "learning_rate": 2.2682926829268295e-05,
43
+ "loss": 0.131,
44
+ "step": 1500
45
+ },
46
+ {
47
+ "epoch": 1.6260162601626016,
48
+ "grad_norm": 3.7739999294281006,
49
+ "learning_rate": 2.024390243902439e-05,
50
+ "loss": 0.1145,
51
+ "step": 2000
52
+ },
53
+ {
54
+ "epoch": 2.0,
55
+ "eval_accuracy": 0.9353849299662611,
56
+ "eval_f1": 0.9315011393590601,
57
+ "eval_f1_medical": 0.9478117258464079,
58
+ "eval_f1_non_medical": 0.9151905528717122,
59
+ "eval_loss": 0.1923774778842926,
60
+ "eval_precision": 0.9306285500446541,
61
+ "eval_recall": 0.9324104388612393,
62
+ "eval_runtime": 92.7173,
63
+ "eval_samples_per_second": 105.493,
64
+ "eval_steps_per_second": 3.3,
65
+ "step": 2460
66
+ },
67
+ {
68
+ "epoch": 2.032520325203252,
69
+ "grad_norm": 9.552169799804688,
70
+ "learning_rate": 1.7804878048780488e-05,
71
+ "loss": 0.1044,
72
+ "step": 2500
73
+ },
74
+ {
75
+ "epoch": 2.4390243902439024,
76
+ "grad_norm": 0.6083847284317017,
77
+ "learning_rate": 1.5365853658536586e-05,
78
+ "loss": 0.0656,
79
+ "step": 3000
80
+ },
81
+ {
82
+ "epoch": 2.845528455284553,
83
+ "grad_norm": 2.998614549636841,
84
+ "learning_rate": 1.2926829268292684e-05,
85
+ "loss": 0.0744,
86
+ "step": 3500
87
+ },
88
+ {
89
+ "epoch": 3.0,
90
+ "eval_accuracy": 0.9359983641754421,
91
+ "eval_f1": 0.9318359818739486,
92
+ "eval_f1_medical": 0.9486801114936875,
93
+ "eval_f1_non_medical": 0.9149918522542096,
94
+ "eval_loss": 0.23488560318946838,
95
+ "eval_precision": 0.9329783496995749,
96
+ "eval_recall": 0.9307471811921053,
97
+ "eval_runtime": 92.6853,
98
+ "eval_samples_per_second": 105.529,
99
+ "eval_steps_per_second": 3.301,
100
+ "step": 3690
101
+ }
102
+ ],
103
+ "logging_steps": 500,
104
+ "max_steps": 6150,
105
+ "num_input_tokens_seen": 0,
106
+ "num_train_epochs": 5,
107
+ "save_steps": 500,
108
+ "stateful_callbacks": {
109
+ "TrainerControl": {
110
+ "args": {
111
+ "should_epoch_stop": false,
112
+ "should_evaluate": false,
113
+ "should_log": false,
114
+ "should_save": true,
115
+ "should_training_stop": false
116
+ },
117
+ "attributes": {}
118
+ }
119
+ },
120
+ "total_flos": 3.106719963933312e+16,
121
+ "train_batch_size": 32,
122
+ "trial_name": null,
123
+ "trial_params": null
124
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:173e29ba039215cd3eebaaa0dd4c794b677eddc6ff67d63c16bc6f4bbf0a0975
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff