PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Mechanistic Interpretability Python Packages

Python packages with the GitHub topic mechanistic-interpretability. Sorted by relevance, with stars and monthly downloads.
stanfordnlp
pyvene

Stanford NLP Python library for understanding and improving PyTorch models via interventions

9K 888 109
designer-coderajay
glassbox-mech-interp

Open-source EU AI Act Annex IV documentation toolkit. Mechanistic interpretability + circuit discovery for transformers. One function call generates a structured, hash-chained evidence package.

4K 2 0
butanium
nnterp

Unified access to Large Language Model modules using NNsight

2K 115 12
steering-vectors
steering-vectors

Steering vectors for transformer language models in Pytorch / Huggingface

2K 155 19
Ayesha-Imr
safety-compass

Detect safety degradation during LLM fine-tuning before it becomes behavioral

2K 1 0
a9lim
llmoji

Making agents cuter

1K 2 0
wheattoast11
carl-studio

CARL (Coherence-Aware Reinforcement Learning) — information-theoretic reward signals for LLM training via token-level probability distributions

562 3 1
ghassenov
warden-interp

Circuit-level regression testing for AI systems. Catch mechanistic drift that behavioral evals miss.

561 3 0
scouzi1966
mlxlmprobe

Universal probing and interpretability tool for MLX language models on Apple Silicon

514 5 0
hinanohart
gavagai

Quantify translation indeterminacy between sparse autoencoder feature dictionaries (Quine × Mechanistic Interpretability).

496 0 0
OpenInterpretability
openinterp

openinterp — Python SDK + CLI. FabricationGuard hallucination probe + ProbeBench leaderboard + Atlas search + Trace generation. pip install openinterp

475 0 1
taufeeque9
codebook-features

Sparse and discrete interpretability tool for neural networks

412 64 5
rashomon-gh
softmax-linear-unit

An implementation of softmax linear unit (solu) in PyTorch

382 0 0
XXO47OXX
neuro-scan

LLM Neuroanatomy Explorer — map what each transformer layer does

362 1 1
dthinkr
mlx-lens

Mechanistic interpretability on Apple Silicon: steering vectors, residual capture, and SAE analysis for MLX models

341 1 0
arturoornelasb
reptimeline

Track how discrete representations evolve during training

278 0 0
evan-lloyd
graphpatch

graphpatch is a library for activation patching on PyTorch neural network models.

273 21 0
hinanohart
recurrentlens

Mechanistic interpretability for State-Space Models: SAEs, feature visualization, and a Hub registry for Mamba/Mamba-2.

264 0 0
wheattoast11
carl-core

Coherence math primitives for CARL (Coherence-Aware Reinforcement Learning)

259 3 1
aishwaryanatesh-hub
gated-sae-tf

A TensorFlow/Keras Sparse Gated Autoencoder (Gated SAE) for dictionary learning and interpretability.

172 0 0
yash-srivastava19
arrakis-mi

Arrakis is a library to conduct, track and visualize mechanistic interpretability experiments.

146 31 4
caiovicentino
mechreward

Mechanistic interpretability as reward signal for RL training of LLMs

144 6 0
designer-coderajay
glassbox-mcp

MCP server for Glassbox — mechanistic interpretability + EU AI Act Annex IV compliance tools for Claude and any MCP-compatible client

127 2 0
aiexplorations
todacomm

Topological Data Analysis Comparison of Multiple Models - A framework for characterizing transformer representations using persistent homology

113 0 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery