model-setup

Load and configure deep learning models with hooks and ablation utilities.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/EmaRimoldi/Claude-scholar-extended --skill model-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-setup
Source: https://github.com/EmaRimoldi/Claude-scholar-extended/tree/main/skills/model-setup
Command: npx skills add https://github.com/EmaRimoldi/Claude-scholar-extended --skill model-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Streamslining loading, configuring, and surgically modifying models for experiment-ready setups by reducing boilerplate around loaders, hooks, and ablation utilities.

Core Features & Use Cases

  • Model Loading: Load models from HuggingFace Hub or local checkpoints with correct config and dtype handling.
  • Architecture Discovery: Generate architecture reports (model-architecture.json) and enumerate layers, parameters, and components.
  • Hook Infrastructure: Attach forward hooks to extract intermediate activations and support controlled ablation.
  • Ablation & Fine-tuning: Provide zero/mean activation ablation, activation patching, and reversible state changes for safe experiments.
  • Comparison Tools: Enable representation similarity analyses (CKA/RSA) across models and checkpoints.
  • Hydra Configs: Output Hydra YAMLs for model loading and experiment pipelines.

Quick Start

Load a pretrained model, attach a hook to an attention layer, run a test input to collect activations, and generate the architecture report.

Frequently Asked Questions about model-setup

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

FAQPage Schema
How do I attach forward hooks to extract intermediate activations from transformer models?

To attach forward hooks for extracting intermediate activations, you need a hook infrastructure that connects to specific layers. This skill provides hook management that attaches forward hooks to extract intermediate activations and supports controlled ablation across transformer architectures.

What is the best way to perform activation ablation on a pretrained model?

Activation ablation on a pretrained model is best performed using zero or mean activation patching. This skill provides ablation utilities for zero/mean activation ablation, activation patching, and reversible state changes to ensure safe, controlled experiments.

Can I load HuggingFace Hub models and generate architecture reports automatically?

Yes, you can load HuggingFace Hub models and generate architecture reports automatically. The skill loads models from HuggingFace Hub or local checkpoints with correct config and dtype handling, while generating architecture reports that enumerate layers, parameters, and components.

How do I compare representations across multiple model checkpoints?

To compare representations across multiple model checkpoints, you use representation similarity analyses like CKA and RSA. This skill provides comparison tooling that enables representation similarity analyses across models and checkpoints within a Hydra-driven workflow.

Does surgical fine-tuning work with Hydra config pipelines?

Surgical fine-tuning works with Hydra config pipelines by outputting Hydra YAMLs for model loading and experiment pipelines. This integration streamlines the configuration of surgical modifications and ablation utilities directly within your existing Hydra-driven workflow.