Upload model checkpoint
Browse files- config.json +39 -0
- model.safetensors +3 -0
- optimizer.pt +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- trainer_state.json +180 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "emilyalsentzer/Bio_ClinicalBERT",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
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": "O",
|
13 |
+
"1": "B-Chemical",
|
14 |
+
"2": "B-Disease",
|
15 |
+
"3": "I-Disease",
|
16 |
+
"4": "I-Chemical"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"B-Chemical": 1,
|
22 |
+
"B-Disease": 2,
|
23 |
+
"I-Chemical": 4,
|
24 |
+
"I-Disease": 3,
|
25 |
+
"O": 0
|
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 |
+
"torch_dtype": "float32",
|
35 |
+
"transformers_version": "4.45.2",
|
36 |
+
"type_vocab_size": 2,
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 28996
|
39 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49a27ec919eaefeb2a226c99d59bb7bbfb5ab1347b9e1c524d740c57c39563ed
|
3 |
+
size 430917436
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fecc8951c83713d096eedec50ce0eff1f4d1a495c6b113aa5b413e22b54d3422
|
3 |
+
size 861954618
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11408855cf9f3a8cbd687c4d1bec1d76593c2506255fc8e744677732235116cb
|
3 |
+
size 14244
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:025ca11bfb84e634a6060e1578dcf4dedb5233e981f8b9f59f6b67101541ee03
|
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 |
+
"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": 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,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 7.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 4578,
|
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.764525993883792,
|
13 |
+
"grad_norm": 2.860719919204712,
|
14 |
+
"learning_rate": 1.781564001747488e-05,
|
15 |
+
"loss": 0.2481,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"eval_accuracy": 0.9536874012447196,
|
21 |
+
"eval_f1": 0.8924138535986316,
|
22 |
+
"eval_loss": 0.13802066445350647,
|
23 |
+
"eval_precision": 0.8979934094386254,
|
24 |
+
"eval_recall": 0.8869032051840874,
|
25 |
+
"eval_runtime": 25.0596,
|
26 |
+
"eval_samples_per_second": 212.693,
|
27 |
+
"eval_steps_per_second": 26.617,
|
28 |
+
"step": 654
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"epoch": 1.529051987767584,
|
32 |
+
"grad_norm": 2.250061273574829,
|
33 |
+
"learning_rate": 1.563128003494976e-05,
|
34 |
+
"loss": 0.0943,
|
35 |
+
"step": 1000
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"epoch": 2.0,
|
39 |
+
"eval_accuracy": 0.9569120634613524,
|
40 |
+
"eval_f1": 0.9029714891848114,
|
41 |
+
"eval_loss": 0.1516450196504593,
|
42 |
+
"eval_precision": 0.891004243281471,
|
43 |
+
"eval_recall": 0.9152645802458373,
|
44 |
+
"eval_runtime": 25.372,
|
45 |
+
"eval_samples_per_second": 210.074,
|
46 |
+
"eval_steps_per_second": 26.289,
|
47 |
+
"step": 1308
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 2.293577981651376,
|
51 |
+
"grad_norm": 0.9499523043632507,
|
52 |
+
"learning_rate": 1.344692005242464e-05,
|
53 |
+
"loss": 0.0595,
|
54 |
+
"step": 1500
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 3.0,
|
58 |
+
"eval_accuracy": 0.9584212053787365,
|
59 |
+
"eval_f1": 0.9057778035083657,
|
60 |
+
"eval_loss": 0.17137625813484192,
|
61 |
+
"eval_precision": 0.9023039880042677,
|
62 |
+
"eval_recall": 0.909278470345509,
|
63 |
+
"eval_runtime": 24.0746,
|
64 |
+
"eval_samples_per_second": 221.395,
|
65 |
+
"eval_steps_per_second": 27.706,
|
66 |
+
"step": 1962
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"epoch": 3.058103975535168,
|
70 |
+
"grad_norm": 0.29300621151924133,
|
71 |
+
"learning_rate": 1.126256006989952e-05,
|
72 |
+
"loss": 0.0405,
|
73 |
+
"step": 2000
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"epoch": 3.8226299694189603,
|
77 |
+
"grad_norm": 0.09997886419296265,
|
78 |
+
"learning_rate": 9.0782000873744e-06,
|
79 |
+
"loss": 0.0218,
|
80 |
+
"step": 2500
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 4.0,
|
84 |
+
"eval_accuracy": 0.9578988100996421,
|
85 |
+
"eval_f1": 0.9073512721421696,
|
86 |
+
"eval_loss": 0.20640073716640472,
|
87 |
+
"eval_precision": 0.8972836278911178,
|
88 |
+
"eval_recall": 0.9176474006915991,
|
89 |
+
"eval_runtime": 23.267,
|
90 |
+
"eval_samples_per_second": 229.08,
|
91 |
+
"eval_steps_per_second": 28.667,
|
92 |
+
"step": 2616
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 4.587155963302752,
|
96 |
+
"grad_norm": 1.0946885347366333,
|
97 |
+
"learning_rate": 6.89384010484928e-06,
|
98 |
+
"loss": 0.0121,
|
99 |
+
"step": 3000
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 5.0,
|
103 |
+
"eval_accuracy": 0.9587372222759666,
|
104 |
+
"eval_f1": 0.9086317256194029,
|
105 |
+
"eval_loss": 0.22833754122257233,
|
106 |
+
"eval_precision": 0.9076963229323745,
|
107 |
+
"eval_recall": 0.9095690582047482,
|
108 |
+
"eval_runtime": 23.0423,
|
109 |
+
"eval_samples_per_second": 231.314,
|
110 |
+
"eval_steps_per_second": 28.947,
|
111 |
+
"step": 3270
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 5.351681957186544,
|
115 |
+
"grad_norm": 0.06167488545179367,
|
116 |
+
"learning_rate": 4.70948012232416e-06,
|
117 |
+
"loss": 0.0106,
|
118 |
+
"step": 3500
|
119 |
+
},
|
120 |
+
{
|
121 |
+
"epoch": 6.0,
|
122 |
+
"eval_accuracy": 0.9577440263132437,
|
123 |
+
"eval_f1": 0.9077642656688494,
|
124 |
+
"eval_loss": 0.24395699799060822,
|
125 |
+
"eval_precision": 0.8992358576642335,
|
126 |
+
"eval_recall": 0.9164559904687182,
|
127 |
+
"eval_runtime": 29.2986,
|
128 |
+
"eval_samples_per_second": 181.92,
|
129 |
+
"eval_steps_per_second": 22.766,
|
130 |
+
"step": 3924
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 6.116207951070336,
|
134 |
+
"grad_norm": 0.0039491127245128155,
|
135 |
+
"learning_rate": 2.5251201397990393e-06,
|
136 |
+
"loss": 0.0067,
|
137 |
+
"step": 4000
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 6.8807339449541285,
|
141 |
+
"grad_norm": 0.015259736217558384,
|
142 |
+
"learning_rate": 3.407601572739188e-07,
|
143 |
+
"loss": 0.005,
|
144 |
+
"step": 4500
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 7.0,
|
148 |
+
"eval_accuracy": 0.9576085905001451,
|
149 |
+
"eval_f1": 0.9074234296591107,
|
150 |
+
"eval_loss": 0.2515053153038025,
|
151 |
+
"eval_precision": 0.9006440532417347,
|
152 |
+
"eval_recall": 0.9143056403103479,
|
153 |
+
"eval_runtime": 24.477,
|
154 |
+
"eval_samples_per_second": 217.756,
|
155 |
+
"eval_steps_per_second": 27.25,
|
156 |
+
"step": 4578
|
157 |
+
}
|
158 |
+
],
|
159 |
+
"logging_steps": 500,
|
160 |
+
"max_steps": 4578,
|
161 |
+
"num_input_tokens_seen": 0,
|
162 |
+
"num_train_epochs": 7,
|
163 |
+
"save_steps": 500,
|
164 |
+
"stateful_callbacks": {
|
165 |
+
"TrainerControl": {
|
166 |
+
"args": {
|
167 |
+
"should_epoch_stop": false,
|
168 |
+
"should_evaluate": false,
|
169 |
+
"should_log": false,
|
170 |
+
"should_save": true,
|
171 |
+
"should_training_stop": true
|
172 |
+
},
|
173 |
+
"attributes": {}
|
174 |
+
}
|
175 |
+
},
|
176 |
+
"total_flos": 1242291550958640.0,
|
177 |
+
"train_batch_size": 8,
|
178 |
+
"trial_name": null,
|
179 |
+
"trial_params": null
|
180 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4125a0a079eb46c017a0a84fc05a26f4b31b5c6ba215cfdd41f0ae5155a9c34
|
3 |
+
size 5240
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|