Machine Learning
Explore how your phone visualizes AI attention with each word it chooses
Watching your phone visualize attention as it generates each word feels like peeking inside a working brain. This browser-based demo runs SmolLM2-135M entirely on-device, no server, just int8 precision and ONNX runtime. You see token probabilities in real time, plus attention links drawn back to earlier words, weighted and clickable. The developer initially thought his code was broken; everything kept attending to the first token. That turned out to be the attention sink phenomenon, a fascinating bug that became the lesson.