inspirewind commited on
Commit
87dcdb4
·
verified ·
1 Parent(s): d1fa403

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "adamw_betas_for_muon_others": [
3
+ 0.9,
4
+ 0.95
5
+ ],
6
+ "adamw_eps_for_muon_others": 1e-10,
7
+ "adamw_lr": 0.00064,
8
+ "adamw_lr_for_muon_others": 0.000267,
9
+ "adamw_max_grad_norm": 0.5,
10
+ "adamw_weight_decay": 0.01,
11
+ "adamw_weight_decay_for_muon_others": 0.05,
12
+ "adjust_learning_rate_for_accumulation": true,
13
+ "architectures": [
14
+ "ViralBERTForSequenceClassification"
15
+ ],
16
+ "attention_head_size": 64,
17
+ "attention_probs_dropout_prob": 0.0,
18
+ "batch_size": 256,
19
+ "class_weights": null,
20
+ "classifier_dropout_prob": 0.1,
21
+ "cls_token_id": 1,
22
+ "compile_backend": "inductor",
23
+ "compile_fullgraph": true,
24
+ "compile_mode": "default",
25
+ "data_dir": "",
26
+ "dtype": "float32",
27
+ "fasta_file": "",
28
+ "feed_forward_activation": "swiglu",
29
+ "filter_n": false,
30
+ "fp16": true,
31
+ "freeze_bert_layers": 8,
32
+ "global_attn_every_n_layers": 0,
33
+ "global_max_grad_norm": 1.0,
34
+ "gradient_accumulation_steps": 8,
35
+ "hidden_dropout_prob": 0.0,
36
+ "hidden_size": 768,
37
+ "high_lr_multiplier": 1.0,
38
+ "high_lr_steps_ratio": 0.0,
39
+ "id2label": {
40
+ "0": "bac",
41
+ "1": "virus"
42
+ },
43
+ "initializer_range": 0.02,
44
+ "intermediate_size": 2048,
45
+ "label2id": {
46
+ "bac": 0,
47
+ "virus": 1
48
+ },
49
+ "label_smoothing_factor": 0.1,
50
+ "layer_norm_eps": 1e-12,
51
+ "logging_steps": 1000,
52
+ "loss_type": "ce",
53
+ "lr_scheduler_type": "cosine",
54
+ "mask_token_id": 3,
55
+ "masking_strategy": "structural",
56
+ "max_eval_samples": 2048,
57
+ "max_steps_for_sweep": null,
58
+ "min_lr_ratio": 0.05,
59
+ "mlm_probability": 0.15,
60
+ "model_type": "viralbert_for_sequence_classification",
61
+ "muon_lr": 0.0015,
62
+ "muon_max_grad_norm": 1.0,
63
+ "muon_momentum": 0.95,
64
+ "muon_weight_decay": 0.05,
65
+ "n_token_id": 9,
66
+ "norm_layer_type": "rmsnorm",
67
+ "num_attention_heads": 12,
68
+ "num_hidden_layers": 12,
69
+ "num_train_epochs": 3,
70
+ "num_workers": 4,
71
+ "optimizer_type": "muon_adamw",
72
+ "p_codon": 0.5,
73
+ "pad_token_id": 0,
74
+ "pos_weight": null,
75
+ "position_embedding_type": "rope",
76
+ "resume_from_checkpoint": null,
77
+ "resume_mode": null,
78
+ "reverse_complement_prob": 0.5,
79
+ "rope_interpolation_factor": 1.0,
80
+ "run_name": "",
81
+ "save_steps": 10000,
82
+ "save_total_limit": 5,
83
+ "scale_loss_for_accumulation": true,
84
+ "seed": 42,
85
+ "sep_token_id": 2,
86
+ "seq_length": 512,
87
+ "seq_mask_prob": 0.5,
88
+ "seq_mask_ratio": 0.15,
89
+ "sliding_window_size": 0,
90
+ "stride": 256,
91
+ "sweep_early_stopping_patience_steps": 1000,
92
+ "sweep_early_stopping_threshold": 50.0,
93
+ "tie_word_embeddings": false,
94
+ "transformers_version": "4.56.1",
95
+ "use_compile": true,
96
+ "use_per_group_clipping": false,
97
+ "use_qk_norm": true,
98
+ "use_seq_augment": true,
99
+ "use_xpos": false,
100
+ "vocab_size": 14,
101
+ "wandb_enabled": true,
102
+ "wandb_group": "",
103
+ "wandb_name": "",
104
+ "wandb_notes": "",
105
+ "wandb_project": "",
106
+ "wandb_tags": [],
107
+ "wandb_watch_freq": null,
108
+ "wandb_watch_model": false,
109
+ "warmup_steps": 4000,
110
+ "warmup_steps_ratio": 0.1
111
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f42aedb0c5fec79ad93e4d314bd1dbac80e38ed2ca2013981500c8066ec158c2
3
+ size 342249056
special_tokens_map.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "[M_S]",
4
+ "[M_B]",
5
+ "[M_I]",
6
+ "[M_E]"
7
+ ],
8
+ "cls_token": "[CLS]",
9
+ "mask_token": "[MASK]",
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "unk_token": "[UNK]"
13
+ }
tokenizer.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "viralbert",
3
+ "token_to_id": {
4
+ "[PAD]": 0,
5
+ "[CLS]": 1,
6
+ "[SEP]": 2,
7
+ "[MASK]": 3,
8
+ "[UNK]": 4,
9
+ "A": 5,
10
+ "C": 6,
11
+ "G": 7,
12
+ "T": 8,
13
+ "N": 9,
14
+ "[M_S]": 10,
15
+ "[M_B]": 11,
16
+ "[M_I]": 12,
17
+ "[M_E]": 13
18
+ },
19
+ "standard_bases": [
20
+ "A",
21
+ "C",
22
+ "G",
23
+ "T"
24
+ ],
25
+ "vocab_size": 14,
26
+ "special_tokens": {
27
+ "unk_token": "[UNK]",
28
+ "sep_token": "[SEP]",
29
+ "pad_token": "[PAD]",
30
+ "cls_token": "[CLS]",
31
+ "mask_token": "[MASK]"
32
+ }
33
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "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": "[MASK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[UNK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "10": {
44
+ "content": "[M_S]",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "11": {
52
+ "content": "[M_B]",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "12": {
60
+ "content": "[M_I]",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ },
67
+ "13": {
68
+ "content": "[M_E]",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ }
75
+ },
76
+ "additional_special_tokens": [
77
+ "[M_S]",
78
+ "[M_B]",
79
+ "[M_I]",
80
+ "[M_E]"
81
+ ],
82
+ "clean_up_tokenization_spaces": false,
83
+ "cls_token": "[CLS]",
84
+ "extra_special_tokens": {},
85
+ "mask_token": "[MASK]",
86
+ "model_max_length": 1000000000000000019884624838656,
87
+ "pad_token": "[PAD]",
88
+ "sep_token": "[SEP]",
89
+ "tokenizer_class": "ViralBERTTokenizer",
90
+ "unk_token": "[UNK]"
91
+ }