Skip to content

Commit 5c0cc0a

Browse files
authored
Update CP2K new example and slurm-lsf-mix machine (#456)
1 parent 66492d1 commit 5c0cc0a

File tree

3 files changed

+311
-0
lines changed

3 files changed

+311
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"train": [
3+
{
4+
"machine": {
5+
"machine_type": "slurm",
6+
"hostname": "210.34.15.205",
7+
"port": 22,
8+
"username": "ybzhuang",
9+
"work_path": "/home/ybzhuang/workdir"
10+
},
11+
"resources": {
12+
"numb_gpu": 1,
13+
"numb_node": 1,
14+
"task_per_node": 1,
15+
"partition": "gpu",
16+
"job_name": "train",
17+
"qos":"emergency",
18+
"exclude_list": [],
19+
"source_list": [
20+
],
21+
"module_list": [
22+
"deepmd/1.2"
23+
],
24+
"time_limit": "96:0:0",
25+
"submit_wait_time": 60
26+
},
27+
"python_path": "/share/apps/deepmd/compress/bin/python3.8"
28+
}
29+
],
30+
"model_devi": [
31+
{
32+
"machine": {
33+
"machine_type": "slurm",
34+
"hostname": "210.34.15.205",
35+
"port": 22,
36+
"username": "ybzhuang",
37+
"work_path": "/home/ybzhuang/workdir"
38+
},
39+
"resources": {
40+
"numb_gpu": 1,
41+
"numb_node": 1,
42+
"task_per_node": 1,
43+
"partition": "gpu",
44+
"job_name": "md",
45+
"qos":"emergency",
46+
"exclude_list": [],
47+
"source_list": [
48+
],
49+
"module_list": [
50+
"deepmd/1.2"
51+
],
52+
"time_limit": "96:0:0",
53+
"submit_wait_time": 60
54+
},
55+
"command": "lmp_mpi",
56+
"group_size": 5
57+
}
58+
],
59+
"fp": [
60+
{
61+
"machine": {
62+
"machine_type": "lsf",
63+
"hostname": "localhost",
64+
"port": 6666,
65+
"username": "ybzhuang",
66+
"work_path": "/data/ybzhuang/methane-dpgen/dpgen-tutorial-2020-08-23/dpgen-tutorial-mathane/workpath"
67+
},
68+
"resources": {
69+
"cvasp": false,
70+
"task_per_node": 32,
71+
"numb_node": 1,
72+
"node_cpu": 32,
73+
"exclude_list": [],
74+
"with_mpi": true,
75+
"source_list": [
76+
],
77+
"module_list": [
78+
"intel/17.5.239",
79+
"mpi/intel/2017.5.239",
80+
"gcc/5.5.0",
81+
"cp2k/7.1"
82+
],
83+
"time_limit": "12:00:00",
84+
"partition": "53-medium",
85+
"_comment": "that's Bel"
86+
},
87+
"command": "cp2k.popt -i input.inp",
88+
"group_size": 50
89+
}
90+
]
91+
}
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"type_map": [
3+
"H",
4+
"C"
5+
],
6+
"mass_map": [
7+
1,
8+
12
9+
],
10+
"init_data_prefix": "/data/ybzhuang/methane-dpgen/dpgen-tutorial-2020-08-23/dpgen-tutorial-mathane/data",
11+
"init_data_sys": [
12+
"deepmd"
13+
],
14+
"init_batch_size": [
15+
8
16+
],
17+
"sys_configs": [
18+
["/data/ybzhuang/methane-dpgen/dpgen-tutorial-2020-08-23/dpgen-tutorial-mathane/data/CH4.POSCAR.01x01x01/01.scale_pert/sys-0004-0001/scale-1.000/00000*/POSCAR"],
19+
["/data/ybzhuang/methane-dpgen/dpgen-tutorial-2020-08-23/dpgen-tutorial-mathane/data/CH4.POSCAR.01x01x01/01.scale_pert/sys-0004-0001/scale-1.000/00000*/POSCAR"]
20+
],
21+
"sys_batch_size": [
22+
8,
23+
8,
24+
8,
25+
8
26+
],
27+
"_comment": " that's all ",
28+
"numb_models": 4,
29+
"train_param": "input.json",
30+
"default_training_param": {
31+
"model": {
32+
"descriptor": {
33+
"type": "se_a",
34+
"sel": [
35+
16,
36+
4
37+
],
38+
"rcut_smth": 0.5,
39+
"rcut": 5.0,
40+
"_comment": "modify according your system",
41+
"neuron": [
42+
10,
43+
20,
44+
40
45+
],
46+
"resnet_dt": false,
47+
"axis_neuron": 12,
48+
"seed": 1
49+
},
50+
"fitting_net": {
51+
"n_neuron": [
52+
120,
53+
120,
54+
120
55+
],
56+
"resnet_dt": true,
57+
"seed": 1
58+
}},
59+
"learning_rate": {
60+
"type": "exp",
61+
"start_lr": 0.001,
62+
"decay_steps": 100,
63+
"_comment": "nope",
64+
"decay_rate": 0.95
65+
},
66+
"loss": {
67+
"start_pref_e": 0.02,
68+
"limit_pref_e": 2,
69+
"start_pref_f": 1000,
70+
"limit_pref_f": 1,
71+
"start_pref_v": 0.0,
72+
"limit_pref_v": 0.0
73+
},
74+
"training": {
75+
"systems": [ ],
76+
"set_prefix": "set",
77+
"stop_batch": 2000,
78+
"batch_size": 1,
79+
"seed": 1,
80+
"disp_file": "lcurve.out",
81+
"disp_freq": 1000,
82+
"numb_test": 4,
83+
"save_freq": 1000,
84+
"save_ckpt": "model.ckpt",
85+
"load_ckpt": "model.ckpt",
86+
"disp_training": true,
87+
"time_training": true,
88+
"profiling": false,
89+
"profiling_file": "timeline.json"
90+
}
91+
},
92+
"model_devi_dt": 0.002,
93+
"model_devi_skip": 0,
94+
"model_devi_f_trust_lo": 0.05,
95+
"model_devi_f_trust_hi": 0.15,
96+
"model_devi_clean_traj": true,
97+
"model_devi_jobs": [
98+
{
99+
"sys_idx": [
100+
0
101+
],
102+
"temps": [
103+
100
104+
],
105+
"press": [
106+
1
107+
],
108+
"trj_freq": 10,
109+
"nsteps": 300,
110+
"ensemble": "nvt",
111+
"_idx": "00"
112+
},
113+
{
114+
"sys_idx": [
115+
1
116+
],
117+
"temps": [
118+
100
119+
],
120+
"press": [
121+
1
122+
],
123+
"trj_freq": 10,
124+
"nsteps": 3000,
125+
"ensemble": "nvt",
126+
"_idx": "01"
127+
}
128+
129+
],
130+
"fp_style": "cp2k",
131+
"shuffle_poscar": false,
132+
"fp_task_max": 20,
133+
"fp_task_min": 5,
134+
"fp_pp_path": ".",
135+
"fp_pp_files": [],
136+
"external_input_path": "/data/ybzhuang/methane-dpgen/dpgen-tutorial-2020-08-23/dpgen-tutorial-mathane/cp2k_dpgen/template.inp"
137+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
#Basis setting
2+
@SET SCALE_FACTOR 1.000
3+
@SET NREPA 1
4+
@SET NREPB 1
5+
@SET NREPC 1
6+
@SET CELL_A 10
7+
@SET CELL_B 10
8+
@SET CELL_C 10
9+
@SET ANGLE_A 90.0
10+
@SET ANGLE_B 90.0
11+
@SET ANGLE_C 90.0
12+
@SET COORDFILE coord.xyz
13+
@SET CUTOFF 400
14+
@SET JOBNAME DPGEN
15+
16+
17+
&FORCE_EVAL
18+
METHOD QS
19+
STRESS_TENSOR ANALYTICAL
20+
&PRINT
21+
&FORCES ON
22+
&END FORCES
23+
&STRESS_TENSOR ON
24+
&END STRESS_TENSOR
25+
&END PRINT
26+
27+
&DFT
28+
BASIS_SET_FILE_NAME BASIS_MOLOPT
29+
POTENTIAL_FILE_NAME GTH_POTENTIALS
30+
&MGRID
31+
CUTOFF ${CUTOFF}
32+
REL_CUTOFF 60
33+
&END MGRID
34+
&QS
35+
EPS_DEFAULT 1.0E-13
36+
&END QS
37+
&SCF
38+
SCF_GUESS RESTART
39+
EPS_SCF 3.0E-7
40+
MAX_SCF 50
41+
&OUTER_SCF
42+
EPS_SCF 3.0E-7
43+
MAX_SCF 15
44+
&END OUTER_SCF
45+
&OT
46+
MINIMIZER DIIS
47+
PRECONDITIONER FULL_SINGLE_INVERSE
48+
&END OT
49+
&END SCF
50+
&XC
51+
########## This part is PBE ##########
52+
&XC_FUNCTIONAL PBE
53+
&END XC_FUNCTIONAL
54+
########## This part is PBE ##########
55+
&END XC
56+
########## This part controls the print information ##########
57+
&END DFT
58+
&SUBSYS
59+
&CELL
60+
ABC [angstrom] ${CELL_A}*${SCALE_FACTOR} ${CELL_B}*${SCALE_FACTOR} ${CELL_C}*${SCALE_FACTOR}
61+
ALPHA_BETA_GAMMA ${ANGLE_A} ${ANGLE_B} ${ANGLE_C}
62+
MULTIPLE_UNIT_CELL ${NREPA} ${NREPB} ${NREPC}
63+
&END CELL
64+
&TOPOLOGY
65+
MULTIPLE_UNIT_CELL ${NREPA} ${NREPB} ${NREPC}
66+
&END TOPOLOGY
67+
&COORD
68+
@include ${COORDFILE}
69+
&END COORD
70+
&KIND H
71+
BASIS_SET DZVP-MOLOPT-SR-GTH
72+
POTENTIAL GTH-PBE-q1
73+
&END KIND
74+
&KIND C
75+
BASIS_SET DZVP-MOLOPT-SR-GTH
76+
POTENTIAL GTH-PBE-q4
77+
&END KIND
78+
&END SUBSYS
79+
&END FORCE_EVAL
80+
81+
&GLOBAL
82+
PROJECT ${JOBNAME}
83+
&END GLOBAL

0 commit comments

Comments
 (0)