What problem does it solve? When torch.compile with the npugraph_ex backend fails before the model runs even one step, error logs are often buried under wrapper exceptions like BackendCompilerFailed, making it hard to find the real cause. This Skill provides a structured diagnostic workflow to locate the first causal error across TorchDynamo, FX, AOTAutograd, Meta derivation, and ACL graph capture stages. ## Core Features & Use Cases - Stage Isolation: Distinguishes failures by layer—Eager, backend="aot_eager", and backend="npugraph_ex"—so you fix the right layer instead of guessing. - First-Cause Anchoring: Guides you to the earliest causal exception (Unsupported, graph break, Meta derivation failure, capture failure) rather than trailing wrapper errors. - Progressive DFX Evidence Collection: Recommends debug_save first, then data_dump or TORCH_LOGS only when needed, avoiding log noise. - Use Case: Your model crashes on the first compiled call with BackendCompilerFailed. The Skill walks you through checking whether aot_eager passes, reading the debug_save artifacts, and tracing the Meta or capture error to the responsible source file in PyTorch, TorchAir, or torch_npu. ## Quick Start Ask the assistant to diagnose why torch.compile with backend npugraph_ex fails on the first call and paste the full traceback so it can identify the first causal error stage by stage.