TokenTown: A visual way to understand how LLMs work

laurentiugabriel.github.io
July 29, 2026
2 min read
47/100
Summary
TokenTown visualizes a transformer language model as an isometric city, with each district representing a stage of the model. A convoy transports a hidden state through various processes, including tokenization, vector casting, and layer processing, ultimately producing a probability distribution for token selection.
Key Takeaways
- TokenTown is an isometric city representation of a transformer language model, where each district corresponds to a stage of the model's processing.
- The model operates in a simplified manner with reduced dimensions, attention heads, layers, and vocabulary compared to full-scale transformer models.
- The output of TokenTown is generated using random weights and a bigram prior, allowing for a visual and interactive demonstration of language model mechanics.
- Users can control the speed of the simulation and explore explanations of each district's function in the model's architecture.
Coverage & discussions
Hacker News · laurentiugabriel.github.io
Community discussions
Historical count: 5 · 5 saved in sample · Historical sample
Analysis ready
Community Sentiment
Concerns
- This doesn't help at all — the visual tool fails to clarify how LLMs work and seems buggy and confusing.
- The explanations are just typical hand-wavy LLM jargon, lacking clear, polished content that would genuinely aid understanding.
- It’s hard to grasp the concepts without prior knowledge, which makes this tool less accessible for average users.
Related Articles

Harness Engineering 101: The LLM is the brain, the harness is the body
Oct 19, 2026

If you don't run your own LLM proxy, how do you know whats going on?
Oct 18, 2026

Hybrid Reasoning Agents: LLM agents that think in latent space, act through text
Oct 18, 2026

Llama.cpp on a jailbroken PS5: run any GGUF model natively on the console
Oct 16, 2026

How to make System 1 LLMs show System 2 competencies?
Oct 16, 2026