DPGEN2 configurations#
Op configs#
RunDPTrain#
- command:#
- type:
str, optional, default:dpargument path:commandThe command for DP, ‘dp’ for default
- impl:#
- type:
str, optional, default:tensorflow, alias: backendargument path:implThe implementation/backend of DP. It can be ‘tensorflow’ or ‘pytorch’. ‘tensorflow’ for default.
- init_model_policy:#
- type:
str, optional, default:noargument path:init_model_policyThe policy of init-model training. It can be
‘no’: No init-model training. Traing from scratch.
‘yes’: Do init-model training.
‘old_data_larger_than:XXX’: Do init-model if the training data size of the previous model is larger than XXX. XXX is an int number.
- init_model_old_ratio:#
- type:
float, optional, default:0.9argument path:init_model_old_ratioThe frequency ratio of old data over new data
- init_model_numb_steps:#
- type:
int, optional, default:400000, alias: init_model_stop_batchargument path:init_model_numb_stepsThe number of training steps when init-model
- init_model_start_lr:#
- type:
float, optional, default:0.0001argument path:init_model_start_lrThe start learning rate when init-model
- init_model_start_pref_e:#
- type:
float, optional, default:0.1argument path:init_model_start_pref_eThe start energy prefactor in loss when init-model
- init_model_start_pref_f:#
- type:
float, optional, default:100argument path:init_model_start_pref_fThe start force prefactor in loss when init-model
- init_model_start_pref_v:#
- type:
float, optional, default:0.0argument path:init_model_start_pref_vThe start virial prefactor in loss when init-model
- init_model_with_finetune:#
- type:
bool, optional, default:Falseargument path:init_model_with_finetuneUse finetune for init model
- finetune_args:#
- type:
str, optional, default: (empty string)argument path:finetune_argsExtra arguments for finetuning
- multitask:#
- type:
bool, optional, default:Falseargument path:multitaskDo multitask training
- head:#
- type:
str|NoneType, optional, default:Noneargument path:headHead to use in the multitask training
- train_args:#
- type:
str, optional, default: (empty string)argument path:train_argsExtra arguments for dp train
- split_last_iter_valid_ratio:#
- type:
NoneType|float, optional, default:Noneargument path:split_last_iter_valid_ratioRatio of valid data if split data of last iter
RunLmp#
- command:
- type:
str, optional, default:lmpargument path:commandThe command of LAMMPS
- teacher_model_path:#
- type:
str|BinaryFileInput|NoneType, optional, default:Noneargument path:teacher_model_pathThe teacher model in Knowledge Distillation
- shuffle_models:#
- type:
bool, optional, default:Falseargument path:shuffle_modelsRandomly pick a model from the group of models to drive theexploration MD simulation
- head:
- type:
str|NoneType, optional, default:Noneargument path:headSelect a head from multitask
- use_ele_temp:#
- type:
int, optional, default:0argument path:use_ele_tempWhether to use electronic temperature, 0 for no, 1 for frame temperature, and 2 for atomic temperature
- model_frozen_head:#
- type:
str|NoneType, optional, default:Noneargument path:model_frozen_headSelect a head from multitask
- use_hdf5:#
- type:
bool, optional, default:Falseargument path:use_hdf5Use HDF5 to store trajs and model_devis
- extra_output_files:#
- type:
list, optional, default:[]argument path:extra_output_filesExtra output file names, support wildcards
RunVasp#
Alloy configs#
Task group configs#
Step configs#
- template_config:#
- type:
dict, optional, default:{'image': 'dptechnology/dpgen2:latest'}argument path:template_configThe configs passed to the PythonOPTemplate.
- image:#
- type:
str, optional, default:dptechnology/dpgen2:latestargument path:template_config/imageThe image to run the step.
- timeout:#
- type:
NoneType|int, optional, default:Noneargument path:template_config/timeoutThe time limit of the OP. Unit is second.
- retry_on_transient_error:#
- type:
NoneType|int, optional, default:Noneargument path:template_config/retry_on_transient_errorThe number of retry times if a TransientError is raised.
- timeout_as_transient_error:#
- type:
bool, optional, default:Falseargument path:template_config/timeout_as_transient_errorTreat the timeout as TransientError.
- envs:#
- type:
dict|NoneType, optional, default:Noneargument path:template_config/envsThe environmental variables.
- template_slice_config:#
- type:
dict, optionalargument path:template_slice_configThe configs passed to the Slices.
- group_size:#
- type:
NoneType|int, optional, default:Noneargument path:template_slice_config/group_sizeThe number of tasks running on a single node. It is efficient for a large number of short tasks.
- pool_size:#
- type:
NoneType|int, optional, default:Noneargument path:template_slice_config/pool_sizeThe number of tasks running at the same time on one node.
- continue_on_failed:#
- type:
bool, optional, default:Falseargument path:continue_on_failedIf continue the the step is failed (FatalError, TransientError, A certain number of retrial is reached…).
- continue_on_num_success:#
- type:
NoneType|int, optional, default:Noneargument path:continue_on_num_successOnly in the sliced OP case. Continue the workflow if a certain number of the sliced jobs are successful.
- continue_on_success_ratio:#
- type:
NoneType|float, optional, default:Noneargument path:continue_on_success_ratioOnly in the sliced OP case. Continue the workflow if a certain ratio of the sliced jobs are successful.
- parallelism:#
- type:
NoneType|int, optional, default:Noneargument path:parallelismThe parallelism for the step