Description
tensorViz is a powerful visualization tool designed for machine learning models, specifically focusing on PyTorch and traced JAX/Flax programs. It offers an interactive and expandable canvas that allows developers to understand their model's architecture directly from its Python source code, without requiring intermediate steps like `torch.export` or ONNX conversion.
Read More
The core functionality of tensorViz includes generating graphs with tensor shapes measured from a single eager forward call, providing crucial insights into data flow and potential mismatches. Users can easily navigate from any layer in the graph directly to its corresponding Python source code, facilitating rapid debugging and understanding of implementation details. The tool also supports a "source-only preview" mode, which visualizes the graph without needing to run the model.
A standout feature is "Graph review," which enables users to compare layers and connections between two Python revisions, displaying the code diff alongside the visual graph. This is invaluable for understanding the impact of architectural changes. Furthermore, tensorViz integrates with coding agents, allowing them to inspect graphs and propose edits, which users can then review and accept or discard, maintaining full control over the development process.
Installation is straightforward, primarily through editor extensions for VS Code, Cursor, or VSCodium, or as a plugin for coding agents like Claude Code, Codex, and Cursor. The tool runs models on the user's local machine within their chosen Python environment, ensuring data privacy and control. It also offers the ability to inspect Hugging Face `safetensors` headers without downloading full weights.
While tensorViz is free to install and its core graph tools do not require an AI subscription or provider key, it is distinct from other visualization tools like Netron (which focuses on saved model files) or `torchview`/`torchviz`/`torchinfo` (which produce static diagrams or text summaries). tensorViz prioritizes interactive exploration of live Python source, making it a unique solution for model understanding and debugging.
- CategoryMLOps & Model Deployment
- Pricing ModelFree
- DeploymentEditor Extension, Coding-Agent Plugin
- PlatformsVS Code, Cursor, VSCodium, Claude Code, Codex
tensorViz's Core Features
Visualize PyTorch models from Python source
Visualize traced JAX/Flax programs
Interactive and expandable model graphs
Measure tensor shapes from eager forward calls
Navigate from graph layers to Python source code
Review architectural changes with graph comparison
Source-only graph preview without running the model
Inspect Hugging Face safetensors headers
Integrate with coding agents for graph inspection and edits
Supports VS Code, Cursor, and VSCodium extensions
Coding-agent plugin for Claude Code, Codex, Cursor
Model execution on local machine
Public source repository on GitHub under MIT license
Browser-based Model Explorer for shared graphs
How to use tensorViz?
Install Extension: Install the tensorViz editor extension for VS Code, Cursor, or VSCodium, or add the coding-agent plugin to your agent.
Open Project: Open your Python project containing your `nn.Module` class.
Visualize Model: Click "Open as Graph" above your `nn.Module` class or ask your coding agent to open the model.
Configure Inputs: Choose your Python environment and review example inputs for the forward pass.
Explore Graph: Pan, zoom, expand modules, search layers, and select layers to view their Python source.
Review Changes: Use the Graph Review feature to compare layers and connections between different Python revisions.
Export Graph: Export graphs as SVG/PNG or share them to be viewed in the browser-based Model Explorer.
tensorViz's Use Cases
- PyTorch Model Visualization
- JAX/Flax Program Visualization
- Tensor Shape Inspection
- Code Navigation and Debugging
- Architectural Review
- Coding Agent Collaboration
- Hugging Face Model Exploration
- Model Understanding
- Educational Tool





