Tutorials

This section provides a collection of Python tutorials designed to help you get started with TT-NN for tasks such as tensor operations, model conversion, and inference.

To run these tutorials smoothly, we recommend using a Python virtual environment with the necessary dependencies installed. You can set this up in one of two ways:

Each tutorial also has an equivalent standalone Python script that you can run locally. These scripts are located in the ttnn/tutorials/basic_python/ directory of the TT-Metal repository.

With your virtual environment activated, you can run the tutorials directly:

$ python3 --version
Python 3.10.12
$ python3 example.py
...

Available tutorials: