Choose a small model and bring the runtime into the browser.
Interactive Tool
Inside an LLM
Load a real language model in the browser and inspect how it tokenizes text, maps words into vectors, compares token relationships, and chooses the next token. No server. No API key. Just the model on your machine.
From prompt to logits, in four visible stages.
A compact product-style walkthrough of how a browser-native model reads, maps, compares, and predicts.
See the prompt split into real token IDs from the selected model vocabulary.
Inspect the vector surface that turns words into numerical representations.
Compare token similarity directly and see which parts of the prompt sit closer together.
Watch the real probability distribution and generate fresh tokens with temperature control.
Break the prompt into tokens, vectors, and relationships.
Read the next-token distribution instead of just the final answer.
Adjust temperature and see how the output path changes.
Interactive Walkthrough
The model, exposed as a product surface.
Start with setup, run a prompt, then move stage by stage through the model’s internal path from text to next-token choice.
Choose a model and load it locally.
The first run downloads the weights into the browser cache. After that, reloads are much faster.
Run a prompt through the model.
Start with a short phrase so the intermediate stages stay easy to inspect.
01 Tokenization
The tokenizer splits your text into units and maps each unit to a vocabulary ID. The model only sees these numbers.
02 Embeddings
Each word becomes a high-dimensional vector. This view shows the first 48 values per word as a compact heat strip.
03 Token relationships
Real cosine similarity across the token vectors. Brighter cells mean the word vectors sit closer in embedding space.
04 Next-token prediction
This is the model’s actual probability distribution over what comes next, computed directly from the output logits.
Everything runs in-browser.
The page uses WebGPU when available and falls back to WASM when it is not. That means performance depends on the device and browser.
Small models, real mechanics.
The point is not benchmark leadership. The point is making the mechanics of a modern language model visible with a practical local setup.
Product-grade systems thinking.
This is the same product and infrastructure mindset we apply across AI systems, tooling, internal platforms, and technical communication surfaces.