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

Mechanistic Interpretability Python Packages

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

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

2K 907 114
butanium
nnterp

Unified access to Large Language Model modules using NNsight

2K 121 12
garykbrixi
minerva-dna

Coevolutionary discovery using genome language models

2K 27 2
chessformer-lens
chessformer-lens

A toolkit+visualizer that is designed for mech interp researchers working with chess models that use transformers tokenized by square.

1K 8 0
elementmerc
senbonzakura

The world's top open-weight AI model workshop. Measure, uncensor and audit: refusal removal for transformer language models, with the instruments to measure what the edit cost.

1K 10 1
wheattoast11
carl-studio

Coherence-Aware Reinforcement Learning (CARL) - breakthrough LLM post-training and test-time training paradigm. carl builds the world's most advanced and intelligent agent systems that are a step change over current gen agents

965 5 1
moudrkat
brainscope

OpenAI-compatible server with a live view into any HF model's residual stream. pip install brainscope

902 52 11
RudrenduPaul
neuronscope-cli

CLI and MCP server that traces which attention heads and neurons drive an LLM's output, built on TransformerLens.

774 1 0
elementmerc
senbonzakura-check

The world's top open-weight AI model workshop. Measure, uncensor and audit: refusal removal for transformer language models, with the instruments to measure what the edit cost.

773 10 1
muhammadmahadazher
modelmri

Chrome DevTools for AI models and agents - see attention, features, and agent steps inside any local model. Local-first.

719 1 0
wrynx
undercurrent

Undercurrent: production-grade activation probing and inline intervention for LLM inference (Hugging Face, vLLM).

714 2 0
AIAnytime
ablate-llm

🔓 Ablate — directional ablation (abliteration) toolkit for open-source LLMs. Automatic censorship/refusal removal via residual-stream direction ablation, with KL-guided search, an LLM-judge harness, and one-call push to the Hub.

682 16 3
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.

589 3 0
a9lim
llmoji

Making agents cuter

587 2 0
steering-vectors
steering-vectors

Steering vectors for transformer language models in Pytorch / Huggingface

580 164 18
wheattoast11
carl-core

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

473 5 1
NikolasRoufas
beyondnn

Auditable interpretability evidence for PyTorch.

410 1 0
amareshhebbar
bitnarrow

Zero-training, in-place weight surgery and directional abliteration engine for 4-bit quantized LLMs using Winsorized activation profiling and Gram-Schmidt orthogonal projection

402 1 0
KunwarK13
prerequisite-circuits

Research code and tools for measuring intervention effectiveness during learning.

363 0 0
mattiapiazzalunga
pysteer-adaptation

Python library for activation steering, representation engineering, and inference-time control of transformer language models.

351 2 0
moudrkat
hidden-directions

Steering vectors with receipts: make one, catch one, deploy a calibrated one. pip install hidden-directions

344 5 1
muhammadmahadazher
modelmri-record

Chrome DevTools for AI models and agents - see attention, features, and agent steps inside any local model. Local-first.

295 1 0
DanK10097110
tsfm-lens

Controlled, causal and confirmatory interpretability for time-series foundation models (TimesFM, Chronos, Sundial, Timer, Time-MoE): one command, one report.

273 0 0
designer-coderajay
glassbox-mcp

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.

244 3 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology