c-bone commited on
Commit
aed8e82
·
verified ·
1 Parent(s): 2c9f973

Add the training config that produced this checkpoint

Browse files
Files changed (1) hide show
  1. training_config.jsonc +79 -0
training_config.jsonc ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ // Data Arguments
3
+ //################
4
+ "dataset_HF": "c-bone/mpdb-slme-full",
5
+ "pretrained_tokenizer_dir": "HF-cif-tokenizer",
6
+ "context_length": 1024,
7
+ // Filters
8
+ "remove_CIFs_above_context": false,
9
+ "remove_CIFs_with_unk": true,
10
+
11
+ // Conditional Arguments
12
+ //#######################
13
+ "condition_columns": "['norm_SLME']" ,
14
+ "n_prefix_tokens": 1,
15
+ "n_hidden_cond": 768,
16
+ "cond_dropout": 0.14,
17
+ "share_layers": false,
18
+ "n_heads_sharing_slider": 2,
19
+ "cond_lr": 3.27508165E-5,
20
+ "cond_wd": 0.13,
21
+ "activate_conditionality": "PKV",
22
+
23
+
24
+ // Model Arguments
25
+ //#################
26
+ // Model Depth
27
+ // n_positions has been tied to context_length
28
+ "n_embd": 512,
29
+ "n_layer": 8,
30
+ "n_head": 8,
31
+ // Dropout
32
+ "residual_dropout": 0.1,
33
+ "embedding_dropout": 0.1,
34
+ "attention_dropout": 0.1,
35
+
36
+ // Trainer Arguments
37
+ //###################
38
+ // Batching
39
+ "train_batch_size": 32,
40
+ "eval_batch_size": 32,
41
+ "gradient_accumulation_steps": 1,
42
+ "auto_find_batch_size": false,
43
+ // Learning Rate and Optimizer
44
+ "learning_rate": 1.0596703391605471e-06,
45
+ "lr_scheduler_type": "cosine_with_min_lr",
46
+ "lr_scheduler_kwargs": {
47
+ "min_lr_rate": 0.01
48
+ },
49
+ "warmup_steps": 250,
50
+ "adam_beta1": 0.9,
51
+ "adam_beta2": 0.999,
52
+ "grad_clip": 1.0,
53
+ // "max_grad_norm": 1.0,
54
+ "weight_decay": 0.09,
55
+ // Logging
56
+ "output_dir": "model_ckpts/mpdb_slme/PKV-opt",
57
+ "save_total_limit": 2,
58
+ "report_to": "wandb",
59
+ "wandb_project_folder": "SLME",
60
+ "pretrained_model_dir": "model_ckpts/mpdb-small-base-lematerial/checkpoint-1250000",
61
+ "eval_strategy": "no",
62
+ "logging_steps": 50,
63
+ "save_strategy": "steps",
64
+ "max_steps": 16000,
65
+ // Utils
66
+ "seed": 1,
67
+ "data_seed": 1,
68
+ // "load_best_model_at_end": true,
69
+ "metric_for_best_model": "train_loss",
70
+ "greater_is_better": false,
71
+ "torch_compile": true,
72
+ "fp16": true,
73
+ "deepspeed_config": "_config_files/deepspeed_default.json",
74
+
75
+ // CodeCarbon Arguments
76
+ //######################
77
+ "codecarbon": true,
78
+ "tracker_project": "CrystaLLM-pi"
79
+ }