Skip to main content

torchui

See inside your PyTorch model, in the browser, with one line of code.

import torchui
torchui.watch(model)

torchui is a learning-oriented visualizer for PyTorch. It is not a production experiment tracker. It exists to make the fundamentals visible: what a network actually is as a set of matrices, how data flows through it, what the autograd computation graph looks like, and what really changes in the weights during training.

What it will show

  • Architecture as a layer diagram with real tensor shapes flowing through it.
  • Weights as matrices: heatmaps of every parameter, conv kernels as images, and a scrubber to watch weights drift from their initial values step by step.
  • The computation graph, taken from the real autograd graph (grad_fn), so what you see is what backprop traverses.
  • Training dynamics: loss, per-layer gradient norms, update ratios, activation distributions, and dead-ReLU fractions over time.
  • Single-sample traces: pick one input and see every intermediate activation on its way to the output.

How it works

torchui.watch(model) registers forward hooks and gradient hooks on the model, observes backward() and optimizer.step() to find the loss and step boundaries, and records everything to a run directory on disk. A small background server serves a static single-page viewer that reads that directory, so you can watch live or replay any past run with torchui runs/<name>.

Status

Early development. This release reserves the package name; the first working version is on its way.

License

MIT

Metadata

Release files for torchui 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torchui 0.0.1
File Size Uploaded Provenance
torchui-0.0.1.tar.gz 2.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for torchui 0.0.1
File Interpreter ABI Platform
torchui-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / torchui-0.0.1.tar.gz

Download URL torchui-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ddf5841a6a019801559ac61adb727aff17b8e0a64f2e5aed1bf926695ae41f13
BLAKE2b-256 checksum
How to use checksums
5705bd7e3dd252740571b2c509f19f3a3ecd30d3142826ea8319f0158f00477b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / torchui-0.0.1-py3-none-any.whl

Download URL torchui-0.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9915c8f97d2b83265a964a566dfb8bcc1abdde507534fbd47899a429db84d4e2
BLAKE2b-256 checksum
How to use checksums
e82982ba67fd90380e484c38dd96e2252152b583b61c7b3a67099c67c59f6225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for torchui 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page