# Parameter Space Inspector vs TransformerLens

TransformerLens is the Python library mechanistic interpretability researchers reach for; the Parameter Space Inspector puts the same operations behind a window with controls. Models, checkpoints, patching, logit lens, and who each is for.

Canonical: https://parameterspaceinspector.com/compare/psi-vs-transformerlens/  
Updated: 2026-10-16  
Part of the Parameter Space Inspector (free, open-source desktop app) · section: https://parameterspaceinspector.com/compare/ · Site guide for AI: https://parameterspaceinspector.com/llms.txt

> **Short version.** If you write Python in a notebook, TransformerLens is the standard library: hooks on every activation, patching, a logit lens, and Pythia checkpoints by step. The Parameter Space Inspector does those operations without code, in views with built-in controls, and adds what a library leaves to you: untrained twins, random-control knock-outs, a training timeline, grafts, recipes and signed receipts. Researchers often want both.

## Side by side

| | Parameter Space Inspector | TransformerLens |
|---|---|---|
| What it is | Desktop instrument that opens a local model and measures it | Python library for mechanistic interpretability of GPT-style models |
| Made by | The Emergence Machine | Created by Neel Nanda; maintained by Bryce Meyer and Jonah Larson (TransformerLensOrg) |
| Licence | Apache-2.0 | MIT |
| How you use it | Install the app; views with controls; Python only as an engine | `pip install transformer_lens`; code in notebooks; Python 3.10+ |
| Models | Any GGUF for answers; any Hugging Face-format folder PyTorch can load for the inside views | Wraps Hugging Face models through `TransformerBridge` (4.x); the project reports 140+ architecture families |
| Activations and hooks | Neural net records every layer; Anatomy patches activations and deletes neurons; knock-outs against random controls | `run_with_cache`, hooks to edit, patch or ablate any activation |
| Logit lens | Per layer, per token, in the Neural net view | Built in since 4.2 |
| Attention visualisation | In the view | Via CircuitsVis |
| Sparse autoencoders | Features view: train, find, steer, check reconstruction; signed rings | Moved to SAELens |
| Training checkpoints | Emergence view scrubs 154 Pythia-410m checkpoints; Timeline of 19 capabilities in five sizes; place any model | Yes: `checkpoint_index` or `checkpoint_value` for Pythia and stanford-crfm schedules |
| Merging, grafts, lineage | Graft lab, Commons recipes, verifier, receipts | None |
| Agents | MCP server for every instrument | Not applicable |
| Activity | Active | 4.2.0 released 2026-10-10 |

## Where TransformerLens is the better choice

Research that needs a custom intervention, a new metric, or a loop over thousands of prompts. A library composes; an app does not. Its 4.x bridge keeps the raw Hugging Face weights, and its hook points are the vocabulary the field's papers are written in.

## Where the Inspector is the better choice

Asking a question and settling it the same afternoon, without writing the harness. The Inspector's views carry their controls: the understanding scores sit beside an untrained twin, every knock-out beside a random one, every graft beside the gap and a random donor. It also covers ground the library does not: a training timeline you can place your own model on, grafts between models, hash-pinned recipes, and receipts a third party can verify.

## Using both

The Inspector's inside engine reads the same unpacked weights a TransformerLens bridge would. A result found in a view can be reproduced in a notebook, and the research log ships the scripts that did exactly that.

## See it in a case study

Each of these is a published study you can repeat in the Inspector and change to your own question.

- **Anatomy patches activations and deletes neurons; knock-outs against random controls**: [Where is the fact decided?](/blog/where-is-the-fact-decided-activation-patching/), which patched activations from an Eiffel Tower prompt into a Colosseum prompt and found the fact decided in a band of middle layers at the subject's position, then deleted 1,117 "Bluetooth" neurons against random deletions and the model still answered.
- **Logit lens**: [Does it fold when you push back?](/blog/does-an-ai-fold-when-you-push-back/), where a confident wrong claim flipped 5 of 10 easy answers on Qwen3-4B, and the logit lens shows the layer from which the answer becomes readable.
- **Emergence view scrubs 154 Pythia-410m checkpoints**: [Reproduce a published result tonight](/blog/reproduce-the-phase-shift-on-your-laptop/), which scrubs Pythia-410m checkpoints and finds the heads that look back go from 0 of 384 at step 512 to 12 at step 1,000, read against step 0, while the loss falls smoothly.
- **Commons recipes**: [Merging two specialists: run the experiment](/blog/merge-two-specialists-run-the-experiment/), which builds a merge as a recipe that rebuilds to the same bytes and tests it on held-out data: addition fell from 80.5% in the specialist to 49.5% in the merge.
- **Verifier**: [Publish a model others can verify](/blog/publish-a-model-others-can-verify/), which pins the parents by hash, records the lineage, runs the verifier that marks each claim proof, evidence or claim, pushes with tags and signs the bytes with `model_signing sign`.
- **MCP server for every instrument**: [An agent that measures before it answers](/blog/an-agent-that-measures-before-it-answers/), where Claude Code calls PSI's instruments over MCP to compare two quantisations of Qwen3-4B on sample tickets, after reading the Self-portrait.

## Questions people ask

### Does TransformerLens still have HookedTransformer?

Version 4.0 removed the legacy Hooked model stack; `TransformerBridge.boot_transformers` with compatibility mode replaces it, and bug fixes continue on the 3.x branch. Older tutorials need updating.

### Can I use a locally downloaded model without Hugging Face access?

Both tools read local weights. The Inspector converts your GGUF to a bf16 folder with a script; TransformerLens loads a local Hugging Face-format path.

### Why doesn't a library's output match the Hugging Face model exactly?

Weight processing such as LayerNorm folding and centring changes numerics slightly; TransformerLens documents this and offers a no-processing mode. The Inspector reads the unprocessed weights.

---

*Facts about TransformerLens verified on 2026-10-16 from its [repository](https://github.com/TransformerLensOrg/TransformerLens), [migration guide](https://transformerlensorg.github.io/TransformerLens/content/migrating_to_v4.html), [checkpoint documentation](https://transformerlensorg.github.io/TransformerLens/generated/code/transformer_lens.tools.model_registry.checkpoints.html) and [PyPI](https://pypi.org/project/transformer-lens/). Corrections welcome.*

---

From [The Emergence Machine](https://emergencemachine.com/). Newsletter: [subscribe on Substack](https://theemergencemachine.substack.com/subscribe). Use-case feed: https://parameterspaceinspector.com/feed.xml. Follow: [Substack](https://theemergencemachine.substack.com) · [YouTube](https://www.youtube.com/@emergencemachine) · [X](https://x.com/emergences4me) · [Bluesky](https://bsky.app/profile/emergencemachine.bsky.social) · [Reddit](https://www.reddit.com/r/emergencemachine/) · [Instagram](https://www.instagram.com/emergencemachine/) · [TikTok](https://www.tiktok.com/@emergencemachine) · [Kaggle](https://www.kaggle.com/emergencemachine/datasets).
