real-neurons -- which MLP units fire

Inside each of GPT-2's twelve layers sit 3,072 small units, and for any given word a few of them switch on hard while most stay near zero. This page runs a real GPT-2 in your browser and shows which ones fired for which words in a sentence you type, with the single strongest one ringed. Some turn out to respond to something you can name — a topic, a piece of grammar — and plenty respond to nothing you can put into words at all. That is the raw material of the research trying to work out what is actually stored in these things, and it is why "nobody fully knows what is inside" is a statement about scale rather than mystery. The weights are about 550 MB and download only on request.

Interactive page: real MLP neuron activations in GPT-2. Each transformer block's MLP has 3072 "neurons" — the post-gelu units between the two projections, where most of a model's learned features live. Anchor: the MLP / gated-FFN concept (mlp-gated). One of the real-model grounding pages, which run a real trained model instead of synthetic weights.

What it shows

Type a sentence. GPT2.mlp (in ../real-attention/gpt2.js) returns the post-gelu activations for every layer — tokens × 3072. For the chosen layer the page draws a heatmap of the most-active neurons (the columns) across the sentence (the rows), with the single strongest (token, neuron) firing ringed. Hover any cell for the activation.

The point: different neurons fire for different tokens — some are token- or feature-specific. That selectivity is the raw material of mechanistic interpretability. Deeper layers fire harder (larger activations).

Verified against PyTorch

GPT2.mlp is checked against a forward hook on transformer.h[l].mlp.act by ../real-attention/gpt2.test.mjs: the last-token top-8 neuron ids and values at layers 0 / 5 / 11 match PyTorch (fixture gpt2-groundtruth.fixture.json).

Render tier

T2 (Canvas2D activation heatmap; the "compute" tier is the GPT-2 forward in JS).

Wiring

layout.mount + controls.text('sentence') + layer / top neurons steppers "load real GPT-2". Reuses gpt2.js mlp; async, degrades to a labelled synthetic gelu-ish stand-in offline. Two challenges (?ch=N): load the real model, and find a strongly-firing neuron (peak activation ≥ 4, deeper layers). Headless hooks: ?text=, ?ids=, ?layer=/?topn=, ?real=0. Source: page.js.