c-bone commited on
Commit
b5eb969
·
verified ·
1 Parent(s): 47cbd6e

Add the training config that produced this checkpoint

Browse files
Files changed (1) hide show
  1. training_config.jsonc +85 -0
training_config.jsonc ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ // Data Arguments
3
+ //################
4
+ "dataset_HF": "c-bone/mattergen_den_ehull",
5
+ "pretrained_tokenizer_dir": "HF-cif-tokenizer",
6
+ "context_length": 1024,
7
+ "dataset_streaming": false,
8
+ // Filters
9
+ "remove_CIFs_above_context": true,
10
+ "remove_CIFs_with_unk": true,
11
+
12
+ // Conditional Arguments
13
+ //#######################
14
+ "condition_columns": "['norm_Density (g/cm^3)', 'norm_energy_above_hull']" ,
15
+ "n_prefix_tokens": 2,
16
+ "n_hidden_cond": 1024,
17
+ "cond_dropout": 0.01,
18
+ "share_layers": false,
19
+ "n_heads_sharing_slider": 2,
20
+ "cond_lr": 0.0005,
21
+ "cond_wd": 0.01,
22
+ "activate_conditionality": "PKV",
23
+
24
+
25
+ // Model Arguments
26
+ //#################
27
+ // Model Depth
28
+ // n_positions has been tied to context_length
29
+ "n_embd": 512,
30
+ "n_layer": 8,
31
+ "n_head": 8,
32
+ // Dropout
33
+ "residual_dropout": 0.1,
34
+ "embedding_dropout": 0.1,
35
+ "attention_dropout": 0.1,
36
+
37
+ // Trainer Arguments
38
+ //###################
39
+ // Batching
40
+ "train_batch_size": 32,
41
+ "eval_batch_size": 32,
42
+ "gradient_accumulation_steps": 1,
43
+ "auto_find_batch_size": false,
44
+ // Learning Rate and Optimizer
45
+ "learning_rate": 0.000005,
46
+ "lr_scheduler_type": "cosine_with_min_lr",
47
+ "lr_scheduler_kwargs": {
48
+ "min_lr_rate": 0.01
49
+ },
50
+ "warmup_ratio": 0.02, // 2% of training steps
51
+ "adam_beta1": 0.9,
52
+ "adam_beta2": 0.999,
53
+ "grad_clip": 1.0,
54
+ // "max_grad_norm": 1.0,
55
+ "weight_decay": 0.01,
56
+ // Logging
57
+ "output_dir": "model_ckpts/mattergen_den_ehull/PKV_ft",
58
+ "save_total_limit": 2,
59
+ "report_to": "wandb",
60
+ "wandb_project_folder": "dataset_size_study",
61
+ "pretrained_model_dir": "model_ckpts/mpdb-small-base-lematerial/checkpoint-1250000",
62
+ "eval_strategy": "steps",
63
+ "eval_steps": 4000, // 0.5 epoch
64
+ "logging_steps": 50, // 0.1 epoch
65
+ "save_strategy": "steps",
66
+ "max_steps": 400000, // 30 epochs
67
+ // to calculate the number of steps, use the following formula:
68
+ // steps = (number of epochs) * (number of training samples) / (batch size)
69
+ "early_stopping_patience": 15,
70
+ "early_stopping_threshold": 0.000005,
71
+ // Utils
72
+ "seed": 2,
73
+ "data_seed": 1,
74
+ "load_best_model_at_end": true,
75
+ "metric_for_best_model": "eval_loss",
76
+ "greater_is_better": false,
77
+ "torch_compile": true,
78
+ "fp16": true,
79
+ "deepspeed_config": "_config_files/deepspeed_default.json",
80
+
81
+ // CodeCarbon Arguments
82
+ //######################
83
+ "codecarbon": true,
84
+ "tracker_project": "CrystaLLM-pi"
85
+ }