dpgen.remote package
Submodules
dpgen.remote.RemoteJob module
- class dpgen.remote.RemoteJob.CloudMachineJob(ssh_session, local_root, job_uuid=None)[source]
Bases:
RemoteJobMethods
block_call
block_checkcall
check_status
clean
download
get_job_root
submit
upload
- class dpgen.remote.RemoteJob.JobStatus(value)[source]
Bases:
EnumAn enumeration.
- finished = 5
- running = 3
- terminated = 4
- unknown = 100
- unsubmitted = 1
- waiting = 2
- class dpgen.remote.RemoteJob.LSFJob(ssh_session, local_root, job_uuid=None)[source]
Bases:
RemoteJobMethods
block_call
block_checkcall
check_limit
check_status
clean
download
get_job_root
submit
upload
- class dpgen.remote.RemoteJob.PBSJob(ssh_session, local_root, job_uuid=None)[source]
Bases:
RemoteJobMethods
block_call
block_checkcall
check_status
clean
download
get_job_root
submit
upload
- class dpgen.remote.RemoteJob.RemoteJob(ssh_session, local_root, job_uuid=None)[source]
Bases:
objectMethods
block_call
block_checkcall
clean
download
get_job_root
upload
- class dpgen.remote.RemoteJob.SSHSession(jdata)[source]
Bases:
objectMethods
close
get_session_root
get_ssh_client
dpgen.remote.decide_machine module
- dpgen.remote.decide_machine.convert_mdata(mdata, task_types=['train', 'model_devi', 'fp'])[source]
Convert mdata for DP-GEN main process. New convension is like mdata[“fp”][“machine”], DP-GEN needs mdata[“fp_machine”]
Notice that we deprecate the function which can automatically select one most avalaible machine, since this function was only used by Angus, and only supports for Slurm. In the future this can be implemented.
- Parameters
- mdatadict
Machine parameters to be converted.
- task_typeslist of string
Type of tasks, default is [“train”, “model_devi”, “fp”]
- Returns
- dict
mdata converted
dpgen.remote.group_jobs module
- class dpgen.remote.group_jobs.PMap(path, fname='pmap.json')[source]
Bases:
objectPath map class to operate {read,write,delte} the pmap.json file
Methods
delete
dump
load
- dpgen.remote.group_jobs.aws_submit_jobs(machine, resources, command, work_path, tasks, group_size, forward_common_files, forward_task_files, backward_task_files, forward_task_deference=True)[source]
- dpgen.remote.group_jobs.group_local_jobs(ssh_sess, resources, command, work_path, tasks, group_size, forward_common_files, forward_task_files, backward_task_files, forward_task_deference=True)[source]