|
Download README.md from eigentactics/theodolite-census: direct link, hf CLI and curl.
- Browser
- Download file 6.75 kB
-
https://huggingface.co/datasets/eigentactics/theodolite-census/resolve/main/README.md
- Command line
-
hf download hf://datasets/eigentactics/theodolite-census/README.md
-
curl -L -o README.md https://huggingface.co/datasets/eigentactics/theodolite-census/resolve/main/README.md
6.75 kB
| license: apache-2.0 | |
| pretty_name: Theodolite census runs from eigentactics | |
| tags: | |
| - interpretability | |
| - gemma-4 | |
| - theodolite | |
| # Theodolite census runs from eigentactics | |
| Census runs for [Theodolite](https://github.com/whp199/theodolite), whp199's neuron atlas of Gemma 4 31B, taken by | |
| [eigentactics](https://eigentactics.com) with the volunteer kit | |
| ([VOLUNTEERS.md](https://github.com/whp199/theodolite/blob/main/VOLUNTEERS.md)). The layer board is | |
| [whp199/theodolite#1](https://github.com/whp199/theodolite/issues/1). Its maintainer judges what counts there; this repository only holds | |
| the files. | |
| The answers are written by `google/gemma-4-31B-it-qat-w4a16-ct` (Apache-2.0); the code that writes them is Theodolite's | |
| (Apache-2.0). | |
| ## What is here | |
| ``` | |
| L51-break_rel/ | |
| L51-break_rel-6d708804.tar kit 4, layer 51, the whole run from an RTX 3090 (24 GB, headless): the bundle exactly as | |
| census.sh pack made it (claim 6d708804; sha256 7c49fd98441f0e97...) | |
| canary/3090/ its canary | |
| canary/rx7900xtx-rocm/ the same canary from an RX 7900 XTX under ROCm (see below) | |
| rocm-validation/rx7900xtx/ the whole layer again on the RX 7900 XTX, for validation: answers (.jsonl.zst), meta, | |
| the neuron ranking (units), SHA256SUMS | |
| rocm-validation/compare/ the two runs read and compared (see below), with the scripts | |
| L52-soft_ceil/ | |
| L52-soft_ceil-c40b4d3a.tar kit 4, layer 52, design soft_ceil, the whole run from the same RTX 3090: the bundle | |
| exactly as census.sh pack made it, canary included (claim c40b4d3a; sha256 | |
| 16f54ed5401bb907...) | |
| ``` | |
| Each `canary/` folder holds what `scripts/volunteer/census.sh canary 51` writes: | |
| - `L51-break_rel.canary.jsonl`: plan batch 0 of the layer's run (64 answers), written alone; | |
| - `L51-break_rel.canary.json`: what that batch is and the settings it was written with; | |
| - `L51.canary_check.json`: the batch set against the maintainer's own card's (RTX 5090); | |
| - `L51.writer_floor.json`: how far an unpushed answer agrees with itself across batch shapes on this card. | |
| ## The two canaries | |
| Neither card writes the home card's bits, so each is a card class of its own and is checked by the kit's rules for | |
| one: the bars below are those rules (`backend/census_volunteer.py`). | |
| | | First word-piece agrees (bar 0.90) | Log-prob difference, median (bar 0.028) | p99 (bar 0.37) | Writer's floor: overall / batch 64 | | |
| |---|---|---|---|---| | |
| | RTX 3090 vs home RTX 5090 | 0.984 | 0.0122 | 0.147 | 5 / 13 | | |
| | RX 7900 XTX (ROCm) vs home RTX 5090 | 0.984 | 0.0127 | 0.145 | 5 / 20 | | |
| | RX 7900 XTX vs RTX 3090 | 1.000 | 0.0122 | 0.143 | | | |
| Both cards part from the home card's first word-piece on the same one answer of the 64, and agree with each other | |
| on all 64. | |
| ## The ROCm card | |
| The kit is CUDA-only. The RX 7900 XTX files were written from | |
| [eigentactics/theodolite@rocm-vathek](https://github.com/eigentactics/theodolite/tree/rocm-vathek): the kit's code | |
| with three commits. One reads an AMD card in `census.sh check`; two work around a ROCm bug: in torch 2.14.1+rocm7.2, | |
| `scaled_dot_product_attention`'s flash kernel returns NaN for head size 512, which Gemma 4's global layers use. Those | |
| heads go to the math kernel, and a batch is attended 16 answers at a time to keep the peak memory down; that changes no bits. On CUDA the three commits do nothing: they switch themselves off unless torch is a ROCm build, and on the RTX 3090 | |
| the branch writes layer 51's canary byte-identical to kit 4's (sha256 0ab404b8...). These | |
| files are offered to show the ROCm path. They're not a submission to the census, and the maintainer hasn't been asked to | |
| accept a ROCm card class. | |
| ## The two whole runs | |
| Both runs were read with the kit's own reader for a layer outside 40 to 50 | |
| (`experiments/results/census_neighbour_trials/prereg/neighbour_read.py` at census-kit-4, its SHA256SUMS checked), run | |
| unchanged; only its tokenizer path, which names the maintainer's machine, was pointed at the same snapshot here | |
| (`compare/read.py`). Both pass all three checks: | |
| | | RTX 3090 | RX 7900 XTX (ROCm) | bar | | |
| |---|---|---|---| | |
| | N1 G1 lead (mass_c) | 0.7625 | 0.7594 | 0.60 | | |
| | N1 G2 beyond how the text survives | 0.7338 | 0.7286 | 0.58 | | |
| | N1 G3 replication (AB / BA) | 0.698 / 0.697 | 0.693 / 0.698 | 0.57 | | |
| | N1 G4 the new questions alone | 0.7132 | 0.7096 | 0.56 | | |
| | N2 (the ±1 answers alone) G1 | 0.7141 | 0.7117 | 0.60 | | |
| | N3 (the neurons the controls cover) G1 | 0.7555 | 0.7515 | 0.60 | | |
| | neurons above every control | 2,123 | 2,150 | 10.5 by chance | | |
| | neurons at q < 0.05 | 7,145 | 7,317 | | | |
| In each run's `L51_verdict.txt` the ±1 reading's G5b says FAIL. It does in the maintainer's own L51 trial too: G5b | |
| sets `units.jsonl`, ranked on every answer, against a reading of the ±1 answers alone, so they cannot agree; N2's | |
| gates are G1 to G5, and N2 passes. | |
| Answer by answer, over all 565,254: the first word-piece agrees on 98.05%, the log-probabilities differ by a median of | |
| 0.011 and 0.156 at the 99th percentile (the kit's bars for another card class: 0.90, 0.028, 0.37), and 66.7% of | |
| answers are the same word-pieces throughout: 74% at ±1, 59% at ±2. No answer is the same bit for bit. | |
| **What rounding alone does to the ranking.** The cards rank the neurons closely alike (Spearman 0.93 on mass; 82 of | |
| each card's top 100 are in the other's; 94 of the 3090's top 100 lead with the same word on both). But of the 7,874 | |
| neurons at q < 0.05 on either card, 1,286 (16%) are so on one card only. The core of the layer's reading holds across | |
| hardware; the edge of its significant set is soft. Both runs are one card each, so this does not yet separate the card | |
| from the arithmetic of batch shapes on one card. | |
| ## A split layer | |
| Could two cards each take half of one layer? We built two from these runs: the kit's shard 0 of 2 (its own boundary, | |
| `shard_batches`, batch 4,420 of 8,838) from one card and shard 1 from the other, both ways round, and ranked them with | |
| the kit's `census_tools.py rank` (which gives the 3090's own ranking exactly from its run). Both pass N1 to N3. Neither | |
| half moves as a block: each half's mean rank percentile changes by under 0.001 from its own card's run. The neurons of | |
| shard 1 are read against the six unpushed answers, which all sit in shard 0 (plan batches 0 to 14), so against the | |
| other card's; that adds a little noise (rank correlation 0.992 with their own card's run, against 1.000 for shard 0's | |
| neurons). Whether the census would take a layer split across card classes is the maintainer's call; this is evidence, | |
| not a submission. | |
| Preliminary. Questions are welcome on the board or the Theodolite repository. | |