{
    "bohrium_config": {
	"username":	"__write your bohrium username",
	"password":	"__write your bohrium password",
	"_project_id" :	"__write your bohrium project ID",
	"project_id": 123456,
	"_comment" : "all"
    },

    "default_step_config": {
	"template_config": {
	    "image" : "dpgen2:master",
	    "_comment" : "all"
	},
	"executor" : {
	    "type" : "dispatcher",
	    "image_pull_policy" : "IfNotPresent",
	    "machine_dict": {
		"batch_type": "Bohrium",
		"context_type": "Bohrium",
		"remote_profile": {
                    "input_data": {
			"job_type": "container",
			"platform": "ali",
			"scass_type": "c2_m8_cpu"
                    }
		}
	    }
	},
	"_comment" : "all"
    },

    "step_configs":{
	"run_train_config" : {
	    "template_config" : {
		"image" : "deepmd-kit:wanghan",
		"_comment" : "all"
	    },
	    "executor" : {
		"type" : "dispatcher",
		"image_pull_policy" : "IfNotPresent",
		"machine_dict": {
		    "batch_type": "Bohrium",
		    "context_type": "Bohrium",
		    "remote_profile": {
			"input_data": {
			    "job_type": "container",
			    "platform": "ali",
			    "scass_type": "c2_m8_cpu"
			}
		    }
		}
	    },
	    "_comment" : "all"
	},
	"run_explore_config" : {
	    "template_config" : {
		"image" : "deepmd-kit:wanghan",
		"_comment" : "all"
	    },
            "continue_on_success_ratio" : 0.80,
	    "executor" : {
		"type" : "dispatcher",
		"retry_on_submission_error": 10,
		"image_pull_policy" : "IfNotPresent",
		"machine_dict": {
		    "batch_type": "Bohrium",
		    "context_type": "Bohrium",
		    "remote_profile": {
			"input_data": {
			    "job_type": "container",
			    "platform": "ali",
			    "scass_type": "c8_m32_1 * NVIDIA V100"
			}
		    }
		}
	    },
  	    "template_slice_config":{
  	   	"group_size":  20,
  	   	"pool_size":  5
  	    },
	    "_comment" : "all"
	},
	"run_fp_config" : {
	    "template_config" : {
		"image" : "vasp:wanghan",
		"_comment" : "all"
	    },
            "continue_on_success_ratio" : 0.80,
	    "executor" : {
		"type" : "dispatcher",
		"retry_on_submission_error": 10,
		"image_pull_policy" : "IfNotPresent",
		"machine_dict": {
		    "batch_type": "Bohrium",
		    "context_type": "Bohrium",
		    "remote_profile": {
			"input_data": {
			    "job_type": "container",
			    "platform": "ali",
			    "scass_type": "c16_m64_cpu"
			}
		    }
		}
	    },
            "template_slice_config":{
      	        "group_size":  20,
      		"pool_size":  1
      	    },
	    "_comment" : "all"
	},
	"_comment" : "all"
    },

    "upload_python_packages" : "/path/to/dpgen2",

    "inputs": {
	"type_map":		["Al", "Mg"],
	"mass_map":		[27, 24],
	"mixed_type":		false,
	"init_data_prefix":	null,
	"init_data_sys":	[
	    "init/al.fcc.01x01x01/02.md/sys-0004/deepmd",
	    "init/mg.fcc.01x01x01/02.md/sys-0004/deepmd"
	],
	"_comment" : "all"
    },
    "train":{
	"type" :	"dp",
	"numb_models" : 4,
	"config" : {
	    "init_model_policy" : "no"
	},
	"template_script" : "dp_template.json",
	"_comment" : "all"
    },

    "explore" : {
	"type" : "lmp",
	"config" : {
	    "command": "lmp -var restart 0"
	},
	"convergence": {
	    "type" :	"fixed-levels",
	    "conv_accuracy" :	0.9,
	    "level_f_lo":	0.05,
	    "level_f_hi":	0.50,
	    "_comment" : "all"
	},
	"max_numb_iter" :	5,
	"fatal_at_max" :	false,
	"output_nopbc":		false,
	"configurations":	[
	    {
		"type": "alloy",
		"lattice" : ["fcc", 4.57],
		"replicate" : [2, 2, 2],
		"numb_confs" : 30,
		"concentration" : [[1.0, 0.0], [0.5, 0.5], [0.0, 1.0]]
	    },
	    {
		"type" : "file",
		"files" : ["/path/to/confs/*"],
		"fmt" : "deepmd/npy"
	    }
	],
	"_comment" : "Stage is of type List[List[dict]]. ",
	"_comment" : "The outer list gives stages, the inner list gives the task groups of the stage, and dict describes the task group.",
	"stages":	[
	    [
		{
		    "type" : "lmp-md",
		    "ensemble": "nvt", "nsteps":  50, "press": [1e0], "temps": [50], "trj_freq": 10,
		    "conf_idx": [0], "n_sample" : 3
		},
		{
		    "type" : "lmp-template",
		    "lmp" : "template.lammps", "trj_freq" : 10, "revisions" : {"V_NSTEPS" : [40], "V_TEMP" : [100, 200]},
		    "conf_idx": [0], "n_sample" : 3
		}
	    ]
	],
	"_comment" : "all"
    },
    "fp" : {
	"type" :	"vasp",
	"task_max":	2,
	"inputs_config" : {
	    "pp_files":	{"Al" : "vasp/POTCAR.Al", "Mg" : "vasp/POTCAR.Mg"},
	    "incar":    "vasp/INCAR",
	    "kspacing":	0.32,
	    "kgamma":	true
	},
	"run_config" : {
	    "command": "source /opt/intel/oneapi/setvars.sh && mpirun -n 16 vasp_std"
	},
	"_comment" : "all"
    }
}
