Skip to main content
Back to registry

pyvene-interventions

davila7/claude-code-templates

pyvene is Stanford NLP's library for performing causal interventions on PyTorch models. It provides a declarative, dict-based framework for activation patching, causal tracing, and interchange intervention training - making intervention experiments reproducible and shareable.

Installs144
Install command
npx skills add https://github.com/davila7/claude-code-templates --skill pyvene-interventions
About this skill
pyvene is Stanford NLP's library for performing causal interventions on PyTorch models. It provides a declarative, dict-based framework for activation patching, causal tracing, and interchange intervention training - making intervention experiments reproducible and shareable. GitHub : stanfordnlp/pyvene (840+ stars) Paper : pyvene: A Library for Understanding and Improving PyTorch Models via Interventions (NAACL 2024) Use pyvene when you need to: Consider alternatives when: Standard import: The main class that wraps any PyTorch model with intervention capabilities: Locate where factual associations are stored by corrupting inputs and restoring activations. Test which components are necessary for a specific behavior. Train interventions to discover causal structure. Steer model behavior during generation. pyvene works with any PyTorch model. Tested on: For detailed API documentation, tutorials, and advanced usage, see the references/ folder: - Perform causal tracing (ROME-style localization) - Run activation patching experiments - Conduct interchange intervention training (IIT) - Test causal hypotheses about model components - Share/reproduce intervention experiments via HuggingFace - Work with any PyTorch architecture (not just transformers) - You need exploratory activation analysis → Use TransformerLens - You want to train/analyze SAEs → Use SAELens - You need remote...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does pyvene-interventions do?

pyvene is Stanford NLP's library for performing causal interventions on PyTorch models. It provides a declarative, dict-based framework for activation patching, causal tracing, and interchange intervention training - making intervention experiments reproducible and shareable.

Is pyvene-interventions good?

pyvene-interventions does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does pyvene-interventions work with?

pyvene-interventions currently lists compatibility with codex, gemini-cli, opencode, cursor, claude-code, antigravity.

What are alternatives to pyvene-interventions?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install pyvene-interventions?

npx skills add https://github.com/davila7/claude-code-templates --skill pyvene-interventions

Related skills

More from davila7/claude-code-templates

Related skills

Alternatives in Software Engineering