Full-network illustrations from checkpoint weights: spatial or token-wise connections, Datashader edge bundles, and high-resolution images.
CIFAR-10 · ResNet20 — 289,866 neuron positions and 37,219,648 learned weight uses, including spatial convolution reuse.
MNIST · MLP — 784 → 256 → 256 → 10 units, with 268,800 dense connections.
make runOpen http://127.0.0.1:8000/ for the image gallery, summaries, and full-resolution links. Every card keeps its original 2D illustration and adds Explore this network in 3D and View 3D image links. Rotate each companion, focus on groups, or choose Trace a layer to highlight its incoming and outgoing connections. Group focus includes boundary joins, and sparse structural links are brighter so the network reads as connected. Export 4K stills from any view. make serve is an alias; make run PORT=8080 changes the port. Stop with Ctrl+C. Serving the checked-in files requires only Python 3 and Make.
Every modeled connection contributes to a bundle. Individual neurons and edges share bins and pixels; the illustrations do not resolve each edge separately. Brightness represents absolute checkpoint weight mass with per-layer exposure. Color marks stage. These are connectivity diagrams, not measured activations. Input sizes, fused operations, and counting conventions are recorded in each image’s JSON.
| Location | Contents |
|---|---|
docs/index.html |
Main high-resolution image gallery |
docs/assets/ |
Gallery styles and the 3D WebGL renderer |
docs/images/ |
Full-network PNGs and count/scope metadata |
docs/images/3d/ |
Overview, overhead, and detail stills for all seven models |
docs/3d/ |
Offline rotatable full-network viewers |
docs/images/studies/, docs/studies/ |
Earlier parameter atlases and matrix-layout experiments |
scripts/renderers/ |
Current rendering scripts and templates |
scripts/studies/ |
Earlier experiment generators |
src/nnvisual/ |
Checkpoint export, graph helpers, and inspector |
data/models/ |
Local model downloads, ignored by Git |
gallery/, artifacts/ |
Generated inspector data and checks, ignored by Git |
The finite sequence examples use eight token positions; EnCodec uses 640 samples at 24 kHz. MusicGen’s graph runs from text and an audio-token prefix through codebook logits; waveform codec synthesis is outside that view. Auxiliary states, constants, and fused operations are documented per image.
The earlier TinyStories 3D matrix atlas is retained as a study. The 3D companions reuse each model’s 2D connectivity graph and exact counts. CIFAR and MobileNet include their spatial residual/projection branches and pooling. CIFAR’s 48 bins per layer, and the companions’ 24 bins per layer, gather into curved 3D density bundles. Connection-weight profiles shape the cross-sections, endpoints stay shared, and residual branches form separate arches. WebGL2 renders the fibers with depth shading and bloom; the Bundling toggle compares them with direct paths. These coordinates are illustrative, not measured activation locations or nn_vis importance estimates.
Rendering needs Python 3.11+ and the local checkpoints:
uv sync --extra bundle
uv run --extra bundle python scripts/renderers/mobilenet.py
uv run --extra bundle python scripts/renderers/tinystories.py
uv run --extra bundle python scripts/renderers/encodec.py
uv run --extra bundle python scripts/renderers/musicgen.py
make render-3d
make gallerymake gallery rebuilds only the portable image index, without loading models. To regenerate one companion, use uv run --extra bundle python scripts/renderers/networks_3d.py --model mnist-mlp (or another model slug). make render-3d builds all viewers using local checkpoints and refreshes the gallery; it does not regenerate the original 2D images.
For all 3D stills, run NODE_PATH=/usr/lib/node_modules node scripts/renderers/capture_3d.cjs --all (requires Playwright, Chromium, and WebGL2). In a headless Linux container, run xvfb-run -a env NODE_PATH=/usr/lib/node_modules node scripts/renderers/capture_3d.cjs --all to provide a graphics display. The checked-in viewers require a browser with WebGL2, without a model runtime or network downloads.
The original CIFAR/MNIST exporter and optional tensor inspector remain available:
uv run --extra bundle python scripts/build_inspector.py
uv run python -m nnvisual serve --directory galleryCheckpoints are not included in Git. See usage and modeling notes for the original exporter and renderer details.
The 3D exploration is inspired by nn_vis, Julian Rogawski’s open-source neural network visualization work. These viewers use their own rendering and checkpoint-magnitude aggregation; they do not implement nn_vis’s importance-estimation or ray-tracing pipeline.


