Skip to content

Commit 271edb8

Browse files
authored
v0.24.0 (#402)
2 parents 131e088 + 1751332 commit 271edb8

31 files changed

+1065
-265
lines changed

.github/workflows/build-wheels.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,22 @@ jobs:
8282
asset_path: ${{ env.wheel_name }}
8383
asset_name: ${{env.wheel_file_name}}
8484
asset_content_type: application/octet-stream
85+
publish-to-pypi:
86+
name: >-
87+
Publish Python 🐍 distribution 📦 to PyPI
88+
needs:
89+
- build
90+
runs-on: ubuntu-latest
91+
environment:
92+
name: pypi
93+
url: https://pypi.org/p/ttnn-visualizer
94+
permissions:
95+
id-token: write # IMPORTANT: mandatory for trusted publishing
96+
steps:
97+
- name: Download all the dists
98+
uses: actions/download-artifact@v4
99+
with:
100+
name: python-wheel
101+
path: dist/
102+
- name: Publish distribution 📦 to PyPI
103+
uses: pypa/gh-action-pypi-publish@release/v1

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

LICENSE_understanding.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
For the avoidance of doubt, this software assists in programming Tenstorrent products.
2+
3+
However, making, using, or selling hardware, models, or IP may require the license of rights (such as patent rights) from Tenstorrent or others.

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
<div align="center">
77
<picture>
8-
<source media="(prefers-color-scheme: dark)" srcset="./src/assets/tt-logo-dark.svg">
9-
<img alt="" src="./src/assets/tt-logo.svg">
8+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tenstorrent/ttnn-visualizer/refs/heads/main/src/assets/tt-logo-dark.svg">
9+
<img alt="" src="https://raw.githubusercontent.com/tenstorrent/ttnn-visualizer/refs/heads/main/src/assets/tt-logo.svg">
1010
</picture>
1111

1212
A tool for visualizing the Tenstorrent Neural Network model (TT-NN)
@@ -21,6 +21,19 @@ A tool for visualizing the Tenstorrent Neural Network model (TT-NN)
2121

2222
</div>
2323

24+
## Quick Start
25+
26+
TT-NN Visualizer can be installed from PyPI:
27+
28+
`pip install ttnn-visualizer`
29+
30+
After installation run `ttnn-visualizer` to start the application.
31+
32+
It is recommended to do this within a virtual environment. The minimum Python version is 3.12.
33+
34+
Please see the [getting started](https://github.com/tenstorrent/ttnn-visualizer/blob/main/docs/getting-started.md) guide
35+
for further information on getting up and running with TT-NN Visualizer.
36+
2437
## Features
2538

2639
For the latest updates and features, please see [releases](https://github.com/tenstorrent/ttnn-visualizer/releases).
@@ -73,13 +86,9 @@ https://github.com/user-attachments/assets/d00a2629-0bd1-4ee1-bb12-bd796d85221d
7386
|-----------------------------------------------|------------------------------------------|
7487
| <img width="400" alt="NPE" src="https://github.com/user-attachments/assets/1f4441c6-9d9e-4834-9e71-edec1955243c" /> | <img width="400" alt="NPE" src="https://github.com/user-attachments/assets/7159992e-7691-41cf-a152-8bc6a3606ade" /> |
7588

76-
## Getting started
77-
78-
How to [get started](./docs/getting-started.md) with TT-NN Visualizer.
79-
8089
## Remote Querying
8190

82-
Use [remote querying](./docs/remote-querying.md) instead of syncing the report data to your local file system.
91+
Use [remote querying](https://github.com/tenstorrent/ttnn-visualizer/blob/main/docs/remote-querying.md) instead of syncing the report data to your local file system.
8392

8493
## Sample reports
8594

@@ -104,4 +113,4 @@ Unzip the files into their own directories and select them with the local folder
104113

105114
## Contributing
106115

107-
How to run [TT-NN Visualizer](./docs/contributing.md) from source.
116+
How to run [TT-NN Visualizer](https://github.com/tenstorrent/ttnn-visualizer/blob/main/docs/contributing.md) from source.

backend/ttnn_visualizer/csv_queries.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ class OpsPerformanceReportQueries:
567567
"output_subblock_h",
568568
"output_subblock_w",
569569
"advice",
570+
"raw_op_code"
570571
]
571572

572573
DEFAULT_SIGNPOST = None
@@ -590,6 +591,8 @@ def generate_report(cls, session):
590591
csv_output_file,
591592
cls.DEFAULT_NO_ADVICE,
592593
cls.DEFAULT_TRACING_MODE,
594+
True,
595+
True,
593596
)
594597

595598
report = []

backend/ttnn_visualizer/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Flask==3.1.0
12
gunicorn~=22.0.0
23
uvicorn==0.30.1
34
paramiko~=3.4.0
@@ -11,12 +12,12 @@ flask-sqlalchemy
1112
flask-socketio
1213
gevent==24.10.2
1314
flask-session
14-
pandas
15+
pandas==2.2.3
1516
wheel
1617
build
1718
PyYAML==6.0.2
1819
python-dotenv==1.0.1
19-
tt-perf-report==1.0.3
20+
tt-perf-report==1.0.6
2021

2122
# Dev dependencies
2223
mypy

docs/getting-started.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,42 @@ Network-on-chip performance estimator data can be loaded separately on the `/npe
5151

5252
To generate this data for your model, refer to the [tt-npe documentation](https://github.com/tenstorrent/tt-npe).
5353

54+
## Installing from PyPI
55+
56+
TTNN-Visualizer can be installed from PyPI:
57+
58+
`pip install ttnn-visualizer`
59+
60+
After installation run `ttnn-visualizer` to start the application.
61+
62+
It is recommended to do this within a virtual environment. The minimum Python version is 3.12. Pyenv can be used
63+
to ensure the application runs with a supported version of Python:
64+
65+
```bash
66+
mkdir ttnn-visualizer
67+
cd ttnn-visualizer
68+
pyenv local 3.12 # Optional step if using pyenv to manage versions
69+
python -m venv .env
70+
source .env/bin/activate
71+
pip install ttnn-visualizer
72+
ttnn-visualizer
73+
```
74+
75+
For pyenv installation instructions, see:
76+
77+
https://github.com/pyenv/pyenv
78+
79+
If you have `pipx` installed on your system, it can be used to simplify the above steps:
80+
81+
```bash
82+
pipx install ttnn-visualizer
83+
ttnn-visualizer
84+
```
85+
86+
For help with setting up `pipx`, see:
87+
88+
https://pipx.pypa.io/stable/installation/
89+
5490
## Installing as a Python Wheel
5591

5692
The application is designed to run on user local system and has python requirement of `3.12.3`.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ttnn-visualizer",
33
"private": true,
4-
"version": "0.23.0",
4+
"version": "0.24.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

0 commit comments

Comments
 (0)