pytorch-debug

Installation
SKILL.md

PyTorch Debug Assistant

Help the user diagnose and fix PyTorch errors systematically.

Debugging Method: Trace the Full Data Flow

Always trace tensors from source to error point:

  1. Start at the source — where does the tensor originate? (model output, checkpoint, dataloader)
  2. Track all transformations — follow every op that touches the data
  3. Note dtype/device conversions — explicit (.float(), .cuda()) and implicit (promotions, AMP)
  4. Identify the divergence — where does actual vs expected dtype/device/shape differ?

Common Issues

Installs
5
GitHub Stars
8
First Seen
Mar 5, 2026
pytorch-debug — michaelrizvi/claude-config