pritamdeka commited on
Commit
2540385
1 Parent(s): 5fe1c40

Initial Commit

Browse files
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ metrics:
5
+ - accuracy
6
+ model-index:
7
+ - name: best_model
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # best_model
15
+
16
+ This model is a fine-tuned version of [dmis-lab/biobert-base-cased-v1.1](https://huggingface.co/dmis-lab/biobert-base-cased-v1.1) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.2832
19
+ - Accuracy: 0.8934
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 64
40
+ - eval_batch_size: 64
41
+ - seed: 42
42
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
+ - lr_scheduler_type: linear
44
+ - num_epochs: 2.0
45
+ - mixed_precision_training: Native AMP
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
50
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
51
+ | 0.3587 | 0.14 | 5000 | 0.3137 | 0.8834 |
52
+ | 0.3318 | 0.29 | 10000 | 0.3100 | 0.8831 |
53
+ | 0.3286 | 0.43 | 15000 | 0.3033 | 0.8864 |
54
+ | 0.3236 | 0.58 | 20000 | 0.3037 | 0.8862 |
55
+ | 0.3182 | 0.72 | 25000 | 0.2939 | 0.8876 |
56
+ | 0.3129 | 0.87 | 30000 | 0.2910 | 0.8885 |
57
+ | 0.3078 | 1.01 | 35000 | 0.2914 | 0.8887 |
58
+ | 0.2791 | 1.16 | 40000 | 0.2975 | 0.8874 |
59
+ | 0.2723 | 1.3 | 45000 | 0.2913 | 0.8906 |
60
+ | 0.2724 | 1.45 | 50000 | 0.2879 | 0.8904 |
61
+ | 0.27 | 1.59 | 55000 | 0.2874 | 0.8911 |
62
+ | 0.2681 | 1.74 | 60000 | 0.2848 | 0.8928 |
63
+ | 0.2672 | 1.88 | 65000 | 0.2832 | 0.8934 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.18.0.dev0
69
+ - Pytorch 1.10.0+cu111
70
+ - Datasets 1.18.4
71
+ - Tokenizers 0.11.6
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.893439769744873,
4
+ "eval_loss": 0.2832432985305786,
5
+ "eval_runtime": 132.9041,
6
+ "eval_samples": 28932,
7
+ "eval_samples_per_second": 217.691,
8
+ "eval_steps_per_second": 3.408,
9
+ "train_loss": 0.29886255871073064,
10
+ "train_runtime": 56655.4623,
11
+ "train_samples": 2211861,
12
+ "train_samples_per_second": 78.081,
13
+ "train_steps_per_second": 1.22
14
+ }
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dmis-lab/biobert-base-cased-v1.1",
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": 28996
40
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.893439769744873,
4
+ "eval_loss": 0.2832432985305786,
5
+ "eval_runtime": 132.9041,
6
+ "eval_samples": 28932,
7
+ "eval_samples_per_second": 217.691,
8
+ "eval_steps_per_second": 3.408
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:8eefad34e64af048ea4b9de235c39a8cb8fcbf0352f8d75a6807261335706ff9
3
+ size 433341485
runs/Mar14_20-34-02_ef586ffcf6f8/1647290356.345718/events.out.tfevents.1647290356.ef586ffcf6f8.959.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2adae1cdd324c1df34b0a4457598483e9ff1870dbb3d4692bdbd0d2ce97ace0
3
+ size 4807
runs/Mar14_20-34-02_ef586ffcf6f8/events.out.tfevents.1647290356.ef586ffcf6f8.959.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cbef9103cf47b5c85025cce5b52e07efc3ae8e3fa5c9c88470cf3b1d39b9498
3
+ size 10198
runs/Mar14_20-34-02_ef586ffcf6f8/events.out.tfevents.1647347145.ef586ffcf6f8.959.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89d16f1cf9f17853ba5c51110791f1f3ee36cb900226fc80bb632fc81d7e68f0
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": "dmis-lab/biobert-base-cased-v1.1", "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.29886255871073064,
4
+ "train_runtime": 56655.4623,
5
+ "train_samples": 2211861,
6
+ "train_samples_per_second": 78.081,
7
+ "train_steps_per_second": 1.22
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.2832432985305786,
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.6385376580538756e-05,
13
+ "loss": 0.3587,
14
+ "step": 5000
15
+ },
16
+ {
17
+ "epoch": 0.14,
18
+ "eval_accuracy": 0.883381724357605,
19
+ "eval_loss": 0.313699334859848,
20
+ "eval_runtime": 130.2101,
21
+ "eval_samples_per_second": 222.195,
22
+ "eval_steps_per_second": 3.479,
23
+ "step": 5000
24
+ },
25
+ {
26
+ "epoch": 0.29,
27
+ "learning_rate": 4.2770029802378405e-05,
28
+ "loss": 0.3318,
29
+ "step": 10000
30
+ },
31
+ {
32
+ "epoch": 0.29,
33
+ "eval_accuracy": 0.8830706477165222,
34
+ "eval_loss": 0.31002119183540344,
35
+ "eval_runtime": 130.4095,
36
+ "eval_samples_per_second": 221.855,
37
+ "eval_steps_per_second": 3.474,
38
+ "step": 10000
39
+ },
40
+ {
41
+ "epoch": 0.43,
42
+ "learning_rate": 3.915395966551894e-05,
43
+ "loss": 0.3286,
44
+ "step": 15000
45
+ },
46
+ {
47
+ "epoch": 0.43,
48
+ "eval_accuracy": 0.8863887786865234,
49
+ "eval_loss": 0.303303599357605,
50
+ "eval_runtime": 130.6696,
51
+ "eval_samples_per_second": 221.413,
52
+ "eval_steps_per_second": 3.467,
53
+ "step": 15000
54
+ },
55
+ {
56
+ "epoch": 0.58,
57
+ "learning_rate": 3.5537889528659474e-05,
58
+ "loss": 0.3236,
59
+ "step": 20000
60
+ },
61
+ {
62
+ "epoch": 0.58,
63
+ "eval_accuracy": 0.8862159252166748,
64
+ "eval_loss": 0.3037019670009613,
65
+ "eval_runtime": 130.8546,
66
+ "eval_samples_per_second": 221.1,
67
+ "eval_steps_per_second": 3.462,
68
+ "step": 20000
69
+ },
70
+ {
71
+ "epoch": 0.72,
72
+ "learning_rate": 3.1922542750499116e-05,
73
+ "loss": 0.3182,
74
+ "step": 25000
75
+ },
76
+ {
77
+ "epoch": 0.72,
78
+ "eval_accuracy": 0.8876330852508545,
79
+ "eval_loss": 0.2938973009586334,
80
+ "eval_runtime": 130.8776,
81
+ "eval_samples_per_second": 221.061,
82
+ "eval_steps_per_second": 3.461,
83
+ "step": 25000
84
+ },
85
+ {
86
+ "epoch": 0.87,
87
+ "learning_rate": 2.830647261363965e-05,
88
+ "loss": 0.3129,
89
+ "step": 30000
90
+ },
91
+ {
92
+ "epoch": 0.87,
93
+ "eval_accuracy": 0.8885317444801331,
94
+ "eval_loss": 0.2910305857658386,
95
+ "eval_runtime": 131.4925,
96
+ "eval_samples_per_second": 220.028,
97
+ "eval_steps_per_second": 3.445,
98
+ "step": 30000
99
+ },
100
+ {
101
+ "epoch": 1.01,
102
+ "learning_rate": 2.469184919417841e-05,
103
+ "loss": 0.3078,
104
+ "step": 35000
105
+ },
106
+ {
107
+ "epoch": 1.01,
108
+ "eval_accuracy": 0.8887391090393066,
109
+ "eval_loss": 0.29142218828201294,
110
+ "eval_runtime": 131.659,
111
+ "eval_samples_per_second": 219.75,
112
+ "eval_steps_per_second": 3.441,
113
+ "step": 35000
114
+ },
115
+ {
116
+ "epoch": 1.16,
117
+ "learning_rate": 2.107794913341628e-05,
118
+ "loss": 0.2791,
119
+ "step": 40000
120
+ },
121
+ {
122
+ "epoch": 1.16,
123
+ "eval_accuracy": 0.8873911499977112,
124
+ "eval_loss": 0.2975434362888336,
125
+ "eval_runtime": 132.2605,
126
+ "eval_samples_per_second": 218.75,
127
+ "eval_steps_per_second": 3.425,
128
+ "step": 40000
129
+ },
130
+ {
131
+ "epoch": 1.3,
132
+ "learning_rate": 1.7462602355255925e-05,
133
+ "loss": 0.2723,
134
+ "step": 45000
135
+ },
136
+ {
137
+ "epoch": 1.3,
138
+ "eval_accuracy": 0.8906055688858032,
139
+ "eval_loss": 0.29133233428001404,
140
+ "eval_runtime": 132.58,
141
+ "eval_samples_per_second": 218.223,
142
+ "eval_steps_per_second": 3.417,
143
+ "step": 45000
144
+ },
145
+ {
146
+ "epoch": 1.45,
147
+ "learning_rate": 1.384580885969735e-05,
148
+ "loss": 0.2724,
149
+ "step": 50000
150
+ },
151
+ {
152
+ "epoch": 1.45,
153
+ "eval_accuracy": 0.8903636336326599,
154
+ "eval_loss": 0.2879472076892853,
155
+ "eval_runtime": 132.7015,
156
+ "eval_samples_per_second": 218.023,
157
+ "eval_steps_per_second": 3.414,
158
+ "step": 50000
159
+ },
160
+ {
161
+ "epoch": 1.59,
162
+ "learning_rate": 1.0229738722837882e-05,
163
+ "loss": 0.27,
164
+ "step": 55000
165
+ },
166
+ {
167
+ "epoch": 1.59,
168
+ "eval_accuracy": 0.8910548686981201,
169
+ "eval_loss": 0.28737255930900574,
170
+ "eval_runtime": 132.683,
171
+ "eval_samples_per_second": 218.054,
172
+ "eval_steps_per_second": 3.414,
173
+ "step": 55000
174
+ },
175
+ {
176
+ "epoch": 1.74,
177
+ "learning_rate": 6.615115303376639e-06,
178
+ "loss": 0.2681,
179
+ "step": 60000
180
+ },
181
+ {
182
+ "epoch": 1.74,
183
+ "eval_accuracy": 0.8927831053733826,
184
+ "eval_loss": 0.28480109572410583,
185
+ "eval_runtime": 132.2639,
186
+ "eval_samples_per_second": 218.744,
187
+ "eval_steps_per_second": 3.425,
188
+ "step": 60000
189
+ },
190
+ {
191
+ "epoch": 1.88,
192
+ "learning_rate": 2.9997685252162845e-06,
193
+ "loss": 0.2672,
194
+ "step": 65000
195
+ },
196
+ {
197
+ "epoch": 1.88,
198
+ "eval_accuracy": 0.893439769744873,
199
+ "eval_loss": 0.2832432985305786,
200
+ "eval_runtime": 132.917,
201
+ "eval_samples_per_second": 217.67,
202
+ "eval_steps_per_second": 3.408,
203
+ "step": 65000
204
+ },
205
+ {
206
+ "epoch": 2.0,
207
+ "step": 69122,
208
+ "total_flos": 2.955371035238809e+17,
209
+ "train_loss": 0.29886255871073064,
210
+ "train_runtime": 56655.4623,
211
+ "train_samples_per_second": 78.081,
212
+ "train_steps_per_second": 1.22
213
+ }
214
+ ],
215
+ "max_steps": 69122,
216
+ "num_train_epochs": 2,
217
+ "total_flos": 2.955371035238809e+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:1802f27481ade8a7a37fb3236357b1d39966895d0506e183ec8691bec204c914
3
+ size 3055
vocab.txt ADDED
The diff for this file is too large to render. See raw diff