pyvene-interventions
CommunityCausal interventions for PyTorch models.
Software Engineering#pytorch#model debugging#causal inference#interpretability#activation patching#causal tracing
AuthorDoanNgocCuong
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a framework for understanding and manipulating the internal workings of PyTorch models by enabling precise causal interventions.
Core Features & Use Cases
- Causal Tracing: Identify specific model components responsible for factual recall (e.g., ROME-style localization).
- Activation Patching: Test hypotheses about component necessity by swapping activations between different inputs.
- Interchange Intervention Training (IIT): Discover and train interventions to uncover causal structure within models.
- Model Steering: Modify model behavior during generation by applying targeted interventions.
- Use Case: Debugging a language model's factual errors by pinpointing which layer's activations, when altered, correct the output.
Quick Start
Use the pyvene-interventions skill to perform causal tracing on a GPT-2 model by restoring activations at layer 8, position 5.
Dependency Matrix
Required Modules
pyvenetorchtransformers
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: pyvene-interventions Download link: https://github.com/DoanNgocCuong/continuous-training-pipeline_T3_2026/archive/main.zip#pyvene-interventions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.