Troubleshooting
Start every diagnosis the same way, from your TinyTorch folder:
source .venv/bin/activate # Windows (Git Bash): source .venv/Scripts/activate
tito system healthtito system health checks Python, the virtual environment, the required packages, the Jupyter kernel, and the project folders, and marks whatever is missing; it exits with status 1 when it finds an issue. If everything is green, the problem is in your code rather than your setup, and the module page’s When it fails section is the place to look.
Setup
tito: command not found-
The virtual environment is not active, so its
titois not on your path. Runsource .venv/bin/activate(on Windows,source .venv/Scripts/activatein Git Bash) from the TinyTorch folder. If it is still missing, reinstall the package into the environment withpython -m pip install -e .. ModuleNotFoundError: No module named 'tinytorch'-
Python is running outside the virtual environment. In a terminal, activate it as above. In a notebook, the kernel is the usual cause: open notebooks with
tito module startortito module resume, which launch Jupyter from the environment, andtito system healthreports whether the kernel is set up. No TinyTorch modules found-
titowas run outside your TinyTorch folder, so it cannot findsrc/andmodules/. Runcd tinytorch(the folder the installer created) and try again. - The environment is broken beyond repair
-
Rebuild it.
titolives inside.venv, so recreate the environment with Python first:This touches neither your notebooks inrm -rf .venv python3 -m venv .venv source .venv/bin/activate python -m pip install -r requirements.txt python -m pip install -e . tito setupmodules/nor your progress in.tito/. - Windows
-
Use Git Bash, which comes with Git for Windows, for the installer and for every
titocommand. The environment’s activation script is.venv/Scripts/activaterather than.venv/bin/activate.
Completing a module
❌ Unit tests failed for 03_layers-
A test inside your notebook failed, and nothing was exported or recorded. The traceback above this line names the test and the message; the module page’s When it fails section explains the common ones. Fix the notebook and run
tito module completeagain. 💡 Fix the syntax error in your notebook and try again- A cell does not parse, so nothing can be exported. The line above names the problem. Run the notebook top to bottom in Jupyter to find the cell.
❌ Integration tests failed for 03_layers-
Your notebook’s own tests passed, but the exported package failed a test that imports it together with earlier modules. The usual cause is a function that works on the small inputs in the notebook but not on other shapes or on inputs produced by earlier modules. The output names the failing test and file; rerun
tito module completeafter the fix, since it re-exports before testing again. ⚠️ You must complete module 04 first-
Modules are completed in order. Run
tito module statusto see which one is missing, and complete it first.
Jupyter
Jupyter Lab is already running-
titoreuses the server it started earlier instead of opening a second one. Open the address it prints, usuallyhttp://localhost:8888, and select the notebook there. - My notebook is gone
-
tito module resumenotices a missing notebook for a module you had started and recreates it from the source. The recreated notebook is a fresh copy, so work that was only in the deleted file is lost.
Milestones
Prerequisites Not Met-
The milestone needs modules you have not completed. The panel lists the
tito module completecommands to run.tito milestone info NNshows the full list. - A milestone fails with an import or attribute error after you changed a module
-
Milestones import the exported
tinytorchpackage, not your notebook. Edits reach the package only when you runtito module completeagain for that module.
Still stuck
Search or open an issue on GitHub, with the command you ran, the full error, your operating system, and the output of tito system info.