Skip to content

bitsofchris/nanoTST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NanoTST

NanoTST is a tiny time-series transformer lab. The goal is to train a small model on controlled synthetic data, watch it learn in real time, and use interpretability tools only after the model demonstrates a behavior worth inspecting.

Goals

  • Build a clean, standalone version of the NanoTST model.
  • Train on labeled synthetic time-series worlds: trend, sine, noise, jumps, amplitude, frequency, and offset.
  • Provide a web UI for changing data/model/training settings and watching predictions evolve.
  • Save run artifacts so experiments can be compared later.
  • Add interpretability views that connect behavior to internal model structure.

Current Status

NanoTST now has a working package, CLI report runner, and local web training cockpit. Track the current handoff and next feature ideas in docs/project-log.md.

For a practical workflow, see docs/learning-guide.md.

Setup

cd /Users/chris/repos/nanoTST
/Users/chris/.pyenv/versions/3.12.11/bin/python -m venv .venv
.venv/bin/python -m pip install -e .

Use Python 3.12 for now. The current pinned PyTorch dependency does not install in a Python 3.14 virtualenv.

Run A Baseline

.venv/bin/python -u scripts/run_interpretability.py \
  --run-name baseline_d64_l2_e50 \
  --epochs 50 \
  --train-series 1000 \
  --eval-series 300 \
  --d-model 64 \
  --n-layers 2 \
  --batch-size 64

Open the generated report under:

runs/interpretability/runs/<run-name>/report.html

Next Milestone

The next milestone is to add checkpoint loading, evaluation-only mode, named data presets, and a fixed held-out secret test suite. See docs/project-plan.md.

Web Training Cockpit

.venv/bin/python web_train/app.py

Then open:

http://127.0.0.1:8000

The first web version runs one active training job at a time, supports start, pause, resume, stop, and manual checkpoint save, and writes run artifacts under:

runs/web/<run-name>/

About

A tiny time series transformer model for exploring.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages