Euanyu commited on
Commit
563610c
1 Parent(s): ce539da

Bioformer8L finetuned on caption and reference

Browse files
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bioformers/bioformer-8L",
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": 512,
11
+ "id2label": {
12
+ "0": "medical",
13
+ "1": "non-medical"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 2048,
17
+ "label2id": {
18
+ "false": 0,
19
+ "true": 1
20
+ },
21
+ "layer_norm_eps": 1e-12,
22
+ "max_position_embeddings": 512,
23
+ "model_type": "bert",
24
+ "num_attention_heads": 8,
25
+ "num_hidden_layers": 8,
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:c4b5a277fedfb6854ce96cdb3f5033eedef964dd303c275badc180a6e8ab6c03
3
+ size 170112544
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:906549280b545654a7880219f1be8769e357e4f86c523edfd7b8840a3448ad11
3
+ size 340308090
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c601a01fb930768137c76e791e66a1c1a368c64ffb6496d523c371d6d7430fd0
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbc8cfc3c0c7c3e9ca7a2f291ecebb32099d3d2a715930cba68b5e931884385b
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,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.17856432497501373,
3
+ "best_model_checkpoint": "bioformer8L_caption_reference_RTX6000/checkpoint-1230",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2460,
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": 8.241156578063965,
14
+ "learning_rate": 2.75609756097561e-05,
15
+ "loss": 0.2277,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.8130081300813008,
20
+ "grad_norm": 2.205291986465454,
21
+ "learning_rate": 2.5121951219512197e-05,
22
+ "loss": 0.177,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.9276147633166343,
28
+ "eval_f1": 0.9222332155896071,
29
+ "eval_f1_medical": 0.9426906265177271,
30
+ "eval_f1_non_medical": 0.9017758046614872,
31
+ "eval_loss": 0.17856432497501373,
32
+ "eval_precision": 0.9277090451077986,
33
+ "eval_recall": 0.9177374028102576,
34
+ "eval_runtime": 37.413,
35
+ "eval_samples_per_second": 261.433,
36
+ "eval_steps_per_second": 8.179,
37
+ "step": 1230
38
+ },
39
+ {
40
+ "epoch": 1.2195121951219512,
41
+ "grad_norm": 3.5154032707214355,
42
+ "learning_rate": 2.2682926829268295e-05,
43
+ "loss": 0.1466,
44
+ "step": 1500
45
+ },
46
+ {
47
+ "epoch": 1.6260162601626016,
48
+ "grad_norm": 3.8458199501037598,
49
+ "learning_rate": 2.024390243902439e-05,
50
+ "loss": 0.1232,
51
+ "step": 2000
52
+ },
53
+ {
54
+ "epoch": 2.0,
55
+ "eval_accuracy": 0.929352826909314,
56
+ "eval_f1": 0.9248187483559904,
57
+ "eval_f1_medical": 0.9432816219322006,
58
+ "eval_f1_non_medical": 0.9063558747797804,
59
+ "eval_loss": 0.20747286081314087,
60
+ "eval_precision": 0.9255804539078865,
61
+ "eval_recall": 0.9240820913256004,
62
+ "eval_runtime": 37.4622,
63
+ "eval_samples_per_second": 261.09,
64
+ "eval_steps_per_second": 8.168,
65
+ "step": 2460
66
+ }
67
+ ],
68
+ "logging_steps": 500,
69
+ "max_steps": 6150,
70
+ "num_input_tokens_seen": 0,
71
+ "num_train_epochs": 5,
72
+ "save_steps": 500,
73
+ "stateful_callbacks": {
74
+ "TrainerControl": {
75
+ "args": {
76
+ "should_epoch_stop": false,
77
+ "should_evaluate": false,
78
+ "should_log": false,
79
+ "should_save": true,
80
+ "should_training_stop": false
81
+ },
82
+ "attributes": {}
83
+ }
84
+ },
85
+ "total_flos": 6162603809728128.0,
86
+ "train_batch_size": 32,
87
+ "trial_name": null,
88
+ "trial_params": null
89
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97e28cedf350b1f6770309d1c5846b6342035a98d45f18baebaae7acb21e75ae
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff