NaNsense¶
See what your neural network is doing while it trains.
NaNsense is a visual debugger for PyTorch. Pause training, step through batches, revisit earlier epochs, and inspect activations, gradients, weights, and optimizer state.
🕹️ Try the Playground ✨ Integrate with one prompt 🤖 Debug with a coding agent
- Understand learned features. See activations and gradients, find the inputs that excite a channel, and use deep dream to reveal what it has learned.
- Find training problems. Spot small receptive fields, dead channels, padding artifacts, and gradient underflow.
See the Showcase for screenshots, Getting started to run an example, and the Wiring guide to add NaNsense to your project. A coding agent can also inspect the same session with nansense-cli.
How is this different from wandb or TensorBoard?¶
Experiment trackers show that a run went wrong. NaNsense helps you find where it went wrong inside the network—for example, a layer with dead channels or underflowing gradients.