← TinyGPT · docs · devlog · roadmap · speedup
source: docs/prds/C10-train-run-dashboard.md · view on GitHub ↗

PRD — Live-streaming training-run dashboard (browser viewer)

Goal

Ship a browser page (/train-viewer.astro) that drag-drops a tinygpt train run-history directory (or watches it live via OPFS on the same machine) and renders the canonical live-training charts: loss + grad-norm + LR + tok/s over steps. Drag-drop pattern mirrors eval-leaderboard.astro and sae-timeline.astro — no server, the browser parses the on-disk artifacts.

Removes the “guess what’s happening at hour 6 of a run” tax. Today tinygpt train prints a line per step to stdout; you scroll the terminal hoping you saw the right thing.

Why now

Scope — in

Scope — out

Files to touch

FileChange
web/src/pages/train-viewer.astronew — the page
web/src/lib/train-jsonl.tsnew — parser for run-history files
web/src/lib/charts.tsextend if a shared chart helper exists; else inline (one page)
docs/training_guide.md”Watching a run” section pointing at the viewer
docs/prds/README.mdadd row under “Browser viewers”

Don’t touch

Acceptance criteria

Reference patterns

Open questions