iHow far from here, exactly. Click a token to pin it, then press D. Every token slides out along the direction it already sits in on screen to a radius equal to its true cosine distance from the pinned token, on a disc facing you, with rings at cosine 0.9, 0.7, 0.5, 0.3 and 0.1. The radius is exact; the direction around the disc is kept from the cloud and means little. It answers the one question a map can't: what is really near this token, and how near. D again, Esc, or another layout restores the cloud.iSemantic zoom. The cloud squeezes the whole vocabulary into three dimensions at once, so any one region is a compromise. Zoom in until the dotted parafovea holds a few hundred to a few thousand tokens and press Z: those tokens are laid out again by their own clustering (UMAP on just their vectors), in place, keeping the region's centre, size and orientation. With only that region to honour, the layout keeps far more of its real neighbourhoods, and the line above says how much, before and after. The rest of the cloud stays as context. Press Z again to restore the global layout; switching Clusters / PCA restores it too. Derived, like any layout.
iHow much of the real geometry this layout keeps, measured live for this model on 150 tokens spread across the vocabulary. The cloud is read at the scale of regions, so that is what is measured: same region is how often a token's 15 true nearest neighbours land within its nearest 1% of the cloud, about one visible blob; near/far agreement is how well the cloud orders other tokens from near to far around a token, the way you read it, compared with the real space: partners at the 1st, 2nd, 3rd, 5th, 8th… nearest true positions, out to half the vocabulary (1 = the same order, 0 = unrelated). For PCA, also the share of the variation its three directions hold. The cloud is a map for a visual brain; the fovea's neighbour lines are measured in the full space wherever the map must bend.
Loading model…
Frame–
In fovea–
Streaming–
Cache–
Tiles–
Kernel–
Ask the store iKnowDrive "knowledge stores" are the attention you'd watch in a GPT, with nothing else attached. In a language model, each word's query is scored against the keys of earlier words, and the result is mixed into the next layer. Here the keys are passages of a store (1,024-number vectors), the query is your question, and there is no next layer: the top-scoring page is the output. Vector is the query·key score (cosine), exact over every key. Full-text is a second head scoring by words (BM25), replayed from the server. Hybrid fuses the heads (Reciprocal Rank Fusion). Clicking a legend colour is an attention mask: the same keys, fewer of them visible. The bars are the attention pattern, sharp or diffuse, and the tags are the read-out: what was attended to.
What the page is about
GLM-5.2 routing iThe experts, as a space. Each point is one of GLM-5.2's 19,200 routed experts (75 layers × 256), placed by its row of the router: the direction in the hidden state that makes the router pick it. Experts close together answer to the same kind of state, whatever their layer. While GLM-5.2 runs in another tab, each token's choice lights up here, coloured by where the expert came from: cyan already on the GPU, green read ahead, pink from RAM, amber from the drive. Distances from the token puts every expert at its exact rank in its own layer's choice for that token (score plus balance bias, as the router decides); the eight chosen per layer sit inside the first ring.
Latent Fovea by KnowDrive.ai, Recourse Software Inc. · Apache-2.0 · source
iThree ways to look at the same pass.Field: every layer at once, each head's write strength and attention, every MLP neuron, and the logit lens's top guess. River: the logit lens for the token on screen as a river over depth, bottom to top the words it would say if it stopped there, each band as wide as its probability, so you see a guess appear, grow and get overtaken; the empty space above the bands is everything else in the vocabulary, and the white line is how unsure it is. Derived: the logit lens reads a middle layer through the model's final layers, which it was not trained for. Flow: tokens left to right, layers bottom to top; a line goes from an earlier token's state to a later one's wherever attention moves information between them: each attention weight times the size of the value vector it reads (what the token offers), averaged over the layer's heads. Weights alone mislead: many models park most of their attention on the first token, which offers almost nothing. Point at a state for both numbers. Real weights and values; their product is Derived (Kobayashi et al., 2020). With Rollout on, the cone in cyan estimates how much each input token feeds the token on screen by the last layer (Abnar and Zuidema's attention rollout, on the flow above). The first token only attends to itself, so whatever reaches it stays there and rollout piles up on it; its share is given apart, in grey, and the shares shown are among the other tokens. Derived, an approximation that ignores what the MLPs do and how the heads' outputs combine.
Playback
iThe hidden states as a space of their own. At every layer each token carries one long vector, its running state (the residual stream): hundreds to thousands of numbers that every head and MLP reads from and writes into. This replaces the word cloud with those states: one dot per token per depth, joined into a line from the embedding to the last layer, the path each token's meaning takes through the model. They are laid out by a PCA fitted on this run's states (each first centred and scaled, as the model's normalisation does; the first token, which most models treat as a resting place with outsized values, is drawn but left out of the fit), and the panel's readout says how much of their variation its three axes show. Each step of a line is one layer: the cyan part is how much attention changed the state, the violet part how much the MLP did, and the step is thicker the bigger the change compared with the state. Tokens that end up close have states the model treats alike. Point at a dot to read it; click one to put that token on screen. Derived: the states are real, the 3-D view of them is a projection.
iWhich parts pushed the model toward a word. A word's score, its logit compared with the average word's, is what sets its odds. It is a sum of what every head and every MLP wrote into the model's running state, so it splits exactly into one share per part. Cyan pushed toward the word, amber pushed against it; the right-hand column adds up each layer. The word is the one written next. Click a row of the logit lens to explain that layer's guess instead. Only direct effects count: a head that matters by feeding later layers shows up in those layers, not here. Derived: exact, with the final normalisation's scale held at this token.
No changesiInterventions: change the model and see what follows. Shift-click a head, or press K over it, to knock it out; in the neuron inspector you can knock out a layer's MLP or a single neuron. Knocked-out parts get an amber ✕. Rerun sends the same text through the changed model: the answer shows the unchanged model's answer beneath it, and the readout shows how likely the unchanged model's next word is now. Unlike attribution, this counts every route a part's effect can take, through later layers too. Knocking out sets a part's output to zero, a blunt change: a real model never sees a part fall completely silent.
iCompare two runs: where do they part ways? Pin a run as A, then run something else: change one word, switch Greedy to Sample, or knock parts out. The answer shows A's beneath, with the first difference underlined; tokens that differ are marked on the chips. In the field, the Δ A column shows, layer by layer, how far this run's internal state has moved from A's at the token on screen (0 = the same), and heads whose attention differs from A's get an amber outline. The readout gives how likely A's next word is here. Positions are matched by index, so it is exact when both texts have the same number of tokens. Rerunning with interventions pins the unchanged run for you.
Features: click a layer's label (EMB, L0, L1…)iFeatures: a model of the model. Click a layer's label on the left of the field to open its features: a sparse autoencoder (SAE) rewrites the model's state there (the residual stream, which has no neurons of its own) as a sum of a few directions from a learned dictionary of 24,576. Useful for asking what is in one token's state; to see how the network computes, read its neurons first (click an MLP row). The first time you open a layer its dictionary (about 150 MB) streams from Hugging Face; after that it is kept in this browser. Available for GPT-2 small.
iThe same model, on your graphics card. Browsers that support WebGPU let this page run the model on the GPU: the same weights and the same steps as the CPU version, often many times faster, and with room for bigger models, since GPU memory isn't limited to the 4 GB a page gets for everything else. It is checked against the CPU version, which is checked against the reference implementation. When a model's 16-bit weights don't fit in the GPU's memory, it loads them as 8-bit integers instead (one scale per 64 weights), about half the size; the status line then says how far those weights are from the published ones. GPU, 8-bit weights asks for that directly; CPU only runs it on the processor, to compare or if your GPU struggles. Changing this loads the model again.