Metadata-Version: 2.5
Name: open-interpretability
Version: 0.6.3
Summary: Open Interpretability: an agent-run mechanistic interpretability project, with an audited registry of native neurons in open-weight models.
Project-URL: Homepage, https://open-interpretability.com/
Project-URL: Repository, https://github.com/8W9aG/openinterpretability
Project-URL: X, https://x.com/openinterpret
Author-email: Will Sackfield <will.sackfield+openinterpretability@gmail.com>
Maintainer-email: Open Interpretability <contact@open-interpretability.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Requires-Dist: accelerate>=0.30.0
Requires-Dist: boto3>=1.34.0
Requires-Dist: click>=8.1.0
Requires-Dist: coremltools>=9.0; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: duckdb>=1.0.0
Requires-Dist: fasttext-predict>=0.9.2
Requires-Dist: instructor>=1.3.0
Requires-Dist: jinja2>=3.1.3
Requires-Dist: labinacan[pii,r2]==0.1.7
Requires-Dist: latex2mathml>=3.81.1
Requires-Dist: litellm>=1.40.0
Requires-Dist: magika<2,>=1.0.3
Requires-Dist: markdown-it-py>=4.0
Requires-Dist: mdit-py-plugins>=0.6.1
Requires-Dist: nltk>=3.8
Requires-Dist: presidio-analyzer>=2.2
Requires-Dist: pyarrow>=26.0.1
Requires-Dist: pydantic>=2.7.0
Requires-Dist: spacy-curated-transformers<1,>=0.3
Requires-Dist: tldextract>=5.1
Requires-Dist: torch>=2.2.0
Requires-Dist: transformers>=5.22.2
Requires-Dist: tree-sitter-bash>=0.25.1
Requires-Dist: tree-sitter-c-sharp>=0.23.5
Requires-Dist: tree-sitter-c>=0.24.2
Requires-Dist: tree-sitter-cpp>=0.23.4
Requires-Dist: tree-sitter-go>=0.25.0
Requires-Dist: tree-sitter-haskell>=0.24.1
Requires-Dist: tree-sitter-java>=0.23.5
Requires-Dist: tree-sitter-javascript>=0.25.0
Requires-Dist: tree-sitter-lua>=0.5.0
Requires-Dist: tree-sitter-php>=0.25.1
Requires-Dist: tree-sitter-python>=0.25.0
Requires-Dist: tree-sitter-ruby>=0.23.1
Requires-Dist: tree-sitter-rust>=0.24.2
Requires-Dist: tree-sitter-scala>=0.26.11
Requires-Dist: tree-sitter-typescript>=0.23.2
Requires-Dist: tree-sitter>=0.26.1
Provides-Extra: map
Requires-Dist: igraph>=0.11; extra == 'map'
Requires-Dist: labinacan[map]; extra == 'map'
Requires-Dist: leidenalg>=0.10.2; extra == 'map'
Requires-Dist: sentence-transformers>=5.0; extra == 'map'
Requires-Dist: umap-learn>=0.5.7; extra == 'map'
Provides-Extra: mcp
Requires-Dist: mcp>=2.0; extra == 'mcp'
Provides-Extra: site
Requires-Dist: pagefind[bin]>=1.3.0; extra == 'site'
Description-Content-Type: text/markdown

![Open Interpretability](openinterpretability/builder/brand/logo.svg)

# Open Interpretability

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24150022.svg)](https://doi.org/10.5281/zenodo.24150022)
[![PyPI](https://img.shields.io/pypi/v/open-interpretability.svg)](https://pypi.org/project/open-interpretability/)

An open project, run with agents, that explains the native neurons and attention heads of open-weight language models and publishes each result at **[open-interpretability.com](https://open-interpretability.com/)**.

## Before you start

You need [Git](https://git-scm.com/), [Python](https://www.python.org/) 3.11+, [uv](https://docs.astral.sh/uv/), [Claude Code](https://claude.com/claude-code) and the [GitHub CLI](https://cli.github.com/). Run `gh auth login` once, so the loop can fork the repository and open pull requests. A laptop CPU is enough.

## Run an experiment

```bash
gh repo fork 8W9aG/openinterpretability --clone
cd openinterpretability
claude "/loop /land-experiment"
```

Each experiment draws a neuron and proposes what it does. A different model then tries to break that claim, and the result goes in a pull request. The loop runs one experiment after another until you stop it.

## Explain an answer

```bash
uv run open-interpretability explain "The sun rises in the"
```

It lists the units that carry the model's answer, says which of them the registry explains, and lists the experiments that would explain the rest. It reads `corpus.jsonl`, which [The scan corpus](docs/experiments.md#the-scan-corpus) says how to build.

## More

- [docs/experiments.md](docs/experiments.md): what you need, other ways to run, API keys, and every option.
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
- [schema/](schema/): the JSON Schema of an experiment record, one file per protocol version, so other tools can validate and read records without this package. The site serves it at `/schema/` (#3291).
- [CITATION.cff](CITATION.cff): how to cite. The code is under [MIT](LICENSE), and the records under [CC-BY-4.0](wiki/LICENSE.md).
