jialicheng commited on
Commit
7824dd8
1 Parent(s): 8dd03a8

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: dmis-lab/biobert-v1.1
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: ddi_42
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
+ # ddi_42
16
+
17
+ This model is a fine-tuned version of [dmis-lab/biobert-v1.1](https://huggingface.co/dmis-lab/biobert-v1.1) on the None dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2816
20
+ - Accuracy: 0.9535
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: 32
41
+ - eval_batch_size: 256
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 10
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
50
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
51
+ | No log | 1.0 | 791 | 0.1755 | 0.9411 |
52
+ | 0.2029 | 2.0 | 1582 | 0.1931 | 0.9495 |
53
+ | 0.0749 | 3.0 | 2373 | 0.2716 | 0.9475 |
54
+ | 0.0442 | 4.0 | 3164 | 0.2566 | 0.9515 |
55
+ | 0.0442 | 5.0 | 3955 | 0.2816 | 0.9535 |
56
+ | 0.0249 | 6.0 | 4746 | 0.3136 | 0.9471 |
57
+ | 0.0135 | 7.0 | 5537 | 0.3219 | 0.9475 |
58
+ | 0.0102 | 8.0 | 6328 | 0.3054 | 0.9503 |
59
+ | 0.006 | 9.0 | 7119 | 0.3304 | 0.9515 |
60
+ | 0.006 | 10.0 | 7910 | 0.3346 | 0.9507 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.39.3
66
+ - Pytorch 2.2.2+cu118
67
+ - Datasets 2.18.0
68
+ - Tokenizers 0.15.2
all_results.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.9535256410256411,
4
+ "eval_loss": 0.2816075086593628,
5
+ "eval_runtime": 4.6959,
6
+ "eval_samples": 25296,
7
+ "eval_samples_per_second": 531.522,
8
+ "eval_steps_per_second": 2.129,
9
+ "test_accuracy": 0.943666899930021,
10
+ "test_loss": 0.35502904653549194,
11
+ "test_runtime": 9.8103,
12
+ "test_samples_per_second": 582.65,
13
+ "test_steps_per_second": 2.344,
14
+ "train_accuracy": 0.9965211891208097,
15
+ "train_loss": 0.013760130852460861,
16
+ "train_runtime": 40.2929,
17
+ "train_samples": 25296,
18
+ "train_samples_per_second": 627.803,
19
+ "train_steps_per_second": 2.457
20
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "finetuning_task": "text-classification",
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2",
17
+ "3": "LABEL_3",
18
+ "4": "LABEL_4"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "0": 0,
24
+ "1": 1,
25
+ "2": 2,
26
+ "3": 3,
27
+ "4": 4
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "pad_token_id": 0,
35
+ "position_embedding_type": "absolute",
36
+ "problem_type": "single_label_classification",
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.39.3",
39
+ "type_vocab_size": 2,
40
+ "use_cache": true,
41
+ "vocab_size": 28996
42
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.9535256410256411,
4
+ "eval_loss": 0.2816075086593628,
5
+ "eval_runtime": 4.6959,
6
+ "eval_samples": 2496,
7
+ "eval_samples_per_second": 531.522,
8
+ "eval_steps_per_second": 2.129
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e487188e605f5d213dc922ba1bdf83cdd516b55c0b7189ab96b3430d54598d6e
3
+ size 433279996
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39cb07f90a94fc2b6cc2f465326f83ed17694307bfbb993eb932eee13185c789
3
+ size 50048
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:086e42a2df6d0b7314e0c766fba270fa874c2243734beeee0ddbdaa41b19a0c5
3
+ size 114448
pred_logit_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dde01ff2306049ff3ed33984dc32aad221b2c9c4c1fb7804fed782cc2a35aae
3
+ size 506048
runs/Apr26_22-36-10_clu/events.out.tfevents.1714170981.clu ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec979c24bfb20e6569fe7df9168e131c8c0042a606683dc8cde0a24bcded2e7d
3
+ size 9971
runs/Apr26_22-36-10_clu/events.out.tfevents.1714172415.clu ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3854026147c9c7b0804b89834ae538a1a55fdec5a22c6fca84159078125842df
3
+ size 1044
runs/Apr27_01-37-49_clu/events.out.tfevents.1714181882.clu ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c18072ca67067719b3f6e06df704f7534a64f7efadae8fcf96c117ddba2ad98
3
+ size 9971
runs/Apr27_01-37-49_clu/events.out.tfevents.1714183314.clu ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ed0820e738ae92eeec36c448124b27fc99ad2c6b6e237d4adb8de1d966ed429
3
+ size 1044
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
+ }
test_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_samples": 5716,
4
+ "test_accuracy": 0.943666899930021,
5
+ "test_loss": 0.35502904653549194,
6
+ "test_runtime": 9.8103,
7
+ "test_samples_per_second": 582.65,
8
+ "test_steps_per_second": 2.344
9
+ }
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
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": false,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
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
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_samples": 25296,
4
+ "train_accuracy": 0.9965211891208097,
5
+ "train_loss": 0.013760130852460861,
6
+ "train_runtime": 40.2929,
7
+ "train_samples_per_second": 627.803,
8
+ "train_steps_per_second": 2.457
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9535256410256411,
3
+ "best_model_checkpoint": "text/train/checkpoint/biobert/ddi_42/checkpoint-3955",
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 7910,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_accuracy": 0.9411057692307693,
14
+ "eval_loss": 0.1755092442035675,
15
+ "eval_runtime": 4.5748,
16
+ "eval_samples_per_second": 545.6,
17
+ "eval_steps_per_second": 2.186,
18
+ "step": 791
19
+ },
20
+ {
21
+ "epoch": 1.26,
22
+ "grad_norm": 5.126912593841553,
23
+ "learning_rate": 4.367888748419722e-05,
24
+ "loss": 0.2029,
25
+ "step": 1000
26
+ },
27
+ {
28
+ "epoch": 2.0,
29
+ "eval_accuracy": 0.9495192307692307,
30
+ "eval_loss": 0.19307143986225128,
31
+ "eval_runtime": 4.5897,
32
+ "eval_samples_per_second": 543.827,
33
+ "eval_steps_per_second": 2.179,
34
+ "step": 1582
35
+ },
36
+ {
37
+ "epoch": 2.53,
38
+ "grad_norm": 4.425409317016602,
39
+ "learning_rate": 3.735777496839444e-05,
40
+ "loss": 0.0749,
41
+ "step": 2000
42
+ },
43
+ {
44
+ "epoch": 3.0,
45
+ "eval_accuracy": 0.9475160256410257,
46
+ "eval_loss": 0.27157464623451233,
47
+ "eval_runtime": 4.611,
48
+ "eval_samples_per_second": 541.313,
49
+ "eval_steps_per_second": 2.169,
50
+ "step": 2373
51
+ },
52
+ {
53
+ "epoch": 3.79,
54
+ "grad_norm": 0.21999871730804443,
55
+ "learning_rate": 3.1036662452591655e-05,
56
+ "loss": 0.0442,
57
+ "step": 3000
58
+ },
59
+ {
60
+ "epoch": 4.0,
61
+ "eval_accuracy": 0.9515224358974359,
62
+ "eval_loss": 0.25661203265190125,
63
+ "eval_runtime": 4.5979,
64
+ "eval_samples_per_second": 542.858,
65
+ "eval_steps_per_second": 2.175,
66
+ "step": 3164
67
+ },
68
+ {
69
+ "epoch": 5.0,
70
+ "eval_accuracy": 0.9535256410256411,
71
+ "eval_loss": 0.2816075086593628,
72
+ "eval_runtime": 4.559,
73
+ "eval_samples_per_second": 547.487,
74
+ "eval_steps_per_second": 2.193,
75
+ "step": 3955
76
+ },
77
+ {
78
+ "epoch": 5.06,
79
+ "grad_norm": 0.018685705959796906,
80
+ "learning_rate": 2.4715549936788876e-05,
81
+ "loss": 0.0249,
82
+ "step": 4000
83
+ },
84
+ {
85
+ "epoch": 6.0,
86
+ "eval_accuracy": 0.9471153846153846,
87
+ "eval_loss": 0.31359541416168213,
88
+ "eval_runtime": 4.623,
89
+ "eval_samples_per_second": 539.91,
90
+ "eval_steps_per_second": 2.163,
91
+ "step": 4746
92
+ },
93
+ {
94
+ "epoch": 6.32,
95
+ "grad_norm": 0.039792679250240326,
96
+ "learning_rate": 1.8394437420986094e-05,
97
+ "loss": 0.0135,
98
+ "step": 5000
99
+ },
100
+ {
101
+ "epoch": 7.0,
102
+ "eval_accuracy": 0.9475160256410257,
103
+ "eval_loss": 0.3218846023082733,
104
+ "eval_runtime": 4.5644,
105
+ "eval_samples_per_second": 546.846,
106
+ "eval_steps_per_second": 2.191,
107
+ "step": 5537
108
+ },
109
+ {
110
+ "epoch": 7.59,
111
+ "grad_norm": 0.004741465672850609,
112
+ "learning_rate": 1.2073324905183313e-05,
113
+ "loss": 0.0102,
114
+ "step": 6000
115
+ },
116
+ {
117
+ "epoch": 8.0,
118
+ "eval_accuracy": 0.9503205128205128,
119
+ "eval_loss": 0.30540913343429565,
120
+ "eval_runtime": 4.5686,
121
+ "eval_samples_per_second": 546.34,
122
+ "eval_steps_per_second": 2.189,
123
+ "step": 6328
124
+ },
125
+ {
126
+ "epoch": 8.85,
127
+ "grad_norm": 0.0014904498821124434,
128
+ "learning_rate": 5.752212389380531e-06,
129
+ "loss": 0.006,
130
+ "step": 7000
131
+ },
132
+ {
133
+ "epoch": 9.0,
134
+ "eval_accuracy": 0.9515224358974359,
135
+ "eval_loss": 0.3304109275341034,
136
+ "eval_runtime": 4.5703,
137
+ "eval_samples_per_second": 546.14,
138
+ "eval_steps_per_second": 2.188,
139
+ "step": 7119
140
+ },
141
+ {
142
+ "epoch": 10.0,
143
+ "eval_accuracy": 0.9507211538461539,
144
+ "eval_loss": 0.334633469581604,
145
+ "eval_runtime": 4.6402,
146
+ "eval_samples_per_second": 537.905,
147
+ "eval_steps_per_second": 2.155,
148
+ "step": 7910
149
+ },
150
+ {
151
+ "epoch": 10.0,
152
+ "step": 7910,
153
+ "total_flos": 1.663959132942336e+16,
154
+ "train_loss": 0.04803710016981238,
155
+ "train_runtime": 1426.0933,
156
+ "train_samples_per_second": 177.38,
157
+ "train_steps_per_second": 5.547
158
+ }
159
+ ],
160
+ "logging_steps": 1000,
161
+ "max_steps": 7910,
162
+ "num_input_tokens_seen": 0,
163
+ "num_train_epochs": 10,
164
+ "save_steps": 500,
165
+ "total_flos": 1.663959132942336e+16,
166
+ "train_batch_size": 32,
167
+ "trial_name": null,
168
+ "trial_params": null
169
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f3089a448d56a582bb33bdcdb527373e91b01b8ff86f4c336970dcf8405218e
3
+ size 4984
vocab.txt ADDED
The diff for this file is too large to render. See raw diff