hhhhh789 commited on
Commit
ed4aa37
·
1 Parent(s): 5825ae2

add ckpt mpts

Browse files
.gitattributes CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  mp20_csp_s10/ema_avgs=0.044-epoch=3500-step=371105.ckpt.ema_state_dict filter=lfs diff=lfs merge=lfs -text
37
  mp_20_gen_s1000/ema-epoch=4920-step=521625.ckpt.ema_state_dict filter=lfs diff=lfs merge=lfs -text
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  mp20_csp_s10/ema_avgs=0.044-epoch=3500-step=371105.ckpt.ema_state_dict filter=lfs diff=lfs merge=lfs -text
37
  mp_20_gen_s1000/ema-epoch=4920-step=521625.ckpt.ema_state_dict filter=lfs diff=lfs merge=lfs -text
38
+ mpts_csp_s500/ema-epoch=780-step=167133.ckpt.ema_state_dict filter=lfs diff=lfs merge=lfs -text
mpts_csp_s500/.hydra/config.yaml ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ root_path: ${oc.env:PROJECT_ROOT}/data/mpts_52
3
+ prop: formation_energy_per_atom
4
+ num_targets: 1
5
+ niggli: true
6
+ primitive: false
7
+ graph_method: crystalnn
8
+ lattice_scale_method: scale_length
9
+ preprocess_workers: 30
10
+ readout: mean
11
+ max_atoms: 52
12
+ otf_graph: false
13
+ eval_model_name: carbon
14
+ train_max_epochs: 10000
15
+ early_stopping_patience: 5000
16
+ teacher_forcing_max_epoch: 1000
17
+ datamodule:
18
+ _target_: cdvae.pl_data.datamodule.CrystDataModule
19
+ datasets:
20
+ train:
21
+ _target_: cdvae.pl_data.dataset.CrystDataset
22
+ name: Formation energy train
23
+ path: ${data.root_path}/train.csv
24
+ prop: ${data.prop}
25
+ niggli: ${data.niggli}
26
+ primitive: ${data.primitive}
27
+ graph_method: ${data.graph_method}
28
+ lattice_scale_method: ${data.lattice_scale_method}
29
+ preprocess_workers: ${data.preprocess_workers}
30
+ val:
31
+ - _target_: cdvae.pl_data.dataset.CrystDataset
32
+ name: Formation energy val
33
+ path: ${data.root_path}/val.csv
34
+ prop: ${data.prop}
35
+ niggli: ${data.niggli}
36
+ primitive: ${data.primitive}
37
+ graph_method: ${data.graph_method}
38
+ lattice_scale_method: ${data.lattice_scale_method}
39
+ preprocess_workers: ${data.preprocess_workers}
40
+ test:
41
+ - _target_: cdvae.pl_data.dataset.CrystDataset
42
+ name: Formation energy test
43
+ path: ${data.root_path}/test.csv
44
+ prop: ${data.prop}
45
+ niggli: ${data.niggli}
46
+ primitive: ${data.primitive}
47
+ graph_method: ${data.graph_method}
48
+ lattice_scale_method: ${data.lattice_scale_method}
49
+ preprocess_workers: ${data.preprocess_workers}
50
+ num_workers:
51
+ train: 0
52
+ val: 0
53
+ test: 0
54
+ batch_size:
55
+ train: 128
56
+ val: 128
57
+ test: 512
58
+ num_atoms_dist:
59
+ 1: 129
60
+ 2: 882
61
+ 3: 725
62
+ 4: 1587
63
+ 5: 1609
64
+ 6: 2245
65
+ 7: 572
66
+ 8: 1919
67
+ 9: 1071
68
+ 10: 1672
69
+ 11: 384
70
+ 12: 2683
71
+ 13: 481
72
+ 14: 1386
73
+ 15: 317
74
+ 16: 1851
75
+ 17: 275
76
+ 18: 1334
77
+ 19: 192
78
+ 20: 2080
79
+ 21: 250
80
+ 22: 1275
81
+ 23: 138
82
+ 24: 2163
83
+ 25: 66
84
+ 26: 615
85
+ 27: 128
86
+ 28: 1932
87
+ 29: 292
88
+ 30: 712
89
+ 31: 54
90
+ 32: 1364
91
+ 33: 66
92
+ 34: 388
93
+ 35: 67
94
+ 36: 1666
95
+ 37: 65
96
+ 38: 565
97
+ 39: 78
98
+ 40: 1318
99
+ 41: 49
100
+ 42: 470
101
+ 43: 27
102
+ 44: 902
103
+ 45: 50
104
+ 46: 367
105
+ 47: 19
106
+ 48: 963
107
+ 49: 38
108
+ 50: 225
109
+ 51: 25
110
+ 52: 745
111
+ atom_type_map:
112
+ 1: 0
113
+ 2: 1
114
+ 3: 2
115
+ 4: 3
116
+ 5: 4
117
+ 6: 5
118
+ 7: 6
119
+ 8: 7
120
+ 9: 8
121
+ 10: 9
122
+ 11: 10
123
+ 12: 11
124
+ 13: 12
125
+ 14: 13
126
+ 15: 14
127
+ 16: 15
128
+ 17: 16
129
+ 18: 17
130
+ 19: 18
131
+ 20: 19
132
+ 21: 20
133
+ 22: 21
134
+ 23: 22
135
+ 24: 23
136
+ 25: 24
137
+ 26: 25
138
+ 27: 26
139
+ 28: 27
140
+ 29: 28
141
+ 30: 29
142
+ 31: 30
143
+ 32: 31
144
+ 33: 32
145
+ 34: 33
146
+ 35: 34
147
+ 36: 35
148
+ 37: 36
149
+ 38: 37
150
+ 39: 38
151
+ 40: 39
152
+ 41: 40
153
+ 42: 41
154
+ 43: 42
155
+ 44: 43
156
+ 45: 44
157
+ 46: 45
158
+ 47: 46
159
+ 48: 47
160
+ 49: 48
161
+ 50: 49
162
+ 51: 50
163
+ 52: 51
164
+ 53: 52
165
+ 54: 53
166
+ 55: 54
167
+ 56: 55
168
+ 57: 56
169
+ 58: 57
170
+ 59: 58
171
+ 60: 59
172
+ 61: 60
173
+ 62: 61
174
+ 63: 62
175
+ 64: 63
176
+ 65: 64
177
+ 66: 65
178
+ 67: 66
179
+ 68: 67
180
+ 69: 68
181
+ 70: 69
182
+ 71: 70
183
+ 72: 71
184
+ 73: 72
185
+ 74: 73
186
+ 75: 74
187
+ 76: 75
188
+ 77: 76
189
+ 78: 77
190
+ 79: 78
191
+ 80: 79
192
+ 81: 80
193
+ 82: 81
194
+ 83: 82
195
+ 89: 83
196
+ 90: 84
197
+ 91: 85
198
+ 92: 86
199
+ 93: 87
200
+ 94: 88
201
+ norm_len: false
202
+ norm_abc:
203
+ - 0.44500745665182395
204
+ - 0.514550794162063
205
+ - 0.6869978239352298
206
+ num_atom_types: 89
207
+ lattice_mean: 0
208
+ lattice_std: 4.824758778702219
209
+ logging:
210
+ val_check_interval: 8
211
+ val_check_interval_step: 5000
212
+ gen_check_interval: 30
213
+ progress_bar_refresh_rate: 2
214
+ run_gen: true
215
+ debug_mode: false
216
+ gen_check:
217
+ num_samples: 10000
218
+ start_epoch: 200
219
+ run_func_timeout: 14400
220
+ return_traj: false
221
+ wandb:
222
+ name: ${expname}
223
+ project: crystalbfn_csp
224
+ entity: null
225
+ log_model: true
226
+ mode: online
227
+ group: ${expname}
228
+ wandb_watch:
229
+ log: all
230
+ log_freq: 500
231
+ lr_monitor:
232
+ logging_interval: step
233
+ log_momentum: false
234
+ model:
235
+ decoder:
236
+ _target_: cdvae.pl_modules.egnn.cspnet.CSPNet
237
+ hidden_dim: 512
238
+ time_dim: ${model.time_dim}
239
+ max_atoms: ${data.num_atom_types}
240
+ num_layers: 6
241
+ act_fn: silu
242
+ dis_emb: sin
243
+ num_freqs: 128
244
+ edge_style: fc
245
+ smooth: true
246
+ max_neighbors: ${model.max_neighbors}
247
+ cutoff: ${model.radius}
248
+ ln: true
249
+ ip: true
250
+ pred_type: true
251
+ period: ${model.T_max}-${model.T_min}
252
+ dtime_loss: ${model.BFN.dtime_loss}
253
+ add_n_atom_feat: false
254
+ cond_acc: ${model.BFN.cond_acc}
255
+ _target_: cdvae.pl_modules.vm_bfn_csp_plmodel.VM_BFN_CSP_PL_Model
256
+ time_dim: 128
257
+ hidden_dim: 256
258
+ latent_dim: 256
259
+ fc_num_layers: 1
260
+ max_atoms: ${data.max_atoms}
261
+ cost_natom: 1.0
262
+ cost_coord: 1
263
+ cost_type: 1
264
+ cost_lattice: 1
265
+ cost_composition: 1.0
266
+ cost_edge: 10.0
267
+ cost_property: 1.0
268
+ beta: 0.01
269
+ teacher_forcing_lattice: true
270
+ teacher_forcing_max_epoch: ${data.teacher_forcing_max_epoch}
271
+ max_neighbors: 20
272
+ radius: 7.0
273
+ sigma_begin: 0.5
274
+ sigma_end: 0.005
275
+ type_sigma_begin: 5.0
276
+ type_sigma_end: 0.01
277
+ num_noise_level: 50
278
+ predict_property: true
279
+ T_min: -np.pi
280
+ T_max: np.pi
281
+ norm_weight: false
282
+ norm_beta: true
283
+ rej_samp: false
284
+ n_samples: 1
285
+ BFN:
286
+ _target_: cdvae.pl_modules.vm_bfn_csp.VM_BFN_CSP
287
+ device: cuda
288
+ beta1_type: 0.5
289
+ beta1_coord: 1000.0
290
+ K: ${data.num_atom_types}
291
+ t_min: 1.0e-07
292
+ dtime_loss: true
293
+ dtime_loss_steps: 500
294
+ sigma1_lattice: 0.03162277660168379
295
+ mult_constant: true
296
+ pred_mean: true
297
+ end_back: true
298
+ sim_cir_flow: true
299
+ cond_acc: ${model.BFN.sim_cir_flow}
300
+ sch_type: linear
301
+ disc_prob_loss: ''
302
+ optim:
303
+ optimizer:
304
+ _target_: torch.optim.AdamW
305
+ lr: 0.001
306
+ weight_decay: 0
307
+ use_lr_scheduler: true
308
+ lr_scheduler:
309
+ _target_: torch.optim.lr_scheduler.ReduceLROnPlateau
310
+ factor: 0.6
311
+ patience: 50
312
+ min_lr: 0.0001
313
+ train:
314
+ deterministic: false
315
+ random_seed: 42
316
+ use_queue_clip: false
317
+ gradient_clip_val: 0
318
+ gradient_clip_algorithm: value
319
+ pl_trainer:
320
+ fast_dev_run: false
321
+ gpus:
322
+ - 0
323
+ precision: 32
324
+ max_steps: 2000000
325
+ max_epochs: ${data.train_max_epochs}
326
+ accumulate_grad_batches: 1
327
+ num_sanity_val_steps: 2
328
+ profiler: simple
329
+ monitor_metric: val_loss
330
+ monitor_metric_mode: min
331
+ early_stopping:
332
+ patience: ${data.early_stopping_patience}
333
+ verbose: false
334
+ resume: false
335
+ model_checkpoints:
336
+ save_top_k: 1
337
+ verbose: false
338
+ ema:
339
+ enable: true
340
+ decay: 0.995
341
+ device: cuda
342
+ expname: mpts_csp_1e3_0.5_s500_sim_ema0.995_09-27-10-26-37
343
+ core:
344
+ version: 0.0.1
345
+ tags:
346
+ - ${now:%Y-%m-%d}
mpts_csp_s500/.hydra/hydra.yaml ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: ${oc.env:HYDRA_JOBS}/singlerun/${now:%Y-%m-%d}/${expname}/
4
+ sweep:
5
+ dir: ${oc.env:HYDRA_JOBS}/multirun/${now:%Y-%m-%d}/${expname}/
6
+ subdir: ${hydra.job.num}_${hydra.job.id}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ help:
13
+ app_name: ${hydra.job.name}
14
+ header: '${hydra.help.app_name} is powered by Hydra.
15
+
16
+ '
17
+ footer: 'Powered by Hydra (https://hydra.cc)
18
+
19
+ Use --hydra-help to view Hydra specific help
20
+
21
+ '
22
+ template: '${hydra.help.header}
23
+
24
+ == Configuration groups ==
25
+
26
+ Compose your configuration from those groups (group=option)
27
+
28
+
29
+ $APP_CONFIG_GROUPS
30
+
31
+
32
+ == Config ==
33
+
34
+ Override anything in the config (foo.bar=value)
35
+
36
+
37
+ $CONFIG
38
+
39
+
40
+ ${hydra.help.footer}
41
+
42
+ '
43
+ hydra_help:
44
+ template: 'Hydra (${hydra.runtime.version})
45
+
46
+ See https://hydra.cc for more info.
47
+
48
+
49
+ == Flags ==
50
+
51
+ $FLAGS_HELP
52
+
53
+
54
+ == Configuration groups ==
55
+
56
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
57
+ to command line)
58
+
59
+
60
+ $HYDRA_CONFIG_GROUPS
61
+
62
+
63
+ Use ''--cfg hydra'' to Show the Hydra config.
64
+
65
+ '
66
+ hydra_help: ???
67
+ hydra_logging:
68
+ version: 1
69
+ formatters:
70
+ simple:
71
+ format: '[%(asctime)s][HYDRA] %(message)s'
72
+ handlers:
73
+ console:
74
+ class: logging.StreamHandler
75
+ formatter: simple
76
+ stream: ext://sys.stdout
77
+ root:
78
+ level: INFO
79
+ handlers:
80
+ - console
81
+ loggers:
82
+ logging_example:
83
+ level: DEBUG
84
+ disable_existing_loggers: false
85
+ job_logging:
86
+ version: 1
87
+ formatters:
88
+ simple:
89
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
90
+ handlers:
91
+ console:
92
+ class: logging.StreamHandler
93
+ formatter: simple
94
+ stream: ext://sys.stdout
95
+ file:
96
+ class: logging.FileHandler
97
+ formatter: simple
98
+ filename: ${hydra.job.name}.log
99
+ root:
100
+ level: INFO
101
+ handlers:
102
+ - console
103
+ - file
104
+ disable_existing_loggers: false
105
+ env: {}
106
+ searchpath: []
107
+ callbacks: {}
108
+ output_subdir: .hydra
109
+ overrides:
110
+ hydra: []
111
+ task:
112
+ - model=bfn_csp
113
+ - logging.wandb.project=crystalbfn_csp
114
+ - data=mpts
115
+ - expname=mpts_csp_1e3_0.5_s500_sim_ema0.995_09-27-10-26-37
116
+ - train.resume=false
117
+ - model.BFN.dtime_loss_steps=500
118
+ - model.BFN.beta1_coord=1e3
119
+ - model.BFN.beta1_type=0.5
120
+ - logging.gen_check.start_epoch=200
121
+ - logging.gen_check_interval=30
122
+ - train.ema.enable=true
123
+ - train.ema.decay=0.995
124
+ - model.BFN.disc_prob_loss=
125
+ - model.BFN.sigma1_lattice=0.03162277660168379
126
+ - optim.lr_scheduler.patience=50
127
+ job:
128
+ name: run
129
+ override_dirname: data=mpts,expname=mpts_csp_1e3_0.5_s500_sim_ema0.995_09-27-10-26-37,logging.gen_check.start_epoch=200,logging.gen_check_interval=30,logging.wandb.project=crystalbfn_csp,model.BFN.beta1_coord=1e3,model.BFN.beta1_type=0.5,model.BFN.disc_prob_loss=,model.BFN.dtime_loss_steps=500,model.BFN.sigma1_lattice=0.03162277660168379,model=bfn_csp,optim.lr_scheduler.patience=50,train.ema.decay=0.995,train.ema.enable=true,train.resume=false
130
+ id: ???
131
+ num: ???
132
+ config_name: default
133
+ env_set:
134
+ WANDB_START_METHOD: thread
135
+ WANDB_DIR: ${oc.env:WABDB_DIR}
136
+ env_copy: []
137
+ config:
138
+ override_dirname:
139
+ kv_sep: '='
140
+ item_sep: ','
141
+ exclude_keys: []
142
+ runtime:
143
+ version: 1.1.0
144
+ cwd: /sharefs/material/cdvae
145
+ config_sources:
146
+ - path: hydra.conf
147
+ schema: pkg
148
+ provider: hydra
149
+ - path: /sharefs/material/cdvae/conf
150
+ schema: file
151
+ provider: main
152
+ - path: ''
153
+ schema: structured
154
+ provider: schema
155
+ choices:
156
+ train: default
157
+ optim: default
158
+ model: bfn_csp
159
+ model/decoder: cspnet
160
+ logging: default
161
+ data: mpts
162
+ hydra/env: default
163
+ hydra/callbacks: null
164
+ hydra/job_logging: default
165
+ hydra/hydra_logging: default
166
+ hydra/hydra_help: default
167
+ hydra/help: default
168
+ hydra/sweeper: basic
169
+ hydra/launcher: basic
170
+ hydra/output: default
171
+ verbose: false
mpts_csp_s500/.hydra/overrides.yaml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ - model=bfn_csp
2
+ - logging.wandb.project=crystalbfn_csp
3
+ - data=mpts
4
+ - expname=mpts_csp_1e3_0.5_s500_sim_ema0.995_09-27-10-26-37
5
+ - train.resume=false
6
+ - model.BFN.dtime_loss_steps=500
7
+ - model.BFN.beta1_coord=1e3
8
+ - model.BFN.beta1_type=0.5
9
+ - logging.gen_check.start_epoch=200
10
+ - logging.gen_check_interval=30
11
+ - train.ema.enable=true
12
+ - train.ema.decay=0.995
13
+ - model.BFN.disc_prob_loss=
14
+ - model.BFN.sigma1_lattice=0.03162277660168379
15
+ - optim.lr_scheduler.patience=50
mpts_csp_s500/ema-epoch=780-step=167133.ckpt.ema_state_dict ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32a2b94cd2296ec2b87287f3ca4ac86abcc6efc07b7a919ed233fa3085d8c76e
3
+ size 49104278
mpts_csp_s500/hparams.yaml ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ root_path: ${oc.env:PROJECT_ROOT}/data/mpts_52
3
+ prop: formation_energy_per_atom
4
+ num_targets: 1
5
+ niggli: true
6
+ primitive: false
7
+ graph_method: crystalnn
8
+ lattice_scale_method: scale_length
9
+ preprocess_workers: 30
10
+ readout: mean
11
+ max_atoms: 52
12
+ otf_graph: false
13
+ eval_model_name: carbon
14
+ train_max_epochs: 10000
15
+ early_stopping_patience: 5000
16
+ teacher_forcing_max_epoch: 1000
17
+ datamodule:
18
+ _target_: crysbfn.pl_data.datamodule.CrystDataModule
19
+ datasets:
20
+ train:
21
+ _target_: crysbfn.pl_data.dataset.CrystDataset
22
+ name: Formation energy train
23
+ path: ${data.root_path}/train.csv
24
+ prop: ${data.prop}
25
+ niggli: ${data.niggli}
26
+ primitive: ${data.primitive}
27
+ graph_method: ${data.graph_method}
28
+ lattice_scale_method: ${data.lattice_scale_method}
29
+ preprocess_workers: ${data.preprocess_workers}
30
+ val:
31
+ - _target_: crysbfn.pl_data.dataset.CrystDataset
32
+ name: Formation energy val
33
+ path: ${data.root_path}/val.csv
34
+ prop: ${data.prop}
35
+ niggli: ${data.niggli}
36
+ primitive: ${data.primitive}
37
+ graph_method: ${data.graph_method}
38
+ lattice_scale_method: ${data.lattice_scale_method}
39
+ preprocess_workers: ${data.preprocess_workers}
40
+ test:
41
+ - _target_: crysbfn.pl_data.dataset.CrystDataset
42
+ name: Formation energy test
43
+ path: ${data.root_path}/test.csv
44
+ prop: ${data.prop}
45
+ niggli: ${data.niggli}
46
+ primitive: ${data.primitive}
47
+ graph_method: ${data.graph_method}
48
+ lattice_scale_method: ${data.lattice_scale_method}
49
+ preprocess_workers: ${data.preprocess_workers}
50
+ num_workers:
51
+ train: 0
52
+ val: 0
53
+ test: 0
54
+ batch_size:
55
+ train: 128
56
+ val: 128
57
+ test: 512
58
+ num_atoms_dist:
59
+ 1: 129
60
+ 2: 882
61
+ 3: 725
62
+ 4: 1587
63
+ 5: 1609
64
+ 6: 2245
65
+ 7: 572
66
+ 8: 1919
67
+ 9: 1071
68
+ 10: 1672
69
+ 11: 384
70
+ 12: 2683
71
+ 13: 481
72
+ 14: 1386
73
+ 15: 317
74
+ 16: 1851
75
+ 17: 275
76
+ 18: 1334
77
+ 19: 192
78
+ 20: 2080
79
+ 21: 250
80
+ 22: 1275
81
+ 23: 138
82
+ 24: 2163
83
+ 25: 66
84
+ 26: 615
85
+ 27: 128
86
+ 28: 1932
87
+ 29: 292
88
+ 30: 712
89
+ 31: 54
90
+ 32: 1364
91
+ 33: 66
92
+ 34: 388
93
+ 35: 67
94
+ 36: 1666
95
+ 37: 65
96
+ 38: 565
97
+ 39: 78
98
+ 40: 1318
99
+ 41: 49
100
+ 42: 470
101
+ 43: 27
102
+ 44: 902
103
+ 45: 50
104
+ 46: 367
105
+ 47: 19
106
+ 48: 963
107
+ 49: 38
108
+ 50: 225
109
+ 51: 25
110
+ 52: 745
111
+ atom_type_map:
112
+ 1: 0
113
+ 2: 1
114
+ 3: 2
115
+ 4: 3
116
+ 5: 4
117
+ 6: 5
118
+ 7: 6
119
+ 8: 7
120
+ 9: 8
121
+ 10: 9
122
+ 11: 10
123
+ 12: 11
124
+ 13: 12
125
+ 14: 13
126
+ 15: 14
127
+ 16: 15
128
+ 17: 16
129
+ 18: 17
130
+ 19: 18
131
+ 20: 19
132
+ 21: 20
133
+ 22: 21
134
+ 23: 22
135
+ 24: 23
136
+ 25: 24
137
+ 26: 25
138
+ 27: 26
139
+ 28: 27
140
+ 29: 28
141
+ 30: 29
142
+ 31: 30
143
+ 32: 31
144
+ 33: 32
145
+ 34: 33
146
+ 35: 34
147
+ 36: 35
148
+ 37: 36
149
+ 38: 37
150
+ 39: 38
151
+ 40: 39
152
+ 41: 40
153
+ 42: 41
154
+ 43: 42
155
+ 44: 43
156
+ 45: 44
157
+ 46: 45
158
+ 47: 46
159
+ 48: 47
160
+ 49: 48
161
+ 50: 49
162
+ 51: 50
163
+ 52: 51
164
+ 53: 52
165
+ 54: 53
166
+ 55: 54
167
+ 56: 55
168
+ 57: 56
169
+ 58: 57
170
+ 59: 58
171
+ 60: 59
172
+ 61: 60
173
+ 62: 61
174
+ 63: 62
175
+ 64: 63
176
+ 65: 64
177
+ 66: 65
178
+ 67: 66
179
+ 68: 67
180
+ 69: 68
181
+ 70: 69
182
+ 71: 70
183
+ 72: 71
184
+ 73: 72
185
+ 74: 73
186
+ 75: 74
187
+ 76: 75
188
+ 77: 76
189
+ 78: 77
190
+ 79: 78
191
+ 80: 79
192
+ 81: 80
193
+ 82: 81
194
+ 83: 82
195
+ 89: 83
196
+ 90: 84
197
+ 91: 85
198
+ 92: 86
199
+ 93: 87
200
+ 94: 88
201
+ norm_len: false
202
+ norm_abc:
203
+ - 0.44500745665182395
204
+ - 0.514550794162063
205
+ - 0.6869978239352298
206
+ num_atom_types: 89
207
+ lattice_mean: 0
208
+ lattice_std: 4.824758778702219
209
+ logging:
210
+ val_check_interval: 8
211
+ val_check_interval_step: 5000
212
+ gen_check_interval: 30
213
+ progress_bar_refresh_rate: 2
214
+ run_gen: true
215
+ debug_mode: false
216
+ gen_check:
217
+ num_samples: 10000
218
+ start_epoch: 200
219
+ run_func_timeout: 14400
220
+ return_traj: false
221
+ wandb:
222
+ name: ${expname}
223
+ project: crystalbfn_csp
224
+ entity: null
225
+ log_model: true
226
+ mode: online
227
+ group: ${expname}
228
+ wandb_watch:
229
+ log: all
230
+ log_freq: 500
231
+ lr_monitor:
232
+ logging_interval: step
233
+ log_momentum: false
234
+ model:
235
+ decoder:
236
+ _target_: crysbfn.pl_modules.egnn.cspnet.CSPNet
237
+ hidden_dim: 512
238
+ time_dim: ${model.time_dim}
239
+ max_atoms: ${data.num_atom_types}
240
+ num_layers: 6
241
+ act_fn: silu
242
+ dis_emb: sin
243
+ num_freqs: 128
244
+ edge_style: fc
245
+ smooth: true
246
+ max_neighbors: ${model.max_neighbors}
247
+ cutoff: ${model.radius}
248
+ ln: true
249
+ ip: true
250
+ pred_type: true
251
+ period: ${model.T_max}-${model.T_min}
252
+ dtime_loss: ${model.BFN.dtime_loss}
253
+ add_n_atom_feat: false
254
+ cond_acc: ${model.BFN.cond_acc}
255
+ _target_: crysbfn.pl_modules.crysbfn_csp_plmodel.CrysBFN_CSP_PL_Model
256
+ time_dim: 128
257
+ hidden_dim: 256
258
+ latent_dim: 256
259
+ fc_num_layers: 1
260
+ max_atoms: ${data.max_atoms}
261
+ cost_natom: 1.0
262
+ cost_coord: 1
263
+ cost_type: 1
264
+ cost_lattice: 1
265
+ cost_composition: 1.0
266
+ cost_edge: 10.0
267
+ cost_property: 1.0
268
+ beta: 0.01
269
+ teacher_forcing_lattice: true
270
+ teacher_forcing_max_epoch: ${data.teacher_forcing_max_epoch}
271
+ max_neighbors: 20
272
+ radius: 7.0
273
+ sigma_begin: 0.5
274
+ sigma_end: 0.005
275
+ type_sigma_begin: 5.0
276
+ type_sigma_end: 0.01
277
+ num_noise_level: 50
278
+ predict_property: true
279
+ T_min: -np.pi
280
+ T_max: np.pi
281
+ norm_weight: false
282
+ norm_beta: true
283
+ rej_samp: false
284
+ n_samples: 1
285
+ BFN:
286
+ _target_: crysbfn.pl_modules.crysbfn_csp.CrysBFN_CSP
287
+ device: cuda
288
+ beta1_type: 0.5
289
+ beta1_coord: 1000.0
290
+ K: ${data.num_atom_types}
291
+ t_min: 1.0e-07
292
+ dtime_loss: true
293
+ dtime_loss_steps: 500
294
+ sigma1_lattice: 0.03162277660168379
295
+ mult_constant: true
296
+ pred_mean: true
297
+ end_back: true
298
+ sim_cir_flow: true
299
+ cond_acc: ${model.BFN.sim_cir_flow}
300
+ sch_type: linear
301
+ disc_prob_loss: ''
302
+ optim:
303
+ optimizer:
304
+ _target_: torch.optim.AdamW
305
+ lr: 0.001
306
+ weight_decay: 0
307
+ use_lr_scheduler: true
308
+ lr_scheduler:
309
+ _target_: torch.optim.lr_scheduler.ReduceLROnPlateau
310
+ factor: 0.6
311
+ patience: 50
312
+ min_lr: 0.0001
313
+ train:
314
+ deterministic: false
315
+ random_seed: 42
316
+ use_queue_clip: false
317
+ gradient_clip_val: 0
318
+ gradient_clip_algorithm: value
319
+ pl_trainer:
320
+ fast_dev_run: false
321
+ gpus:
322
+ - 0
323
+ precision: 32
324
+ max_steps: 2000000
325
+ max_epochs: ${data.train_max_epochs}
326
+ accumulate_grad_batches: 1
327
+ num_sanity_val_steps: 2
328
+ profiler: simple
329
+ monitor_metric: val_loss
330
+ monitor_metric_mode: min
331
+ early_stopping:
332
+ patience: ${data.early_stopping_patience}
333
+ verbose: false
334
+ resume: false
335
+ model_checkpoints:
336
+ save_top_k: 1
337
+ verbose: false
338
+ ema:
339
+ enable: true
340
+ decay: 0.995
341
+ device: cuda
342
+ expname: mpts_csp_1e3_0.5_s500_sim_ema0.995_09-27-10-26-37
343
+ core:
344
+ version: 0.0.1
345
+ tags:
346
+ - ${now:%Y-%m-%d}
mpts_csp_s500/run.log ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-09-27 10:26:44,283][hydra.utils][INFO] - Instantiating <cdvae.pl_data.datamodule.CrystDataModule>
2
+ [2024-09-27 10:26:45,071][hydra.utils][INFO] - Loading preprocessed cached data from /sharefs/material/cdvae/data/mpts_52/preprocess_data_train_27380.pt
3
+ [2024-09-27 10:26:48,375][hydra.utils][INFO] - Loading preprocessed cached data from /sharefs/material/cdvae/data/mpts_52/preprocess_data_train_27380.pt
4
+ [2024-09-27 10:26:50,264][hydra.utils][INFO] - Loading preprocessed cached data from /sharefs/material/cdvae/data/mpts_52/preprocess_data_val_5000.pt
5
+ [2024-09-27 10:26:50,897][hydra.utils][INFO] - Loading preprocessed cached data from /sharefs/material/cdvae/data/mpts_52/preprocess_data_test_8096.pt
6
+ [2024-09-27 10:26:51,451][hydra.utils][INFO] - Instantiating <cdvae.pl_modules.vm_bfn_csp_plmodel.VM_BFN_CSP_PL_Model>
7
+ [2024-09-27 10:26:53,637][hydra.utils][INFO] - Passing scaler from datamodule to model <StandardScalerTorch(means: -1.1277656555175781, stds: 1.0188579559326172)>
8
+ [2024-09-27 10:26:53,640][hydra.utils][INFO] - Adding callback <LearningRateMonitor>
9
+ [2024-09-27 10:26:53,640][hydra.utils][INFO] - Adding callback <EarlyStopping>
10
+ [2024-09-27 10:26:53,641][hydra.utils][INFO] - Adding callback <ModelCheckpoint>
11
+ [2024-09-27 10:27:07,632][hydra.utils][INFO] - Adding callback <GradientClip>
12
+ [2024-09-27 10:27:07,635][hydra.utils][INFO] - Adding callback <EMACallback>
13
+ [2024-09-27 10:27:07,635][hydra.utils][INFO] - Instantiating <WandbLogger>
14
+ [2024-09-27 10:27:07,637][hydra.utils][INFO] - W&B is now watching <{cfg.logging.wandb_watch.log}>!
15
+ [2024-09-27 10:27:18,108][hydra.utils][INFO] - Instantiating the Trainer
16
+ [2024-09-27 10:27:18,132][hydra.utils][INFO] - Starting training!