Explained.ai builds an animated mental model of how LLMs generate text

the_antlr_guy · x · 2026-12-01

Terence Parr (explained.ai) built an educational animation to give students a mental model of how AI generates text. Key ideas: the model probabilistically predicts each next word ("to" 39%, "home" 25%, "out" 20% in the demo), so randomness causes hallucinations and inconsistent outputs — in Karpathy's words, "AI is always dreaming"; and reading vs. generating is asymmetric — it ingests the whole prompt at once (great at analysis) but emits one word at a time with no ability to backtrack. Practical tips: provide context, examples and desired format, and paste source material. The Read in → Think → Pick → Append animation supports pause, step-through and speed control, useful for teaching.

Original post →

More from AGI Musings

AGI Musings channel →