Skip to main content

interprelens

Find, compare and act on the attention heads behind any LLM behaviour.

interprelens scores attention heads (ablation, attribution patching, Causal Head Gating, positional bias) and returns one common HeadMap you can save, compare and plot. A paper is not the end: we turn our published research into a tool others can use.

Used in 2 papers: CoCHI (NeurIPS 2026) and CPS (WSDM '27). Reproduce both with inteprelens==0.2.1.

Install

Not on PyPI yet. From source:

git clone https://github.com/Aisuko/interprelens && cd interprelens && uv sync

Examples

examples/: head scoring, positional bias, tracing and hooks, installation and extras.

Acknowledgements

Builds on Causal Head Gating (Nam et al., NeurIPS 2025).

License

MIT, see LICENSE. Contributing: run make hooks once; commits need a DCO sign-off (git commit -s).

Metadata

Release files for interprelens 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for interprelens 0.3.0
File Size Uploaded Provenance Actions
interprelens-0.3.0.tar.gz 69.3 kB With provenance Details for interprelens-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for interprelens 0.3.0
File Interpreter ABI Platform Actions
interprelens-0.3.0-py3-none-any.whl Python 3 none any Details for interprelens-0.3.0-py3-none-any.whl

Total release size: 144.3 kB

Release files / interprelens-0.3.0.tar.gz

Download URL interprelens-0.3.0.tar.gz
Size 69.3 kB
Tags Source
SHA-256 checksum
How to use checksums
45fa986357b89e4c0e3f1bac7559156a748ac2a65332913bac2c0bca1e3179e8
BLAKE2b-256 checksum
How to use checksums
45fadd3a8435695a5fb6bbe4cb95e723affaf488c92b5ae638195e47da8c4575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / interprelens-0.3.0-py3-none-any.whl

Download URL interprelens-0.3.0-py3-none-any.whl
Size 75.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
003c5affb75ea0c78dbaebbce6447feb9b21ddfeefbc4a05c79d10efc96917cb
BLAKE2b-256 checksum
How to use checksums
125671c44ae2e3b1d28583f8efe52099d10bbdd709f6a13ad1105a07d318f324
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for interprelens 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for interprelens-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page