ndif-team/nnsight
The nnsight package enables interpreting and manipulating the internals of deep learned models. observed · 2026-09-03
Health v2 · maintenance only
88/100
- Activity 100
- Release rhythm 82
- Longevity 74
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 8
- age_days: 1048
- days_rel: 120
- days_push: 0
- n_releases_24m: 38
Adoption not part of the score
1085 stars · 114 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
nnsight is a Python library for interpreting and intervening on the internals of deep learning models, built on PyTorch. It lets researchers access, modify, and save activations and gradients during forward passes, locally on any PyTorch model or remotely on large models via the NDIF infrastructure.
Use cases
- access hidden states and activations from any layer of a neural network
- modify activations to study causal effects in language models
- run activation patching experiments on transformers
- interpret internals of large language models too big to run locally
- compute gradients with respect to intermediate model values
- batch interventions across multiple inputs efficiently
- trace model execution and save intermediate tensors for analysis
When to choose
- you need fine-grained access to model internals like activations and gradients during inference
- you want to run interpretability experiments on both small local models and huge remote models with the same code
- you are doing mechanistic interpretability research on PyTorch or HuggingFace models
- you need to intervene on model execution mid-forward-pass
When to avoid
- you only need standard inference or fine-tuning without inspecting internals
- you work with non-PyTorch frameworks like JAX or TensorFlow
- you need a no-code or GUI interpretability tool rather than a Python API
Facets
library · maturity active
machine-learning deep-learning llm-inference sdk machine-learning deep-learning large-language-models artificial-intelligence developer-tools python cross-platform interpretability activation-patching pytorch model-internals neural-network-intervention ndif remote-execution mechanistic-interpretability gpu
10 sources
- readme: https://github.com/ndif-team/nnsight · fetched 2026-09-03 · e4e83a92adb3
- homepage: https://nnsight.net/ · fetched 2026-08-29 · f95e59797829
- site_page: https://nnsight.net/getting-started · fetched 2026-08-29 · 31ce02eb0c27
- site_page: https://nnsight.net/documentation · fetched 2026-08-29 · 9ec671516646
- site_page: https://nnsight.net/features · fetched 2026-08-29 · 24965ebf0933
- site_page: https://nnsight.net/about · fetched 2026-08-29 · b508e7313e7f
- site_page: https://nnsight.net/getting-started/installation · fetched 2026-08-29 · f2a359b032b1
- site_page: https://nnsight.net/getting-started/quickstart · fetched 2026-08-29 · 8ab0c4faa9ca
- site_page: https://nnsight.net/documentation/intervention · fetched 2026-08-29 · a4cdcc6da79f
- site_page: https://nnsight.net/documentation/intervention/envoy · fetched 2026-08-29 · 08ff2106547e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ndif-team/nnsight | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="ndif-team/nnsight")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem