open-interpretability 0.4.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/.gitignore +2 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/CHANGELOG.md +153 -0
- open_interpretability-0.5.0/PKG-INFO +100 -0
- open_interpretability-0.5.0/README.md +38 -0
- open_interpretability-0.5.0/labinacan/__init__.py +7 -0
- open_interpretability-0.5.0/labinacan/cache.py +27 -0
- open_interpretability-0.5.0/labinacan/data/__init__.py +1 -0
- open_interpretability-0.5.0/labinacan/progress.py +144 -0
- {open_interpretability-0.4.0/openinterpretability → open_interpretability-0.5.0/labinacan}/sensitive.py +24 -13
- open_interpretability-0.5.0/labinacan/site/__init__.py +1 -0
- open_interpretability-0.5.0/labinacan/site/alphaxiv.py +78 -0
- {open_interpretability-0.4.0/openinterpretability/builder → open_interpretability-0.5.0/labinacan/site}/cluster_map.py +59 -0
- {open_interpretability-0.4.0/openinterpretability/builder → open_interpretability-0.5.0/labinacan/site}/css.py +40 -21
- open_interpretability-0.5.0/labinacan/site/palette.py +63 -0
- {open_interpretability-0.4.0/openinterpretability/builder → open_interpretability-0.5.0/labinacan/site}/parallel.py +22 -5
- {open_interpretability-0.4.0/openinterpretability/builder → open_interpretability-0.5.0/labinacan/site}/pii.py +61 -96
- {open_interpretability-0.4.0/openinterpretability/builder → open_interpretability-0.5.0/labinacan/site}/social_media.py +112 -1
- {open_interpretability-0.4.0/openinterpretability/core → open_interpretability-0.5.0/labinacan/site}/takedowns.py +8 -10
- {open_interpretability-0.4.0/openinterpretability/core → open_interpretability-0.5.0/labinacan}/strict.py +2 -6
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/__init__.py +2 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/narrator.py +21 -3
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/proposer_profiles.py +26 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/answer_review.py +62 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/changelog_page.py +1 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/charts.py +2 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/circuit_pages.py +18 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/circuit_units.py +40 -5
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/compiler.py +24 -15
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/concept_map_view.py +1 -1
- open_interpretability-0.5.0/openinterpretability/builder/css.py +19 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/explanation_pages.py +14 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/heat.py +1 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/hrefs.py +54 -0
- open_interpretability-0.5.0/openinterpretability/builder/literature_map_view.py +329 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/literature_pages.py +6 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/palette.py +4 -21
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/parquet_export.py +9 -0
- open_interpretability-0.5.0/openinterpretability/builder/pieces.py +279 -0
- open_interpretability-0.5.0/openinterpretability/builder/registry_pii.py +103 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/research.py +40 -5
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/research_feeds.py +50 -6
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/sections.py +25 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/sister_graph.py +6 -2
- open_interpretability-0.5.0/openinterpretability/builder/sister_pages.py +238 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/slim.py +1 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/statuses.py +8 -6
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_experiment.html +1 -13
- open_interpretability-0.5.0/openinterpretability/builder/templates/_head_profile.html +27 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_macros.html +7 -7
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_map_theme.html +1 -0
- open_interpretability-0.5.0/openinterpretability/builder/templates/_record.html +32 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/about.html +2 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/base.html +1 -1
- open_interpretability-0.5.0/openinterpretability/builder/templates/circuit_experiment.html +83 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/circuit_unit.html +5 -5
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/explanation_prompt.html +1 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/index.html +3 -8
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/literature.html +4 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/model.html +12 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/neuron.html +2 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/paper.html +3 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/post.html +2 -1
- open_interpretability-0.5.0/openinterpretability/builder/templates/sister_match.html +78 -0
- open_interpretability-0.5.0/openinterpretability/builder/templates/sisters.html +34 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/wiki/experiment.md +3 -0
- open_interpretability-0.5.0/openinterpretability/claude_sessions.py +168 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli.py +3 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_build.py +2 -2
- open_interpretability-0.5.0/openinterpretability/cli_claude_session.py +39 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_explain.py +182 -140
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_loop.py +13 -4
- open_interpretability-0.5.0/openinterpretability/cli_model_check.py +32 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_sisters.py +5 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_social.py +37 -12
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/concept_map.py +5 -5
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/cache_dirs.py +4 -6
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/confounds.py +4 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/explanation_records.py +8 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/profiles.py +41 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/project.py +18 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/schemas.py +1 -1
- open_interpretability-0.5.0/openinterpretability/core/strict.py +13 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/corpus_rebuild.py +66 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/draw_steps.py +30 -3
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/evidence.py +5 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/evidence_branch.py +53 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/experiment_loop.py +99 -51
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain.py +1 -1
- open_interpretability-0.5.0/openinterpretability/explain_backend.py +155 -0
- open_interpretability-0.5.0/openinterpretability/explain_confirm.py +162 -0
- open_interpretability-0.5.0/openinterpretability/explain_corpus.py +104 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_coverage.py +10 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_land.py +2 -0
- open_interpretability-0.5.0/openinterpretability/explain_output.py +134 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_plan.py +25 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_run.py +61 -11
- open_interpretability-0.5.0/openinterpretability/explain_share.py +209 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explanation_targets.py +42 -3
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/circuit_measures.py +1 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/heads.py +29 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/input_attribution.py +1 -1
- open_interpretability-0.5.0/openinterpretability/harness/ov_lens.py +187 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/scan.py +2 -2
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/sister_passes.py +2 -5
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/sisters.py +2 -3
- open_interpretability-0.5.0/openinterpretability/interference/fisher.py +354 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/keep.py +34 -12
- open_interpretability-0.5.0/openinterpretability/interference/pruning.py +95 -0
- open_interpretability-0.5.0/openinterpretability/interference/template.py +105 -0
- open_interpretability-0.5.0/openinterpretability/interference/tuning.py +364 -0
- open_interpretability-0.5.0/openinterpretability/loop_local.py +82 -0
- open_interpretability-0.5.0/openinterpretability/loop_pending.py +95 -0
- open_interpretability-0.5.0/openinterpretability/loop_sessions.py +266 -0
- open_interpretability-0.5.0/openinterpretability/model_check.py +321 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_claims.py +4 -3
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_explanations.py +3 -3
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_states.py +3 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/reproduce_explanation.py +4 -16
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/sisters.py +8 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/social/__init__.py +1 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/social/feed.py +36 -3
- open_interpretability-0.5.0/openinterpretability/social/links.py +113 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/social/message.py +3 -3
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/social/poster.py +33 -11
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/social/run.py +103 -28
- open_interpretability-0.5.0/openinterpretability/social/thread.py +226 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/sync/r2.py +12 -1
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/takedown_checks.py +4 -4
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/pyproject.toml +52 -12
- open_interpretability-0.4.0/PKG-INFO +0 -169
- open_interpretability-0.4.0/README.md +0 -108
- open_interpretability-0.4.0/openinterpretability/builder/literature_map_view.py +0 -182
- open_interpretability-0.4.0/openinterpretability/builder/pieces.py +0 -164
- open_interpretability-0.4.0/openinterpretability/harness/progress.py +0 -61
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/CITATION.cff +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/LICENSE +0 -0
- {open_interpretability-0.4.0/openinterpretability → open_interpretability-0.5.0/labinacan}/data/offensive_words.txt +0 -0
- {open_interpretability-0.4.0/openinterpretability → open_interpretability-0.5.0/labinacan}/data/public_suffix_list.dat +0 -0
- {open_interpretability-0.4.0/openinterpretability/builder → open_interpretability-0.5.0/labinacan/site}/contents.py +0 -0
- {open_interpretability-0.4.0/openinterpretability/builder → open_interpretability-0.5.0/labinacan/site}/maths.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/base.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/judge.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/probe_hints.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/proposer.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/review_measurements.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agents/reviewer.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/agreement.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/answer_lens.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/answer_prompts.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/answer_readings.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/audit_options.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/baseline.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/benchmark.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/blends.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/agents.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/aligned.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/brand/logo.svg +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/brand/mark-32.png +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/brand/mark.svg +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/brand/og.png +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/brand.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/circuits.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/corpora.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/coverage.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/dashboard.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/disk_memo.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/draws_export.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/experiment.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/explanation_figures.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/feeds.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/GUST-FONT-LICENSE.txt +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/OFL.txt +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/README.md +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/cmu-serif-500-italic.woff2 +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/cmu-serif-500-roman.woff2 +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/cmu-serif-700-italic.woff2 +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/cmu-serif-700-roman.woff2 +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/cmu-typewriter-text-500-roman.woff2 +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/fonts/latinmodern-math.otf +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/learned_baseline.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/model_facts.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/neuronpedia_export.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/paper_pdf.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/pending.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/recent.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/registry_stats.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/route_figures.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/significance.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/standing.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/stopped.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/stops.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/superpositions.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/taxonomy_view.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_agent_role_cells.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_answer_verdict.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_causal_chart.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_circuit.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_concept_map.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_dashboard.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_embedding3d.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_experiments.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_figure.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_figure_pause.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_gas3d.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_members.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_patchscope.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_prior_art.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_prose.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_rivals.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_route3d.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_route3d_waves.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_route_row.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_specificity.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_steering.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_superposition.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_taxonomy.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_vocab_chart.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/_wiring.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/agent.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/agents.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/answer.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/atlas.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/changelog.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/circuit.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/circuits.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/experiment.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/explanation.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/explanations.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/hub.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/layer.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/learned-baseline.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/models.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/paper_print.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/posts.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/redirect.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/research.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/superposition.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/user.html +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/wiki/index.md +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/wiki/neuron.md +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/templates/wiki/stop.md +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/tree.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/users.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/builder/wiki.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/checks.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/circuit_checks.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/circuit_ids.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/circuit_review.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_answers.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_baseline.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_benchmark.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_check.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_circuits.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_concepts.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_corpus.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_costs.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_coverage.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_crossref.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_errata.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_evidence.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_evidence_store.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_interference.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_map.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_memory.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_neuronpedia.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_patch.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_pause.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_pole_effects.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_probing.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_provider.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_query.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_registry.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_reproduce.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_review.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_scan.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_score.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_submission.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_superpositions.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/cli_wiring.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/codeid.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/concept_regions.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/concepts.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/agent_names.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/answer_records.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/attribution.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/causal.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/circuit_records.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/contributors.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/corpora.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/costs.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/draws.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/errata.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/evidence.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/examples.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/exceptions.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/explanation.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/fence.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/heavy_lock.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/identifiers.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/isolation.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/ledger.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/legacy_names.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/licenses.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/manifold.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/partners.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/patchscope.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/paths.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/pause.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/pricing.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/prior_art.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/probing.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/record_kinds.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/rivals.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/run_environment.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/specificity.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/stats.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/steering.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/taxonomy.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/transcripts.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/core/wiring.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/corpus.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/corpus_cache.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/corpus_layouts.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/corpus_presets.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/coverage.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/crossref.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/data/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/data/providers.toml +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/data/sample_corpus.txt +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/embedding_space.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/errata_checks.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/evidence_lenses.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_figure_data.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_groups.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_narrate.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_print.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_reuse.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explain_stopped.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/explanation_registry.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/figures/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/figures/motion.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/figures/svg.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/half_precision.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/ane/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/ane/backend.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/ane/cache.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/ane/chunks.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/ane/convert.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/ane/forward.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/ane/qualified.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/annotations.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/attribution.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/causal.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/confounds.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/covariance.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/cpu_speed.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/crossref.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/cuda_devices.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/dead.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/devices.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/dictionaries.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/dreaming.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/environment.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/explanation_scores.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/features.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/first_position.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/hooks.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/jlens.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/layer_cache.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/layer_major.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/lookahead.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/manifold.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/memory.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/moe.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/patcher.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/patchscope.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/prepare.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/probing.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/scan_backend.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/sites.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/specificity.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/steering.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/superpositions.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/units.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/wiring.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/harness/wiring_activations.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/hubs.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/behaviour.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/floors.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/report.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/routes.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/run.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/interference/units.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/inverse_claims.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/langid.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/loop_bugs.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/mcp_server.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/model_revisions.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/names.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/neuronpedia_baseline.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/neuronpedia_review.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/partner_context.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/apply.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/gates.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/graph.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/history.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/schema.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/session.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/store.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/patches/tensors.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_circuits.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_effects.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_heads.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_models.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_sisters.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/planner_superpositions.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/pole_effects.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/prior_art.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/providers.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/registry_query.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/reproduce.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/reproduce_policy.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/revision.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/runner_cache.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/score_controls.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/show.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/signing.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/superposition_finders.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/sync/__init__.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/syntax.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/toxicity.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/until_verified.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/verdict_regression.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/wiring_backfill.py +0 -0
- {open_interpretability-0.4.0 → open_interpretability-0.5.0}/openinterpretability/wordnet.py +0 -0
|
@@ -13,6 +13,159 @@ Changes waiting for the next release are files in [changelog.d/](changelog.d/REA
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [0.5.0] - 2026-11-24
|
|
17
|
+
|
|
18
|
+
Ships with protocol version **0.10**.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- `scripts/train_resting.py --spread-bins` also records the output's push per token in each bin of h. Five GELU norm conditions mirror the ReLU ones. *Why training rests neurons below GELU's dip* gains Table 23. For GELU and SiLU, the output's push points up below the rest. It still does when no norm and no dropout can see a constant (#3193).
|
|
23
|
+
- *Why training rests neurons below GELU's dip* gains Table 24: the gaps between Pythia's checkpoints don't explain its weak push. One densely saved run per seed, read at Pythia's spacing, still shows the push in 67%–87% of checkpoints and layers, against Pythia-70m's 43%. `pretrained_push.py small --step` reads a subset of a run's checkpoints (#4093).
|
|
24
|
+
- Head scans read each head's OV circuit through the vocabulary, from the weights alone (`HeadProfile.ov_lens`). The lens gives a copying score from the circuit's eigenvalues. It also gives the share of tokens that the head copies or suppresses. It maps each top example's attended token to the tokens that the head writes most. The proposer's prompt, the experiment page and the Parquet export show the lens. It is reported, not gated (#5062).
|
|
25
|
+
- `scripts/base_instruct_cka.py` gives each layer's linear CKA between a base model and its instruct model, raw and standardised, against a random-weights null. It also swaps each third of the blocks back to the base model and correlates the poles again. On Qwen2.5-0.5B, the whole layer changes a little, most in the middle third. That change comes partly through the earlier blocks (`docs/analyses/base-instruct.md`, #5127).
|
|
26
|
+
- `scripts/base_instruct_delta.py` reads the weight change of instruction tuning at each pole, and tests it against whether the pole's explanation keeps. On Qwen2.5-0.5B neither measure predicts it beyond depth: AUROCs of 0.60–0.62 fall to p of 0.32–0.82 when the labels are shuffled within each layer. The change is high-rank, and spread over almost every neuron (`docs/analyses/base-instruct.md`, #5133).
|
|
27
|
+
- `scripts/dormant_rank.py` measures dormant and never-firing poles, and each MLP layer's effective rank, at Pythia-70m's 20 checkpoints. `papers/neuron-development/` reports it in *Do the layers lose plasticity?*. The deeper layers collapse early and recover, then slowly lose rank after step 4,000, but almost no pole becomes dormant (#5134).
|
|
28
|
+
- `papers/instruct-difference/` and `scripts/base_instruct_patch.py` patch each layer's VERIFIED poles between Qwen2.5-0.5B and its instruct model on 128 chat conversations. Inside one layer, the VERIFIED poles close a median 0.2% of the base-to-instruct gap, about as much as random poles of the same number (#5140).
|
|
29
|
+
- A literature review of Li et al. (2026), which turns a trained attention network into a hard-logic predicate circuit (`docs/literature/hard-logic-predicate-circuit.md`, #5366).
|
|
30
|
+
- `docs/literature/general-progress-substitutes.md` reviews Marosi and Antal (2026). Withholding a skill's training data only delays the skill, and its acquisition cost is the measure that #6524 needs (#5515).
|
|
31
|
+
- CI runs mutation testing on the package files that a pull request changes. A surviving mutant fails the job, and the job summary lists it. The maintainer's PRs skip the job, because the maintainer runs it before opening them. Wiki-only PRs skip it too. A second job, *Mutation testing ran locally*, fails a maintainer PR that changes package code unless its body records a local run with no survivor. The `work-an-issue`, `next-issue` and `release` skills say when to run it (#5857).
|
|
32
|
+
- `make mutation BASE=origin/main` runs only the mutants in the functions that the branch changes, at most 100 of them, a seeded sample. On #6459's five files that is 7.7 minutes, against about an hour for the whole files (#5857).
|
|
33
|
+
- mutmut 3.8.1 is in the `dev` dependency group, so `make mutation` and CI need no `--with` (#5857).
|
|
34
|
+
- `papers/conformal-line/` and `scripts/conformal_line.py` give each of the 784 VERIFIED poles a split-conformal activation line. The fixed line fires on a median 0.7% to 23% of corpus windows, by model. At α = 0.05, 451 of the 784 explanations still pass their probe gates. The probes predicted quiet fire far above α in Qwen2.5 (#6417).
|
|
35
|
+
- Each circuit experiment has its own page beside its circuit's page, at `models/<model>/circuits/<id>/<timestamp>.html` (#6638). It shows the task, the explanation, and the members with their roles and links. It also shows the review, the measures against their gates, the probe pairs, and the record it revises or that revises it. The circuit's table links each experiment's page. It says whether each one is current or stale, independent or self-reviewed, and superseded. Circuit records now have personal data removed before the site shows them, as unit records do.
|
|
36
|
+
- Each sister match has its own page, under `sisters/`. It shows the two poles, each row's measures and every sister study between them, or says that none has run yet. Each model with sisters has an index of its matches (`models/<model>/sisters.html`). The model page's sister graph and table, and each neuron page's sister rows, link to the match's page (#6639).
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- **Breaking.** The site's Tailwind build now lives in `labinacan/site/css.py`, and the colour maths (`luminance`, `badge_text` and `rgb`) in `labinacan/site/palette.py` (#6628). The project passes its colours to the build. This repo keeps its status, pole and brand colours in `builder/palette.py`. `python -m openinterpretability.builder.css` still builds the stylesheet in them.
|
|
41
|
+
- **Breaking.** The site's redaction core now lives in `labinacan/site/pii.py`: the search's cache, `find_spans`, `redact_text`, `redact_tokens` and `scrub` (#6628). A project tells it where to keep matches on disk with `configure`. Without that, it keeps nothing on disk and redacts the same. The record scrubbing stays in `builder/registry_pii.py`, which gives the core this repo's cache folder and search name. `labinacan/cache.py` takes the cache base as an argument, and `core/cache_dirs.py` passes this repo's base.
|
|
42
|
+
- **Breaking.** The personal-data and offensive-word search, its two data files, takedowns and `StrictModel` now live in `labinacan/` (#6628). `labinacan/sensitive.py` takes the search's name as an argument. This repo passes `openinterpretability.sensitive` (`core/confounds.py`), so new records write the same `label_detector` as before. The takedown functions now need the wiki folder.
|
|
43
|
+
- **Breaking.** The first generic parts of the site builder now live in a `labinacan/` package, beside `openinterpretability/` (#6207, #6628). `labinacan/site/` holds `contents`, `maths`, `alphaxiv`, `social_media`, `cluster_map` and `parallel`, and `labinacan/progress` the progress reports. A test checks that `labinacan/` imports nothing from `openinterpretability`. The wheel, the tests, coverage, mutation testing and the checkers all cover it. `scripts/mutation.py` now counts only the edited lines of a moved file.
|
|
44
|
+
- The registry coverage ran again on 2026-11-24. The share of the loss rise that the VERIFIED poles recover, against matched random poles, is:
|
|
45
|
+
- GPT-2: 7.8% against 0.9%, with 221 poles (was 6.9% against 0.6%, with 218).
|
|
46
|
+
- Pythia-70m: 4.6% against 0.5%, with 160 poles (was 4.5%, with 150).
|
|
47
|
+
- Qwen2.5-0.5B: 0.69% against 0.29%, with 362 poles (was 0.38% against 0.30%, with 363). The share rose although one pole fewer is VERIFIED. So the poles that changed carry more than the one that left.
|
|
48
|
+
- Qwen2.5-1.5B: 0.01%, with 75 poles (was 73).
|
|
49
|
+
- The sister search ran for the 19 poles VERIFIED since v0.4.2, on the same corpus (`ded48cfc…`). It added 57 rows and 8 sisters. GPT-2 gained 4: 2 in Qwen2.5-1.5B, 1 in Qwen2.5-0.5B and 1 in pythia-70m. Qwen2.5-1.5B gained 2, one each in Qwen2.5-0.5B and GPT-2. Pythia-70m gained 2, one each in the two Qwen models. The strongest is GPT-2 L0/N887+, with Qwen2.5-0.5B L0/N720− (r 0.92), Qwen2.5-1.5B L0/N5590+ (0.90) and pythia-70m L0/N273+ (0.88). Next is Qwen2.5-1.5B L22/N5737− with GPT-2 L0/N504+ (0.86). Each is now a `sister` draw, and each has a match page.
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- A follow-up draw claims `experiment/<key>-<kind>-<MMDDHHMMSS>`, so a second draw of a kind on a unit no longer collides with a merged PR's branch. A session that ran nothing gives its attempt and its `--run` count back. A session that landed a PR but printed no `RESULT:` line now counts. The run's summary says "not reached" for a target that it never drew (#6066).
|
|
54
|
+
- A deploy waits out a slow R2 response, and retries it. The R2 client has a 300-second read timeout and standard retries, up to 6 attempts. Before, one slow `DeleteObjects` call failed the deploy (#6101).
|
|
55
|
+
- An `explain --run` session's prompt now asks for one plain command per Bash call, with no `cd`, `&&`, pipes or `env` prefixes. An unattended run denies other shapes. When a session opens no PR, the loop names any branch it pushed. A pushed record gets the `gh pr create --head` command, and a pushed claim gets the command to delete it (#6145).
|
|
56
|
+
- An experiment's steps now mark its PR ready before the last push, so that push starts a full CI run. CI's and CodeQL's concurrency groups include the draft flag, so a draft-time run can't cancel the ready run. Before, a PR could sit ready with only skipped checks (#6179, #6247).
|
|
57
|
+
- A pytest worker could crash in a test that builds the site after running torch: the build forked a process that already ran torch's threads. `OPENINTERPRETABILITY_BUILD_JOBS` now caps a build's worker processes, and the test suite sets it to 1 (#6507).
|
|
58
|
+
- `scripts/literature_map.py` tries each of eight fixed seeds and keeps the most compact layout. One new review page can no longer drop the map under the test's gate. `map.json` names the seed it kept. The GitHub queue reader and the report moved to `scripts/literature_map_io.py` (#6529).
|
|
59
|
+
- A test may now run for 180 s, not 60 s, before pytest-timeout ends it. A whole-site build test ran past 55 s under coverage on a 2-core CI runner. Under xdist that ended the worker and showed as a crash with no trace. CI now lists the 15 slowest tests, so a creep toward the limit shows early. Making those builds cheaper is #6579 (#6561).
|
|
60
|
+
- A test that runs past its timeout now leaves evidence. Five seconds before pytest-timeout ends it, every stack goes to the worker's crash log under the test's name. Before, the timeout's own dump went to stderr, which a worker loses (#6561).
|
|
61
|
+
- A test worker that crashes now leaves evidence. Each xdist worker writes faulthandler's stack dump to `logs/faulthandler-<worker>.log`. When the tests fail, CI prints those files and any out-of-memory kill from the kernel log. Before, a crashed worker lost its stderr and left no trace (#6561).
|
|
62
|
+
|
|
63
|
+
## [0.4.2] - 2026-11-23
|
|
64
|
+
|
|
65
|
+
Ships with protocol version **0.10**. A hotfix of 0.4.1, which PyPI refused.
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- PyPI refused 0.4.1, because an email link in `[project.urls]` is not a valid Project-URL. The contact address is now the `maintainers` email in `pyproject.toml`, which the site reads as before (#6434).
|
|
70
|
+
|
|
71
|
+
## [0.4.1] - 2026-11-23
|
|
72
|
+
|
|
73
|
+
Ships with protocol version **0.10**.
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
|
|
77
|
+
- **Why L2 and L3 shut with only the block LayerNorms open.** In `papers/why-neurons-rest/`, the MLPs' mean output grows until a shared constant is 3–4 times the part of the block LayerNorms' input that differs between tokens (#3192). Dropout's own pull goes through the later blocks' LayerNorms and the final LayerNorm alike. `train_resting.py` now records each block's offset ratio, and `scripts/dropout_routes.py` splits dropout's pull by route.
|
|
78
|
+
- **How to add a model, and a check for it** (#3370). `docs/adding-a-model.md` gives the process: the gate, the choice, the check, the config, the reproduction floor and the release refresh. It also says why a model needs no learned dictionary and no SPD model, with the numbers. The new `open-interpretability model-check <model>` loads the model and checks that the hooks find its layers, MLP, attention and norms. It names the MLP's family and the block's shape, runs one ablation and checks the config. Each configured model passes it.
|
|
79
|
+
- A review of *Mechanistic Insights into LoRA: Layer Sparsity for Adaptive Fine-Tuning via Path Patching* (Zuo, Huang and Wang, 2026), in `docs/literature/lora-layer-sparsity-path-patching.md` (#3389). Its status is planned: it could set a layer arm for #5125. The method zero-ablates whole blocks, not paths, so it ranks layers, not units.
|
|
80
|
+
- A review of *Task Vectors Can Be Linearly Decomposed into Interpretable and Controllable Components* (Horiba, Cho and Yakoh, 2026), in `docs/literature/task-vectors-linear-decomposition.md` (#3403). Its status is not applicable. The task vector is an in-context activation, not a weight difference, and the paper studies no units.
|
|
81
|
+
- A review of Edward Benson's post *Embedding a state machine in a neural network* (2026), in `docs/literature/embedding-state-machine.md` (#3404). Its status is not applicable: the post names no host model, gives no code and measures nothing. A planted latch is one way to build the context rules that the ground-truth plants of #3201 could not hold.
|
|
82
|
+
- A review of *Sparks of Weight-Space Programming* (Takehi, Teoh, Zhang and Khattab, 2026), a blog post, in `docs/literature/rikiyat-weight-space-programming.md` (#3405). Its status is planned. An LLM names copying heads from weights alone, but needs activations for a behaviour that depends on context. That is evidence for #5144.
|
|
83
|
+
- A short review of Jürgen Schmidhuber's page on the 1991 fast weight programmer and Transformers, in `docs/literature/fast-weight-programmer-1991-transformer.md` (#3416). Its status is not applicable: it is a history page with no method or measurement.
|
|
84
|
+
- A review of *Unifying and Beyond the Theory of Pervasive Capability Degradation in LLM Post-training SFT from Feature Interference* (Chen, Zhu and Wang, 2026) (#3437). The page is `docs/literature/sft-capability-degradation-feature-interference.md`, with status planned. It predicts "ghost" activations after narrow fine-tuning, which the interference report's hard negatives could test.
|
|
85
|
+
- A review of ROTATE, *Disentangling MLP Neuron Weights in Vocabulary Space* (Avrahamy, Gur-Arieh and Geva, 2026), in `docs/literature/rotate.md` (#3446). Its status is planned. Its kurtosis statistic already failed as a predictor here (#3226), so #5871 tests the vocabulary channels themselves against VERIFIED explanations.
|
|
86
|
+
- A review of *SWEET: Mitigating Spurious Feature Reliance in LLM Reasoning via Weight Editing* (Fu et al., 2026), in `docs/literature/sweet-spurious-feature-weight-editing.md` (#3458). Its status is planned. It edits single MLP neurons chosen by attribution, with no random-unit control.
|
|
87
|
+
- A review of *Interpretable Weight-Space Programming Builds Transparent Transformers and Brain Encoding Models* (Mehta et al., 2026), in `docs/literature/interpretable-weight-space-programming.md` (#4471). Its status is planned. Its rebuild-from-description test is evidence for #3249.
|
|
88
|
+
- Paper *Does Fisher importance predict which explanations survive instruction tuning?*, in `papers/fisher-keep/` (#5118). A neuron's diagonal Fisher in Qwen2.5-0.5B does not predict whether its VERIFIED explanation keeps on the instruct model. The AUC is 0.475, against a within-layer null of 0.523 (p = 0.21). `openinterpretability/interference/fisher.py` reads the true and empirical Fisher and the activation RMS of every MLP neuron. `scripts/fisher_keep.py` runs the tests.
|
|
89
|
+
- **Do explanations that fail come back?** (#5119). `papers/neuron-development/` has a new section with Figure 3 and Table 3. Of the 13 explanations of Pythia-70m that hold at step 16,000 and fail later, 9 pass again before the final step. 18 of their 23 failures are within two probes of a gate. `scripts/figures_development_savings.py` counts each failure's shortfall in probes.
|
|
90
|
+
- **Paper: how many of a neuron's weights does its explanation need?** in `papers/pruning-keep/` (#5122). It zeroes the smallest 50%, 75% or 90% of each VERIFIED Pythia-70m neuron's input weights, with a random null. At 90%, 63 of 127 explanations keep by magnitude, against 17 at random. `openinterpretability/interference/pruning.py` prunes a neuron's input rows and restores them. `scripts/pruning_keep.py` runs the keep test.
|
|
91
|
+
- **Paper: do neuron explanations survive a sequence of narrow fine-tunes?** `papers/sequential-tuning/` fine-tunes Qwen2.5-0.5B and its instruct model on SST-2, then XSum, then GSM8K. After each stage it re-tests the VERIFIED explanations and scores ARC-Easy (#5125). About three quarters keep after three stages. The first update costs the most, and the benchmark does not track the losses. `scripts/sequential_tuning.py` runs it, and `openinterpretability/interference/tuning.py` holds the fine-tuning and the measures.
|
|
92
|
+
- **Paper: is it the template or the tuning?** in `papers/template-or-tuning/` (#5126). It reads the probes of each VERIFIED pole of Qwen2.5-0.5B in four conditions. The base and instruct models each read plain text and one chat template. The template alone costs the base model 76 of 360 explanations. The tuning costs 61 on plain text and a net 19 inside the template. `openinterpretability/interference/template.py` builds a corpus sample inside a chat template. `scripts/template_tuning.py` runs the four readings. The keep test's chat readings can now render with another model's template.
|
|
93
|
+
- **The first alphaXiv AI Track paper** (#5259). The paper `papers/syntax-positive-controls/` is on alphaXiv, and its `CITATION.cff` records the URL. The paper page links it.
|
|
94
|
+
- **alphaXiv issues for Muse** (#5259). `scripts/papers.py submit <slug> --issue` opens an issue labelled `muse` that asks Muse to post a published paper to the alphaXiv AI Track. The issue gives the steps and each field of the form. The `release` skill opens one for each paper published since the last tag. `scripts/next_issue.py` never picks, resumes or lists an issue labelled `muse`.
|
|
95
|
+
- **alphaXiv AI Track submissions** (#5259). `scripts/papers.py submit <slug>` writes the upload package of a published paper to `build/alphaxiv/<slug>/`. The package is the PDF that `make build` prints, and `submission.md` with each field of the form. alphaXiv has no upload API, so the maintainer approves the package and uploads it from the project account. `scripts/papers.py alphaxiv <slug> <url>` then records the URL in the paper's `CITATION.cff`, outside the frozen hash. The paper's page links it. The `release` skill prepares a package for each paper published since the last tag.
|
|
96
|
+
- **`make mutation`** (#5763). mutmut 3.8.1 runs on the verdict code: `core/stats.py`, `builder/standing.py`, `agents/reviewer.py` and `planner.py`, with their own tests. It takes about 5 minutes. `[tool.mutmut]` in `pyproject.toml` copies the whole package into `mutants/`, which fixes the import error of the first try. A first run killed 982 of 1,894 mutants, and 379 survived. Run it by hand, not in CI. The `test-new-paths` skill runs it for a change to the verdict code.
|
|
97
|
+
- **A literature page on compiling exact circuits into an LLM** (#5810). *A CPU Inside an LLM* (`docs/literature/cpu-inside-an-llm.md`) reviews Sah (2026). It asks whether the compiled circuit leaves the host model's units and their explanations unchanged. The paper measures only output behaviour, so the page says how the repo would test each unit.
|
|
98
|
+
- **`explain --local`, and `open-interpretability explain-share`** (#5827).
|
|
99
|
+
- `explain --run --local` and `--complete --local` run an explanation end to end in your own checkout, with no GitHub call: no claim, push or PR. Each experiment writes the same record, with the same inputs, into your `wiki/`. The coverage counts it at once.
|
|
100
|
+
- The explanation record lists those experiments under `run.local`, and its page says how many are local.
|
|
101
|
+
- `explain-share <record>` opens one PR with the record and every local experiment it used. As for any landing, it doesn't wait for CI. It names any unit that gained a record on main since.
|
|
102
|
+
- `--land` stays the default.
|
|
103
|
+
- **`explain` asks before it spends LLM tokens, and shows where it is** (#5830).
|
|
104
|
+
- Before `--run`, `--complete` or a narrated `--level` calls an LLM, it says what will run and estimates the tokens and the cost from the model's recent experiments. Then it asks, with no as the default.
|
|
105
|
+
- `-y`/`--yes` skips the question. With no terminal and no `--yes`, it refuses, and so never hangs. The planner's explanation draws pass `--yes`.
|
|
106
|
+
- Each stage prints `[i/N]` as it starts. On a terminal, every long loop shows a bar with the time left. These are the baselines, the random sets, the gains, the plan and the minimal set. In a run, each experiment says its count, unit and attempt.
|
|
107
|
+
- `--quiet` turns the stage lines and bars off, and `--json` implies it.
|
|
108
|
+
- **`explain` with Claude Code and no API key** (#5831).
|
|
109
|
+
- With no `--proposer`, `--reviewer` or `--provider`, and `claude` on `PATH`, `explain --run` runs each planned experiment in a headless Claude Code session, whose subagents answer. It still draws by coverage gain and measures the coverage between sessions. Without `claude`, it says what to do instead.
|
|
110
|
+
- `scripts/experiment-loop.sh` and `explain --run` share one launcher, the new `open-interpretability claude-session`.
|
|
111
|
+
- Inside Claude Code, the narrator is a subagent (`external/`) when `--narrator-model` isn't given.
|
|
112
|
+
- The new `explain` skill runs a whole explanation in a Claude Code session: the plan, its experiments, the answer experiment, the narration and the record.
|
|
113
|
+
- **X threads for papers and posts** (#5833).
|
|
114
|
+
- A paper or a post can hold `thread.yaml`: 2 to 10 tweets, each about one section, with the section's figures. The agent that writes the paper or post writes it in the same PR.
|
|
115
|
+
- `make build` and `make test` check each thread: the length and the number of its tweets, its sections and its links. They also check each figure's alt text and drawn image.
|
|
116
|
+
- The feed carries the thread, and `social post` posts it as one unit, each tweet a reply to the one before. A thread starts only when today's budget has room for all of it. After a failure it resumes from the next tweet, and never posts a tweet twice.
|
|
117
|
+
- `scripts/social_images.py` draws each figure that a thread names. The published paper on the bracket neuron, and the post on `explain`, have threads.
|
|
118
|
+
- **Each paper and post links to its X post** (#5840). The deploy posts a paper or a post to X. Then a new job writes the post's URL as `x_url` in the folder's `media/social.json`, and opens a PR. The PR merges by itself once CI passes. The page then shows "Thread on X", as a plain link with no script from X. `social post --record` and `social link` do the work. The deploy job keeps its read-only token, and only the new job writes.
|
|
119
|
+
- **Mutation testing of a branch's changes.** `make mutation BASE=origin/main` mutates the package files that the branch changes, and runs the tests that import them (#5856). It fails when a mutant survives or no test reaches one. Record an equivalent mutant on its line with `# pragma: no mutate, equivalent: <why>`. The `test-new-paths` and `work-an-issue` skills run it before a PR is opened.
|
|
120
|
+
- **A literature page on pushing every neuron of Qwen3-8B** (#6030). *Mapping Every Neuron in Qwen3-8B* (`docs/literature/mapping-every-neuron-qwen3-8b.md`) reviews Fermion Research's census of single-neuron switches and its random-neuron controls. #6032 holds a pilot on the registry's VERIFIED poles.
|
|
121
|
+
- Only an issue that the maintainer opened, or gave a thumbs up, may have the `muse` label. `scripts/issue_state.py --muse-check` checks the rule, and the *Muse label* workflow removes the label from any other issue (`docs/muse.md`, #6393).
|
|
122
|
+
|
|
123
|
+
### Changed
|
|
124
|
+
|
|
125
|
+
- **Second attempts on the agreement circuit's late neurons** (#4058). Seven units of Qwen2.5-0.5B's agreement circuit got a `revise` follow-up. Six verified, so 13 of the top 20 are now VERIFIED, and 8 of 12 in layers 16–23 against 2 of 12 before. `docs/analyses/sva-circuit.md` has the table. Ranks 21–100 moved to #6011.
|
|
126
|
+
- **`explain --run`, `--complete` and `--record` no longer wait for CI** (#5826). Landing opens the PR ready for review and goes on at once. `auto-merge.yml` merges a qualified PR when CI passes, and a maintainer merges the others. Before, each landing could wait 45 minutes, so a run by a contributor whose CI needs approval took the longest and counted nothing.
|
|
127
|
+
- **A run counts the records of its open PRs.** The next draw and the coverage after the run see them, so a VERIFIED unit is not drawn again. No experiment's commit holds them. The explanation record lists them as `pending`, and its PR body and page show them.
|
|
128
|
+
- **`explain` builds its own corpus when `--corpus` isn't given** (#5829). Before, it read `corpus.jsonl`, which a fresh clone or a pip install doesn't have, so `explain` failed at once. Now it uses the registry's scan corpus, the first 500 documents of pile-10k at a pinned commit. It uses `./corpus.jsonl` when that file holds the same bytes. Otherwise it builds the corpus once into the rebuilt-corpora cache and reuses it, so every explanation of a model keeps the same means. `--corpus` still overrides it.
|
|
129
|
+
- **The status grid's height is a count** (#5836). On a model card and a model page, a cell is a small stacked bar of its block's studied neurons, 3 px each. The bar is split by status, with VERIFIED at the bottom. Every model's grid has one scale, set by the largest block, so cards compare. Before, a cell's height repeated its best status. On a layer page, each cell is one neuron at full height. The legend's swatches are all one size, and the hover text gives each block's counts by status.
|
|
130
|
+
- **The learned-basis baseline moved to its model's page** (#5838). The home page no longer shows it. The `openai-community/gpt2` page shows it under the model's counts, labelled, with its link to the baseline page. A model with no baseline shows nothing. The build waits for the stats before it writes the model pages, which adds about 14 s to a 5-minute build.
|
|
131
|
+
- `README.md` is down to 38 lines (#5843). It covers how to run an experiment and how to explain an answer. It gives one command each and no option lists, then a short list of links. The tools table, memory and download sizes, and the loop's merge rule move to `docs/experiments.md`, in *What you need* and *Letting an agent run it*. Installing the package moves to `docs/development.md`.
|
|
132
|
+
- **The explain post is rewritten, with figures** (#5851). *Explaining an AI's answer* follows pythia-70m from "The sun rises in the" to " sky", and then a " days" mistake. It has 10 figures drawn from the records, and a test fails if one drifts from its data. It stays a draft, unlisted at `posts/drafts/explain/`.
|
|
133
|
+
- **The site's contact email is `contact@open-interpretability.com`** (#5853). The footer and the about page read it from `Contact` in `pyproject.toml`'s `[project.urls]`. The package's author email doesn't change.
|
|
134
|
+
- Every line that a pull request changes must now be covered by a test, or marked `# pragma: no cover` with its reason (#5855). The threshold is set once, as `[tool.diff_cover] fail_under = 100` in `pyproject.toml`. `make coverage` and CI's diff-cover step both read it. The `test-new-paths` skill says when the pragma is allowed. New tests close the gaps in 217 modules, from those that missed one line to the largest CLI modules. Package coverage rises from 90.92% to 100%, and the floor from 90 to 100. Three unreachable guards are marked with their reasons, and one redundant check in `concept_map.py` is removed.
|
|
135
|
+
- The secret scan no longer takes the validity date of a test ssh signer line, such as `valid-before="20200101Z"`, for a key (#5855). `.gitleaks.toml` allows that pattern by line, and its old `[allowlist]` table moves to the `[[allowlists]]` form, which gitleaks needs for two lists.
|
|
136
|
+
- **`explain` plans no answer experiment when the units' effects cancel.** Ablating every unit must cut the answer's log-probability by more than any of 4 random sets matched to the minimal set. Otherwise `necessity` and `sufficiency` have no baseline, and the plan gives the reason in place of the attempt's commands. The decision rule doesn't change (`openinterpretability/answer_review.py`, `openinterpretability/explain_plan.py`, #5967).
|
|
137
|
+
- **No daily limit on posts to X.** `social post` posted at most 15 tweets in any 24 hours, so a thread could wait a day. Every new entry now posts on the run that finds it. X's own limits apply, and a post that X refuses fails the deploy's step, which reports it (`openinterpretability/social/run.py`, #6081).
|
|
138
|
+
- Headless `claude -p` sessions (`explain --run`, `scripts/experiment-loop.sh`) now load only the project's settings. They may run `uv run open-interpretability`, but not all of `uv run`. They are denied workflow runs, `gh api`, merges, secrets, releases, free Python, git configuration, and forced or deleting pushes. `$OPENINTERPRETABILITY_SESSION_GH_TOKEN` gives the sessions their own GitHub token. The loop script's sessions now leave the merge to `auto-merge.yml` (#6393).
|
|
139
|
+
- Adding a model now includes a step that tries the ANE (`docs/adding-a-model.md`). Convert the model's architecture for Core ML, run `scripts/ane_qualify.py`, and record the result, also if it fails. A model that fails still joins, and its scans run on torch.
|
|
140
|
+
- The registry coverage ran again on 2026-11-23. The share of the loss rise that the VERIFIED poles recover, against matched random poles, is:
|
|
141
|
+
- GPT-2: 6.9% against 0.6%, with 218 poles (was 4.0%, with 208).
|
|
142
|
+
- Pythia-70m: 4.5% against 0.5%, with 150 poles (was 4.3%, with 115).
|
|
143
|
+
- Qwen2.5-0.5B: 0.38% against 0.30%, with 363 poles (was 0.39% against 0.06%). The random share rose, so the gap is now small.
|
|
144
|
+
- Qwen2.5-1.5B: 0.01%, with 73 poles (unchanged).
|
|
145
|
+
- **A project, not a lab.** The README, the About page, the package and CLI descriptions and the site's meta description now call Open Interpretability a project, not a lab.
|
|
146
|
+
- **The explain post is published.** *Explaining an AI's answer* now lists on the Posts page at `posts/explain/`, in the maintainer's rewrite, with its head figure for X and link cards. The draft URL stops working.
|
|
147
|
+
- The sister search ran for the poles VERIFIED since v0.4.0. It added 192 rows and 43 new sisters, across 11 ordered model pairs. Pythia-70m gained the most sisters: 8 in GPT-2, 7 in Qwen2.5-0.5B and 7 in Qwen2.5-1.5B. The strongest new sisters are GPT-2 L0/N908+ with Pythia-70m L0/N1277+ (Pearson 0.96), and GPT-2 L0/N2874+ with Pythia-70m L0/N897+ (0.95). The same GPT-2 pole matches Qwen2.5-1.5B L0/N1049− (0.92).
|
|
148
|
+
|
|
149
|
+
### Fixed
|
|
150
|
+
|
|
151
|
+
- **The literature map's cards, regions and colours** (#5798).
|
|
152
|
+
- The margin cards no longer run off the map, and their leader lines no longer cross. There are at most 8 a side.
|
|
153
|
+
- The cards name the reviews with status used that the most pages in `docs/` and `papers/` link to. Reviews in the index's model-architecture and data sections are left out.
|
|
154
|
+
- The "Queued, not reviewed yet" region is gone. Each queued paper sits in its topic's region, because the issue template's stock words are no longer embedded.
|
|
155
|
+
- There are now 8 regions, one per palette colour. Regions that touch never share a hue family. The colouring keeps the validator's colour-blind clashes off the borders with the most links.
|
|
156
|
+
- Regions are more compact: 90% of the dots are nearest their own region's centre, against 75% before.
|
|
157
|
+
- The called-out dots are smaller, with an outline.
|
|
158
|
+
- **The home page's stat tiles line up** (#5832). Each tile is a flex column, with its value at the bottom. So every value in a row sits on one baseline, also when a label such as "Neurons studied" wraps to two lines.
|
|
159
|
+
- `open-interpretability sisters` refuses `-k 0` and `--other` with no first model (#5890). Before, `-k 0` crashed the backward pass. `--other` with no `--model` and no configured models matched a pair with no first model and reported 0 poles. The search's checks for a unit with no match are gone, since `k` is at least 1.
|
|
160
|
+
- The interference report no longer fails on a corpus shorter than its sample (#5909). `sample_windows` keeps the whole windows that the corpus holds. A corpus shorter than one window is refused, with a message that names it.
|
|
161
|
+
- **The `explain` skill records the explanation before the answer experiment** (#5964). The answer experiment's proposer starts from the recorded explanation, so it failed when the record came last. Now the skill records at the mechanism level, then runs the answer experiment, then adds the narration, which also reads the answer experiment.
|
|
162
|
+
- **`explain` lands its record when the loop worktree was deleted, and keeps it when landing fails** (#5965). Git still lists a worktree whose folder was deleted, and refused to add it again. Now the loop adds it with `-f`. `explain --record` writes the record before it lands. If landing fails, the record stays, with its narration, and the error says how to land it later with `explain-share`.
|
|
163
|
+
- **An explanation names the model that narrated it** (#5966). An `external/` narrator, such as the `explanation-narrator` subagent, now puts its model ID in its answer. The record stores `external/<that ID>` as `narrator_model`, not the placeholder `external/claude-code`.
|
|
164
|
+
- **The experiment loop keeps branches that other worktrees have** (#6039). Before each experiment, `reset` drops old `experiment/*` branches. It now skips a branch that a worktree has checked out, which git refuses to delete. A stale worktree had stopped every experiment of an `explain --run`.
|
|
165
|
+
- **Posts to X carry their figures again.** The poster downloaded each figure with Python's default user agent, which the site's CDN refuses with 403, so posts went out with text alone. It now sends a named user agent. A failed upload now fails the post, and the deploy reports it, in place of posting the text alone (`openinterpretability/social/poster.py`, #6072).
|
|
166
|
+
- The rebuilt-corpus cache refuses a record's corpus hash that isn't a SHA-256, so the hash can't name a file outside the cache. A paper page links its alphaXiv URL only when the URL matches the alphaXiv form (#6393).
|
|
167
|
+
- **Evidence branches only gain blobs** (#6166). `evidence_branch.push` used to replace `evidence/<branch>`. A second revision of one neuron reuses the experiment branch, so its push could drop a merged record's blob before the deploy had uploaded it. Then every code PR failed the experiment-records check. The push now keeps the blobs that the branch already holds, and leases on the commit that it read. If another push lands first, it reads the branch again.
|
|
168
|
+
|
|
16
169
|
## [0.4.0] - 2026-11-21
|
|
17
170
|
|
|
18
171
|
Ships with protocol version **0.10**.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: open-interpretability
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Open Interpretability: an agent-run mechanistic interpretability project, with an audited registry of native neurons in open-weight models.
|
|
5
|
+
Project-URL: Homepage, https://open-interpretability.com/
|
|
6
|
+
Project-URL: Repository, https://github.com/8W9aG/openinterpretability
|
|
7
|
+
Project-URL: X, https://x.com/openinterpret
|
|
8
|
+
Author-email: Will Sackfield <will.sackfield+openinterpretability@gmail.com>
|
|
9
|
+
Maintainer-email: Open Interpretability <contact@open-interpretability.com>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Requires-Dist: accelerate>=0.30.0
|
|
16
|
+
Requires-Dist: boto3>=1.34.0
|
|
17
|
+
Requires-Dist: click>=8.1.0
|
|
18
|
+
Requires-Dist: coremltools>=9.0; sys_platform == 'darwin' and platform_machine == 'arm64'
|
|
19
|
+
Requires-Dist: duckdb>=1.0.0
|
|
20
|
+
Requires-Dist: fasttext-predict>=0.9.2
|
|
21
|
+
Requires-Dist: instructor>=1.3.0
|
|
22
|
+
Requires-Dist: jinja2>=3.1.3
|
|
23
|
+
Requires-Dist: latex2mathml>=3.81.1
|
|
24
|
+
Requires-Dist: litellm>=1.40.0
|
|
25
|
+
Requires-Dist: magika<2,>=1.0.3
|
|
26
|
+
Requires-Dist: markdown-it-py>=4.0
|
|
27
|
+
Requires-Dist: mdit-py-plugins>=0.6.1
|
|
28
|
+
Requires-Dist: nltk>=3.8
|
|
29
|
+
Requires-Dist: presidio-analyzer>=2.2
|
|
30
|
+
Requires-Dist: pyarrow>=26.0.1
|
|
31
|
+
Requires-Dist: pydantic>=2.7.0
|
|
32
|
+
Requires-Dist: spacy-curated-transformers<1,>=0.3
|
|
33
|
+
Requires-Dist: tldextract>=5.1
|
|
34
|
+
Requires-Dist: torch>=2.2.0
|
|
35
|
+
Requires-Dist: transformers>=5.22.2
|
|
36
|
+
Requires-Dist: tree-sitter-bash>=0.25.1
|
|
37
|
+
Requires-Dist: tree-sitter-c-sharp>=0.23.5
|
|
38
|
+
Requires-Dist: tree-sitter-c>=0.24.2
|
|
39
|
+
Requires-Dist: tree-sitter-cpp>=0.23.4
|
|
40
|
+
Requires-Dist: tree-sitter-go>=0.25.0
|
|
41
|
+
Requires-Dist: tree-sitter-haskell>=0.24.1
|
|
42
|
+
Requires-Dist: tree-sitter-java>=0.23.5
|
|
43
|
+
Requires-Dist: tree-sitter-javascript>=0.25.0
|
|
44
|
+
Requires-Dist: tree-sitter-lua>=0.5.0
|
|
45
|
+
Requires-Dist: tree-sitter-php>=0.25.1
|
|
46
|
+
Requires-Dist: tree-sitter-python>=0.25.0
|
|
47
|
+
Requires-Dist: tree-sitter-ruby>=0.23.1
|
|
48
|
+
Requires-Dist: tree-sitter-rust>=0.24.2
|
|
49
|
+
Requires-Dist: tree-sitter-scala>=0.26.11
|
|
50
|
+
Requires-Dist: tree-sitter-typescript>=0.23.2
|
|
51
|
+
Requires-Dist: tree-sitter>=0.26.1
|
|
52
|
+
Provides-Extra: map
|
|
53
|
+
Requires-Dist: igraph>=0.11; extra == 'map'
|
|
54
|
+
Requires-Dist: leidenalg>=0.10.2; extra == 'map'
|
|
55
|
+
Requires-Dist: sentence-transformers>=5.0; extra == 'map'
|
|
56
|
+
Requires-Dist: umap-learn>=0.5.7; extra == 'map'
|
|
57
|
+
Provides-Extra: mcp
|
|
58
|
+
Requires-Dist: mcp>=2.0; extra == 'mcp'
|
|
59
|
+
Provides-Extra: site
|
|
60
|
+
Requires-Dist: pagefind[bin]>=1.3.0; extra == 'site'
|
|
61
|
+
Description-Content-Type: text/markdown
|
|
62
|
+
|
|
63
|
+

|
|
64
|
+
|
|
65
|
+
# Open Interpretability
|
|
66
|
+
|
|
67
|
+
[](https://doi.org/10.5281/zenodo.24150022)
|
|
68
|
+
[](https://pypi.org/project/open-interpretability/)
|
|
69
|
+
|
|
70
|
+
An open project, run with agents, that explains the native neurons and attention heads of open-weight language models and publishes each result at **[open-interpretability.com](https://open-interpretability.com/)**.
|
|
71
|
+
|
|
72
|
+
## Before you start
|
|
73
|
+
|
|
74
|
+
You need [Git](https://git-scm.com/), [Python](https://www.python.org/) 3.11+, [uv](https://docs.astral.sh/uv/), [Claude Code](https://claude.com/claude-code) and the [GitHub CLI](https://cli.github.com/). Run `gh auth login` once, so the loop can fork the repository and open pull requests. A laptop CPU is enough.
|
|
75
|
+
|
|
76
|
+
## Run an experiment
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
gh repo fork 8W9aG/openinterpretability --clone
|
|
80
|
+
cd openinterpretability
|
|
81
|
+
claude "/loop /land-experiment"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Each experiment draws a neuron and proposes what it does. A different model then tries to break that claim, and the result goes in a pull request. The loop runs one experiment after another until you stop it.
|
|
85
|
+
|
|
86
|
+
## Explain an answer
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
uv run open-interpretability explain "The sun rises in the"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
It lists the units that carry the model's answer, says which of them the registry explains, and lists the experiments that would explain the rest. It reads `corpus.jsonl`, which [The scan corpus](docs/experiments.md#the-scan-corpus) says how to build.
|
|
93
|
+
|
|
94
|
+
## More
|
|
95
|
+
|
|
96
|
+
- [docs/experiments.md](docs/experiments.md): what you need, other ways to run, API keys, and every option.
|
|
97
|
+
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
98
|
+
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
99
|
+
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
|
100
|
+
- [CITATION.cff](CITATION.cff): how to cite. The code is under [MIT](LICENSE), and the records under [CC-BY-4.0](wiki/LICENSE.md).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Open Interpretability
|
|
4
|
+
|
|
5
|
+
[](https://doi.org/10.5281/zenodo.24150022)
|
|
6
|
+
[](https://pypi.org/project/open-interpretability/)
|
|
7
|
+
|
|
8
|
+
An open project, run with agents, that explains the native neurons and attention heads of open-weight language models and publishes each result at **[open-interpretability.com](https://open-interpretability.com/)**.
|
|
9
|
+
|
|
10
|
+
## Before you start
|
|
11
|
+
|
|
12
|
+
You need [Git](https://git-scm.com/), [Python](https://www.python.org/) 3.11+, [uv](https://docs.astral.sh/uv/), [Claude Code](https://claude.com/claude-code) and the [GitHub CLI](https://cli.github.com/). Run `gh auth login` once, so the loop can fork the repository and open pull requests. A laptop CPU is enough.
|
|
13
|
+
|
|
14
|
+
## Run an experiment
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
gh repo fork 8W9aG/openinterpretability --clone
|
|
18
|
+
cd openinterpretability
|
|
19
|
+
claude "/loop /land-experiment"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Each experiment draws a neuron and proposes what it does. A different model then tries to break that claim, and the result goes in a pull request. The loop runs one experiment after another until you stop it.
|
|
23
|
+
|
|
24
|
+
## Explain an answer
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
uv run open-interpretability explain "The sun rises in the"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
It lists the units that carry the model's answer, says which of them the registry explains, and lists the experiments that would explain the rest. It reads `corpus.jsonl`, which [The scan corpus](docs/experiments.md#the-scan-corpus) says how to build.
|
|
31
|
+
|
|
32
|
+
## More
|
|
33
|
+
|
|
34
|
+
- [docs/experiments.md](docs/experiments.md): what you need, other ways to run, API keys, and every option.
|
|
35
|
+
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
36
|
+
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
37
|
+
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
|
38
|
+
- [CITATION.cff](CITATION.cff): how to cite. The code is under [MIT](LICENSE), and the records under [CC-BY-4.0](wiki/LICENSE.md).
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""labinacan: the parts of an autoresearch project that don't depend on its research focus.
|
|
2
|
+
|
|
3
|
+
A project builds its site, papers, posts and literature reviews with this package, and
|
|
4
|
+
keeps its own research code beside it (#6207). This repository is one such project.
|
|
5
|
+
``labinacan/`` sits at the path it has in the template repository, ``8W9aG/labinacan``, so
|
|
6
|
+
that this repository can merge from it. It imports nothing from the project around it.
|
|
7
|
+
"""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Where a project's on-disk caches live (#6628)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def cache_root(env: str, name: str, base: Path) -> Path | None:
|
|
10
|
+
"""``$<env>``, else ``<base>/<name>``. ``None`` when ``$<env>`` turns the cache off.
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
env: The environment variable that moves the cache, or turns it off.
|
|
14
|
+
name: The cache's folder in ``base``.
|
|
15
|
+
base: The project's cache folder.
|
|
16
|
+
|
|
17
|
+
Returns:
|
|
18
|
+
The cache's folder, or ``None`` when it is off.
|
|
19
|
+
|
|
20
|
+
Examples:
|
|
21
|
+
>>> cache_root("LAB_NO_SUCH_CACHE", "pii", Path("/c")).as_posix()
|
|
22
|
+
'/c/pii'
|
|
23
|
+
"""
|
|
24
|
+
value = os.environ.get(env)
|
|
25
|
+
if value is not None:
|
|
26
|
+
return None if value.lower() in ("", "0", "off", "false") else Path(value)
|
|
27
|
+
return base / name
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Data files that labinacan reads at run time (#6628)."""
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"""Progress lines with a rate and the time left, for steps that can run for hours.
|
|
2
|
+
|
|
3
|
+
A scan or an attribution on the CPU can take hours for a model above about 1B parameters
|
|
4
|
+
(issue #3971). Without output, a slow run looks the same as a stopped one. A
|
|
5
|
+
:class:`Progress` prints one line to stderr at most once every :data:`INTERVAL` seconds,
|
|
6
|
+
so a fast run prints nothing new.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
import os
|
|
12
|
+
import sys
|
|
13
|
+
import time
|
|
14
|
+
from dataclasses import dataclass, field
|
|
15
|
+
|
|
16
|
+
INTERVAL = float(os.environ.get("OPENINTERPRETABILITY_PROGRESS_SECONDS", "60"))
|
|
17
|
+
"""Seconds between two progress lines (``$OPENINTERPRETABILITY_PROGRESS_SECONDS``)."""
|
|
18
|
+
TTY_INTERVAL = 0.2 # seconds between two redraws of a bar on a terminal
|
|
19
|
+
BAR_WIDTH = 20
|
|
20
|
+
QUIET_ENV = "OPENINTERPRETABILITY_QUIET" # set by `explain --quiet`: no bars, no stage lines
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def quiet() -> bool:
|
|
24
|
+
"""Whether ``$OPENINTERPRETABILITY_QUIET`` turns progress off (#5830).
|
|
25
|
+
|
|
26
|
+
Returns:
|
|
27
|
+
True when the variable is set to anything but "" or "0".
|
|
28
|
+
|
|
29
|
+
Examples:
|
|
30
|
+
>>> os.environ[QUIET_ENV] = "1"
|
|
31
|
+
>>> quiet()
|
|
32
|
+
True
|
|
33
|
+
>>> del os.environ[QUIET_ENV]
|
|
34
|
+
>>> quiet()
|
|
35
|
+
False
|
|
36
|
+
"""
|
|
37
|
+
return os.environ.get(QUIET_ENV, "") not in ("", "0")
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def bar(done: int, total: int, width: int = BAR_WIDTH) -> str:
|
|
41
|
+
"""A text bar for ``done`` of ``total``.
|
|
42
|
+
|
|
43
|
+
Args:
|
|
44
|
+
done: The items done.
|
|
45
|
+
total: All the items.
|
|
46
|
+
width: The bar's width in characters, inside its brackets.
|
|
47
|
+
|
|
48
|
+
Returns:
|
|
49
|
+
``[####......]``, filled in proportion.
|
|
50
|
+
|
|
51
|
+
Examples:
|
|
52
|
+
>>> bar(5, 10, width=10)
|
|
53
|
+
'[#####.....]'
|
|
54
|
+
>>> bar(3, 0, width=4)
|
|
55
|
+
'[####]'
|
|
56
|
+
"""
|
|
57
|
+
filled = width if total <= 0 else min(width, round(width * done / total))
|
|
58
|
+
return "[" + "#" * filled + "." * (width - filled) + "]"
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _duration(seconds: float) -> str:
|
|
62
|
+
if seconds < 90:
|
|
63
|
+
return f"{seconds:.0f} s"
|
|
64
|
+
if seconds < 90 * 60:
|
|
65
|
+
return f"{seconds / 60:.0f} min"
|
|
66
|
+
return f"{seconds / 3600:.1f} h"
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@dataclass
|
|
70
|
+
class Progress:
|
|
71
|
+
"""Counts the items of one step, and says how far it is at most once an interval."""
|
|
72
|
+
|
|
73
|
+
what: str # for example "pieces scanned"
|
|
74
|
+
total: int
|
|
75
|
+
interval: float = INTERVAL
|
|
76
|
+
clock: object = time.monotonic
|
|
77
|
+
done: int = 0
|
|
78
|
+
tty: bool | None = None # None: draw a bar when stderr is a terminal (#5830)
|
|
79
|
+
_start: float = field(default=0.0, init=False)
|
|
80
|
+
_last: float = field(default=0.0, init=False)
|
|
81
|
+
|
|
82
|
+
def __post_init__(self) -> None:
|
|
83
|
+
self._start = self._last = self.clock()
|
|
84
|
+
|
|
85
|
+
def line(self) -> str:
|
|
86
|
+
"""``what: done/total, elapsed, about N left`` for the count so far."""
|
|
87
|
+
elapsed = self.clock() - self._start
|
|
88
|
+
text = f"{self.what}: {self.done}/{self.total}, {_duration(elapsed)} so far"
|
|
89
|
+
if self.done and self.total > self.done:
|
|
90
|
+
left = elapsed / self.done * (self.total - self.done)
|
|
91
|
+
text += f", about {_duration(left)} left"
|
|
92
|
+
return text
|
|
93
|
+
|
|
94
|
+
def step(self, n: int = 1) -> str | None:
|
|
95
|
+
"""Count ``n`` more items. Print and return a line if an interval has passed.
|
|
96
|
+
|
|
97
|
+
On a terminal the line is a bar, redrawn in place every :data:`TTY_INTERVAL`
|
|
98
|
+
seconds and at the end. Elsewhere it is a plain line every ``interval`` seconds, so
|
|
99
|
+
a log or an agent sees it. :func:`quiet` turns both off.
|
|
100
|
+
"""
|
|
101
|
+
self.done += n
|
|
102
|
+
if quiet():
|
|
103
|
+
return None
|
|
104
|
+
now = self.clock()
|
|
105
|
+
tty = sys.stderr.isatty() if self.tty is None else self.tty
|
|
106
|
+
end = self.done >= self.total
|
|
107
|
+
if now - self._last < (TTY_INTERVAL if tty else self.interval) and not (tty and end):
|
|
108
|
+
return None
|
|
109
|
+
self._last = now
|
|
110
|
+
text = self.line()
|
|
111
|
+
if tty:
|
|
112
|
+
print(f"\r{bar(self.done, self.total)} {text}", end="\n" if end else "",
|
|
113
|
+
file=sys.stderr, flush=True) # fmt: skip
|
|
114
|
+
else:
|
|
115
|
+
print(text, file=sys.stderr, flush=True)
|
|
116
|
+
return text
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@dataclass
|
|
120
|
+
class Stages:
|
|
121
|
+
"""The stages of one command, each said as ``[i/N] what`` when it starts (#5830)."""
|
|
122
|
+
|
|
123
|
+
total: int
|
|
124
|
+
done: int = 0
|
|
125
|
+
|
|
126
|
+
def next(self, what: str) -> str:
|
|
127
|
+
"""Start the next stage, and say so on stderr unless :func:`quiet`.
|
|
128
|
+
|
|
129
|
+
Args:
|
|
130
|
+
what: The stage, for example "Measuring the coverage".
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
The line.
|
|
134
|
+
|
|
135
|
+
Examples:
|
|
136
|
+
>>> stages = Stages(3)
|
|
137
|
+
>>> stages.next("Reading the corpus")
|
|
138
|
+
'[1/3] Reading the corpus'
|
|
139
|
+
"""
|
|
140
|
+
self.done += 1
|
|
141
|
+
text = f"[{self.done}/{self.total}] {what}"
|
|
142
|
+
if not quiet():
|
|
143
|
+
print(text, file=sys.stderr, flush=True)
|
|
144
|
+
return text
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"""Find personal data and offensive words in text, for scan labels and the site.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
removes personal data and masks offensive examples in what it publishes
|
|
7
|
-
(``openinterpretability/builder``).
|
|
3
|
+
A project's experiments read text unchanged. A project can label what this module finds,
|
|
4
|
+
for example to say how much of a unit's activation personal data explains. Separately, a
|
|
5
|
+
site build removes personal data and masks offensive examples in what it publishes.
|
|
8
6
|
|
|
9
7
|
The search for personal data uses Microsoft Presidio's pattern recognisers, with rules of
|
|
10
8
|
our own on top. They need no model and no network. It finds emails, phone numbers, payment
|
|
11
9
|
cards, IBANs, US SSNs and ITINs, UK NHS numbers, crypto wallets and public IP addresses. It
|
|
12
|
-
does NOT find names or postal addresses.
|
|
13
|
-
|
|
10
|
+
does NOT find names or postal addresses. :func:`address_matches` finds postal addresses
|
|
11
|
+
as a separate label, which a site does not remove.
|
|
14
12
|
|
|
15
|
-
The search for offensive words is a short list (``
|
|
13
|
+
The search for offensive words is a short list (``labinacan/data/offensive_words.txt``),
|
|
16
14
|
not a classifier. It must be fast for a site build, and needs no model. The list holds only
|
|
17
15
|
words that are rarely innocent. It includes words for sexual violence, so news reports can
|
|
18
16
|
match. A general profanity list flagged 12% of distinct examples, on words such as "god",
|
|
@@ -114,7 +112,7 @@ def _domains():
|
|
|
114
112
|
"""
|
|
115
113
|
import tldextract
|
|
116
114
|
|
|
117
|
-
with as_file(files("
|
|
115
|
+
with as_file(files("labinacan.data").joinpath(_SUFFIX_LIST)) as path:
|
|
118
116
|
url = path.resolve().as_uri()
|
|
119
117
|
# fallback_to_snapshot=False: fail, not silently read the list in the installed package.
|
|
120
118
|
return tldextract.TLDExtract(
|
|
@@ -217,7 +215,7 @@ def address_matches(text: str) -> tuple[tuple[int, int, str], ...]:
|
|
|
217
215
|
|
|
218
216
|
|
|
219
217
|
def _data(name: str) -> str:
|
|
220
|
-
return files("
|
|
218
|
+
return files("labinacan.data").joinpath(name).read_text(encoding="utf-8")
|
|
221
219
|
|
|
222
220
|
|
|
223
221
|
@cache
|
|
@@ -232,11 +230,24 @@ def is_offensive(text: str) -> bool:
|
|
|
232
230
|
return _offensive_pattern().search(text) is not None
|
|
233
231
|
|
|
234
232
|
|
|
235
|
-
def detector() -> str:
|
|
236
|
-
"""Name the package versions and the suffix list that fix what a search finds.
|
|
233
|
+
def detector(name: str) -> str:
|
|
234
|
+
"""Name the package versions and the suffix list that fix what a search finds.
|
|
235
|
+
|
|
236
|
+
Records store this string, so a project keeps one name for the search (#6628).
|
|
237
|
+
|
|
238
|
+
Args:
|
|
239
|
+
name: The project's name for this search, such as ``openinterpretability.sensitive``.
|
|
240
|
+
|
|
241
|
+
Returns:
|
|
242
|
+
The name, then the package versions and the suffix list's SHA-256 prefix.
|
|
243
|
+
|
|
244
|
+
Examples:
|
|
245
|
+
>>> detector("lab.sensitive").startswith("lab.sensitive (presidio-analyzer ")
|
|
246
|
+
True
|
|
247
|
+
"""
|
|
237
248
|
names = ("presidio-analyzer", "phonenumbers", "tldextract")
|
|
238
249
|
packages = ", ".join(f"{p} {version(p)}" for p in names)
|
|
239
|
-
return f"
|
|
250
|
+
return f"{name} ({packages}; suffix list {_sha12(_data(_SUFFIX_LIST))})"
|
|
240
251
|
|
|
241
252
|
|
|
242
253
|
def _sha12(text: str) -> str:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""The parts of the site builder that any autoresearch project uses (#6628)."""
|