Tutorials
These tutorials show how to build and train models with traceTorch. We’ll work through three tasks—handwritten digits, auditory events and next-byte prediction—then extend the image task with a custom neuron. The small workloads give us time to inspect what happens and try changes; the goal is to understand the models and their training, rather than produce state-of-the-art results.
You can read each notebook here with its saved figures, or open it and work
through the cells yourself. To get the source, follow Installation:
clone the repository, install the chosen example’s requirements.txt, and
open its tutorial.ipynb. The adjacent main.py runs the finished workflow.
The links below open those files on GitHub.
Task |
Notebook |
Complete program |
|---|---|---|
Image patches |
||
Auditory events |
||
Alice language model |
||
Custom neuron |
All examples share downloaded data under examples/data/. Each keeps its
figures and checkpoints/model.pt inside its own folder; where continuing
an unfinished sequence matters, we’ll save its memory in
checkpoints/states.pt too.
The order below is a suggested path. MNIST introduces stateful training and class-evidence accumulation. SHD adds synaptic filtering, varied decays and a feature accumulator with a learned readout. The language model uses residual context and one-step online updates. The custom-neuron lesson then explores state shapes and parameter transformations in more detail.