pritamdeka commited on
Commit
790803c
1 Parent(s): 701b085

Initial Commit

Browse files
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: best_model
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
+ # best_model
16
+
17
+ This model is a fine-tuned version of [microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext](https://huggingface.co/microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2833
20
+ - Accuracy: 0.8942
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 5e-05
40
+ - train_batch_size: 64
41
+ - eval_batch_size: 64
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 2.0
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
50
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
51
+ | 0.3604 | 0.14 | 5000 | 0.3162 | 0.8821 |
52
+ | 0.3326 | 0.29 | 10000 | 0.3112 | 0.8843 |
53
+ | 0.3293 | 0.43 | 15000 | 0.3044 | 0.8870 |
54
+ | 0.3246 | 0.58 | 20000 | 0.3040 | 0.8871 |
55
+ | 0.32 | 0.72 | 25000 | 0.2969 | 0.8888 |
56
+ | 0.3143 | 0.87 | 30000 | 0.2929 | 0.8903 |
57
+ | 0.3095 | 1.01 | 35000 | 0.2917 | 0.8899 |
58
+ | 0.2844 | 1.16 | 40000 | 0.2957 | 0.8886 |
59
+ | 0.2778 | 1.3 | 45000 | 0.2943 | 0.8906 |
60
+ | 0.2779 | 1.45 | 50000 | 0.2890 | 0.8935 |
61
+ | 0.2752 | 1.59 | 55000 | 0.2881 | 0.8919 |
62
+ | 0.2736 | 1.74 | 60000 | 0.2835 | 0.8944 |
63
+ | 0.2725 | 1.88 | 65000 | 0.2833 | 0.8942 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.18.0.dev0
69
+ - Pytorch 1.10.0+cu111
70
+ - Datasets 1.18.3
71
+ - Tokenizers 0.11.6
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.8941656351089478,
4
+ "eval_loss": 0.28330111503601074,
5
+ "eval_runtime": 142.8376,
6
+ "eval_samples": 28932,
7
+ "eval_samples_per_second": 202.552,
8
+ "eval_steps_per_second": 3.171,
9
+ "train_loss": 0.30218412260715205,
10
+ "train_runtime": 63905.8286,
11
+ "train_samples": 2211861,
12
+ "train_samples_per_second": 69.223,
13
+ "train_steps_per_second": 1.082
14
+ }
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/BiomedNLP-PubMedBERT-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": "BACKGROUND",
13
+ "1": "CONCLUSIONS",
14
+ "2": "METHODS",
15
+ "3": "OBJECTIVE",
16
+ "4": "RESULTS"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "BACKGROUND": 0,
22
+ "CONCLUSIONS": 1,
23
+ "METHODS": 2,
24
+ "OBJECTIVE": 3,
25
+ "RESULTS": 4
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "bert",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 0,
33
+ "position_embedding_type": "absolute",
34
+ "problem_type": "single_label_classification",
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.18.0.dev0",
37
+ "type_vocab_size": 2,
38
+ "use_cache": true,
39
+ "vocab_size": 30522
40
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.8941656351089478,
4
+ "eval_loss": 0.28330111503601074,
5
+ "eval_runtime": 142.8376,
6
+ "eval_samples": 28932,
7
+ "eval_samples_per_second": 202.552,
8
+ "eval_steps_per_second": 3.171
9
+ }
predict_results_None.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7cfce708e03d354d73968f3d50dc459590f6e6bb57434735aacb33a23c04234
3
+ size 438029357
runs/Mar03_20-40-16_41ce11bcd200/1646340340.8113117/events.out.tfevents.1646340340.41ce11bcd200.1075.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9cbaa92c7e952566d14e530a77f80e4f5f72d8b02392f431ac779616fec5ec7
3
+ size 4772
runs/Mar03_20-40-16_41ce11bcd200/events.out.tfevents.1646340340.41ce11bcd200.1075.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca20cde9188e3a32f916c315ddc6ac9f1afc3c444f4e717f365201a2db8b3bf1
3
+ size 10256
runs/Mar03_20-40-16_41ce11bcd200/events.out.tfevents.1646404390.41ce11bcd200.1075.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46f736b6637ae9d2d6be77eda2ed4b2ba7995738caf2d744489b614ffdd29e9d
3
+ size 369
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": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": null, "name_or_path": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "train_loss": 0.30218412260715205,
4
+ "train_runtime": 63905.8286,
5
+ "train_samples": 2211861,
6
+ "train_samples_per_second": 69.223,
7
+ "train_steps_per_second": 1.082
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.28330111503601074,
3
+ "best_model_checkpoint": "/content/best_model/checkpoint-65000",
4
+ "epoch": 2.0,
5
+ "global_step": 69122,
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.14,
12
+ "learning_rate": 4.638320650444142e-05,
13
+ "loss": 0.3604,
14
+ "step": 5000
15
+ },
16
+ {
17
+ "epoch": 0.14,
18
+ "eval_accuracy": 0.8821028470993042,
19
+ "eval_loss": 0.3162487745285034,
20
+ "eval_runtime": 142.0782,
21
+ "eval_samples_per_second": 203.634,
22
+ "eval_steps_per_second": 3.188,
23
+ "step": 5000
24
+ },
25
+ {
26
+ "epoch": 0.29,
27
+ "learning_rate": 4.276641300888285e-05,
28
+ "loss": 0.3326,
29
+ "step": 10000
30
+ },
31
+ {
32
+ "epoch": 0.29,
33
+ "eval_accuracy": 0.8842803835868835,
34
+ "eval_loss": 0.311200350522995,
35
+ "eval_runtime": 142.1706,
36
+ "eval_samples_per_second": 203.502,
37
+ "eval_steps_per_second": 3.186,
38
+ "step": 10000
39
+ },
40
+ {
41
+ "epoch": 0.43,
42
+ "learning_rate": 3.914961951332427e-05,
43
+ "loss": 0.3293,
44
+ "step": 15000
45
+ },
46
+ {
47
+ "epoch": 0.43,
48
+ "eval_accuracy": 0.8869763612747192,
49
+ "eval_loss": 0.3043750524520874,
50
+ "eval_runtime": 142.2145,
51
+ "eval_samples_per_second": 203.439,
52
+ "eval_steps_per_second": 3.185,
53
+ "step": 15000
54
+ },
55
+ {
56
+ "epoch": 0.58,
57
+ "learning_rate": 3.5532826017765694e-05,
58
+ "loss": 0.3246,
59
+ "step": 20000
60
+ },
61
+ {
62
+ "epoch": 0.58,
63
+ "eval_accuracy": 0.8871491551399231,
64
+ "eval_loss": 0.30401167273521423,
65
+ "eval_runtime": 142.2635,
66
+ "eval_samples_per_second": 203.369,
67
+ "eval_steps_per_second": 3.184,
68
+ "step": 20000
69
+ },
70
+ {
71
+ "epoch": 0.72,
72
+ "learning_rate": 3.191603252220711e-05,
73
+ "loss": 0.32,
74
+ "step": 25000
75
+ },
76
+ {
77
+ "epoch": 0.72,
78
+ "eval_accuracy": 0.8887736797332764,
79
+ "eval_loss": 0.29694026708602905,
80
+ "eval_runtime": 142.2955,
81
+ "eval_samples_per_second": 203.323,
82
+ "eval_steps_per_second": 3.184,
83
+ "step": 25000
84
+ },
85
+ {
86
+ "epoch": 0.87,
87
+ "learning_rate": 2.829923902664854e-05,
88
+ "loss": 0.3143,
89
+ "step": 30000
90
+ },
91
+ {
92
+ "epoch": 0.87,
93
+ "eval_accuracy": 0.8903290629386902,
94
+ "eval_loss": 0.2928813695907593,
95
+ "eval_runtime": 142.3659,
96
+ "eval_samples_per_second": 203.223,
97
+ "eval_steps_per_second": 3.182,
98
+ "step": 30000
99
+ },
100
+ {
101
+ "epoch": 1.01,
102
+ "learning_rate": 2.468244553108996e-05,
103
+ "loss": 0.3095,
104
+ "step": 35000
105
+ },
106
+ {
107
+ "epoch": 1.01,
108
+ "eval_accuracy": 0.8899142742156982,
109
+ "eval_loss": 0.29173970222473145,
110
+ "eval_runtime": 142.5262,
111
+ "eval_samples_per_second": 202.994,
112
+ "eval_steps_per_second": 3.178,
113
+ "step": 35000
114
+ },
115
+ {
116
+ "epoch": 1.16,
117
+ "learning_rate": 2.106565203553138e-05,
118
+ "loss": 0.2844,
119
+ "step": 40000
120
+ },
121
+ {
122
+ "epoch": 1.16,
123
+ "eval_accuracy": 0.8886008858680725,
124
+ "eval_loss": 0.29569417238235474,
125
+ "eval_runtime": 142.5524,
126
+ "eval_samples_per_second": 202.957,
127
+ "eval_steps_per_second": 3.178,
128
+ "step": 40000
129
+ },
130
+ {
131
+ "epoch": 1.3,
132
+ "learning_rate": 1.7448858539972804e-05,
133
+ "loss": 0.2778,
134
+ "step": 45000
135
+ },
136
+ {
137
+ "epoch": 1.3,
138
+ "eval_accuracy": 0.890640139579773,
139
+ "eval_loss": 0.2942551076412201,
140
+ "eval_runtime": 142.6301,
141
+ "eval_samples_per_second": 202.846,
142
+ "eval_steps_per_second": 3.176,
143
+ "step": 45000
144
+ },
145
+ {
146
+ "epoch": 1.45,
147
+ "learning_rate": 1.3832065044414225e-05,
148
+ "loss": 0.2779,
149
+ "step": 50000
150
+ },
151
+ {
152
+ "epoch": 1.45,
153
+ "eval_accuracy": 0.8934743404388428,
154
+ "eval_loss": 0.28896576166152954,
155
+ "eval_runtime": 142.7675,
156
+ "eval_samples_per_second": 202.651,
157
+ "eval_steps_per_second": 3.173,
158
+ "step": 50000
159
+ },
160
+ {
161
+ "epoch": 1.59,
162
+ "learning_rate": 1.0215271548855646e-05,
163
+ "loss": 0.2752,
164
+ "step": 55000
165
+ },
166
+ {
167
+ "epoch": 1.59,
168
+ "eval_accuracy": 0.891884446144104,
169
+ "eval_loss": 0.28808724880218506,
170
+ "eval_runtime": 142.5778,
171
+ "eval_samples_per_second": 202.921,
172
+ "eval_steps_per_second": 3.177,
173
+ "step": 55000
174
+ },
175
+ {
176
+ "epoch": 1.74,
177
+ "learning_rate": 6.598478053297069e-06,
178
+ "loss": 0.2736,
179
+ "step": 60000
180
+ },
181
+ {
182
+ "epoch": 1.74,
183
+ "eval_accuracy": 0.8943729996681213,
184
+ "eval_loss": 0.28354716300964355,
185
+ "eval_runtime": 142.8817,
186
+ "eval_samples_per_second": 202.489,
187
+ "eval_steps_per_second": 3.17,
188
+ "step": 60000
189
+ },
190
+ {
191
+ "epoch": 1.88,
192
+ "learning_rate": 2.9816845577384916e-06,
193
+ "loss": 0.2725,
194
+ "step": 65000
195
+ },
196
+ {
197
+ "epoch": 1.88,
198
+ "eval_accuracy": 0.8941656351089478,
199
+ "eval_loss": 0.28330111503601074,
200
+ "eval_runtime": 142.8534,
201
+ "eval_samples_per_second": 202.529,
202
+ "eval_steps_per_second": 3.171,
203
+ "step": 65000
204
+ },
205
+ {
206
+ "epoch": 2.0,
207
+ "step": 69122,
208
+ "total_flos": 3.410043502198626e+17,
209
+ "train_loss": 0.30218412260715205,
210
+ "train_runtime": 63905.8286,
211
+ "train_samples_per_second": 69.223,
212
+ "train_steps_per_second": 1.082
213
+ }
214
+ ],
215
+ "max_steps": 69122,
216
+ "num_train_epochs": 2,
217
+ "total_flos": 3.410043502198626e+17,
218
+ "trial_name": null,
219
+ "trial_params": null
220
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:001fc1f97e17e76d08b64c17aa20b40aa8092fd7d6fe9632d3e543096a26c007
3
+ size 2991
vocab.txt ADDED
The diff for this file is too large to render. See raw diff