inspirewind commited on
Commit
7662c6d
·
verified ·
1 Parent(s): a448829

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "ViralBERTForContrastiveBinning"
15
+ ],
16
+ "attention_head_size": 64,
17
+ "attention_probs_dropout_prob": 0.0,
18
+ "batch_size": 256,
19
+ "cls_token_id": 1,
20
+ "compile_backend": "inductor",
21
+ "compile_fullgraph": true,
22
+ "compile_mode": "default",
23
+ "data_dir": "data/raw",
24
+ "dtype": "float32",
25
+ "fasta_file": "meta-1-vg.fna",
26
+ "feed_forward_activation": "swiglu",
27
+ "filter_n": false,
28
+ "fp16": true,
29
+ "global_attn_every_n_layers": 0,
30
+ "global_max_grad_norm": 1.0,
31
+ "gradient_accumulation_steps": 1,
32
+ "hidden_dropout_prob": 0.0,
33
+ "hidden_size": 768,
34
+ "high_lr_multiplier": 1.0,
35
+ "high_lr_steps_ratio": 0.0,
36
+ "initializer_range": 0.02,
37
+ "intermediate_size": 2048,
38
+ "layer_norm_eps": 1e-12,
39
+ "logging_steps": 1000,
40
+ "lr_scheduler_type": "warmup_cosine",
41
+ "mask_token_id": 3,
42
+ "masking_strategy": "structural",
43
+ "max_eval_samples": 2048,
44
+ "max_steps_for_sweep": null,
45
+ "min_lr_ratio": 0.05,
46
+ "mlm_probability": 0.15,
47
+ "moco_dim": 128,
48
+ "moco_k": 65536,
49
+ "moco_m": 0.999,
50
+ "moco_t": 0.07,
51
+ "model_type": "viralbert_for_contrastive_binning",
52
+ "muon_lr": 0.0015,
53
+ "muon_max_grad_norm": 1.0,
54
+ "muon_momentum": 0.95,
55
+ "muon_weight_decay": 0.05,
56
+ "norm_layer_type": "rmsnorm",
57
+ "num_attention_heads": 12,
58
+ "num_hidden_layers": 12,
59
+ "num_train_epochs": 3,
60
+ "num_workers": 4,
61
+ "optimizer_type": "muon_adamw",
62
+ "p_codon": 0.5,
63
+ "pad_token_id": 0,
64
+ "position_embedding_type": "rope",
65
+ "resume_from_checkpoint": null,
66
+ "resume_mode": null,
67
+ "reverse_complement_prob": 0.5,
68
+ "rope_interpolation_factor": 1.0,
69
+ "run_name": "",
70
+ "save_steps": 10000,
71
+ "save_total_limit": 5,
72
+ "scale_loss_for_accumulation": true,
73
+ "seed": 42,
74
+ "sep_token_id": 2,
75
+ "seq_length": 512,
76
+ "sliding_window_size": 0,
77
+ "stride": 256,
78
+ "sweep_early_stopping_patience_steps": 1000,
79
+ "sweep_early_stopping_threshold": 50.0,
80
+ "tie_word_embeddings": false,
81
+ "transformers_version": "4.56.1",
82
+ "unfreeze_last_n_layers": 6,
83
+ "use_compile": true,
84
+ "use_per_group_clipping": false,
85
+ "use_qk_norm": true,
86
+ "use_xpos": false,
87
+ "vocab_size": 14,
88
+ "wandb_enabled": true,
89
+ "wandb_group": "",
90
+ "wandb_name": "",
91
+ "wandb_notes": "",
92
+ "wandb_project": "",
93
+ "wandb_tags": [],
94
+ "wandb_watch_freq": null,
95
+ "wandb_watch_model": false,
96
+ "warmup_steps": 4000,
97
+ "warmup_steps_ratio": 0.1
98
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fa2690f463eb30c2dfc10fc36e0ccb0f135e9064053aac113fb9467c7cd0139
3
+ size 718828232
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
+ }