nnsight-remote-interpretability

Inspect and manipulate neural network internals with nnsight and remote NDIF execution.

11.5k|842|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/Orchestra-Research/AI-Research-SKILLs --skill nnsight-remote-interpretability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nnsight-remote-interpretability
Source: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/main/04-mechanistic-interpretability/nnsight
Command: npx skills add https://github.com/Orchestra-Research/AI-Research-SKILLs --skill nnsight-remote-interpretability

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nnsight, torch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables deep inspection and manipulation of neural network internals, even for models too large to run on local hardware, democratizing access to foundation model interpretability.

Core Features & Use Cases

  • Remote Execution: Run interpretability experiments on massive models (70B+) using NDIF without requiring local GPU resources.
  • Universal PyTorch Support: Works with any PyTorch architecture, not just transformers.
  • Activation Patching & Analysis: Intervene in model computations, share activations between prompts, and analyze gradients.
  • Use Case: Debugging unexpected model behavior in a 70B parameter model by examining and intervening in its internal activations remotely, without needing to download or run the model locally.

Quick Start

Use the nnsight skill to analyze the internal activations of the Llama-3.1-70B model for the prompt 'The meaning of life is'.

Frequently Asked Questions about nnsight-remote-interpretability

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

FAQPage Schema
How do I run interpretability analysis on large PyTorch models without local GPU resources?

You can run interpretability analysis on large PyTorch models remotely using NDIF API execution, which allows you to probe 70B+ parameter models without downloading them or needing local GPU hardware.

Can I perform activation patching on any PyTorch architecture or just transformers?

Activation patching works with any PyTorch architecture, not just transformers, enabling you to intervene in model computations, analyze gradients, and share activations between diverse network structures.

What do I need to start probing neural network internals with nnsight?

To probe neural network internals, you need the nnsight and PyTorch libraries installed for local execution, and an NDIF API key if you want to run remote operations on massive models.

Does nnsight support sharing activations across different prompts?

Yes, nnsight supports cross-prompt activation sharing, allowing you to intervene in model computations and analyze internal gradients by passing activation states between different input prompts.

What is the best way to debug unexpected behavior in a 70B parameter model?

The best way to debug unexpected behavior in a 70B parameter model is using nnsight to examine and intervene in its internal activations remotely via NDIF, avoiding local hardware constraints.

Are there limitations when running remote model interpretability experiments?

Remote model interpretability experiments require an NDIF API key for large-scale models, and while local execution needs nnsight and PyTorch, massive 70B+ models are constrained to remote operations.