flâneur

nnsight — nnsight 0.0.7 documentation

nnsight.net · 183 words · saved by 3 readers

Site Navigation Site Navigation nnsight interpretable neural networks nnsight (/ɛn.saɪt/) is a package for interpreting and manipulating the internals of large models Get Started Tutorials Docs Key Features Integration Pass in a ID from any HuggingFace Transformer repo and access its weights with nnsight. Interpretability Access the internal gradients and activations at any point or module in a model. Intuitive Set up a context block and manipulate model internals with only a couple lines of code. Interoperable Enable grad and train interventions like LORA or probes on any point in a model. Next Getting Started © Copyright 2023, NDIF. Created using Sphinx 7.2.6. Built with the PyData Sphinx Theme 0.14.2.

What is NNsight?¶ NNsight is a Python library that enables interpreting and intervening on the internals of deep learning models. It provides a clean, Pythonic interface for: Accessing activations at any layer during forward passes Modifying activations to study causal effects Computing gradients with respect to intermediate values Batching interventions across multiple inputs efficiently Originally developed by the NDIF team at Northeastern University, NNsight supports local execution on any PyTorch model and remote execution on large models via the NDIF infrastructure. What does…

saved by

related reading