nanochat File Structure

nanochat is a minimal codebase—under 10K lines. Here's the full layout from the GitHub repo. Understanding the structure helps when you want to modify training, add datasets, or extend the pipeline.

Root

nanochat/ (core module)

scripts/

runs/

tasks/

dev/

tests/

tests/test_engine.py — Tests for the inference engine. Run tests with your test runner of choice.