espnet3.bin.atlas.stages.debug_trial.DebugTrialStage
Less than 1 minute
espnet3.bin.atlas.stages.debug_trial.DebugTrialStage
class espnet3.bin.atlas.stages.debug_trial.DebugTrialStage
Bases: BaseStage
Inspect failure logs and ask an agent for a patch-only retry fix.
run(context) → StageResult
Ask the agent to diagnose a trial’s failure and apply its fix (if any).
Calls the debug agent, sanitizes any proposed training/inference config patches against the study’s search space, re-resolves and writes the trial’s configs when a patch is applied, invalidates stage-status entries affected by the fix (so they re-run), and decides whether to retry the trial or route to reflect (when the attempt limit is reached or the agent declines to retry).
- Parameters:context – The node run’s
StageContext; must have a current trial. - Returns:
status="success"withnext_node="run_trial"when a fix (or no-op retry) is applied, orstatus="continue"routed to"reflect"/"run_trial"when the agent failed or the attempt limit was reached. - Return type:StageResult
Example
>>> result = DebugTrialStage().run(stage_context)
>>> result.status
'success'