Bioformer-16L finetuned on caption and reference text
Browse files- config.json +34 -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 +124 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bioformers/bioformer-16L",
|
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": 384,
|
11 |
+
"id2label": {
|
12 |
+
"0": "medical",
|
13 |
+
"1": "non-medical"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 1536,
|
17 |
+
"label2id": {
|
18 |
+
"false": 0,
|
19 |
+
"true": 1
|
20 |
+
},
|
21 |
+
"layer_norm_eps": 1e-12,
|
22 |
+
"max_position_embeddings": 1024,
|
23 |
+
"model_type": "bert",
|
24 |
+
"num_attention_heads": 6,
|
25 |
+
"num_hidden_layers": 16,
|
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": 32768
|
34 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37e75863a62febf191f009d6e1bdb2214bed8c4bae990365471c3b218a6cfe4f
|
3 |
+
size 166101712
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3b02dea93411aa8e1a2996c34fd49ff5f145d8105e9604607935754d766faa11
|
3 |
+
size 332363130
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70ce42163fbe4e2683e380aa3b8649d8e053e2fce2868fb3c87b16109b1831bf
|
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 |
+
"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": 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.17314428091049194,
|
3 |
+
"best_model_checkpoint": "bioformer16L_caption_reference_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": 6.706948757171631,
|
14 |
+
"learning_rate": 2.75609756097561e-05,
|
15 |
+
"loss": 0.2407,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.8130081300813008,
|
20 |
+
"grad_norm": 1.3687267303466797,
|
21 |
+
"learning_rate": 2.5121951219512197e-05,
|
22 |
+
"loss": 0.1735,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"eval_accuracy": 0.9312953685717207,
|
28 |
+
"eval_f1": 0.927173283220003,
|
29 |
+
"eval_f1_medical": 0.9444995044598612,
|
30 |
+
"eval_f1_non_medical": 0.9098470619801449,
|
31 |
+
"eval_loss": 0.17314428091049194,
|
32 |
+
"eval_precision": 0.9262681850675076,
|
33 |
+
"eval_recall": 0.928118633114136,
|
34 |
+
"eval_runtime": 45.6262,
|
35 |
+
"eval_samples_per_second": 214.372,
|
36 |
+
"eval_steps_per_second": 6.707,
|
37 |
+
"step": 1230
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 1.2195121951219512,
|
41 |
+
"grad_norm": 3.611739158630371,
|
42 |
+
"learning_rate": 2.2682926829268295e-05,
|
43 |
+
"loss": 0.1481,
|
44 |
+
"step": 1500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.6260162601626016,
|
48 |
+
"grad_norm": 4.197986602783203,
|
49 |
+
"learning_rate": 2.024390243902439e-05,
|
50 |
+
"loss": 0.1262,
|
51 |
+
"step": 2000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 2.0,
|
55 |
+
"eval_accuracy": 0.9335446273387179,
|
56 |
+
"eval_f1": 0.928879727140856,
|
57 |
+
"eval_f1_medical": 0.9470942536220088,
|
58 |
+
"eval_f1_non_medical": 0.9106652006597031,
|
59 |
+
"eval_loss": 0.19185571372509003,
|
60 |
+
"eval_precision": 0.9323681847557893,
|
61 |
+
"eval_recall": 0.9258256103438091,
|
62 |
+
"eval_runtime": 45.171,
|
63 |
+
"eval_samples_per_second": 216.533,
|
64 |
+
"eval_steps_per_second": 6.774,
|
65 |
+
"step": 2460
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 2.032520325203252,
|
69 |
+
"grad_norm": 4.785476207733154,
|
70 |
+
"learning_rate": 1.7804878048780488e-05,
|
71 |
+
"loss": 0.1146,
|
72 |
+
"step": 2500
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 2.4390243902439024,
|
76 |
+
"grad_norm": 8.604289054870605,
|
77 |
+
"learning_rate": 1.5365853658536586e-05,
|
78 |
+
"loss": 0.0779,
|
79 |
+
"step": 3000
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 2.845528455284553,
|
83 |
+
"grad_norm": 7.571163654327393,
|
84 |
+
"learning_rate": 1.2926829268292684e-05,
|
85 |
+
"loss": 0.0902,
|
86 |
+
"step": 3500
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 3.0,
|
90 |
+
"eval_accuracy": 0.9337491054084449,
|
91 |
+
"eval_f1": 0.9294934079365336,
|
92 |
+
"eval_f1_medical": 0.9468154957321077,
|
93 |
+
"eval_f1_non_medical": 0.9121713201409596,
|
94 |
+
"eval_loss": 0.23544831573963165,
|
95 |
+
"eval_precision": 0.9302875262434688,
|
96 |
+
"eval_recall": 0.9287260343031765,
|
97 |
+
"eval_runtime": 45.0337,
|
98 |
+
"eval_samples_per_second": 217.193,
|
99 |
+
"eval_steps_per_second": 6.795,
|
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": 1.0352847592113792e+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:de86408b569dd9e1bfcbfb5c91074eec691a42f530d3a9e5402e582c6f641fe7
|
3 |
+
size 5176
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|