Chenghao-Qiu commited on
Commit
3984fc6
·
verified ·
1 Parent(s): 8511ca7

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "zhihan1996/DNABERT-2-117M",
3
+ "alibi_starting_size": 512,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "auto_map": {
9
+ "AutoConfig": "zhihan1996/DNABERT-2-117M--configuration_bert.BertConfig",
10
+ "AutoModel": "zhihan1996/DNABERT-2-117M--bert_layers.BertModel",
11
+ "AutoModelForMaskedLM": "zhihan1996/DNABERT-2-117M--bert_layers.BertForMaskedLM",
12
+ "AutoModelForSequenceClassification": "zhihan1996/DNABERT-2-117M--bert_layers.BertForSequenceClassification"
13
+ },
14
+ "classifier_dropout": null,
15
+ "gradient_checkpointing": false,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.1,
18
+ "hidden_size": 768,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "layer_norm_eps": 1e-12,
22
+ "max_position_embeddings": 512,
23
+ "model_type": "bert",
24
+ "num_attention_heads": 12,
25
+ "num_hidden_layers": 12,
26
+ "pad_token_id": 0,
27
+ "position_embedding_type": "absolute",
28
+ "problem_type": "single_label_classification",
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.45.2",
31
+ "type_vocab_size": 2,
32
+ "use_cache": true,
33
+ "vocab_size": 4096
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50ed8e4236840c8739550987ab1f190c2d7716dfdbb94472150a975a0c1fe891
3
+ size 468296408
optimizer_state_dict.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48625cac3b92d149691171d37d7b23d87724f77bee6344b6d270d323093d64fa
3
+ size 936682546
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[UNK]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[PAD]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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": false,
45
+ "cls_token": "[CLS]",
46
+ "mask_token": "[MASK]",
47
+ "model_max_length": 256,
48
+ "pad_token": "[PAD]",
49
+ "padding_side": "right",
50
+ "sep_token": "[SEP]",
51
+ "tokenizer_class": "PreTrainedTokenizerFast",
52
+ "unk_token": "[UNK]"
53
+ }
trainer_state.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.43876591324806213,
3
+ "best_model_checkpoint": "output_pipe/0/origin/checkpoint-400",
4
+ "epoch": 4.0,
5
+ "eval_steps": 200,
6
+ "global_step": 408,
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.9803921568627451,
13
+ "grad_norm": 4.340454578399658,
14
+ "learning_rate": 2.6061452513966484e-05,
15
+ "loss": 0.6743,
16
+ "step": 100
17
+ },
18
+ {
19
+ "epoch": 1.9607843137254903,
20
+ "grad_norm": 4.347059726715088,
21
+ "learning_rate": 1.7681564245810057e-05,
22
+ "loss": 0.4757,
23
+ "step": 200
24
+ },
25
+ {
26
+ "epoch": 1.9607843137254903,
27
+ "eval_accuracy": 0.8098765432098766,
28
+ "eval_f1": 0.8095002474022761,
29
+ "eval_loss": 0.45168113708496094,
30
+ "eval_matthews_correlation": 0.626803554022576,
31
+ "eval_precision": 0.8153468923901698,
32
+ "eval_recall": 0.8114686594479182,
33
+ "eval_runtime": 0.1311,
34
+ "eval_samples_per_second": 6180.527,
35
+ "eval_steps_per_second": 99.194,
36
+ "step": 200
37
+ },
38
+ {
39
+ "epoch": 2.9411764705882355,
40
+ "grad_norm": 6.6639485359191895,
41
+ "learning_rate": 9.301675977653631e-06,
42
+ "loss": 0.3291,
43
+ "step": 300
44
+ },
45
+ {
46
+ "epoch": 3.9215686274509802,
47
+ "grad_norm": 6.7193684577941895,
48
+ "learning_rate": 9.217877094972066e-07,
49
+ "loss": 0.2513,
50
+ "step": 400
51
+ },
52
+ {
53
+ "epoch": 3.9215686274509802,
54
+ "eval_accuracy": 0.8333333333333334,
55
+ "eval_f1": 0.8333025904792685,
56
+ "eval_loss": 0.43876591324806213,
57
+ "eval_matthews_correlation": 0.669050678827637,
58
+ "eval_precision": 0.8348738262910798,
59
+ "eval_recall": 0.8341772151898734,
60
+ "eval_runtime": 0.1238,
61
+ "eval_samples_per_second": 6544.22,
62
+ "eval_steps_per_second": 105.031,
63
+ "step": 400
64
+ },
65
+ {
66
+ "epoch": 4.0,
67
+ "step": 408,
68
+ "total_flos": 531354250802880.0,
69
+ "train_loss": 0.4285174494280535,
70
+ "train_runtime": 23.4588,
71
+ "train_samples_per_second": 1104.575,
72
+ "train_steps_per_second": 17.392
73
+ }
74
+ ],
75
+ "logging_steps": 100,
76
+ "max_steps": 408,
77
+ "num_input_tokens_seen": 0,
78
+ "num_train_epochs": 4,
79
+ "save_steps": 200,
80
+ "stateful_callbacks": {
81
+ "TrainerControl": {
82
+ "args": {
83
+ "should_epoch_stop": false,
84
+ "should_evaluate": false,
85
+ "should_log": false,
86
+ "should_save": true,
87
+ "should_training_stop": true
88
+ },
89
+ "attributes": {}
90
+ }
91
+ },
92
+ "total_flos": 531354250802880.0,
93
+ "train_batch_size": 64,
94
+ "trial_name": null,
95
+ "trial_params": null
96
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f5b87f984dc290198519933dbb3d3673d556d0ccad7a7bb47f705d449ca00bd
3
+ size 5368