Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>ModelViz — AI-Powered Architecture VisualizerNew to Visual Studio Code? Get it now.
ModelViz — AI-Powered Architecture Visualizer

ModelViz — AI-Powered Architecture Visualizer

Soham Kalgutkar

| (0) | Free
Interactive, zero-config PyTorch architecture visualization with local-first MCP tracing.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ModelViz — AI-Powered PyTorch Architecture Visualizer

ModelViz Interactive Architecture Webview

Interactive, zero-config PyTorch architecture visualization with local-first MCP tracing.

ModelViz natively brings high-definition computational graphs straight to your VS Code editor. Utilizing rigorous topological analysis via the Model Context Protocol (MCP), it perfectly bridges your raw PyTorch modeling logic into an interactive React-Flow diagram.


🚀 Key Features

  • Zero-Config ML Environment: ModelViz automatically downloads and manages a minimal, standalone Python environment natively on the first run. No need to mess with venv, conda, or global dependency configurations manually.
  • Local-First Privacy via MCP: The engine operates via a local Model Context Protocol (MCP) server. Your proprietary architectures and code layers never leave your secure host machine.
  • Deep Symbolic Tracing: Uses torch.fx.symbolic_trace by default for true execution-path rendering, capturing explicit multidimensional tensors, layer parameter accumulations, and branched operational linkages.
  • Deterministic AST Fallback: Fallback natively onto a custom Abstract Syntax Tree (AST) analyzer. Our custom Topological Shape Propagator handles complex branching graphs completely deterministically, accurately predicting hidden output shapes statically.
  • Dynamic UI-Driven Retracing: A beautiful Glassmorphism webview where you can directly modify your target input tensor dimensions (e.g., [1, 1, 28, 28]) and dynamically trigger immediate graph reconstructions.

📋 Prerequisites

  • Visual Studio Code version 1.90.0 or higher.
  • Executable Rule: An internet connection is required exclusively for the first launch. ModelViz automatically downloads a minimal Python runtime and necessary dependencies (torch, fastmcp, etc.) into its local bin/ folder for executing local AST and symbolic analysis safely and securely without messing up your global configurations.

🛠️ Usage Workflows

ModelViz natively connects to your files through two very distinct entry points.

1. The VS Code Chat Participant (@modelviz)

You can ask @modelviz to review and visualize an architecture directly alongside your code:

  1. Open the GitHub Copilot Chat panel.
  2. Tag @modelviz in your prompt.
  3. Paste or reference your complete torch.nn.Module class and submit!

2. The Command Palette (Direct Execution)

For an immediate trace on whatever is currently loaded in your window:

  1. Open up your model's source file (.py).
  2. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the Command Palette.
  3. Use the command: ModelViz: Visualize Model Architecture.
  4. The Extension will analyze the payload and instantly project your graph!

🔗 Links

  • GitHub Repository: Soham-droid-pixel/ModelViz
  • Issue Tracker: Report a Bug or Request a Feature

📜 License & Disclaimers

License

This project is licensed under the MIT License © 2026 Soham Santosh Kalgutkar.

Trademark Disclaimer

PyTorch, the PyTorch logo and any related marks are trademarks of The Linux Foundation. This extension is an independent project and is not affiliated with, sponsored by, or endorsed by the PyTorch Foundation.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft