🤖 AI Code Generation: Transformer Attention & Token Prediction Visualizer
Live simulation of GitHub Copilot / Cursor / Code Llama predicting the next token – multi-head self-attention, live candidate probabilities, and temperature control over softmax(QKᵀ/√d)·V.
Algorithms & AI3DModerate60 FPS📱 Mobile-adapted
⚙ Under the hood
Watch a simplified transformer generate code token by token: multi-head self-attention lines connect the token being written to its context window while a live bar chart shows candidate token types competing for the next slot. Temperature reshapes that softmax(QKᵀ/√d)·V-driven distribution — the same mechanism behind GitHub Copilot, Cursor AI and Code Llama.
Three.jsAItransformerself-attentioncode generationLLMInstancedMesh
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install