nnsight Remote Interpretability
Interprets and manipulates neural network internals across local and remote models using the nnsight library and NDIF execution.
nnsight provides a unified interface for mechanistic interpretability, allowing researchers to trace, analyze, and intervene in the internal computations of any PyTorch model. Its standout feature is the seamless integration with the National Deep Inference Fabric (NDIF), which enables the execution of complex interpretability experiments on massive foundation models like Llama-3.1-405B without requiring local high-end GPU clusters. By abstracting model internals into a deferred execution graph, nnsight simplifies advanced research tasks such as activation patching, gradient-based analysis, and cross-prompt activation sharing across diverse architectures.