| name | training-infra-debugging |
| description | Debug ML training infrastructure including data loaders, distributed training, checkpointing, mixed precision, memory pressure, logging, and experiment orchestration. Use when runs diverge, slow down, OOM, deadlock, or produce inconsistent metrics across nodes, seeds, or restarts. |
Training Infra Debugging
Use this skill when the model is not the only system under test.
Core Workflow
- Capture the failing run signature:
- hardware,
- framework,
- launcher,
- world size,
- precision,
- checkpoint source.
- Classify the failure:
- crash,
- hang,
- silent divergence,
- throughput collapse,
- nondeterministic restart.
- Narrow the fault domain:
- input pipeline,
- model graph,
- optimizer,
- communication,
- filesystem,
- orchestration.
- Reduce to the smallest failing configuration.
- Add instrumentation before attempting broad fixes.
Execution Rules
- Check one-node and one-batch behavior first.
- Separate correctness from performance.
- Treat data-order drift, seed handling, and checkpoint resume semantics explicitly.
- Record environment variables and library versions when distributed systems are involved.
Output Contract
Return:
- Failure classification.
- Fault domain ranking.
- Minimum reproducer.
- Highest-value probes.
- Likely fixes and validation criteria.