Weight atlas — help
Every panel is one stored tensor of model.mgw.
Cell (r,c) is the stored scalar raw[r*cols+c];
r increases downward from 0, c rightward from 0. Everything on this page is
literal: stored values at stored coordinates. The only derived quantities are
exact integer aggregations (counts, min, max, BigInt sums), and they are
labeled as such. No semantic claims are made about what any weight "does".
Q16.48 fixed point
value = raw / 248 ·
FP_ONE = 281474976710656 · raw is a signed 64-bit integer
Readouts show three exact forms: the raw int64, its two's-complement hex
image, and the exact decimal (finite, at most 48 fraction digits). Every
weight satisfies |raw| < 253, so its float64 image is exact —
but floats are used only for pixel geometry and color, never for values.
Color
negative
near zero (neutral dark)
positive
The diverging ramp is linear in value and symmetric about zero; a stored
zero gets no ink (panel background). Ramp endpoints are ±(active scale max).
per-tensor scale (default): each panel uses its own max |value|;
shared global scale: all panels use the one global max |value|. The
active ± endpoint is printed under each panel as an exact decimal. Numbers
are always ink-colored monospace, never ramp-colored.
Head grouping
h0
h1
h2
h3
In attn_wq/wk/wv, output rows group by head
(head h owns rows h·8 … h·8+7): colored strips and h0…h3
labels sit left of the rows. In attn_wo the input is
the concatenation of head outputs, so the grouping is on columns and
strips sit on top. Strip color is only a redundant cue — the text label is
the encoding.
Histogram strip
x = value, symmetric around 0, endpoints ±(active scale max) — the exact
endpoint is the decimal printed on the panel's scale line; the axis shows a
shortened display form marked ≈. 64 equal bins, binned with exact BigInt
arithmetic. y = linear count; the peak bin count is printed. Bars left of
the 0 tick hold negative values (blue), right of it non-negative (amber).
Under it: exact min raw, max raw, and the exact BigInt Σ of raw values —
the Σ of Q16.48 raws is itself a Q16.48 quantity and is printed via its
exact decimal. No means are shown anywhere: division would not be
exact, so it is simply not done.
Bits panel
Bit occupancy: for bit positions 0…62 of |raw|, the count of the selected
tensor's weights with that bit set. Bit b has place value
2b−48; the gold line marks bit 48 = the 1.0 boundary between
fraction bits (0…47) and integer bits (48…62, shaded). The F-rung preview
rounds each stored weight to F fraction bits with exact BigInt
round-half-to-even and counts how many would change; in the detail zoom,
cells that would change get a pink outline
.
It only rounds stored weights — it does not run inference. The F12 claim
cited on the panel is the sibling repo's reported result, not verified here.
MLP neuron order (bottom section)
The page's one derived view, labeled as such. The two MLP tensors are shown
re-indexed by four vendored neuron orders (original / smooth / spread / random)
from the sibling coordinate-permutation repo: physical slot j displays original
neuron new_to_old[j]; the fc1 row and fc2 column move
together and no stored value is altered — which is also why the per-tensor color
scale is identical on both sides of a pair (same value multiset). The adjacency
score is the exact integer Σ of L1 distances between physically adjacent neurons'
profiles (the neuron's fc1 row followed by its fc2 column, 64 ints). It is a
layout score only — not parameter density, not measured performance. The
self-check re-permutes the embedded tensors and matches their checksums against
the variant checkpoints replayed bit-identically by the build's C oracle.
Deep link: atlas.html#order=smooth.
Residual coordinate swap (bottom section)
The page's second derived view, labeled as such. One vendored transposition of
residual coordinates 0 and 31 is applied to the residual axis of all nine
learned tensors at once — columns of wte, wpe, lm_head, wq, wk, wv, fc1; rows
of wo, fc2. Physical index j displays original coordinate
new_to_old[j]; 892 of the 14,272 stored positions move
and none changes value (the shared per-tensor color scale is again justified by
the unchanged multiset). Applied consistently everywhere, the swap preserves the
model function exactly: the build's C oracle replayed the swapped checkpoint
bit-identically, with each step's six residual-basis vectors exactly reindexed.
The self-check re-permutes all nine embedded tensors and matches their
checksums against that C-verified variant. All nine matrix pairs are drawn on
the page at once; the trading lanes are tinted by original coordinate
(green = 0, orange = 31), so the green lane sits at position 0 in an original
pane and at position 31 in a swapped pane. Deep links:
atlas.html#hidden jumps to the section,
atlas.html#hidden=fc2 to one pair.
Cursor marks
white box = cell cursor ·
gold box = pinned cell ·
pink outline (zoom) = cell would change at the chosen F rung.
Keyboard
| ? | toggle this help |
| Esc | close help / close zoom / unpin inspector |
| Tab / Shift+Tab | move between panels (canvases are focusable) |
| ← ↑ ↓ → | move the cell cursor on the focused panel |
| Home / End | first / last column |
| PgUp / PgDn | jump 8 rows up / down |
| Enter or Space | pin / unpin the inspector on the cursor cell (click does the same) |
| Z | detail zoom of the focused panel (clicking a panel title also zooms) |
| G | toggle per-tensor / shared global color scale |
| [ / ] | F rung down / up (bits preview) |
| ← / → on bits chart | inspect bit positions |
| ↑↓ / ←→ on a layout-pair panel | step through neurons; Esc clears the highlight |
| ↑↓ / ←→ on a swap pane | step through residual coordinates; Esc clears the highlight |
Close with Esc or ?.