What problem does it solve? Running causal intervention experiments on neural networks—such as activation patching, causal tracing, and interchange intervention training—typically requires ad-hoc hook code that is hard to reproduce and share. This Skill provides structured guidance for using pyvene's declarative, config-based framework to define, run, train, and share interventions on any PyTorch model. ## Core Features & Use Cases - Causal Tracing and Activation Patching: Localize where factual associations or circuit components live by corrupting inputs and restoring activations at specific layers and positions. - Trainable Interventions (DAS/IIT): Learn low-rank rotation subspaces with RotatedSpaceIntervention to discover causal structure in model representations. - Model Steering and Sharing: Apply interventions during generation (e.g., Honest LLaMA) and save or load intervention configs via HuggingFace for reproducibility. - Use Case: To find which attention layers mediate indirect object identification in GPT-2, patch attention outputs layer-by-layer from a clean run into a corrupted run and measure the logit difference recovery. ## Quick Start Ask the AI to set up a pyvene activation patching experiment on GPT-2 that swaps block outputs between a clean and corrupted prompt at a chosen layer.