Browser tool visualizes LLM attention token-by-token, surfacing the attention sink effect

Minute-Mountain2665 · reddit · 2026-10-12

A developer built Attention Galaxy, a browser-only visualization tool running SmolLM2-135M locally via onnxruntime-web (int8, no server, works on phones).

The author's key takeaway: heavy attention on the first token looked like a bug at first, but turned out to be the well-known attention sink phenomenon. Open-source with a live demo.

Original post →

More from coding & agent

coding & agent channel →