espnet3.bin.atlas.stages.run_trial.RunTrialStage
Less than 1 minute
espnet3.bin.atlas.stages.run_trial.RunTrialStage
class espnet3.bin.atlas.stages.run_trial.RunTrialStage
Bases: BaseStage
Execute training, inference, and measurement for one trial.
run(context) → StageResult
Run a trial’s train/infer/measure commands as a local subprocess pipeline.
Skips stages already marked "completed" in stage_status.yaml (so a retried attempt resumes rather than redoing finished work), resumes training from exp/last.ckpt when present, writes a train_eval.sh script recording the commands run, and — when context.gpu_self_controller is set — runs the training command under cooperative early-stop monitoring instead of a plain blocking call.
- Parameters:context – The node run’s
StageContext; must have a current trial. - Returns:
status="success"if every command exits 0,status="failure"if a command exits non-zero,status="timeout"if a command exceedstrial.timeout_sec, orstatus="early_stopped"if the keypoint agent stopped the trial mid-training (GPU self-controller mode only). - Return type:StageResult
Example
>>> result = RunTrialStage().run(stage_context)
>>> result.status
'success'