Conversation
Use the token-level mean spectral radius across channels for causal clamping so the intervention matches the project's operational rho metric instead of saturating at 1.0 from a single near-zero dt channel.,Also expand the Colab notebook into a full Phase 01 sweep with multi-seed exports and add richer output metadata plus sibling JSON artifacts.
Drop the leftover single-seed initializer from the Colab notebook so the multi-seed Phase 01 flow starts cleanly without a NameError.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe pull request refactors the causal intervention notebook to support multi-seed execution with per-seed lazy prompt caching. The protocol script updates the rho computation to average per-channel spectral radius, expands evaluation thresholds, adds per-protocol metadata fields, and introduces JSON export alongside CSV output. Changes
Sequence Diagram(s)sequenceDiagram
participant Notebook as Notebook<br/>(Multi-Seed<br/>Orchestrator)
participant PromptCache as Per-Seed<br/>Prompt<br/>Cache
participant Protocol as run_protocol<br/>(Seed-Aware)
participant Results as Results<br/>Aggregator
loop For each SEED
Notebook->>PromptCache: get_prompts_for_seed(seed)
PromptCache-->>Notebook: cached prompts (lazy-loaded)
Notebook->>Protocol: run_protocol(seed, "all_layer", ...)
Protocol-->>Notebook: per-seed dataframe
Notebook->>Protocol: run_protocol(seed, "single_layer", ...)
Protocol-->>Notebook: per-seed dataframe
Notebook->>Results: accumulate per-seed results
end
Results->>Results: concatenate all<br/>per-seed dataframes
Results->>Results: write CSV + JSON<br/>artifacts
Results-->>Notebook: consolidated summary
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Improvements