debug:pytorch
CommunityDebug PyTorch models quickly and reliably.
AuthorSnakeO
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Debug PyTorch issues systematically. Use when encountering tensor errors, CUDA out of memory errors, gradient problems like NaN loss or exploding gradients, shape mismatches between layers, device conflicts between CPU and GPU, autograd graph issues, DataLoader problems, dtype mismatches, or training instabilities in deep learning workflows.
Core Features & Use Cases
- Systematic debugging: Structured steps to locate root causes across model code, data pipelines, and training loops.
- Error coverage: Handles CUDA OOM, NaN/Inf losses, shape mismatches, device placement, inplace operations, and DataLoader stability.
- Use Case: For a model failing with NaN loss, apply this Skill to enable anomaly detection, inspect logit shapes, verify devices, and stabilize training.
Quick Start
Use the PyTorch debugging skill to reproduce a failing training step with a minimal repro.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: debug:pytorch Download link: https://github.com/SnakeO/claude-debug-and-refactor-skills-plugin/archive/main.zip#debug-pytorch Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.