What problem does it solve?
This Skill helps you identify which internal model activations cause specific behaviors, making it easier to test causal hypotheses instead of relying on guesswork or surface-level inspection.
Core Features & Use Cases
- Causal tracing: Restore clean activations into corrupted runs to locate where factual associations or decisions are stored.
- Activation patching: Swap representations between prompts to measure which layers, positions, and components change model predictions.
- Trainable interventions: Learn low-rank or rotated interventions for distributed alignment search, steering, or counterfactual behavior.
- Practical example: Use it to compare two prompts, patch a target layer, and determine whether attention outputs, MLP outputs, or block outputs are responsible for the final answer.
Quick Start
Ask the pyvene-interventions skill to guide you through setting up an intervention experiment on a PyTorch model and interpreting the causal results.