nnsight-basics

Inspect and modify neural network activations during forward passes.

9|2|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/ndif-team/skills --skill nnsight-basics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nnsight-basics
Source: https://github.com/ndif-team/skills/tree/main/plugins/nnsight/skills/nnsight-basics
Command: npx skills add https://github.com/ndif-team/skills --skill nnsight-basics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

NNsight Basics enables researchers and engineers to access and manipulate neural network internals during forward passes, accelerating debugging, hypothesis testing, and targeted interventions.

Core Features & Use Cases

  • Access and save intermediate activations across transformer layers during forward passes.
  • Intervene on activations (zero out, add noise, replace values) for controlled experiments.
  • Support for gradient access, generation workflows, and multi-prompt tracing to study information flow.

Quick Start

Install the nnsight package and start a tracing session to inspect layer outputs and saved tensors.

Frequently Asked Questions about nnsight-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access and save intermediate activations across transformer layers during a forward pass?

To access and save intermediate activations during a forward pass, you can start a tracing session to inspect layer outputs and save tensors. This allows you to capture internal model states for analysis.

Can I intervene on neural network activations to run controlled experiments?

Yes, you can intervene on neural network activations during tracing to run controlled experiments. You can zero out, add noise to, or replace values in the activations to test specific hypotheses.

Does this approach support gradient access and generation workflows for large language models?

Gradient access and generation workflows are supported for large language models. You can trace information flow and compute gradients during forward passes to study model behavior.

What is the best way to trace information flow across multiple prompts in language models?

The best way to trace information flow across multiple prompts is using multi-prompt tracing. This technique allows you to study how information moves through the model by comparing activation patterns across different inputs.

Can I use this for model debugging and feature attribution checks on vision transformers?

Yes, you can use this for model debugging and feature attribution checks on vision transformers. It enables you to inspect module outputs and intervene on activations to identify and fix model issues.