sae-program-viewer / README.md
AmiriHayes's picture
SAE program viewer β€” browse-only static build
0118e4d verified
|
Raw History Blame Contribute Delete
1.44 kB
metadata
title: SAE Program Viewer
emoji: πŸ”
colorFrom: indigo
colorTo: gray
sdk: static
pinned: false
license: mit
short_description: Browse 1,167 GPT-2 SAE features and their programs

SAE Program Viewer

Browse 1,167 scored GPT-2 small SAE features: the program synthesised for each one, the 100 examples the agent saw, and the full round-by-round transcript of how it got there.

This is the browse-only build. The live check β€” type a sentence and see the real SAE activation and the program's prediction at every token β€” needs the local backend, which loads GPT-2 and the SAEs; a static Space has no server to run them on. The page detects that at load and hides the panel.

What you're looking at

Each feature has a program fitted to predict when it fires, compared against Plan A, a library of nine hand-written program shapes. win / loss / tie is the agent's test F1 against Plan A's at a Β±0.01 margin.

  • Model GPT-2 small Β· SAEs gpt2-small-resid-post-v5-32k (OpenAI v5, TopK k=32)
  • Layer mapping viewer layer L reads blocks.{L-1}.hook_resid_post
  • Firing sae.encode(resid[:, 2:, :]) > 0
  • Scored positions start at index 2; index 0 is the BOS attention sink

Programs come from the untruncated source that passed a position-level faithfulness check (73,521,000 comparisons, 0 mismatches). All 1,167 transcripts were verified to belong to their feature before publishing.