← all repositories

ndif-team/nnsight

A Python library for accessing and manipulating activations, gradients, and causal interventions in deep learning models.

951 stars Python ML FrameworksLLMOps · Eval
nnsight
Velocity · 7d
+1.0
★ / day
Trend
steady
star history

nnsight provides a clean Pythonic interface for inspecting and intervening in deep learning models at any layer during forward passes. It enables accessing intermediate activations, modifying activations to study causal effects, computing gradients with respect to intermediate values, and batching interventions across multiple inputs. Originally developed by the NDIF team at Northeastern University, it supports local PyTorch models and remote inference via NDIF infrastructure, with Claude Code skills integration for LLM agents.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.