open-interpretability 0.1.0__tar.gz → 0.2.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.1.0 → open_interpretability-0.2.0}/CHANGELOG.md +84 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/PKG-INFO +6 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/__init__.py +1 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/benchmark.py +0 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/brand/logo.svg +18 -18
- open_interpretability-0.2.0/openinterpretability/builder/brand/mark-32.png +0 -0
- open_interpretability-0.2.0/openinterpretability/builder/brand/mark.svg +19 -0
- open_interpretability-0.2.0/openinterpretability/builder/brand/og.png +0 -0
- open_interpretability-0.2.0/openinterpretability/builder/brand.py +82 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/charts.py +1 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/circuit_pages.py +24 -5
- open_interpretability-0.2.0/openinterpretability/builder/circuit_units.py +275 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/compiler.py +39 -39
- open_interpretability-0.2.0/openinterpretability/builder/concept_map_view.py +95 -0
- open_interpretability-0.2.0/openinterpretability/builder/contents.py +111 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/corpora.py +5 -43
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/coverage.py +22 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/experiment.py +9 -1
- open_interpretability-0.2.0/openinterpretability/builder/explanation_figures.py +371 -0
- open_interpretability-0.2.0/openinterpretability/builder/explanation_pages.py +224 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/GUST-FONT-LICENSE.txt +30 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/OFL.txt +103 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/README.md +17 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/cmu-serif-500-italic.woff2 +0 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/cmu-serif-500-roman.woff2 +0 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/cmu-serif-700-italic.woff2 +0 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/cmu-serif-700-roman.woff2 +0 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/cmu-typewriter-text-500-roman.woff2 +0 -0
- open_interpretability-0.2.0/openinterpretability/builder/fonts/latinmodern-math.otf +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/hrefs.py +10 -0
- open_interpretability-0.2.0/openinterpretability/builder/literature_pages.py +194 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/model_facts.py +19 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/palette.py +10 -0
- open_interpretability-0.2.0/openinterpretability/builder/paper_pdf.py +168 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/parallel.py +30 -4
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/parquet_export.py +60 -29
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/pieces.py +1 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/pii.py +1 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/research.py +57 -18
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/sections.py +14 -5
- open_interpretability-0.2.0/openinterpretability/builder/slim.py +104 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/standing.py +59 -6
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/stopped.py +17 -3
- open_interpretability-0.2.0/openinterpretability/builder/stops.py +36 -0
- open_interpretability-0.2.0/openinterpretability/builder/taxonomy_view.py +45 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/_circuit.html +39 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/_concept_map.html +35 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_experiment.html +2 -2
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_macros.html +34 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/_taxonomy.html +170 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/about.html +13 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/circuit.html +38 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/circuit_unit.html +88 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/circuits.html +72 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/explanation.html +49 -4
- open_interpretability-0.2.0/openinterpretability/builder/templates/explanation_prompt.html +49 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/explanations.html +14 -0
- open_interpretability-0.2.0/openinterpretability/builder/templates/hub.html +44 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/index.html +2 -84
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/layer.html +3 -3
- open_interpretability-0.2.0/openinterpretability/builder/templates/literature.html +39 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/model.html +44 -2
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/models.html +5 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/neuron.html +24 -40
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/paper.html +3 -9
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/paper_print.html +6 -5
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/research.html +3 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/tree.py +16 -2
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/wiki.py +24 -6
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/circuit_ids.py +13 -12
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli.py +1 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_build.py +43 -9
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_explain.py +195 -69
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_loop.py +21 -7
- open_interpretability-0.2.0/openinterpretability/cli_map.py +44 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_memory.py +1 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_reproduce.py +12 -5
- open_interpretability-0.2.0/openinterpretability/concept_map.py +238 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/evidence.py +38 -2
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/explanation.py +23 -0
- open_interpretability-0.2.0/openinterpretability/core/explanation_records.py +238 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/profiles.py +7 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/schemas.py +1 -1
- open_interpretability-0.2.0/openinterpretability/core/taxonomy.py +168 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/draw_steps.py +22 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/evidence.py +26 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/experiment_loop.py +49 -4
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/explain.py +7 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/explain_coverage.py +70 -3
- open_interpretability-0.2.0/openinterpretability/explain_figure_data.py +119 -0
- open_interpretability-0.2.0/openinterpretability/explain_land.py +89 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/explain_narrate.py +4 -1
- open_interpretability-0.2.0/openinterpretability/explain_reuse.py +76 -0
- open_interpretability-0.2.0/openinterpretability/explain_run.py +96 -0
- open_interpretability-0.2.0/openinterpretability/explanation_targets.py +275 -0
- open_interpretability-0.2.0/openinterpretability/figures/__init__.py +5 -0
- open_interpretability-0.2.0/openinterpretability/figures/motion.py +84 -0
- open_interpretability-0.2.0/openinterpretability/figures/svg.py +279 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/half_precision.py +16 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/circuit_measures.py +11 -6
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/dead.py +22 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/heads.py +20 -5
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/memory.py +0 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/units.py +10 -3
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/hubs.py +33 -1
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner.py +16 -1
- open_interpretability-0.2.0/openinterpretability/planner_circuits.py +109 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_explanations.py +2 -9
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_states.py +30 -9
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/reproduce.py +66 -28
- open_interpretability-0.2.0/openinterpretability/reproduce_policy.py +21 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/pyproject.toml +11 -0
- open_interpretability-0.1.0/openinterpretability/builder/brand/mark-32.png +0 -0
- open_interpretability-0.1.0/openinterpretability/builder/brand/mark.svg +0 -19
- open_interpretability-0.1.0/openinterpretability/builder/brand/og.png +0 -0
- open_interpretability-0.1.0/openinterpretability/builder/brand.py +0 -27
- open_interpretability-0.1.0/openinterpretability/builder/explanation_pages.py +0 -83
- open_interpretability-0.1.0/openinterpretability/builder/paper_pdf.py +0 -69
- open_interpretability-0.1.0/openinterpretability/builder/stops.py +0 -30
- open_interpretability-0.1.0/openinterpretability/builder/templates/_circuit.html +0 -8
- open_interpretability-0.1.0/openinterpretability/builder/templates/circuit.html +0 -64
- open_interpretability-0.1.0/openinterpretability/builder/templates/circuits.html +0 -46
- open_interpretability-0.1.0/openinterpretability/builder/templates/explanations.html +0 -27
- open_interpretability-0.1.0/openinterpretability/builder/templates/hub.html +0 -16
- open_interpretability-0.1.0/openinterpretability/core/explanation_records.py +0 -137
- open_interpretability-0.1.0/openinterpretability/explanation_targets.py +0 -124
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/.gitignore +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/CITATION.cff +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/LICENSE +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/README.md +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/__init__.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/base.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/judge.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/narrator.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/probe_hints.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/proposer.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/proposer_profiles.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/review_measurements.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agents/reviewer.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/agreement.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/audit_options.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/baseline.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/blends.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/__init__.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/agents.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/aligned.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/changelog_page.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/circuits.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/css.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/dashboard.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/disk_memo.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/feeds.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/heat.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/learned_baseline.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/neuronpedia_export.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/pending.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/recent.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/registry_stats.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/significance.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/sister_graph.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/statuses.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/superpositions.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_agent_role_cells.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_causal_chart.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_dashboard.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_patchscope.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_prior_art.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_prose.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_specificity.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_steering.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_superposition.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_vocab_chart.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/_wiring.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/agent.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/agents.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/base.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/changelog.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/experiment.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/learned-baseline.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/redirect.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/user.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/users.html +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/wiki/experiment.md +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/wiki/index.md +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/wiki/neuron.md +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/templates/wiki/stop.md +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/users.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/checks.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/circuit_checks.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/circuit_review.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_baseline.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_benchmark.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_check.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_circuits.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_concepts.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_corpus.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_costs.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_coverage.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_crossref.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_errata.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_evidence.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_evidence_store.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_neuronpedia.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_pause.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_pole_effects.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_probing.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_provider.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_registry.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_review.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_scan.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_score.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_sisters.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_submission.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_superpositions.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/cli_wiring.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/codeid.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/concepts.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/__init__.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/agent_names.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/attribution.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/cache_dirs.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/causal.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/circuit_records.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/confounds.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/contributors.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/corpora.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/costs.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/draws.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/errata.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/examples.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/exceptions.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/fence.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/heavy_lock.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/identifiers.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/isolation.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/ledger.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/legacy_names.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/licenses.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/manifold.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/partners.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/patchscope.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/paths.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/pause.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/pricing.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/prior_art.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/probing.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/project.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/run_environment.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/specificity.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/stats.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/steering.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/strict.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/takedowns.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/transcripts.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/core/wiring.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/corpus.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/corpus_cache.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/corpus_layouts.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/corpus_presets.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/corpus_rebuild.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/coverage.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/crossref.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/data/__init__.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/data/offensive_words.txt +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/data/providers.toml +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/data/public_suffix_list.dat +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/data/sample_corpus.txt +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/errata_checks.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/evidence_branch.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/evidence_lenses.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/explain_groups.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/explain_plan.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/__init__.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/ane/__init__.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/ane/backend.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/ane/cache.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/ane/chunks.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/ane/convert.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/ane/forward.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/ane/qualified.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/annotations.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/attribution.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/causal.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/confounds.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/covariance.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/cpu_speed.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/crossref.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/cuda_devices.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/devices.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/dictionaries.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/dreaming.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/environment.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/explanation_scores.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/features.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/first_position.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/hooks.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/input_attribution.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/jlens.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/layer_cache.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/layer_major.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/lookahead.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/manifold.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/moe.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/patcher.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/patchscope.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/prepare.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/probing.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/progress.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/scan.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/scan_backend.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/sister_passes.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/sisters.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/sites.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/specificity.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/steering.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/superpositions.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/wiring.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/harness/wiring_activations.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/langid.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/loop_bugs.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/model_revisions.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/names.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/neuronpedia_baseline.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/neuronpedia_review.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_claims.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_effects.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_heads.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_models.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_sisters.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/planner_superpositions.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/pole_effects.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/prior_art.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/providers.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/revision.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/runner_cache.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/score_controls.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/sensitive.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/show.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/signing.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/sisters.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/superposition_finders.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/sync/__init__.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/sync/r2.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/syntax.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/takedown_checks.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/toxicity.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/verdict_regression.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/wiring_backfill.py +0 -0
- {open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/wordnet.py +0 -0
|
@@ -13,6 +13,90 @@ Changes waiting for the next release are files in [changelog.d/](changelog.d/REA
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [0.2.0] - 2026-11-18
|
|
17
|
+
|
|
18
|
+
Ships with protocol version **0.10** (was 0.9).
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- Every paper is a **preprint** or **published**, and says which in a status line under its abstract. The Research pages show it beside the title. A preprint names the open issues that would still change it. A published paper doesn't change, and later corrections go in an *Addenda* section at its end. Each paper has a `CITATION.cff`. `scripts/papers.py` writes the files and publishes a paper. Its `check`, part of `make lint`, fails on a missing status or citation, or on a changed published paper. All 7 papers are preprints today, each with work left (#3150).
|
|
23
|
+
- `make lint` runs vulture (`make vulture`), so new unused code fails. The names that vulture can't see are used are kept in `vulture_whitelist.py`, under the reason for each. Examples are Click commands, validators, fields and names read only by templates. `docs/development.md` says what to check before deleting what it flags. Two unused constants are gone (`benchmark.DEFAULT_DIR` and `harness.memory.MEMORY_MODES`), with one from a script. `AblationResult.mean_recovery` now has a test. ruff's unreachable-code rule waits for a ruff release that has it (#4459) (#3164).
|
|
24
|
+
- **A concept map of a model's neurons is feasible** (`docs/analyses/concept-map-feasibility.md`, #3290). Each neuron is placed by the meaning of the text it fires on. The study used 821 GPT-2 and 846 Qwen2.5-0.5B studied neurons. A neuron's context vector picks out its own explanation first 11–17% of the time, against 0.12% by chance. Leiden clusters group neurons with similar explanations across layers, at 56% against 22% for random pairs on Qwen2.5-0.5B. The study recommends a map of the studied neurons first, and a full-model map only once that shows use.
|
|
25
|
+
- **The literature review is on the site** (#3293), as a subsection of Research with a page for each review. Each Markdown file in `docs/literature/` becomes a page under `research/literature/`, rendered as the papers are. Links between reviews stay on the site, and the Research index links the section.
|
|
26
|
+
- The literature index has a map of the reviewed papers. Papers about similar things sit close together, and each point's shape and colour give its status. `scripts/literature_map.py` lays the map out from each review's title and summary (#3294).
|
|
27
|
+
- **Literature review: activation inversion** (#3427). `docs/literature/activation-inversion.md` reviews De Schamphelaere et al. (2026), a generator trained to write text that drives a chosen residual direction. It is not applicable to our models. It reports EPO, which our dreaming uses, well below a trained inverter, so dreaming's miss rate is a floor.
|
|
28
|
+
- The About page has a section, *What the registry studies*. It defines each concept: model, layer, neuron, pole, head, superposition, dictionary feature, circuit, hub, experiment and record. For each, it says what it is part of, whether it is audited, its identifier form and its sister in another model. Three schematic figures show how they nest, a circuit with a hub, and a sister. `openinterpretability/core/taxonomy.py` is the one definition, and `docs/PROTOCOL.md` §1 has the same table, written by `scripts/taxonomy_table.py` (#3703).
|
|
29
|
+
- Long site pages have a table of contents. A page with five or more top-level sections gets one: experiment pages, papers, the home page and About. It is a collapsed list under the title, and a fixed list in the margin on wide screens. `openinterpretability/builder/contents.py` builds it from each page's own headings, and gives each heading a stable id. Papers lose their separate contents list (#3756).
|
|
30
|
+
- Explanations are part of the registry's taxonomy, with a figure on the About page and a row in `docs/PROTOCOL.md` §1. Each model page with explanations has an *Explanations* table. Each row links to its explanation, with the date, the prompt and answer, the share explained and whether it is stale. The Explanations index and the model pages share one row macro (#4206).
|
|
31
|
+
- **`open-interpretability next` draws circuits** (#4286). A circuit in `data/circuits/` with no experiment gets a `circuit` draw. So does a stale one, whose members changed since its newest experiment, weighted by the share that changed. The draw's steps write the task, propose the hypothesis and review it on another model's probes. `open-interpretability loop` draws again over a circuit draw, since its API agents can't write the task. Hubs get no draw. `choose-next-experiment` lists the `circuit` and `explanation` draws.
|
|
32
|
+
- Each registry circuit has its own page, `models/<model>/circuits/C<n>.html`. It shows the circuit's members with their status, where it sits, the wiring between members, its lineage and stability, and its sub-circuits. Each task hypothesis is listed with its standing and experiments. A stale experiment names the units that joined or left since it ran. Hub pages show the center's standing, its active share and whether it is default-on. They also show its output norm against its layer, and the circuits its neighbours belong to. The circuits index lists the registry circuits first, and the connected groups below them as *wiring groups* (#4287).
|
|
33
|
+
- Each model page has a concept map of its studied neurons. Each studied pole is a point, placed by the meaning of the text it fires on. A line joins the two poles of a neuron. Points link to their unit pages and show their status by shape as well as colour. Clusters are named only from their VERIFIED members' explanations, by the words that set them apart. `open-interpretability map <model>` builds the map with the new `map` extra, and the maps of the four configured models are in `data/concept-maps/` (#4422).
|
|
34
|
+
- `open-interpretability explain` names the hubs among the units that carry the answer. A top pole or head that is a hub's center (`data/hubs/<model>.jsonl`) gets the hub's id and its page on the site. It also gets the facts that show whether it may be an artefact. These are its active share, whether it is default-on, and its output norm against its layer. The hub is in the text output, `--json`, the narrator's evidence and the explanation record (`ExplainedUnit.hub`). On GPT-2's "John gave a drink to", the hub heads L11/H10 and L6/H3 are among the top units (#4472).
|
|
35
|
+
- `explain --record` lands the explanation record as its own PR, as an experiment lands. It goes on its own branch in the loop's worktree, passes `open-interpretability check`, opens a ready PR and merges on green. The PR body gives the explained share and the prompt coverage against random units. It also says what the run did, with links to the experiment PRs it landed. A second run on the same prompt and model updates its page rather than adding one. `--no-land` writes the record locally, as before (#4475).
|
|
36
|
+
- `explain --complete` takes a prompt to a published explanation in one command. It runs the plan to `--target`, narrates the long form and the paragraph, and lands the record as a PR. The text output ends with a line on what it reached. It gives the explained share, the share before the run and the prompt coverage against random units. Circuits still wait for an agent to write their task (#4488) (#4476).
|
|
37
|
+
- Each explanation page has figures, drawn at build time from data that `explain --record` stores in the record (`ExplanationRecord.figures`). The first is the attribution graph. Then come the logit waterfall and the coverage against random units. Then each top unit's strength along the prompt, and the answer's top tokens before and after ablation. Last are the groups. The graph builds layer by layer, and the coverage figure moves too. Each animated figure has a pause button and a static last frame, and it stops under reduced motion. No figure rests on colour alone, and each has a text alternative and a table. The paper figures' SVG and motion helpers moved into the package (`openinterpretability.figures`), so both draw with one system (#4479).
|
|
38
|
+
- The site marks broad units (#4545). A unit is broad when it is VERIFIED and active on at least half of its held-out windows (`BROAD_SHARE` in `core/explanation.py`). Its explanation is accurate but says little about any one text. The experiment page, the layer page and the explanation pages show a "broad" badge in words. The decision rule is unchanged.
|
|
39
|
+
- A failed **Deploy registry** run now opens an issue, `Deploy registry failed on main`, or comments on the one already open. The issue has the failed jobs and steps and the last 60 lines of each failed log. A later good deploy doesn't close it. A failure that goes away by itself is a flaky deploy, so the issue stays open until someone fixes the cause. `scripts/issue_state.py` accepts the issue as automatic (#4625).
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- `open-interpretability loop` prints a `loop:` line at each stage of an iteration: the draw, the claim, each step, posting, the wait for checks and the merge. Before, it printed nothing between the draw and the `RESULT` line. Long loops with no output now report their progress once a minute. These are the random sets of a circuit review, the gains and mean activations of `explain`, and the unit pages of `build`. `docs/development.md` states the rule (#3142).
|
|
44
|
+
- **The Research section lists papers newest first** (#3292). Each entry in `papers/README.md` now has the date the paper was first published, and the Research index shows it.
|
|
45
|
+
- A scan that stopped, dead or default-on, is listed with the unit's experiments, its outcome in place of a verdict. This covers random draws and chosen units. A neuron whose scans all stopped now has a page, linked from its layer and model maps. The home page's table of stops on units with no page is gone. `docs/PROTOCOL.md` says how a stop counts: no verdict, no standing, not an experiment, but its neuron is studied (#3297).
|
|
46
|
+
- Registry coverage moved from the home page to the model pages. The Models page has a *Loss effect kept* column, with the random-pole baseline beside it, or "—" for a model with no run. Each model page has a section with the model's total and a table by layer. The table gives the VERIFIED poles, the loss rise from mean ablation, the share kept and the random baseline. The home page points to them (#3837).
|
|
47
|
+
- The paper PDFs are set in Computer Modern, the LaTeX typeface of arXiv papers. That covers text, headings, page numbers, code and the figures' text. The fonts are bundled and embedded: CMU (SIL OFL) for text and code, and Latin Modern Math (GUST licence) for the symbols CMU lacks. `pdffonts` lists no system font in any paper's PDF. Superscript digits print as raised plain digits, as LaTeX sets them (#4307).
|
|
48
|
+
- The mark and logo are brighter. The squares of the small layer map are now the model layouts' own yellow, orange and blue. They sit on a dark tile, in place of white on emerald. The colours differ in lightness, not only in hue, and none is a green. `palette.py` holds them once (`MARK_HEX`), and the SVGs are drawn from it, with a test that the committed files match. The site's emerald accent stays, as the one hue no status or pole uses, so a link never reads as data (#4465).
|
|
49
|
+
- `explain --run` with no number runs the plan until the explained share reaches `--target`, or no work is left. `--run N` stops after N experiments too. Unit and superposition experiments run together, by the prompt coverage each would add. After each landed experiment, it measures the share again from the registry and prints it. At the start it says what is blocked, which circuits wait for an agent to write their task, and the most the run can reach. If the target is out of reach, the run stops there (#4473).
|
|
50
|
+
- `explain --run` explains the answer again after the run, from the registry as the run left it. The record, the narration, `--json` and the printed output all describe that final state. The record's new `run` field gives the explained share before and after, the experiments that landed, the PRs left open and why the run stopped. A run that stops early, on failures or a rate limit, still writes its record before the command exits with the loop's code. The record goes in the checkout that the command ran from, not the loop's worktree (#4474).
|
|
51
|
+
- **Breaking.** `explain --target` is now causal coverage: the share of the answer's log-probability that the explained units bring back, with every other unit mean-ablated. It is no longer a share of |attribution|, which counted pushes that cancel. The plan estimates how many experiments reach the target by a binary search of forward passes. On "The quick brown fox jumped over", Qwen2.5-0.5B needs about 418 for 25%, where the |attribution| plan said 55,238 for 80%. `explain --run` measures the coverage after each landed experiment. It counts the coverage only when it beats every random set of the same count. The output and the record lead with coverage, and the record stores its target (#4476).
|
|
52
|
+
- **Breaking.** Explanations are sub-units of a model, and a prompt is a page (#4503). Each explanation of a prompt is an experiment, with its own page at `models/<model>/explanations/<prompt id>/<UTC stamp>.html`. The prompt's page, `models/<model>/explanations/<prompt id>.html`, lists them all in a table, newest first. The old `explanations/<model>/<prompt id>.html` pages redirect. Explanation records gain `previous`, the explanation they build on, and `reused`.
|
|
53
|
+
- `explain --record`, `--run` and `--complete` look at the prompt's explanations first. If one already reaches the coverage target at the level asked for, the command runs nothing and writes nothing. If it reaches the target but lacks the level, no experiments run, and the new explanation only adds the level.
|
|
54
|
+
- **Breaking.** Protocol 0.10: a head scan now measures an attention head's strength above a floor (#4523). The floor is the median of `|W_O (z − z̄)|` over the scan's counted tokens, stored in `head_profile.strength_floor`. The strength is `max(0, |W_O (z − z̄)| − floor)`, so the active line sits at floor + 0.25 × (max − floor). Under 0.9, the line marked almost every token of a head active. One of 12 Pythia-70m heads was VERIFIED. Records without a floor keep the plain norm and their verdicts.
|
|
55
|
+
- Skills: broad early attention heads (#4546). `attention-head-audit` says how to explain a generic head that stays active on most text. The `neuron-proposer` reads it for heads, and `interpretability-illusions-review` says how to probe a broad hypothesis.
|
|
56
|
+
- `explain` plans its experiments greedily by joint coverage (#4558). Coverage doesn't add up, because units push the answer both ways. So at each step the plan adds the experiment that raises coverage most, together with the ones already picked. The picks come first in the plan and in `explain --run`, and the plan line names them. On Pythia-70m "The sun rises in the" → " sky", greedy picks reached 50% in two experiments. The old plan, by single gains in attribution order, estimated 203.
|
|
57
|
+
- The first erratum, in `wiki/errata.jsonl`, sets aside GPT-2 L11/N1071−'s record `20261109T085713Z`. Its scan stored peaks of 3.7 on a pole that can't exceed 0.170, so its evidence doesn't describe the pole. `reproduce` now skips it, and the nightly `--sample` run can't fail on it (#4581).
|
|
58
|
+
- **The site build uses less memory** (part of #4652). Changes:
|
|
59
|
+
- The build holds each record slim. It loads the top examples, the other pole, the confounds and the scored windows again from the record's file. It does so only while the unit's pages render, or while its batch of the Parquet export is written.
|
|
60
|
+
- The Parquet export builds its table in batches, and the statistics' private export leaves out `record_json`.
|
|
61
|
+
- Each claim is a hash, not the submission's JSON.
|
|
62
|
+
|
|
63
|
+
On one frozen `wiki/`, the one-job peak fell from 9.2 to 5.4 GiB. The output is byte-for-byte the same.
|
|
64
|
+
- **Standing: a failed rival no longer overturns a verified claim** (#4654). When a unit's newest hypothesis is not VERIFIED but an earlier hypothesis was, the unit is now CONTESTED, not REJECTED or NEEDS_REVISION. It does not count as verified while it is contested. A new hypothesis that reaches VERIFIED settles it. The unit page names both hypotheses, and the planner draws a revision for such a unit, not one more review. Standing reads verdicts and never changes one, so `PROTOCOL_VERSION` is unchanged. In the registry, 9 units changed from NEEDS_REVISION or REJECTED to CONTESTED.
|
|
65
|
+
- **Registry coverage refreshed on 2026-11-18.** There are 70 new layer rows, with these VERIFIED poles per model:
|
|
66
|
+
- Qwen2.5-0.5B: 329 poles, at most 1.8% of the loss recovered in any layer.
|
|
67
|
+
- Qwen2.5-1.5B: 50 poles, at most 0.4%.
|
|
68
|
+
- GPT-2: 188 poles, at most 13.2%.
|
|
69
|
+
- Pythia-70m: 60 poles, at most 4.0%.
|
|
70
|
+
- **Sister search refreshed for 0.2.0.** It added 156 rows and 47 new sisters. Most are Pythia-70m's newly verified poles, 45 rows against each of the other three models. The strongest:
|
|
71
|
+
- Pythia-70m L0/N447+ ↔ GPT-2 L0/N874+ (r = 0.98).
|
|
72
|
+
- Pythia-70m L0/N1518+ ↔ Qwen2.5-0.5B L0/N2144+ (0.93).
|
|
73
|
+
- Pythia-70m L0/N298+ ↔ Qwen2.5-0.5B L1/N1017+ (0.90).
|
|
74
|
+
|
|
75
|
+
### Removed
|
|
76
|
+
|
|
77
|
+
- The interactive page *Below the Dip* is gone from the Research section, with its generator `scripts/figures_explorer.py` and the vendored three.js. The two papers it showed keep their figures (#3295).
|
|
78
|
+
- The home page no longer has a *Corpora* section. Each experiment scans its own seeded sample, so a registry-wide list of corpora said little. Each experiment's page already shows its own corpus, source, licence and language mix. `registry.parquet` keeps its corpus columns (#3298).
|
|
79
|
+
|
|
80
|
+
### Fixed
|
|
81
|
+
|
|
82
|
+
- **`reproduce` adds an absolute floor to the tolerance of a Pythia-70m neuron pole.** Pythia-70m's float32 activations move by up to 0.005 between machines and thread counts, whatever the pole's scale. A negative pole's scale is at most 0.17, so that move failed the tolerance, as on PR #4187. `[tool.openinterpretability.reproduce_floor]` in `pyproject.toml` sets the floor for each model. Pythia-70m's is 0.01, and a 10% edit of a peak still fails. `docs/analyses/neuron-float32-floor.md` has the measurements of 283 records (#4187).
|
|
83
|
+
- `explain` caps prompt coverage at 100% (#4507). On some prompts, mean-ablating the other units raised the answer above the clean model, and coverage reached 536%. The credit is now at most 100%. Explanation records keep the raw value as `raw_coverage`. The CLI and the explanation pages mark an overshoot in words.
|
|
84
|
+
- A record that has just merged no longer crashes `explain` and the planner when its evidence isn't on the dataset yet (#4530). A blob missing from the local store and the dataset is now read from the remote's evidence branches. The loader fetches them once per process. If the blob still can't be had, the planner and `explain` skip that record with a warning. The site build and the checks still fail on it.
|
|
85
|
+
- A neuron scan now stops when it reads a strength that the unit's activation can't produce. An ungated GELU neuron's negative pole is never above about 0.170, but a 0.0.15 scan of GPT-2 L11/N1071− stored peaks of 3.7. The check keeps such evidence out of new records (#4581).
|
|
86
|
+
- The deploy's site build runs under a 14.5G memory cap, plus 2G of swap (`scripts/capped.sh`). Above the cap, the kernel stops only the build, and the step fails at once with an out-of-memory error. Before, a build that ran out of memory killed the runner agent too. The run then hung for about 45 minutes with no reason in its log. The step prints the peak process memory of the build and its workers, and warns above 13G. On a runner the build peaked at 13.9 GiB. The build's forks now run under `gc.freeze()` (#4592).
|
|
87
|
+
- **`explain --record` no longer runs twice on a GPU** (#4623). The figure data subtracted each head's mean, kept on the CPU, from the head's output on the GPU. On MPS that failed after the narration, and the GPU fallback then ran the whole command again on the CPU. So the narrator was asked twice, and the second answer was recorded. The head's mean now moves to the output's device first, as it already did elsewhere.
|
|
88
|
+
- **The deploy's site build runs with one job** (#4737). With the default 4 jobs, the build peaked at 14.0 GiB against its 14.5G cap, and one deploy ran out of memory. With `--jobs 1` it peaks at about 8.6 GiB and takes about 5 minutes longer. This holds until the build streams its records (#4652).
|
|
89
|
+
- **`test_build_is_deterministic` no longer fails on a date that a document names** (#4747). It checks that no built page shows today's date. Pages rendered from the repo's own documents (`research/`, `about.html`, `changelog.html`) show the dates written in them, so they are exempt. Every page built from records is still checked.
|
|
90
|
+
- The site deploys again. The build loaded every experiment record a second time to find the status of the units that explanations cite. The deploy runner ran out of memory, and no deploy finished after the first explanation landed. The build now finds these statuses from the records that it already holds.
|
|
91
|
+
- The site build no longer fails on a negative coverage, such as a random baseline that does worse than no change.
|
|
92
|
+
- **`reproduce` measures the scan evidence in the dtype that the scan pins.** A record can pin a bfloat16 scan and a float32 review, as #3801 does. Before, the review's float32 pin was used for the whole record. So bfloat16 top examples were compared within the float32 tolerance, and drift of up to 1.4% of the scale failed every example. Now the top examples and the corpus sample are measured in the scan's dtype (`provenance.dtype`). The first-token floor reads the whole vocabulary, so the review's runner still checks it. They are compared within the 16-bit tolerance when that dtype is 16-bit. The review keeps its own pin and tolerance. `docs/analyses/half-precision-reproduce.md` gives the rules (#3801).
|
|
93
|
+
|
|
94
|
+
### Security
|
|
95
|
+
|
|
96
|
+
- **Someone else's PR auto-merges only when it only adds experiment records** under `wiki/experiments/`, which CI reproduces. Other wiki records wait for a maintainer. The site also scrubs explanation records of personal data, as it does experiments (part of #4750).
|
|
97
|
+
- **`reproduce` refuses a record whose review policy is not its protocol's default** (part of #4750). A record is re-reviewed under the policy stored in it, so its thresholds must be the protocol's own. Every current record holds the default policy.
|
|
98
|
+
- **The deploy and nightly workflows' failure issues** hold fixed fields only, and each workflow comments only on an issue that it opened (part of #4750).
|
|
99
|
+
|
|
16
100
|
## [0.1.0] - 2026-11-17
|
|
17
101
|
|
|
18
102
|
Ships with protocol version **0.9**.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: open-interpretability
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Open Interpretability: an agent-audited mechanistic interpretability registry for native neurons in open-weight models.
|
|
5
5
|
Project-URL: Homepage, https://open-interpretability.com/
|
|
6
6
|
Project-URL: Repository, https://github.com/8W9aG/openinterpretability
|
|
@@ -45,6 +45,11 @@ Requires-Dist: tree-sitter-rust>=0.24.2
|
|
|
45
45
|
Requires-Dist: tree-sitter-scala>=0.26.11
|
|
46
46
|
Requires-Dist: tree-sitter-typescript>=0.23.2
|
|
47
47
|
Requires-Dist: tree-sitter>=0.26.1
|
|
48
|
+
Provides-Extra: map
|
|
49
|
+
Requires-Dist: igraph>=0.11; extra == 'map'
|
|
50
|
+
Requires-Dist: leidenalg>=0.10.2; extra == 'map'
|
|
51
|
+
Requires-Dist: sentence-transformers>=5.0; extra == 'map'
|
|
52
|
+
Requires-Dist: umap-learn>=0.5.7; extra == 'map'
|
|
48
53
|
Provides-Extra: site
|
|
49
54
|
Requires-Dist: pagefind[bin]>=1.3.0; extra == 'site'
|
|
50
55
|
Description-Content-Type: text/markdown
|
{open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/__init__.py
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from openinterpretability.core.legacy_names import adopt_legacy_env
|
|
4
4
|
|
|
5
|
-
__version__ = "0.
|
|
5
|
+
__version__ = "0.2.0"
|
|
6
6
|
# The name on PyPI, and of the installed distribution (issue #3251). The import name is
|
|
7
7
|
# `openinterpretability` (issue #4089).
|
|
8
8
|
DISTRIBUTION = "open-interpretability"
|
{open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/benchmark.py
RENAMED
|
@@ -31,7 +31,6 @@ from openinterpretability.core.stats import balanced_accuracy, effective_counts
|
|
|
31
31
|
|
|
32
32
|
NAME = "openinterpretability-explainer-benchmark"
|
|
33
33
|
LICENSE = "CC-BY-4.0" # the records' licence (wiki/LICENSE.md)
|
|
34
|
-
DEFAULT_DIR = Path("benchmark")
|
|
35
34
|
TEST_FRACTION = 0.2
|
|
36
35
|
MIN_PER_CLASS = 3 # active and inactive probes a unit needs, so that both rates exist
|
|
37
36
|
PROBE_KINDS = ("hard_negative", "positive_holdout")
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 330 40" role="img" aria-label="Open Interpretability">
|
|
2
|
-
<style>.name { fill: #
|
|
2
|
+
<style>.name { fill: #0F172A; } @media (prefers-color-scheme: dark) { .name { fill: #F8FAFC; } }</style>
|
|
3
3
|
<g transform="translate(4 4)">
|
|
4
|
-
<rect width="32" height="32" rx="7" fill="#
|
|
5
|
-
<rect x="5" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
6
|
-
<rect x="5" y="5" width="6" height="6" rx="1" fill="#
|
|
7
|
-
<rect x="13" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
8
|
-
<rect x="13" y="9
|
|
9
|
-
<rect x="21" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
10
|
-
<rect x="21" y="7
|
|
11
|
-
<rect x="5" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
12
|
-
<rect x="5" y="17
|
|
13
|
-
<rect x="13" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
14
|
-
<rect x="13" y="13" width="6" height="6" rx="1" fill="#
|
|
15
|
-
<rect x="21" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
16
|
-
<rect x="5" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
17
|
-
<rect x="5" y="23
|
|
18
|
-
<rect x="13" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
19
|
-
<rect x="21" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.
|
|
20
|
-
<rect x="21" y="21" width="6" height="6" rx="1" fill="#
|
|
4
|
+
<rect width="32" height="32" rx="7" fill="#0F172A"/>
|
|
5
|
+
<rect x="5" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
6
|
+
<rect x="5" y="5" width="6" height="6" rx="1" fill="#FDE047"/>
|
|
7
|
+
<rect x="13" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
8
|
+
<rect x="13" y="9" width="6" height="2" rx="1" fill="#0284C7"/>
|
|
9
|
+
<rect x="21" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
10
|
+
<rect x="21" y="7" width="6" height="4" rx="1" fill="#F97316"/>
|
|
11
|
+
<rect x="5" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
12
|
+
<rect x="5" y="17" width="6" height="2" rx="1" fill="#F97316"/>
|
|
13
|
+
<rect x="13" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
14
|
+
<rect x="13" y="13" width="6" height="6" rx="1" fill="#0284C7"/>
|
|
15
|
+
<rect x="21" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
16
|
+
<rect x="5" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
17
|
+
<rect x="5" y="23" width="6" height="4" rx="1" fill="#0284C7"/>
|
|
18
|
+
<rect x="13" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
19
|
+
<rect x="21" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
20
|
+
<rect x="21" y="21" width="6" height="6" rx="1" fill="#F97316"/>
|
|
21
21
|
</g>
|
|
22
22
|
<text x="48" y="28" font-family="ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif" font-size="21" font-weight="600" class="name">Open Interpretability</text>
|
|
23
23
|
</svg>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" role="img" aria-label="Open Interpretability">
|
|
2
|
+
<rect width="32" height="32" rx="7" fill="#0F172A"/>
|
|
3
|
+
<rect x="5" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
4
|
+
<rect x="5" y="5" width="6" height="6" rx="1" fill="#FDE047"/>
|
|
5
|
+
<rect x="13" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
6
|
+
<rect x="13" y="9" width="6" height="2" rx="1" fill="#0284C7"/>
|
|
7
|
+
<rect x="21" y="5" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
8
|
+
<rect x="21" y="7" width="6" height="4" rx="1" fill="#F97316"/>
|
|
9
|
+
<rect x="5" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
10
|
+
<rect x="5" y="17" width="6" height="2" rx="1" fill="#F97316"/>
|
|
11
|
+
<rect x="13" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
12
|
+
<rect x="13" y="13" width="6" height="6" rx="1" fill="#0284C7"/>
|
|
13
|
+
<rect x="21" y="13" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
14
|
+
<rect x="5" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
15
|
+
<rect x="5" y="23" width="6" height="4" rx="1" fill="#0284C7"/>
|
|
16
|
+
<rect x="13" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
17
|
+
<rect x="21" y="21" width="6" height="6" rx="1" fill="#ffffff" fill-opacity="0.16"/>
|
|
18
|
+
<rect x="21" y="21" width="6" height="6" rx="1" fill="#F97316"/>
|
|
19
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""The brand's files on the site: the mark, the favicon and the social image (issue #3289).
|
|
2
|
+
|
|
3
|
+
The sources live in ``openinterpretability/builder/brand/``. ``mark.svg`` is the mark and
|
|
4
|
+
the favicon, and ``logo.svg`` adds the name. Both are drawn here from ``palette.py``
|
|
5
|
+
(:func:`mark_svg`, :func:`logo_svg`, #4465), and a test checks the committed files.
|
|
6
|
+
``mark-32.png`` is the favicon for browsers without SVG icons. ``og.png`` is the image that
|
|
7
|
+
a shared link shows. ``scripts/brand_images.py`` draws the PNGs from the mark.
|
|
8
|
+
Each build copies them to ``assets/`` (:func:`write_brand`).
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import shutil
|
|
14
|
+
from pathlib import Path
|
|
15
|
+
|
|
16
|
+
SOURCE = Path(__file__).parent / "brand"
|
|
17
|
+
FILES = ("mark.svg", "mark-32.png", "og.png")
|
|
18
|
+
ASSETS = "assets"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def write_brand(output_dir: Path) -> list[Path]:
|
|
22
|
+
"""Copy the brand's files into ``output_dir/assets``, and return their paths."""
|
|
23
|
+
target = output_dir / ASSETS
|
|
24
|
+
target.mkdir(parents=True, exist_ok=True)
|
|
25
|
+
out = []
|
|
26
|
+
for name in FILES:
|
|
27
|
+
shutil.copyfile(SOURCE / name, target / name)
|
|
28
|
+
out.append(target / name)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# The mark: a 3×3 layer map, as the site's model pages draw one. Each cell is
|
|
33
|
+
# (column, row, share filled, colour); an empty cell is a faint square.
|
|
34
|
+
CELLS = (
|
|
35
|
+
(0, 0, 1.0, "yellow"), (1, 0, 1 / 3, "blue"), (2, 0, 2 / 3, "orange"),
|
|
36
|
+
(0, 1, 1 / 3, "orange"), (1, 1, 1.0, "blue"), (2, 1, 0.0, ""),
|
|
37
|
+
(0, 2, 2 / 3, "blue"), (1, 2, 0.0, ""), (2, 2, 1.0, "orange"),
|
|
38
|
+
) # fmt: skip
|
|
39
|
+
NAME = "Open Interpretability"
|
|
40
|
+
FONT = "ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _cells(indent: str) -> list[str]:
|
|
44
|
+
from openinterpretability.builder.palette import MARK_HEX, MARK_TILE
|
|
45
|
+
|
|
46
|
+
out = [f'{indent}<rect width="32" height="32" rx="7" fill="{MARK_TILE}"/>']
|
|
47
|
+
for col, row, share, colour in CELLS:
|
|
48
|
+
x, y = 5 + 8 * col, 5 + 8 * row
|
|
49
|
+
out.append(f'{indent}<rect x="{x}" y="{y}" width="6" height="6" rx="1" '
|
|
50
|
+
'fill="#ffffff" fill-opacity="0.16"/>') # fmt: skip
|
|
51
|
+
if share:
|
|
52
|
+
h, top = round(6 * share, 2), round(y + 6 - 6 * share, 2)
|
|
53
|
+
out.append(f'{indent}<rect x="{x}" y="{top:g}" width="6" height="{h:g}" '
|
|
54
|
+
f'rx="1" fill="{MARK_HEX[colour]}"/>') # fmt: skip
|
|
55
|
+
return out
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def mark_svg() -> str:
|
|
59
|
+
"""The mark and favicon, from the palette's colours."""
|
|
60
|
+
head = ('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" role="img" '
|
|
61
|
+
f'aria-label="{NAME}">') # fmt: skip
|
|
62
|
+
return "\n".join([head, *_cells(" "), "</svg>"]) + "\n"
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def logo_svg() -> str:
|
|
66
|
+
"""The mark with the name beside it, the name in the page's ink."""
|
|
67
|
+
from openinterpretability.builder.palette import INK
|
|
68
|
+
|
|
69
|
+
style = (f" <style>.name {{ fill: {INK['light']}; }} @media (prefers-color-scheme: dark) "
|
|
70
|
+
f"{{ .name {{ fill: {INK['dark']}; }} }}</style>") # fmt: skip
|
|
71
|
+
text = (f' <text x="48" y="28" font-family="{FONT}" font-size="21" font-weight="600" '
|
|
72
|
+
f'class="name">{NAME}</text>') # fmt: skip
|
|
73
|
+
lines = ['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 330 40" role="img" '
|
|
74
|
+
f'aria-label="{NAME}">', style, ' <g transform="translate(4 4)">',
|
|
75
|
+
*_cells(" "), " </g>", text, "</svg>"] # fmt: skip
|
|
76
|
+
return "\n".join(lines) + "\n"
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def write_svgs(folder: Path = SOURCE) -> None:
|
|
80
|
+
"""Write ``mark.svg`` and ``logo.svg`` from the palette."""
|
|
81
|
+
(folder / "mark.svg").write_text(mark_svg(), encoding="utf-8")
|
|
82
|
+
(folder / "logo.svg").write_text(logo_svg(), encoding="utf-8")
|
{open_interpretability-0.1.0 → open_interpretability-0.2.0}/openinterpretability/builder/charts.py
RENAMED
|
@@ -406,6 +406,6 @@ def _layer_marks(model, x, top: float, pitch: float) -> tuple[list[dict], dict[s
|
|
|
406
406
|
for n in layer.stopped:
|
|
407
407
|
counts[STOPPED] += 1
|
|
408
408
|
label = f"L{layer.layer} {stopped_label(n)}"
|
|
409
|
-
marks.append({"x": x(n.idx), "y": y, "status": STOPPED, "href":
|
|
409
|
+
marks.append({"x": x(n.idx), "y": y, "status": STOPPED, "href": n.href, "label": label})
|
|
410
410
|
marks.sort(key=lambda m: -MAP_STATUSES.index(m["status"]))
|
|
411
411
|
return marks, counts
|
|
@@ -8,25 +8,33 @@ no hub redirects to its own page. So a URL from any earlier build keeps working.
|
|
|
8
8
|
|
|
9
9
|
from __future__ import annotations
|
|
10
10
|
|
|
11
|
+
from openinterpretability.builder.circuit_units import CircuitData, circuit_views
|
|
11
12
|
from openinterpretability.builder.circuits import HUB_RULE, Circuit, Hub, unit_key, unit_pages
|
|
12
13
|
from openinterpretability.builder.hrefs import circuit_href, circuits_href, hub_href
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
def render_circuits(render, model, found: list[Circuit], found_hubs: list[Hub]) -> dict[str, str]:
|
|
16
|
-
"""Render ``model``'s circuit pages, and return each unit's circuit or hub page by href.
|
|
17
|
+
"""Render ``model``'s circuit pages, and return each unit's circuit or hub page by href.
|
|
18
|
+
|
|
19
|
+
The registry circuits (:mod:`openinterpretability.builder.circuit_units`) come from the
|
|
20
|
+
site context's ``circuit_data``, keyed by model slug.
|
|
21
|
+
"""
|
|
17
22
|
slug = model.slug
|
|
18
23
|
pages = unit_pages(slug, found, found_hubs)
|
|
19
|
-
|
|
24
|
+
data = render.common.get("circuit_data", {}).get(slug, CircuitData())
|
|
25
|
+
registry = circuit_views(model, data, [e for c in found for e in c.edges])
|
|
26
|
+
if not (found or found_hubs or registry):
|
|
20
27
|
return pages
|
|
21
28
|
circuits = [(c, circuit_href(slug, unit_key(c.root))) for c in found]
|
|
22
29
|
hubs = [(hub, hub_href(slug, unit_key(hub.unit))) for hub in found_hubs]
|
|
23
30
|
n_units = sum(len(c.units) for c in found)
|
|
24
31
|
view = {"model": model, "found": circuits, "hubs": hubs, "n_units": n_units, **HUB_RULE}
|
|
25
|
-
render(circuits_href(slug), "circuits.html", **view)
|
|
32
|
+
render(circuits_href(slug), "circuits.html", registry=registry, **view)
|
|
26
33
|
for c, href in circuits:
|
|
27
34
|
render(href, "circuit.html", model=model, c=c)
|
|
28
|
-
for
|
|
29
|
-
render(href, "
|
|
35
|
+
for rc in registry:
|
|
36
|
+
render(rc.href, "circuit_unit.html", model=model, rc=rc)
|
|
37
|
+
_render_hubs(render, model, hubs, registry, data.norms)
|
|
30
38
|
real = {href for _, href in circuits + hubs}
|
|
31
39
|
for layer in model.layers:
|
|
32
40
|
for unit in layer.units:
|
|
@@ -35,3 +43,14 @@ def render_circuits(render, model, found: list[Circuit], found_hubs: list[Hub])
|
|
|
35
43
|
if href not in real:
|
|
36
44
|
render(href, "redirect.html", target=pages.get(unit.href, unit.href))
|
|
37
45
|
return pages
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _render_hubs(render, model, hubs, registry, norms) -> None:
|
|
49
|
+
"""Each hub's page: its center's standing, its artefact facts and its circuits."""
|
|
50
|
+
from openinterpretability.hubs import hub_entities
|
|
51
|
+
|
|
52
|
+
entities = hub_entities([hub for hub, _ in hubs], norms)
|
|
53
|
+
for (hub, href), entity in zip(hubs, entities, strict=True):
|
|
54
|
+
near = {u.href for u in hub.neighbours}
|
|
55
|
+
joins = [rc for rc in registry if near & {m.href for m in rc.members if m.href}]
|
|
56
|
+
render(href, "hub.html", model=model, hub=hub, entity=entity, joins=joins)
|