Sam Rose explains how LLMs work with a visual essay
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story. The source provided limited text, so this summary is brief.
Why it matters
Sam Rose's new visual essay for ngrok gives engineers and non-engineers a clear interactive way to learn LLM internals like tokenization and prompt caching.
Sam Rose, a developer educator who joined the company ngrok in September, has published an interactive visual essay on ngrok's blog explaining how large language models (the AI systems behind chatbots) work. Although it is nominally about prompt caching (a way to reuse previous work to make AI responses faster and cheaper), it expands to cover tokenization, embeddings, and transformer basics. Simon Willison calls it one of the clearest introductions to LLM internals anywhere.
ngrok hired Sam Rose as a developer educator in September and his first output is a visual explainer on prompt caching that widens into tokenization, embeddings, and transformer architecture basics. Simon Willison endorses it as among the clearest LLM introductions available. For decision-makers this is educational marketing, not a product or pricing change; no business-relevant figures or announcements are included.
Sam Rose's interactive essay for ngrok uses animations to show tokenization (e.g. numbers like 75, 305, 24, 887 becoming embedding vectors of floating-point values) and builds from there through embeddings, the transformer architecture, and prompt caching mechanics. It is an explainer, not a technique or benchmark; no performance numbers, model versions, or implementation details are given.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Sam Rose ngrok Simon Willison transformer architecture prompt caching
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.