Skip to content

A comprehensive tool for visualizing and analyzing model execution, offering interactive graphs, memory plots, tensor details, buffer overviews, operation flow graphs, and multi-instance support with file or SSH-based report loading.

License

Notifications You must be signed in to change notification settings

tenstorrent/ttnn-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4,549 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TT-NN Visualizer

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

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

Visualiser-Demo.v4.mp4
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.

About

A comprehensive tool for visualizing and analyzing model execution, offering interactive graphs, memory plots, tensor details, buffer overviews, operation flow graphs, and multi-instance support with file or SSH-based report loading.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 9