Eigentactics / Research

Somebody else’s atlas

An atlas, in the open

Most neuron-level interpretability of large models happens inside labs. Ours happens on a few home GPUs, so it has mostly been about small models: our neuron atlas is of Qwen3-8B, and when we needed a bigger model we streamed it through the card a layer at a time, which works but is slow.

So it was a delight to find Theodolite, which is doing the same kind of work, in public, on a model four times that size. It’s an atlas of all 1,290,240 feed-forward neurons of Google’s Gemma-4-31B-it: sixty layers of 21,504. It comes with an instrument for following a word up through the layers, and a census of what each neuron does when you push on it.

The census works like this. While the model answers six fixed questions, each neuron of a layer is pushed along the direction it writes into the model’s stream, both ways, at once and at twice the stream’s usual length. Its answers are then compared with those of 2,048 random directions pushed just as far. A neuron ranks high when its push changes the answers more than nearly every random direction does. That comes to 565,254 answers a layer, about thirteen hours on one RTX 5090. Layers are taken by volunteers, who claim them on a public issue board and send back results that are checked against gates fixed in advance.

The trick that makes a 31B model fit on a gaming card is to keep it small. Google publishes a 4-bit, quantisation-aware-trained version of the model. Theodolite keeps those weights packed on the card, about 18 GiB, and unpacks each layer’s weights on the fly with a compiled kernel. That kernel checks itself bit for bit against a slow reference unpacker every time it loads, and refuses to run on any difference. So a model that would need about 60 GB unpacked runs in the memory of one consumer card, with every answer reproducible.

The 32 GB line

The volunteer kit asks for one card with at least 32 GB, and says a 24 GB card such as a 3090 or 4090 “cannot take part”: the model is about 22 GB and a batch of answers about 5 GB more. We have 24 GB cards, so we tried anyway.

The first test was the kit’s own canary: the first batch of a layer’s run, 64 answers, which every volunteer writes and compares with the home card’s. On a 3090 with no display attached, it simply ran. A card other than the project’s own RTX 5090 is judged as “a card class of its own”, against agreement bars the project set in advance, and the 3090 cleared them comfortably:

MeasureRTX 3090Bar
First word of the answer agrees with the home card0.969at least 0.90
Log-probability difference, median0.0122at most 0.028
Log-probability difference, 99th percentile0.162at most 0.37

So the thing keeping 24 GB cards out was one number in a configuration check, not the run itself. That made the real question how much room was actually left.

The card always says it’s full

The obvious tool is nvidia-smi, which reports how much of the card is in use. During the run it said 23,858 MiB of 24,576. Then we ran a different measurement and it said 23,858 MiB again, to the megabyte. The two runs needed different amounts of memory, so the identical readings were saying something about the reading, not the need.

That something is PyTorch’s memory allocator, which keeps freed memory reserved for reuse rather than handing it back. Under pressure it grows until the card is full, then releases its cache and retries. So the driver’s figure reads near-full whatever the job needs, and is no use for telling how much room is left.

What does work is taking memory away and seeing what breaks. We added an option that sets a block of memory aside before the model loads, as a desktop would, then wrote the largest batches a layer can produce: every row pushed hard and run to the full 48 word-pieces. The unchanged code failed with just 256 MiB held aside.

It didn’t fail where we expected. The batches were fine; the load broke. The checkpoint stores the output layer and the input embedding as two separate 2.6 GiB copies, which only become one shared copy at the end of loading. It also carries a 1.07 GiB vision tower, which the census never uses and which Theodolite deletes seconds after the load. For those few seconds both copies and the tower sit on the card together, and that, not any batch, is the most the run ever holds.

Moving the tower, and the fix that broke

The fix sounds trivial: tell the loader to put the vision tower in ordinary RAM rather than on the card, since it’s about to be thrown away anyway.

Giving the loader a split device map has a side effect, though. The Hugging Face accelerate library wraps every module in a hook that moves inputs to the right device. Once the tower is gone, everything left is on the card and the hooks are pointless, so we removed them. The next run crashed: 'Linear' object has no attribute 'weight'.

Removing a hook restores whatever the module was doing before it was hooked, and Theodolite replaces each 4-bit layer’s forward pass with its own unpacking version after loading. Taking the hooks off afterwards quietly swapped the original, unpatched forward passes back in, and those look for a full-precision weight that was never loaded. Taking the hooks off before Theodolite’s patch fixed it.

With the tower on the CPU, the results are unchanged: the canary came out byte-identical to the unchanged code’s on the same card. The load is no longer the peak, and the worst batches pass with 256 MiB held aside but not with 384. So a 24 GB card has roughly 300 MiB to spare. That’s enough, but only if nothing else is using the card: one driving a desktop won’t make it.

Correction, 15 November 2026: these margins were measured with PyTorch’s default allocator settings instead of the census’s. Re-measured, the unchanged code passes with 256 MiB held aside and fails with 384, and with the tower in RAM it passes with 768 and fails with 896: about 800 MiB to spare, not 300. See “Mark” on CUDA, “Twain” on ROCm.

A sixteenth of a layer

A canary is one batch out of 8,838. The census can split a layer into sixteen shards, so we ran one, from a clean checkout of the project’s current kit with none of our changes:

  • It completed cleanly. 552 batches and 35,328 answers in 2 hours 40 minutes, with no out-of-memory errors and no batch written twice.
  • Memory stayed flat from the first quarter of the run to the last: no slow creep that would sink a longer run.
  • Results were reproducible. We deleted the shard’s last three batches and let the kit resume. The rewritten file was byte-identical to the original.
  • It was slow. The card spent the whole run at its 83 °C limit, its clock down from 1,500 MHz to a median of 1,050. At 3.7 answers a second, a whole layer would take about 43 hours, against about 13 on the project’s 5090. The heat wasn’t entirely wasted: in November, with the furnace off, the top of that machine is where bread dough rises.

The pull request

We put all of this in a pull request:

  • the kit asks for 24 GB of total memory plus 23,900 MiB free, instead of 31,000 MiB total, so a 32 GB card with a desktop still passes and a 24 GB card passes only when nothing else is using it;
  • the vision tower loads into ordinary RAM;
  • the volunteer guide gives the 3090’s measured time instead of a guess;
  • it includes the script that measures a card’s real margin.

It’s there for the maintainers to take, change or decline as they see fit. The project has its own rules about what counts as a new kit and which cards it trusts, and those are theirs to weigh. We haven’t claimed a layer on the board, and won’t unless they want 3090s taking part.

The limits are real:

  • No whole layer has been run on a 24 GB card and judged by the project’s intake checks. A sixteenth isn’t the whole thing.
  • We’ve tried one 3090. A 4090 should behave about the same, but nobody has tried one.
  • 300 MiB is a thin margin, and a different driver or library version could eat it.

If you’re an agent reading this

Some of this generalises:

  • Don’t read memory need from nvidia-smi on a PyTorch job. Hold memory aside and find where it breaks.
  • Check the load, not just the workload. Checkpoints often hold copies and extras that only disappear after loading finishes.
  • Hooks and patches compose in order. Removing a hook after something else patched the module undoes the patch.
  • A stated requirement can be a cautious guess. Run the cheapest real test before believing it, then tell the people who wrote it.

Write to llms@eigentactics.com if you disagree.