Skip to main content

TT-NN Visualizer

Project description

TT-NN Visualizer

A tool for visualizing the Tenstorrent Neural Network model (TT-NN)

Buy Hardware | Install TT-NN | Discord | Join Us

Quick Start

TT-NN Visualizer can be installed from PyPI:

pip install ttnn-visualizer

After installation run ttnn-visualizer to start the application.

It is recommended to do this within a virtual environment. The minimum Python version is 3.10.

Please see the install guide guide for further information on getting up and running with TT-NN Visualizer.

If you want to test out TT-NN Visualizer you can try some of the sample data. See loading data for instructions on how to use this.

Features

For the latest updates and features, please see releases.

Reports

  • Upload reports from the local file system or sync remotely via SSH
  • Switch seamlessly between previously uploaded or synced reports
  • Run multiple instances of the application concurrently with different data
  • Set data ranges for both memory and performance traces
  • Display physical topology and configuration of Tenstorrent chip clusters

Operations

  • Filterable list of all operations in the model
  • Interactive memory and tensor visualizations, including per core allocations, memory layout, allocation over time
  • Input/output tensors details per operation including allocation details per core
  • Navigable device operation tree with associated buffers and circular buffers

Tensors

  • List of tensor details filterable by buffer type
  • Flagging of high consumer or late deallocated tensors

Buffers

  • Visual overview of all buffers for the entire model run by L1 or DRAM memory
  • Toggle additional overlays such as memory layouts or late deallocated tensors
  • Ease of navigation to the relevant operation
  • Track a specific buffer in the data across the application
  • Filterable table view for a more schematic look at buffers

Graph

  • Interactive model graph view showing all operations and connecting tensors
  • Filter out deallocated operations
  • Find all operations by name

Performance

  • Integration with tt-perf-report and rendering of performance analysis
  • Interactive charts and tables
  • Multiple filtering options of performance data
  • Compare multiple performance traces

NPE

  • Network-on-chip performance estimator (NPE) for Tenstorrent Tensix-based devices
  • Dedicated NPE visualizations: zones, transfers, congestion, timelines with elaborate filtering capability

Demo

Application demo

https://github.com/user-attachments/assets/4e51a636-c6d6-46df-bf34-a06bca13c0b3

L1 Summary with Tensor highlight Operation inputs and outputs
L1 Summary with Tensor highlight Operation inputs and outputs
Device operations with memory consumption DRAM memory allocation
Device operations with memory consumption DRAM memory allocations
Operation graph view Model buffer summary
Operation graph view Model buffer summary
Per core allocation details Per core allocation details for individual tensors
Per core allocation details Per core allocation details for individual tensor
Tensor details list Performance report
Tensor details list Performnance analysis
Performance charts
Performance charts Performance charts
NPE
NPE NPE

Sample reports

You may test the application using the following sample reports.

Unzip the files into their own directories and select them with the local folder selector, or load the NPE data on the /npe route.

Segformer encoder memory report

Segformer decoder memory report

Llama mlp memory + performance report

N300 llama memory + performance report with NPE data + cluster description

NPE report

T3K synthetic synthetic_t3k_small.json.zip

Contributing

How to run TT-NN Visualizer from source.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttnn_visualizer-0.73.0-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file ttnn_visualizer-0.73.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ttnn_visualizer-0.73.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e74f6e085a44b4a535c07d785a1b907511bfb430cda3262889dc445ab8212567
MD5 84ab70fcc269d4fc7e7285e57e131153
BLAKE2b-256 87e12318792997248ae6cd24b6d72b4d497eb5c1b11d96b8f3193539aa8dcfe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ttnn_visualizer-0.73.0-py3-none-any.whl:

Publisher: build-wheels.yml on tenstorrent/ttnn-visualizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page