open-interpretability 0.6.2__tar.gz → 0.6.4__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.6.2 → open_interpretability-0.6.4}/.gitignore +4 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/CHANGELOG.md +111 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/PKG-INFO +8 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/README.md +1 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/__init__.py +1 -1
- open_interpretability-0.6.4/openinterpretability/audit_options.py +175 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/circuit_units.py +3 -3
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/compiler.py +26 -15
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/concept_map_view.py +1 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/coverage.py +1 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/explanation_figures.py +21 -14
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/explanation_pages.py +13 -10
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/parquet_export.py +8 -7
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/pending.py +1 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/registry_stats.py +7 -8
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/route_figures.py +5 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/sections.py +4 -1
- open_interpretability-0.6.4/openinterpretability/builder/templates/404.html +23 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/experiment.html +1 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/tree.py +20 -11
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/users.py +1 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/wiki.py +52 -14
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/claude_sessions.py +1 -2
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli.py +2 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_evidence.py +15 -28
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_explain.py +8 -3
- open_interpretability-0.6.4/openinterpretability/cli_explain_family.py +217 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_interference.py +21 -16
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_loop.py +3 -1
- open_interpretability-0.6.4/openinterpretability/cli_sisters.py +231 -0
- open_interpretability-0.6.4/openinterpretability/cli_sweep.py +71 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/taxonomy.py +2 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/draw_steps.py +7 -3
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/evidence.py +3 -3
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/experiment_loop.py +7 -2
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_confirm.py +1 -2
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_corpus.py +2 -2
- open_interpretability-0.6.4/openinterpretability/explain_family.py +230 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_run.py +89 -24
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_share.py +4 -4
- open_interpretability-0.6.4/openinterpretability/explain_slots.py +277 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explanation_targets.py +204 -20
- open_interpretability-0.6.4/openinterpretability/git_fetch.py +65 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ane/backend.py +2 -1
- open_interpretability-0.6.4/openinterpretability/harness/ane/bundles.py +121 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/devices.py +15 -0
- open_interpretability-0.6.4/openinterpretability/harness/head_sisters.py +283 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/layer_cache.py +47 -2
- open_interpretability-0.6.4/openinterpretability/head_sisters.py +309 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/floors.py +3 -4
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/loop_local.py +2 -2
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/loop_pending.py +4 -4
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/loop_sessions.py +51 -6
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/model_check.py +1 -2
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner.py +3 -1
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_states.py +87 -9
- open_interpretability-0.6.4/openinterpretability/record_schema.py +177 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/registry_query.py +12 -11
- open_interpretability-0.6.4/openinterpretability/scan_reuse.py +204 -0
- open_interpretability-0.6.4/openinterpretability/sweep.py +324 -0
- open_interpretability-0.6.4/openinterpretability/verify_odds.py +138 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/pyproject.toml +11 -0
- open_interpretability-0.6.2/openinterpretability/audit_options.py +0 -89
- open_interpretability-0.6.2/openinterpretability/cli_sisters.py +0 -87
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/CITATION.cff +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/LICENSE +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/base.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/judge.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/narrator.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/probe_hints.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/proposer.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/proposer_profiles.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/review_measurements.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agents/reviewer.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/agreement.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/answer_lens.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/answer_prompts.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/answer_readings.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/answer_review.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/baseline.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/benchmark.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/blends.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/agents.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/aligned.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/brand/logo.svg +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/brand/mark-32.png +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/brand/mark.svg +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/brand/og.png +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/charts.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/circuit_pages.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/circuits.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/corpora.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/css.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/dashboard.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/draws_export.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/experiment.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/feeds.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/heat.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/hrefs.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/learned_baseline.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/model_facts.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/neuronpedia_export.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/palette.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/pieces.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/recent.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/registry_pii.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/significance.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/sister_graph.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/sister_pages.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/slim.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/standing.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/statuses.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/stopped.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/stops.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/superpositions.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/taxonomy_view.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_agent_role_cells.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_answer_verdict.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_causal_chart.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_circuit.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_concept_map.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_dashboard.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_embedding3d.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_experiment.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_experiments.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_figure.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_figure_pause.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_gas3d.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_head_profile.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_macros.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_members.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_patchscope.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_prior_art.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_record.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_research_extra.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_rivals.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_route3d.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_route3d_waves.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_route_row.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_specificity.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_steering.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_superposition.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_taxonomy.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_vocab_chart.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/_wiring.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/about.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/agent.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/agents.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/answer.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/atlas.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/base.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/circuit.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/circuit_experiment.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/circuit_unit.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/circuits.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/explanation.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/explanation_prompt.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/explanations.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/hub.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/index.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/layer.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/learned-baseline.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/model.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/models.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/neuron.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/sister_match.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/sisters.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/superposition.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/user.html +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/wiki/experiment.md +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/wiki/index.md +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/wiki/neuron.md +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/templates/wiki/stop.md +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/checks.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/circuit_checks.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/circuit_ids.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/circuit_review.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_answers.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_baseline.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_benchmark.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_build.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_check.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_circuits.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_claude_session.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_concepts.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_corpus.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_costs.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_coverage.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_crossref.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_errata.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_evidence_store.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_map.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_memory.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_model_check.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_neuronpedia.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_patch.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_pause.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_pole_effects.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_probing.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_provider.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_query.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_registry.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_reproduce.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_review.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_scan.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_score.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_submission.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_superpositions.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/cli_wiring.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/codeid.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/concept_map.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/concept_regions.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/concepts.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/agent_names.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/answer_records.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/attribution.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/cache_dirs.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/causal.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/circuit_records.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/confounds.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/contributors.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/corpora.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/costs.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/draws.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/errata.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/evidence.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/examples.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/exceptions.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/explanation.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/explanation_records.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/fence.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/heavy_lock.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/identifiers.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/isolation.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/ledger.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/legacy_names.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/licenses.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/manifold.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/partners.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/patchscope.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/paths.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/pause.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/pricing.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/prior_art.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/probing.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/profiles.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/project.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/record_kinds.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/rivals.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/run_environment.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/schemas.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/specificity.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/stats.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/steering.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/strict.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/transcripts.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/core/wiring.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/corpus.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/corpus_cache.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/corpus_layouts.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/corpus_presets.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/corpus_rebuild.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/coverage.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/crossref.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/data/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/data/providers.toml +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/data/sample_corpus.txt +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/embedding_space.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/errata_checks.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/evidence_branch.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/evidence_lenses.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_backend.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_batched.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_coverage.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_figure_data.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_groups.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_joint.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_land.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_narrate.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_output.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_plan.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_print.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_reuse.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explain_stopped.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/explanation_registry.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/half_precision.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ane/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ane/cache.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ane/chunks.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ane/convert.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ane/forward.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ane/qualified.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/annotations.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/attribution.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/causal.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/circuit_measures.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/confounds.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/covariance.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/cpu_speed.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/crossref.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/cuda_devices.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/dead.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/dictionaries.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/dreaming.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/environment.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/explanation_scores.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/features.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/first_position.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/heads.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/hooks.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/input_attribution.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/jlens.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/layer_major.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/lookahead.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/manifold.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/memory.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/moe.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/ov_lens.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/patcher.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/patchscope.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/prepare.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/probing.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/scan.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/scan_backend.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/sister_passes.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/sisters.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/sites.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/specificity.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/steering.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/superpositions.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/units.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/wiring.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/harness/wiring_activations.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/hubs.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/behaviour.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/fisher.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/keep.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/pruning.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/report.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/routes.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/run.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/template.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/tuning.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/interference/units.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/inverse_claims.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/langid.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/loop_bugs.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/mcp_server.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/model_revisions.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/names.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/neuronpedia_baseline.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/neuronpedia_review.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/partner_context.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/__init__.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/apply.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/gates.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/graph.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/history.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/schema.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/session.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/store.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/patches/tensors.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_circuits.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_claims.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_effects.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_explanations.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_heads.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_models.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_sisters.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/planner_superpositions.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/pole_effects.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/prior_art.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/providers.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/reproduce.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/reproduce_explanation.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/reproduce_policy.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/revision.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/runner_cache.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/score_controls.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/show.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/signing.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/sisters.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/superposition_finders.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/syntax.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/takedown_checks.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/toxicity.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/until_verified.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/verdict_regression.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/wiring_backfill.py +0 -0
- {open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/wordnet.py +0 -0
|
@@ -241,3 +241,7 @@ mutants/
|
|
|
241
241
|
# The token cache of scripts/train_resting.py (--cache tokens.pt), over 100 MB (#6785).
|
|
242
242
|
/tokens.pt
|
|
243
243
|
/tokens_280m.pt
|
|
244
|
+
# CatBoost's training logs (scripts/verdict_*.py, #3960).
|
|
245
|
+
catboost_info/
|
|
246
|
+
# open-interpretability sweep's per-pole rows, rebuilt in about a minute (#3961).
|
|
247
|
+
data/sweeps/
|
|
@@ -13,6 +13,117 @@ Changes waiting for the next release are files in [changelog.d/](changelog.d/REA
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [0.6.4] - 2026-12-01
|
|
17
|
+
|
|
18
|
+
Ships with protocol version **0.10**.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- A preprint, `papers/verdict-prediction/`, asks whether predicting which attempts will pass makes an explanation run cheaper (#3960). Gradient boosting predicts a pass with an AUC of 0.764 on held-out units. Venn–ABERS calibration and tuning bring its Brier score on the newest attempts to the base rate's. But in replays of the #7005 pilot, no rule built on the prediction needed fewer than the plan's 54 experiments. A perfect predictor of the next attempt needed 79, and a perfect predictor of whether a unit ever passes needed 49. The scripts are `scripts/verdict_*.py`, and the `predict` extra holds their dependencies.
|
|
23
|
+
- `open-interpretability sweep --model <model>` reads a slice of the corpus once, with every MLP neuron hooked, and writes ten cheap statistics for every pole to `data/sweeps/` (#3961). It takes 41 seconds for pythia-70m and 99 seconds for GPT-2. `scripts/sweep_predict.py` ranks every pole by its calibrated chance of VERIFIED for each agent family. On held-out units, the sweep's statistics predict a first attempt's verdict as well as each pole's own scan (AUC 0.732 against 0.711). The top tenth of the ranking passed 48% of the time, and the bottom tenth 1.2% (`docs/analyses/experimentability.md`). Its rows are predictions, never verdicts.
|
|
24
|
+
- A literature page reviews *Yggdrasil Decision Forests* (Guillame-Bert et al., 2023), the forest library behind `papers/what-predicts-verification/`. It notes that the out-of-bag importances that the paper reports come from the package, not from this work.
|
|
25
|
+
- `scripts/verdict_hazard.py` predicts a unit's chance of a pass within its remaining attempts, as a discrete-time hazard over #3960's per-attempt model (#7959). In the replay of the #7005 pilot, the Kelly rule on that chance needed 50 experiments in every seed. Its stake is the expected cost to a pass. The plan's order needed 54, and a perfect unit-level oracle 49. `papers/verdict-prediction/` reports it, and its title now says that prediction saves few experiments.
|
|
26
|
+
- A literature page reviews *CatBoost: Unbiased Boosting with Categorical Features* (Prokhorenkova et al., 2019), the boosting library behind `papers/verdict-prediction/`. The paper's two claims about it, ordered target statistics and the prediction shift, check out against the source.
|
|
27
|
+
- A literature page reviews *Venn–Abers Predictors* (Vovk and Petej, 2014), the calibration behind `papers/verdict-prediction/`. The paper's three claims about it check out against the source. Its guarantee assumes i.i.d. data, which the newest attempts don't meet.
|
|
28
|
+
- A literature page reviews *Large-scale probabilistic predictors with and without guarantees of validity* (Vovk, Petej and Fedorova, 2015). It defines the inductive Venn–Abers predictor that `papers/verdict-prediction/` uses, and the paper's claim about it checks out.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- **No mutant survives in 3 more files of `builder/` (part 4a)** (#6491): `explanation_figures`, `parquet_export`, and `explanation_pages`. New exact tests kill every surviving mutant in all three modules. `explanation_figures` drops unused defaults and simplifies layer spacing. `parquet_export` uses `hashlib.file_digest` for SHA-256 checksums. `explanation_pages` reads and writes JSON and SVG files as bytes.
|
|
33
|
+
- **No mutant survives in the final 3 files of `builder/` (part 4b)** (#6491): `tree`, `compiler`, and `wiki`. New exact unit tests kill every surviving mutant in all three modules with zero `no mutate` pragmas, completing `openinterpretability/builder/`. `tree` simplifies `n_layers` initialization and unit-key ordering, `compiler` replaces magic fallback constants in `explanation_view`, and `wiki` reads and writes UTF-8 files as bytes and drops a redundant `mkdir` call.
|
|
34
|
+
- Tests that build the site no longer load the repo's real changelog and literature reviews (#8064). An autouse fixture in `tests/conftest.py` stubs labinacan's `load_versions` and `load_reviews`. The 3 tests that check those pages carry the `real_reference_pages` marker. `tests/test_compiler.py` runs in 33 s, against 109 s before, and builder mutants no longer run for minutes each.
|
|
35
|
+
- Site builds and wiki page renders cache their Jinja2 environments instead of recompiling all templates on each call (#8092). `tests/conftest.py` imports `torch` lazily, and `scripts/mutation.py --files` passes module wildcards so `mutmut`'s clean-test step runs only tests that cover the named modules. `tests/test_compiler.py` drops from 35 s to 13 s.
|
|
36
|
+
- **Registry coverage, refreshed for 0.6.4** (`docs/analyses/registry-coverage.jsonl`, 2026-12-01). It gives each model's VERIFIED poles and the mean share of the loss that they recover, against the 0.6.3 run:
|
|
37
|
+
|
|
38
|
+
| Model | VERIFIED poles | Share of poles | Mean recovered |
|
|
39
|
+
| --- | --- | --- | --- |
|
|
40
|
+
| pythia-70m | 284 → 322 | 1.31% | 0.045 → 0.047 |
|
|
41
|
+
| GPT-2 | 230 → 230 | 0.31% | −0.059 → −0.059 |
|
|
42
|
+
| Qwen2.5-0.5B | 395 → 400 | 0.17% | 0.012 → 0.012 |
|
|
43
|
+
| Qwen2.5-1.5B | 92 → 96 | 0.02% | 0.000 → 0.000 |
|
|
44
|
+
|
|
45
|
+
- The sister search ran again for 0.6.4, on the 76 poles VERIFIED since 0.6.3. They are 64 poles of pythia-70m, 6 of Qwen2.5-0.5B, 5 of Qwen2.5-1.5B, and 1 of GPT-2. It added 228 rows and 44 sisters (`docs/analyses/sister-neurons.jsonl`). By pair, pythia-70m's poles found 13 sisters in Qwen2.5-0.5B, 10 in Qwen2.5-1.5B, and 15 in GPT-2. Qwen2.5-0.5B's poles found 2 in pythia-70m, 1 in Qwen2.5-1.5B, and 1 in GPT-2. Qwen2.5-1.5B's poles found 2 in Qwen2.5-0.5B. The strongest are Qwen2.5-0.5B's L16/N1502− and Qwen2.5-1.5B's L22/N8034+ (Pearson 0.84), Qwen2.5-0.5B's L16/N1502− and GPT-2's L2/N1448+ (0.77), and pythia-70m's L4/N219+ and GPT-2's L8/N1684+ (0.73).
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- **Close DuckDB connections cleanly instead of using the global `duckdb.sql()` connection** (#8102): `tests/test_compiler.py`, `openinterpretability/registry_query.py`, and `openinterpretability/builder/registry_stats.py` now use `with duckdb.connect() as con:`. Leaving DuckDB's global connection open in the parent process caused forked `mutmut` workers to deadlock in `TaskSchedulerPool::RelaunchThreads()` on exit.
|
|
50
|
+
|
|
51
|
+
## [0.6.3] - 2026-11-30
|
|
52
|
+
|
|
53
|
+
Ships with protocol version **0.10**.
|
|
54
|
+
|
|
55
|
+
### Added
|
|
56
|
+
|
|
57
|
+
- `papers/default-on-poles/` adds a mirrored control, in Table 9 (`scripts/default_on_targets.py mirror`, #3195). The control keeps each neuron's learned direction and turns it round about the neuron's median. It predicts GPT-2's next-token distribution as well as the negative side does, or better. On L1–L11, the negative side minus the mirror is −0.015 to +0.004. So the negative side's small lead over random features comes from the direction that it shares with the positive side. The paper is now published.
|
|
58
|
+
- The site has a page for a path with no page, `404.html`. Its links start from the site's URL, so they work at any path, and search engines don't index it. The host must be set to serve it for a missing path.
|
|
59
|
+
- A JSON Schema of an experiment record, as its file is stored, is now in `schema/audit-record-<protocol version>.json`, and the site serves it at `/schema/`. Each record page links it. It allows each bulky evidence field as its `evidence_sha256` reference. All 4,761 record files validate against it.
|
|
60
|
+
- `open-interpretability head-sisters` finds each VERIFIED attention head's sister in the other models: a mutual best match, by head strength over a shared corpus, above a rotated-head reference. Its rows are in `docs/analyses/sister-heads.jsonl`, and `docs/analyses/sister-heads.md` gives the results.
|
|
61
|
+
- **A review of *A coefficient of agreement for nominal scales*** (Cohen, 1960), at `docs/literature/cohen-kappa.md`. Its status is used. It checks the token-set paper's kappas against Cohen's formulas: 0.77 and 0.88 hold. Kappas in the repo lack the standard error that Cohen gives, so #7412 adds it (#6792).
|
|
62
|
+
- **A review of *Probable inference, the law of succession, and statistical inference*** (Wilson, 1927), at `docs/literature/wilson-interval.md`. Its status is used. All six of the repo's Wilson functions match the note's formula, and the token-set paper's intervals check out. #7417 keeps one function (#6793).
|
|
63
|
+
- `docs/literature/spectral-unforgetting.md` reviews *Spectral Unforgetting* (Abro and Tahir, 2026). It cuts a fine-tune's weight change to its singular values above a hard threshold, with no data. On 14 single-task fine-tunes, it heals about as much benchmark damage as WiSE-FT and keeps more of the gains. #7491 tests the cut on the explanations that Qwen2.5-1.5B's instruct change breaks (#7067).
|
|
64
|
+
- `docs/literature/chantless.md` reviews Deus Experiments' *Chantless* post. It cuts a frozen model to a task-specific file, then silences late-layer MLP neurons chosen from up to 25 mistakes. Three of its six accepted switches lose 8–16 points of tool-call retention. It has no random-row control and doesn't study the silenced neurons (#7106).
|
|
65
|
+
- `docs/literature/self-improving-loopers.md` reviews *Recursive Self-Improving Loopers* (Eric E., 2026). Inkling-2-Mini breaks when it is forced to run a fourth pass. The paper fixes this with a closed-form edit of its loop-control weights, then with self-graded RL. It never tests its one-direction diagnosis causally, and it has no random-edit control (#7153).
|
|
66
|
+
- `docs/literature/neural-core-war.md` reviews *Neural Core War* (Fu, Huang, Duan and Dai, 2026). In it, two isolated LLM agents edit the same neuron output columns of one host model. Most of their edits overwrite columns that are already changed, yet the host stays fluent in 45 of 48 persistent worlds. The page measures damage on outputs only, and never checks its agents' column readings (#7159).
|
|
67
|
+
- `docs/literature/sciwrite.md` reviews *SciWrite* (Barba, 2026), an Agent Skill that reviews a manuscript's writing in six passes. It compares each pass with the repo's STE linter and paper checks. #7521 runs the skill on two papers to find the gaps that matter (#7190).
|
|
68
|
+
- `papers/why-neurons-rest/` adds a second seed to the full-batch run of Table 32. Seed 1 gives the same result as seed 0. L1 rests at −0.15 against Pythia-70m's −0.22. Over both seeds, the push points down in 25 of 60 checkpoints and layers. The paper is now published. #7437 holds a run to step 4,000 (#7317).
|
|
69
|
+
- `docs/literature/fractured-entangled-representation.md` reviews the fractured entangled representation hypothesis (Kumar, Clune, Lehman and Stanley, 2025). The unified-factored forgetting paper rests on it. Its evidence is one evolved and one SGD network, judged by eye, and it gives no metric (#7339).
|
|
70
|
+
- **`explain --run --parallel N` runs N experiments at once** (#7389). Each slot is its own process, in its own loop worktree (`<repo>-loop-<k>`). The slots share `logs/explain-run-<time>/`, which holds the unit that each slot runs and the attempts of each unit. So no two slots run one unit, and `--max-attempts` counts across them. It works only with Claude Code sessions. In the #7005 pilot, one experiment took about 28 minutes, one at a time.
|
|
71
|
+
- `scripts/replay_draws.py` replays the #7005 pilot's draws under two ranking rules (`docs/analyses/expected-gain-replay.md`, #7393). Ranking the targets of `explain --run` by expected gain needs more experiments than the plan's order to reach the pilot's 56.2% coverage. It takes a median of 68 with the registry's odds and 64 with the pilot's own, against 54. So the plan's order stays the default. Expected gain is available as `TargetedDraws(rank="expected")`, with the odds in `openinterpretability/verify_odds.py`.
|
|
72
|
+
- `scripts/papers.py check` fails a published paper that has no `thread.yaml` and no `x_url` yet, because it would post to X as one post (#7505). Nine preprints get their X threads and drawn figures: conformal-line, copy-first-unit, explanations-across-models, instruct-difference, native-vs-learned, neuron-development, shared-concept-space, spd-input-projections and token-set-ceiling.
|
|
73
|
+
- Recorded the alphaXiv AI Track URL of "Why training rests neurons below GELU's dip" in `papers/why-neurons-rest/CITATION.cff`, so the paper page links it (#7534).
|
|
74
|
+
- **What default-on negative poles do as a population** is on alphaXiv AI Track (#7535). The paper `papers/default-on-poles/` is on alphaXiv, and its `CITATION.cff` records the URL. The paper page links it.
|
|
75
|
+
- When the deploy posts a paper to X, it opens the paper's Muse issue (`docs/muse.md`) for alphaXiv. So a published paper no longer waits for the next release (#7538).
|
|
76
|
+
- A literature page reviews *Rigorously Assessing Natural Language Explanations of Neurons* (Huang et al., 2023). It compares the paper's tests with the verdict rule, and it corrects the two skills that cite the paper.
|
|
77
|
+
- `open-interpretability explain-family --prompts <file> --run` explains a family of prompts with one joint plan (#7819). A unit that helps several prompts is drawn first, and the run stops when every prompt reaches `--target`. `--record` then writes each prompt's own record. On eight copy-family prompts, a joint plan needed 118 experiments against 160 for separate plans (#7061).
|
|
78
|
+
- A preprint, `papers/what-predicts-verification/`, asks whether values known before the review tell which attempts on neuron poles will pass. It uses 4,498 attempts. On poles that it never trained on, a random forest has an AUC of 0.742, against 0.654 for the layer and the activation scale. `scripts/verify_features.py` builds the feature table, and `scripts/verify_forest.py` fits and scores the forests.
|
|
79
|
+
|
|
80
|
+
### Changed
|
|
81
|
+
|
|
82
|
+
- **No mutant survives in 25 files of `builder/` (part 1)** (#6491). New exact tests cover `users`, `pending`, `coverage`, `circuit_pages`, `superpositions`, `slim`, `stopped`, `statuses` and `corpora`. Three mutants of `slim.full_record` and `SlimArchive` used to time out, because only slow tests reached that code. Fast tests now kill them. Three lines changed with no change in behaviour. `merged_prs` drops an `rstrip("/")` that can never apply. `pending.parse` reads a missing branch as `"None"`. `coverage_view` drops a merge that set a key again to the same value.
|
|
83
|
+
- **No mutant survives in 7 more files of `builder/` (part 2)** (#6491): `hrefs`, `model_facts`, `sister_graph`, `concept_map_view`, `learned_baseline`, `route_figures` and `sister_pages`. Four were clean already. New exact tests kill 246 survivors in the other three, among them 139 mutants of `route_figures`, which had no fast test at all. Two lines changed with no change in behaviour. In `concept_map_view._points`, an inner default of 0 went away, because slots are numbered from 1. In `route_figures._tokens`, a `zip` moved onto its own line, so that its two equivalent `strict` mutants carry a pragma.
|
|
84
|
+
- **No mutant survives in 7 more files of `builder/` (part 3)** (#6491): `agents`, `circuits`, `pieces`, `dashboard`, `circuit_units`, `standing` and `charts`. Four were clean already. New exact tests kill 174 survivors in the other three: 96 in `charts`, 57 in `circuit_units` and 21 in `circuits`. `circuit_units` now reads its lineage and record files as bytes, which `json` and pydantic decode as UTF-8, so the locale can no longer change them. `link_revisions` drops a guard that changed nothing.
|
|
85
|
+
- **An experiment session lands its record with `make check` alone** (#7390). The posted step said `make check lint test`, although the skills and CI skip lint and tests for a wiki-only branch. In the #7005 pilot that step took about 3 minutes a session. `check` on one record takes about 10 s. The `land-experiment` skill also skips the second `make check` after merging `main`, unless the merge brought changes outside `wiki/`.
|
|
86
|
+
- **`explain --run` no longer reads the whole registry twice between experiments** (#7391). The planner parses each record once per process and keeps the parse while the file is unchanged. `load_states` returns its last states when no record or errata file has changed. In the #7005 pilot each read took 130–160 s, and each gap read twice, for 5.4 minutes on average. With the cache, a second read of 4,470 records takes 0.6 s, and a gap parses only the new record. The run's log now gives each draw's time (`drew … in N s`).
|
|
87
|
+
- Revise and new-hypothesis draws reuse the scan of the record that they revise. `open-interpretability audit --reuse-scan <record>` takes the record's evidence when the unit, the model revision, the corpus and the scan options are the same. Otherwise it prints what differs and scans (#7392).
|
|
88
|
+
- **A draw rebuilds the planner's states in 2 s, not 10 s, when a record lands** (#7519). `claim_of` hashed every submission again on each rebuild, although records are write-once. The planner now keeps each cached record's claim, and `build_tree` uses a known claim for a record that no erratum edits. The site build passes claims already, and it no longer computes them twice. The `explain --run` log gives the time of the coverage measure and of the registry read. In the #7005 pilot, draws took 216 s on average with five slots on a loaded machine.
|
|
89
|
+
- `make test` copies a failed run's log to `logs/test-failed-<UTC time>.log`, because the next run overwrites `logs/test-last.log`. A failure that shows once in many runs can then still be read (#7554).
|
|
90
|
+
- **Registry coverage, refreshed for 0.6.3** (`docs/analyses/registry-coverage.jsonl`, 2026-11-29 and 2026-11-30). It gives each model's VERIFIED poles and the mean share of the loss that they recover, against the 2026-11-28 run:
|
|
91
|
+
|
|
92
|
+
| Model | VERIFIED poles | Share of poles | Mean recovered |
|
|
93
|
+
| --- | --- | --- | --- |
|
|
94
|
+
| pythia-70m | 202 → 284 | 1.16% | 0.037 → 0.045 |
|
|
95
|
+
| GPT-2 | 226 → 230 | 0.31% | −0.059 → −0.059 |
|
|
96
|
+
| Qwen2.5-0.5B | 382 → 395 | 0.17% | 0.012 → 0.012 |
|
|
97
|
+
| Qwen2.5-1.5B | 80 → 92 | 0.02% | 0.001 → 0.000 |
|
|
98
|
+
|
|
99
|
+
Pythia-70m gained the most, from the #7005 pilot's runs. GPT-2's mean stays negative, as in 0.6.2.
|
|
100
|
+
- The sister search ran again for v0.6.3, on the 82 poles VERIFIED since v0.6.2. They are 56 poles of pythia-70m, 12 of Qwen2.5-0.5B, 11 of Qwen2.5-1.5B and 3 of GPT-2. It added 246 rows and 49 sisters (`docs/analyses/sister-neurons.jsonl`). By pair, pythia-70m's poles found 13 sisters in Qwen2.5-0.5B, 13 in Qwen2.5-1.5B and 5 in GPT-2. Qwen2.5-0.5B's found 7 in Qwen2.5-1.5B. The strongest are GPT-2's L1/N478+ and Qwen2.5-0.5B's L0/N3048− (Pearson 0.95), and Qwen2.5-0.5B's L0/N848− and GPT-2's L0/N2874+ (0.91). The run took about 5.5 hours, on the CPU with 2 threads, because the GPU was busy when it started (#7857).
|
|
101
|
+
- `explain-family --run` now measures the family's coverage only when a prompt's explained units change, and its slots share that measure. Before, each slot measured every prompt against random sets before each draw, about 283 s of a 290 s draw. A reused measure says "reused" in the log.
|
|
102
|
+
|
|
103
|
+
### Fixed
|
|
104
|
+
|
|
105
|
+
- `scripts/next_issue.py --pull <number>` adds the issue that the `next-issue` skill chose, after it checks that the issue is the pick or a printed runner-up. `--pull` with no number still adds the pick. Before, a skipped pick could be pulled into the release in place of the runner-up that was worked (#3612).
|
|
106
|
+
- **An experiment's verdict comes from its record, not from the session's `RESULT:` line** (#7384). In the #7005 pilot, sessions wrote `unknown` for 10 merged PRs whose records held 4 VERIFIED, 5 NEEDS_REVISION and 1 REJECTED. They also wrote unit names with slashes and swapped fields. So the loop counted 14 VERIFIED where the records held 18. `explain --run` and the loop now read the newest record that the session's branch added on the drawn unit. The log says when the line and the record disagree.
|
|
107
|
+
- The planner and `explain --run` no longer offer an `opposite_pole` follow-up for a pole that a scan stopped on (dead or default-on) (#7454). They counted only units with an experiment record as studied, and a stopped pole has none, so it was drawn again. `planner_states.studied` adds the stop and draw records.
|
|
108
|
+
- Opening the scan cache now removes the temporary folders of scans whose process died (`LayerCache.sweep`, #7532). A killed scan left its folder behind. On 2026-11-28 there were 9, 21 GB in all, and they helped fill the data volume. A folder whose process still runs is left alone.
|
|
109
|
+
- A loop's `git fetch origin main` is tried again, up to 5 times, when it fails because another worktree holds the ref's lock (`openinterpretability/git_fetch.py`, #7533). A slot of `explain --run --parallel` exited at its start when two slots fetched at once.
|
|
110
|
+
- `next`, and the other commands that plan from the registry, now hold each record slim, as the site build does. On 4,619 records, the peak memory of `next` fell from 6.8 GB to 1.8 GB, and its draws stayed the same. In a 6 GB cell, the draw was killed three times.
|
|
111
|
+
- Test and mutation runs no longer fill the disk with temporary folders (#7550).
|
|
112
|
+
- Doctests use pytest's `tmp_path`, not `tempfile.mkdtemp`.
|
|
113
|
+
- `interference --patch` removes its noise store.
|
|
114
|
+
- pytest keeps only failed tests' `tmp_path` folders.
|
|
115
|
+
- `make test` runs in a fresh temporary folder of its own, and fails when a test leaves anything in it.
|
|
116
|
+
- `scripts/mutation.py` sends its runs' temporary files to a folder of their own and removes it. It also removes `mutants/` after a run with no surviving mutant, unless `--keep` is given.
|
|
117
|
+
- An ANE scan now bounds the macOS cache of compiled Core ML models (`~/Library/Caches/org.python.python/com.apple.e5rt.e5bundlecache`). When the cache is larger than 20 GB, the scan removes the bundles that no process used in the last 2 days. `OPENINTERPRETABILITY_E5_CACHE_GB` and `OPENINTERPRETABILITY_E5_CACHE_DAYS` change these values. The ANE scripts also remove their `.mlpackage` temporary folders. These folders had filled a disk.
|
|
118
|
+
- The deploy's step that opens each posted paper's Muse issue now runs when `LEDGER_TOKEN` is set. Its condition read the step's own `env`, which a step's `if` can't see, so the step never ran. A job-level flag now says whether the secret is set, without its value.
|
|
119
|
+
- `explain --run` now draws again for a unit that loses VERIFIED during the run. Before, a unit that was VERIFIED at the start, or that turned VERIFIED during the run, left the run's targets for good. So when another loop's record made it CONTESTED, the run never drew it. Each draw now puts such a unit back among the targets, by its gain.
|
|
120
|
+
- **The planner keeps each record's claim by its file's path and stamp, not by `id()`.** A record that is parsed again can take the `id()` of the object that it replaced, and so take its claim. One example is an open PR's record, which `explain --run` puts back before each draw. The pre-release sweep for v0.6.3 found this in #7519's cache.
|
|
121
|
+
- `sisters` and `head-sisters` with `--device auto` now choose the device again before each model load. A run that began while another job held the GPU took the CPU and kept it for hours after the GPU was free. Now a later load takes the GPU. The release skill's sister step passes `--device mps` on a Mac.
|
|
122
|
+
|
|
123
|
+
### Security
|
|
124
|
+
|
|
125
|
+
- `audit --reuse-scan` now reuses only evidence that the registry has verified. That means a record that an allowed signer signed, as `origin/main` lists them, and that names its corpus sample. Any other record is scanned again, and the audit says why.
|
|
126
|
+
|
|
16
127
|
## [0.6.2] - 2026-11-28
|
|
17
128
|
|
|
18
129
|
Ships with protocol version **0.10**.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: open-interpretability
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.4
|
|
4
4
|
Summary: Open Interpretability: an agent-run mechanistic interpretability project, with an audited registry of 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
|
|
@@ -58,6 +58,12 @@ Requires-Dist: sentence-transformers>=5.0; extra == 'map'
|
|
|
58
58
|
Requires-Dist: umap-learn>=0.5.7; extra == 'map'
|
|
59
59
|
Provides-Extra: mcp
|
|
60
60
|
Requires-Dist: mcp>=2.0; extra == 'mcp'
|
|
61
|
+
Provides-Extra: predict
|
|
62
|
+
Requires-Dist: catboost>=1.2; extra == 'predict'
|
|
63
|
+
Requires-Dist: optuna>=4.0; extra == 'predict'
|
|
64
|
+
Requires-Dist: pandas>=2.2; extra == 'predict'
|
|
65
|
+
Requires-Dist: scikit-learn>=1.5; extra == 'predict'
|
|
66
|
+
Requires-Dist: sentence-transformers>=5.0; extra == 'predict'
|
|
61
67
|
Provides-Extra: site
|
|
62
68
|
Requires-Dist: pagefind[bin]>=1.3.0; extra == 'site'
|
|
63
69
|
Description-Content-Type: text/markdown
|
|
@@ -99,4 +105,5 @@ It lists the units that carry the model's answer, says which of them the registr
|
|
|
99
105
|
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
100
106
|
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
101
107
|
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
|
108
|
+
- [schema/](schema/): the JSON Schema of an experiment record, one file per protocol version, so other tools can validate and read records without this package. The site serves it at `/schema/` (#3291).
|
|
102
109
|
- [CITATION.cff](CITATION.cff): how to cite. The code is under [MIT](LICENSE), and the records under [CC-BY-4.0](wiki/LICENSE.md).
|
|
@@ -35,4 +35,5 @@ It lists the units that carry the model's answer, says which of them the registr
|
|
|
35
35
|
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
36
36
|
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
37
37
|
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
|
38
|
+
- [schema/](schema/): the JSON Schema of an experiment record, one file per protocol version, so other tools can validate and read records without this package. The site serves it at `/schema/` (#3291).
|
|
38
39
|
- [CITATION.cff](CITATION.cff): how to cite. The code is under [MIT](LICENSE), and the records under [CC-BY-4.0](wiki/LICENSE.md).
|
{open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/__init__.py
RENAMED
|
@@ -5,7 +5,7 @@ from labinacan import config as _config
|
|
|
5
5
|
from openinterpretability.core.legacy_names import adopt_legacy_env
|
|
6
6
|
from openinterpretability.core.paths import CLONE_PYPROJECT, DEFAULT_PYPROJECT, PACKAGED_PYPROJECT
|
|
7
7
|
|
|
8
|
-
__version__ = "0.6.
|
|
8
|
+
__version__ = "0.6.4"
|
|
9
9
|
# The name on PyPI, and of the installed distribution (issue #3251). The import name is
|
|
10
10
|
# `openinterpretability` (issue #4089).
|
|
11
11
|
DISTRIBUTION = "open-interpretability"
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"""Options that ``open-interpretability audit`` and ``scan`` share, and how unit options resolve.
|
|
2
|
+
|
|
3
|
+
The shared ones are the scan cache and ``--selection``. The checks of ``audit``'s options
|
|
4
|
+
that go together, or apart, are here too.
|
|
5
|
+
|
|
6
|
+
``--selection`` says how a chosen unit was selected, as its provenance records it.
|
|
7
|
+
|
|
8
|
+
A ``--random`` draw records ``random`` and counts towards the registry statistics. A
|
|
9
|
+
unit given by layer and index records ``manual``, unless ``--selection`` says otherwise.
|
|
10
|
+
The planner's effect-weighted explore draws (issue #3486) pass ``attribution``. They are
|
|
11
|
+
drawn in proportion to an attribution-patching estimate, so they must not count as random.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
from pathlib import Path
|
|
18
|
+
|
|
19
|
+
import click
|
|
20
|
+
|
|
21
|
+
from openinterpretability.inverse_claims import inverse_preamble # noqa: F401 (re-exported)
|
|
22
|
+
|
|
23
|
+
DEFAULT_TOP_K = 20
|
|
24
|
+
"""Top examples that a scan keeps by default (``audit --top-k``)."""
|
|
25
|
+
|
|
26
|
+
scan_cache_option = click.option(
|
|
27
|
+
"--scan-cache/--no-scan-cache",
|
|
28
|
+
"use_scan_cache",
|
|
29
|
+
default=True,
|
|
30
|
+
show_default=True,
|
|
31
|
+
help="Replay a cached scan of the layer, or store this one "
|
|
32
|
+
"(see `open-interpretability scan-cache`).",
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
reuse_scan_option = click.option(
|
|
37
|
+
"--reuse-scan",
|
|
38
|
+
"reuse_file",
|
|
39
|
+
type=click.Path(exists=True, dir_okay=False, path_type=Path),
|
|
40
|
+
help="Archived record of this unit (wiki/experiments/<slug>/<id>.json): reuse its scan "
|
|
41
|
+
"instead of scanning again, if the model revision, corpus and scan options are the same. "
|
|
42
|
+
"Otherwise scan as usual. A revise draw passes the record it revises.",
|
|
43
|
+
)
|
|
44
|
+
top_k_option = click.option(
|
|
45
|
+
"--top-k", default=DEFAULT_TOP_K, show_default=True, help="Examples shown to the proposer."
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def open_scan_cache(enabled: bool):
|
|
50
|
+
"""The default layer-scan cache, or ``None`` when ``enabled`` is false."""
|
|
51
|
+
from openinterpretability.harness.layer_cache import LayerCache
|
|
52
|
+
|
|
53
|
+
return LayerCache.default() if enabled else None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
CHOSEN = ("manual", "attribution") # selections a unit given by layer and index may record
|
|
57
|
+
|
|
58
|
+
selection_option = click.option(
|
|
59
|
+
"--selection",
|
|
60
|
+
type=click.Choice(CHOSEN),
|
|
61
|
+
help="How a unit given by layer and index was chosen (default manual). The planner's "
|
|
62
|
+
"effect-weighted draws pass attribution. Ignored with --random.",
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def selection(random_pick: bool, chosen: str | None) -> str:
|
|
67
|
+
"""The ``provenance.selection`` of a scan."""
|
|
68
|
+
return "random" if random_pick else chosen or "manual"
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def read_superposition(path: Path, unit: str):
|
|
72
|
+
"""(unit, model, layer, profile) from a superposition's definition file."""
|
|
73
|
+
from pydantic import ValidationError
|
|
74
|
+
|
|
75
|
+
from openinterpretability.core.profiles import SuperpositionProfile
|
|
76
|
+
|
|
77
|
+
if unit != "neuron":
|
|
78
|
+
raise click.UsageError("--superposition is a unit of its own; don't combine it.")
|
|
79
|
+
data = json.loads(path.read_text(encoding="utf-8"))
|
|
80
|
+
try:
|
|
81
|
+
model, layer = data.pop("model"), data.pop("layer")
|
|
82
|
+
return "superposition", model, layer, SuperpositionProfile.model_validate(data)
|
|
83
|
+
except (KeyError, ValidationError) as exc:
|
|
84
|
+
raise click.BadParameter(str(exc), param_hint="--superposition") from exc
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def resolve_unit(unit, neuron, pole, head, feature, dictionary) -> str:
|
|
88
|
+
"""The unit ``--unit`` names, or the one the other options imply."""
|
|
89
|
+
if unit is None:
|
|
90
|
+
unit = "head" if head is not None else "neuron"
|
|
91
|
+
unit = "feature" if feature is not None or dictionary is not None else unit
|
|
92
|
+
if unit != "neuron" and (neuron is not None or pole is not None):
|
|
93
|
+
raise click.UsageError(f"--neuron and --pole are for neurons; a {unit} has neither.")
|
|
94
|
+
if head is not None and unit != "head":
|
|
95
|
+
raise click.UsageError("--head needs --unit head (or no --unit).")
|
|
96
|
+
if unit != "feature" and (feature is not None or dictionary is not None):
|
|
97
|
+
raise click.UsageError("--feature and --dictionary need --unit feature (or no --unit).")
|
|
98
|
+
return unit
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
inverse_option = click.option(
|
|
102
|
+
"--inverse",
|
|
103
|
+
is_flag=True,
|
|
104
|
+
help="Audit a default-on neuron pole with an inverse claim: when it goes quiet. "
|
|
105
|
+
"Reviewed with the gates' sides swapped (docs/PROTOCOL.md, Inverse claims, #4951).",
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def check_steps(evidence_file, hypothesis_file, evidence_out, superseded_file, agent_model):
|
|
110
|
+
"""Refuse options that don't go together, or apart, across the one- and two-step audits.
|
|
111
|
+
|
|
112
|
+
Args:
|
|
113
|
+
evidence_file: The ``--evidence`` file, or None.
|
|
114
|
+
hypothesis_file: The ``--hypothesis`` file, or None.
|
|
115
|
+
evidence_out: The ``--evidence-out`` file, or None.
|
|
116
|
+
superseded_file: The ``--supersedes`` record, or None.
|
|
117
|
+
agent_model: The ``--agent-model``, or None.
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
click.UsageError: Two options that go together are apart, or two that don't are together.
|
|
121
|
+
"""
|
|
122
|
+
if (evidence_file is None) != (hypothesis_file is None):
|
|
123
|
+
raise click.UsageError("--evidence and --hypothesis go together.")
|
|
124
|
+
if superseded_file is not None and evidence_out is not None:
|
|
125
|
+
raise click.UsageError(
|
|
126
|
+
"--supersedes goes on the step that writes the submission (with --hypothesis)."
|
|
127
|
+
)
|
|
128
|
+
if evidence_file is not None and evidence_out is not None:
|
|
129
|
+
raise click.UsageError("--evidence-out scans; --evidence reuses a scan. Pick one.")
|
|
130
|
+
if evidence_file is not None and not agent_model:
|
|
131
|
+
raise click.UsageError(
|
|
132
|
+
"--agent-model is required with --hypothesis: name the model that wrote it."
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def check_scan(evidence_file, model_name, stride, window_tokens) -> None:
|
|
137
|
+
"""Reject scan options that do not go together, before any model loads.
|
|
138
|
+
|
|
139
|
+
Args:
|
|
140
|
+
evidence_file: The ``--evidence`` file, or None.
|
|
141
|
+
model_name: The ``--model``, or None.
|
|
142
|
+
stride: The ``--stride``, or None.
|
|
143
|
+
window_tokens: The ``--window-tokens``, or None.
|
|
144
|
+
|
|
145
|
+
Raises:
|
|
146
|
+
click.UsageError: ``--stride`` without fitting windows, or no ``--model`` to scan.
|
|
147
|
+
"""
|
|
148
|
+
if stride is not None and (window_tokens is None or stride > window_tokens):
|
|
149
|
+
raise click.UsageError("--stride needs --window-tokens, and can't exceed it.")
|
|
150
|
+
if evidence_file is None and model_name is None:
|
|
151
|
+
raise click.UsageError("--model is required unless --evidence is given.")
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def check_reuse(reuse_file: Path | None, evidence_file: Path | None, random_pick: bool) -> None:
|
|
155
|
+
"""Refuse ``--reuse-scan`` where there is no scan of a chosen unit to replace.
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
reuse_file: The ``--reuse-scan`` record, or None.
|
|
159
|
+
evidence_file: The ``--evidence`` file, or None. It already skips the scan.
|
|
160
|
+
random_pick: Whether ``--random`` draws the unit.
|
|
161
|
+
|
|
162
|
+
Raises:
|
|
163
|
+
click.UsageError: ``--reuse-scan`` with ``--evidence`` or with ``--random``.
|
|
164
|
+
|
|
165
|
+
>>> check_reuse(None, Path("ev.json"), True) # no --reuse-scan: nothing to check
|
|
166
|
+
>>> check_reuse(Path("r.json"), None, True)
|
|
167
|
+
Traceback (most recent call last):
|
|
168
|
+
click.exceptions.UsageError: --reuse-scan needs a chosen unit, not --random.
|
|
169
|
+
"""
|
|
170
|
+
if reuse_file is None:
|
|
171
|
+
return
|
|
172
|
+
if evidence_file is not None:
|
|
173
|
+
raise click.UsageError("--reuse-scan replaces a scan; --evidence already skips it.")
|
|
174
|
+
if random_pick:
|
|
175
|
+
raise click.UsageError("--reuse-scan needs a chosen unit, not --random.")
|
|
@@ -47,10 +47,10 @@ def load_circuit_data(wiki_dir: Path, circuits_dir: Path = CIRCUITS_DIR, hubs_di
|
|
|
47
47
|
|
|
48
48
|
out: dict[str, CircuitData] = {}
|
|
49
49
|
for path in sorted(Path(circuits_dir).glob("*.jsonl")):
|
|
50
|
-
lines = path.
|
|
50
|
+
lines = path.read_bytes().splitlines() # json reads UTF-8 bytes
|
|
51
51
|
out.setdefault(path.stem, CircuitData()).lineage = [json.loads(x) for x in lines if x]
|
|
52
52
|
for path in sorted((Path(wiki_dir) / CIRCUITS_WIKI).glob("*/*/*.json")):
|
|
53
|
-
record = CircuitRecord.model_validate_json(path.
|
|
53
|
+
record = CircuitRecord.model_validate_json(path.read_bytes())
|
|
54
54
|
source = path.relative_to(Path(wiki_dir).parent).as_posix()
|
|
55
55
|
out.setdefault(path.parts[-3], CircuitData()).records.append((source, record))
|
|
56
56
|
for path in sorted(Path(hubs_dir or HUBS_DIR).glob("*.jsonl")):
|
|
@@ -168,7 +168,7 @@ def link_revisions(views: list[ExperimentView]) -> None:
|
|
|
168
168
|
by_name = {key: v for v in views for key in (v.id, v.source)}
|
|
169
169
|
for view in views:
|
|
170
170
|
named = view.record.hypothesis.supersedes
|
|
171
|
-
older = by_name.get(named)
|
|
171
|
+
older = by_name.get(named) # no key is None: each is a record's path or name
|
|
172
172
|
if older is not None and older is not view:
|
|
173
173
|
view.supersedes = older
|
|
174
174
|
older.superseded_by.append(view)
|
{open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/compiler.py
RENAMED
|
@@ -9,6 +9,7 @@ from __future__ import annotations
|
|
|
9
9
|
|
|
10
10
|
from collections.abc import Sequence
|
|
11
11
|
from dataclasses import dataclass, field
|
|
12
|
+
from functools import cache
|
|
12
13
|
from pathlib import Path
|
|
13
14
|
from tempfile import TemporaryDirectory
|
|
14
15
|
|
|
@@ -19,7 +20,7 @@ from labinacan.site.pii import save_spans, scrub
|
|
|
19
20
|
from labinacan.site.render import Renderer, clean_owned, number_filters, write_redirect
|
|
20
21
|
from pydantic import ValidationError
|
|
21
22
|
|
|
22
|
-
from openinterpretability import __version__
|
|
23
|
+
from openinterpretability import __version__, record_schema
|
|
23
24
|
from openinterpretability import sisters as sister_lib
|
|
24
25
|
from openinterpretability.builder import charts, palette, pieces, statuses
|
|
25
26
|
from openinterpretability.builder.agents import (
|
|
@@ -89,13 +90,9 @@ def load_records(audits_dir: Path) -> list[AuditRecord]:
|
|
|
89
90
|
return records
|
|
90
91
|
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
Args:
|
|
96
|
-
grid_scale: The most studied neurons in any block of any status grid, the one scale
|
|
97
|
-
of every model's grid (#5836).
|
|
98
|
-
"""
|
|
93
|
+
@cache
|
|
94
|
+
def _base_environment() -> Environment:
|
|
95
|
+
"""The shared template environment, compiled once per process (#8092)."""
|
|
99
96
|
env = Environment(
|
|
100
97
|
loader=ChoiceLoader(
|
|
101
98
|
[ # this repo's templates first, then labinacan's (#6628)
|
|
@@ -107,12 +104,12 @@ def _environment(grid_scale: int = 1) -> Environment:
|
|
|
107
104
|
undefined=StrictUndefined,
|
|
108
105
|
trim_blocks=True,
|
|
109
106
|
lstrip_blocks=True,
|
|
107
|
+
auto_reload=False,
|
|
110
108
|
)
|
|
111
109
|
number_filters(env) # pct, pct_fine, num, thousands and pval
|
|
112
110
|
env.globals["roles"] = ROLES
|
|
113
111
|
env.globals["charts"] = charts # page-level charts: the layer map
|
|
114
112
|
env.globals["pieces"] = pieces # the pieces bars of a model and of a layer
|
|
115
|
-
env.globals["grid_scale"] = grid_scale # the most studied neurons in any grid block
|
|
116
113
|
env.globals["statuses"] = statuses # unit statuses, their order and colours
|
|
117
114
|
env.globals["is_broad"] = is_broad # a VERIFIED unit active on most held-out text (#4545)
|
|
118
115
|
env.globals["palette"] = palette # the status and pole colours
|
|
@@ -122,6 +119,19 @@ def _environment(grid_scale: int = 1) -> Environment:
|
|
|
122
119
|
env.globals["language_mix"] = language_mix # a scan's tokens per language
|
|
123
120
|
env.globals["heat_html"] = heat_html # token heatmaps, built in Python for speed
|
|
124
121
|
env.globals["values_rows"] = values_rows # and the rows of their values tables
|
|
122
|
+
env.globals["record_schema"] = record_schema.current().as_posix() # records' schema (#3291)
|
|
123
|
+
return env
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def _environment(grid_scale: int = 1) -> Environment:
|
|
127
|
+
"""The templates' environment: their filters and globals.
|
|
128
|
+
|
|
129
|
+
Args:
|
|
130
|
+
grid_scale: The most studied neurons in any block of any status grid, the one scale
|
|
131
|
+
of every model's grid (#5836).
|
|
132
|
+
"""
|
|
133
|
+
env = _base_environment()
|
|
134
|
+
env.globals["grid_scale"] = grid_scale # the most studied neurons in any grid block
|
|
125
135
|
return env
|
|
126
136
|
|
|
127
137
|
|
|
@@ -141,7 +151,7 @@ def explanation_view(scores, scale: float) -> dict | None:
|
|
|
141
151
|
scale = scale or 1.0
|
|
142
152
|
|
|
143
153
|
def window(w) -> dict:
|
|
144
|
-
peak = max(range(len(w.activations)), key=w.activations.__getitem__, default
|
|
154
|
+
peak = max(range(len(w.activations)), key=w.activations.__getitem__, default=None)
|
|
145
155
|
marks = set(w.highlighted)
|
|
146
156
|
tokens = [
|
|
147
157
|
HeatToken(
|
|
@@ -162,23 +172,24 @@ def explanation_view(scores, scale: float) -> dict | None:
|
|
|
162
172
|
"offensive": is_offensive(w.text),
|
|
163
173
|
}
|
|
164
174
|
|
|
165
|
-
|
|
175
|
+
rank = {o: i for i, o in enumerate(OUTCOMES.values())}
|
|
166
176
|
detection = sorted(
|
|
167
177
|
(window(w) for w in scores.detection_windows),
|
|
168
|
-
key=lambda r: (
|
|
178
|
+
key=lambda r: (rank.get(r["outcome"], len(rank)), -r["peak"]),
|
|
169
179
|
)
|
|
170
180
|
fuzzing = sorted(
|
|
171
181
|
(window(w) for w in scores.fuzzing_windows),
|
|
172
182
|
key=lambda r: (r["w"].label == r["w"].judged, -r["peak"]),
|
|
173
183
|
)
|
|
174
|
-
counts = {o: sum(r["outcome"] == o for r in detection) for o in
|
|
184
|
+
counts = {o: sum(r["outcome"] == o for r in detection) for o in rank}
|
|
175
185
|
return {"s": scores, "detection": detection, "fuzzing": fuzzing, "counts": counts}
|
|
176
186
|
|
|
177
187
|
|
|
178
188
|
# Paths the builder (and the Pagefind step after it) owns inside the output dir.
|
|
179
189
|
# They are removed before each build so deleted records leave no stale pages.
|
|
180
|
-
OWNED_PATHS = ("index.html", "about.html", "learned-baseline.html", "models",
|
|
181
|
-
"neurons", "research", "posts", "data", "pagefind"
|
|
190
|
+
OWNED_PATHS = ("index.html", "about.html", "404.html", "learned-baseline.html", "models",
|
|
191
|
+
"agents", "users", "neurons", "research", "posts", "data", "pagefind",
|
|
192
|
+
"schema") # fmt: skip
|
|
182
193
|
|
|
183
194
|
|
|
184
195
|
def _experiment_view(
|
|
@@ -101,7 +101,7 @@ def _points(found: dict, standings, own_model: str | None) -> list[MapPoint]:
|
|
|
101
101
|
x, y, neuron_href(model_slug(p["model"]), p["layer"], p["neuron"]),
|
|
102
102
|
f"L{p['layer']}/N{p['neuron']}{mark}",
|
|
103
103
|
status.status if status is not None else "unstudied", p["cluster"],
|
|
104
|
-
slot.get(number.get(p["cluster"]
|
|
104
|
+
slot.get(number.get(p["cluster"]), 0), named.get(p["cluster"], ""),
|
|
105
105
|
p["model"], own_model is None or p["model"] == own_model, rank[i],
|
|
106
106
|
_why(status),
|
|
107
107
|
)) # fmt: skip
|
{open_interpretability-0.6.2 → open_interpretability-0.6.4}/openinterpretability/builder/coverage.py
RENAMED
|
@@ -58,7 +58,7 @@ def coverage_view(rows_by_model: dict[str, list[dict]]) -> dict[str, dict]:
|
|
|
58
58
|
for model, rows in rows_by_model.items():
|
|
59
59
|
if not rows:
|
|
60
60
|
continue
|
|
61
|
-
layers = [r | model_summary([r])
|
|
61
|
+
layers = [r | model_summary([r]) for r in rows]
|
|
62
62
|
out[model] = {
|
|
63
63
|
"summary": model_summary(rows),
|
|
64
64
|
"corpus": rows[0].get("corpus"),
|
|
@@ -58,7 +58,7 @@ def _figure(title: str, subtitle: str, alt: str) -> Figure:
|
|
|
58
58
|
return fig
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
def _finish(name: str, fig: Figure, table: list[list[str]], moves: bool) -> Drawn:
|
|
61
|
+
def _finish(name: str, fig: Figure, table: list[list[str]], moves: bool = False) -> Drawn:
|
|
62
62
|
title = fig.alt.split(".")[0]
|
|
63
63
|
svg = fig.render()
|
|
64
64
|
static = None
|
|
@@ -69,7 +69,7 @@ def _finish(name: str, fig: Figure, table: list[list[str]], moves: bool) -> Draw
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
def _marker(fig: Figure, x: float, y: float, status: str, cls: str = "fc1") -> None:
|
|
72
|
-
shape = MARKERS.get(status
|
|
72
|
+
shape = MARKERS.get(status)
|
|
73
73
|
if shape == "circle":
|
|
74
74
|
fig.dot(x, y, 5, cls)
|
|
75
75
|
elif shape == "triangle":
|
|
@@ -120,7 +120,7 @@ def graph(data, answer: str = "answer") -> Drawn:
|
|
|
120
120
|
peak, layer_of = max(weights + [1e-9]), {u.label: u.layer for u in data.units}
|
|
121
121
|
for k, la in enumerate(layers):
|
|
122
122
|
cls = f"layer{k}"
|
|
123
|
-
fig.motion += reveal(cls, 80 * k /
|
|
123
|
+
fig.motion += reveal(cls, 80 * k / len(layers), CYCLE)
|
|
124
124
|
for e in data.edges[:40]:
|
|
125
125
|
a, b = pos.get(e["source"]), pos.get(e["target"])
|
|
126
126
|
if a and b and layer_of[e["target"]] == la:
|
|
@@ -173,7 +173,7 @@ def _key(fig: Figure, y: float) -> None:
|
|
|
173
173
|
("VERIFIED", "VERIFIED"),
|
|
174
174
|
("NEEDS_REVISION", "NEEDS REVISION"),
|
|
175
175
|
("REJECTED", "REJECTED"),
|
|
176
|
-
("", "other"),
|
|
176
|
+
("", "other"), # pragma: no mutate, equivalent: any unmapped key draws the dot
|
|
177
177
|
):
|
|
178
178
|
_marker(fig, x + 5, y - 4, status)
|
|
179
179
|
fig.text(x + 14, y, name, "small")
|
|
@@ -205,22 +205,26 @@ def waterfall(data) -> Drawn:
|
|
|
205
205
|
level += a
|
|
206
206
|
values.append(level)
|
|
207
207
|
low, high = min(values), max(values)
|
|
208
|
-
panel = Panel(
|
|
208
|
+
panel = Panel(
|
|
209
|
+
fig,
|
|
210
|
+
(150, fig.body_top + 10, WIDTH - 190, 16 * len(rows)),
|
|
211
|
+
(low, high),
|
|
212
|
+
(0, 1), # pragma: no mutate, equivalent: panel.y is unused
|
|
213
|
+
)
|
|
209
214
|
level = start
|
|
210
215
|
for i, (label, a, kind) in enumerate(rows):
|
|
211
216
|
y = panel.top + 16 * i
|
|
212
217
|
cls = {"explained": "fc1", "blocked": "fhatch", "unstudied": "outline", "rest": "fneutral"}[
|
|
213
218
|
kind
|
|
214
219
|
]
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
)
|
|
220
|
+
x0, x1 = panel.x(level), panel.x(level + a)
|
|
221
|
+
fig.bar(min(x0, x1), y + 2, abs(x1 - x0), 11, cls)
|
|
218
222
|
fig.text(panel.left - 8, y + 11, f"{label} · {kind}", "small", "end")
|
|
219
223
|
level += a
|
|
220
|
-
panel.grid_x([low, start, high]
|
|
224
|
+
panel.grid_x([low, start, high])
|
|
221
225
|
panel.x_title("logit")
|
|
222
226
|
table = [["unit", "attribution", "kind"]] + [[r[0], number(r[1], 3), r[2]] for r in rows]
|
|
223
|
-
return _finish("waterfall", fig, table
|
|
227
|
+
return _finish("waterfall", fig, table)
|
|
224
228
|
|
|
225
229
|
|
|
226
230
|
def _kind(u) -> str:
|
|
@@ -309,7 +313,7 @@ def reading(data) -> Drawn | None:
|
|
|
309
313
|
fig.bottom = top + 22 * len(labels)
|
|
310
314
|
table = [["unit", *[repr(t)[1:-1] for t in tokens]]]
|
|
311
315
|
table += [[lab, *[number(v, 3) for v in data.reading[lab]]] for lab in labels]
|
|
312
|
-
return _finish("reading", fig, table
|
|
316
|
+
return _finish("reading", fig, table)
|
|
313
317
|
|
|
314
318
|
|
|
315
319
|
def _cell(fig: Figure, x: float, y: float, width: float, value: float, peak: float) -> None:
|
|
@@ -332,7 +336,10 @@ def ablation(data) -> Drawn | None:
|
|
|
332
336
|
)
|
|
333
337
|
peak = max(max(r["before"], r["after"]) for r in data.ablation) or 1.0
|
|
334
338
|
panel = Panel(
|
|
335
|
-
fig,
|
|
339
|
+
fig,
|
|
340
|
+
(130, fig.body_top + 10, WIDTH - 200, 30 * len(data.ablation)),
|
|
341
|
+
(0, peak),
|
|
342
|
+
(0, 1), # pragma: no mutate, equivalent: panel.y is unused
|
|
336
343
|
)
|
|
337
344
|
for i, r in enumerate(data.ablation):
|
|
338
345
|
y = panel.top + 30 * i
|
|
@@ -345,7 +352,7 @@ def ablation(data) -> Drawn | None:
|
|
|
345
352
|
table = [["token", "before", "after"]] + [
|
|
346
353
|
[r["token"], f"{r['before']:.2%}", f"{r['after']:.2%}"] for r in data.ablation
|
|
347
354
|
]
|
|
348
|
-
return _finish("ablation", fig, table
|
|
355
|
+
return _finish("ablation", fig, table)
|
|
349
356
|
|
|
350
357
|
|
|
351
358
|
def groups(data) -> Drawn:
|
|
@@ -368,4 +375,4 @@ def groups(data) -> Drawn:
|
|
|
368
375
|
fig.bottom = y
|
|
369
376
|
table = [["group", "kind", "status", "members"]]
|
|
370
377
|
table += [[g["name"], g["kind"], g["status"], ", ".join(g["members"])] for g in data.groups]
|
|
371
|
-
return _finish("groups", fig, table
|
|
378
|
+
return _finish("groups", fig, table)
|