open-interpretability 0.6.3__tar.gz → 0.6.5__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.3 → open_interpretability-0.6.5}/.gitignore +4 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/CHANGELOG.md +126 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/PKG-INFO +10 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/README.md +2 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/__init__.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/base.py +26 -1
- open_interpretability-0.6.5/openinterpretability/agents/jev.py +220 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/judge.py +10 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/proposer.py +21 -16
- open_interpretability-0.6.5/openinterpretability/agents/proposer_method.py +61 -0
- open_interpretability-0.6.5/openinterpretability/agents/proposer_refine.py +231 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/answer_lens.py +3 -4
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/answer_readings.py +9 -5
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/benchmark.py +9 -6
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/blends.py +2 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/compiler.py +21 -12
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/explanation_figures.py +21 -14
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/explanation_pages.py +13 -10
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/parquet_export.py +8 -7
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/pending.py +18 -5
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/registry_stats.py +7 -8
- open_interpretability-0.6.5/openinterpretability/builder/slim_cache.py +369 -0
- open_interpretability-0.6.5/openinterpretability/builder/templates/_answer_token.html +4 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_macros.html +2 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_taxonomy.html +3 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/explanation.html +1 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/tree.py +8 -4
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/wiki.py +46 -32
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/checks.py +10 -12
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/circuit_checks.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/circuit_ids.py +4 -4
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/claude_sessions.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli.py +2 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_benchmark.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_circuits.py +4 -4
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_corpus.py +126 -8
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_errata.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_evidence.py +4 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_explain.py +9 -6
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_explain_family.py +73 -16
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_loop.py +39 -9
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_neuronpedia.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_query.py +4 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_registry.py +29 -16
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_review.py +45 -7
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_scan.py +3 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_score.py +25 -7
- open_interpretability-0.6.5/openinterpretability/cli_sweep.py +78 -0
- open_interpretability-0.6.5/openinterpretability/cli_worker.py +43 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/codeid.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/concept_map.py +28 -21
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/concept_regions.py +6 -5
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/concepts.py +6 -4
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/corpora.py +7 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/costs.py +12 -6
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/pricing.py +1 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/schemas.py +3 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/taxonomy.py +38 -18
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/corpus.py +4 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/corpus_cache.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/corpus_layouts.py +4 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/corpus_rebuild.py +1 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/crossref.py +5 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/draw_steps.py +117 -52
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/embedding_space.py +3 -5
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/errata_checks.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/evidence.py +6 -6
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/evidence_branch.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/evidence_lenses.py +7 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/experiment_loop.py +26 -28
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain.py +1 -1
- open_interpretability-0.6.5/openinterpretability/explain_batched.py +466 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_confirm.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_coverage.py +174 -39
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_family.py +102 -17
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_joint.py +109 -11
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_land.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_run.py +30 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_share.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_slots.py +143 -19
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explanation_registry.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explanation_targets.py +51 -54
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/backend.py +6 -6
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/cache.py +12 -9
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/chunks.py +2 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/forward.py +8 -7
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/annotations.py +13 -10
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/circuit_measures.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/confounds.py +11 -13
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/covariance.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/crossref.py +12 -9
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/cuda_devices.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/devices.py +13 -9
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/dictionaries.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/head_sisters.py +4 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/input_attribution.py +93 -20
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/jlens.py +144 -12
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/layer_major.py +4 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/lookahead.py +2 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/manifold.py +46 -31
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/memory.py +24 -15
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/moe.py +1 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ov_lens.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/scan_backend.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/sister_passes.py +37 -26
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/sisters.py +24 -9
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/specificity.py +3 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/steering.py +4 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/superpositions.py +10 -8
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/head_sisters.py +5 -5
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/inverse_claims.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/langid.py +6 -2
- open_interpretability-0.6.5/openinterpretability/loop_batch.py +268 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/loop_local.py +9 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/loop_sessions.py +2 -2
- open_interpretability-0.6.5/openinterpretability/model_worker.py +349 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/names.py +9 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_circuits.py +3 -3
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_claims.py +47 -5
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_explanations.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_states.py +12 -4
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_superpositions.py +2 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/prior_art.py +2 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/providers.py +53 -4
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/registry_query.py +10 -9
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/revision.py +7 -12
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/show.py +6 -9
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/sisters.py +6 -8
- open_interpretability-0.6.5/openinterpretability/sweep.py +468 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/syntax.py +21 -18
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/takedown_checks.py +1 -1
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/toxicity.py +1 -1
- open_interpretability-0.6.5/openinterpretability/weekly_corpus.py +236 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/wordnet.py +1 -2
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/pyproject.toml +13 -3
- open_interpretability-0.6.3/openinterpretability/explain_batched.py +0 -196
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/CITATION.cff +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/LICENSE +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/narrator.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/probe_hints.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/proposer_profiles.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/review_measurements.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/reviewer.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agreement.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/answer_prompts.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/answer_review.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/audit_options.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/baseline.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/agents.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/aligned.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/brand/logo.svg +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/brand/mark-32.png +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/brand/mark.svg +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/brand/og.png +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/charts.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/circuit_pages.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/circuit_units.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/circuits.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/concept_map_view.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/corpora.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/coverage.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/css.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/dashboard.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/draws_export.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/experiment.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/feeds.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/heat.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/hrefs.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/learned_baseline.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/model_facts.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/neuronpedia_export.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/palette.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/pieces.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/recent.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/registry_pii.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/route_figures.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/sections.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/significance.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/sister_graph.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/sister_pages.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/slim.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/standing.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/statuses.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/stopped.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/stops.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/superpositions.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/taxonomy_view.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/404.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_agent_role_cells.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_answer_verdict.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_causal_chart.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_circuit.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_concept_map.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_dashboard.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_embedding3d.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_experiment.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_experiments.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_figure.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_figure_pause.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_gas3d.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_head_profile.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_members.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_patchscope.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_prior_art.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_record.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_research_extra.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_rivals.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_route3d.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_route3d_waves.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_route_row.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_specificity.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_steering.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_superposition.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_vocab_chart.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/_wiring.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/about.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/agent.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/agents.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/answer.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/atlas.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/base.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/circuit.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/circuit_experiment.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/circuit_unit.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/circuits.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/experiment.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/explanation_prompt.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/explanations.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/hub.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/index.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/layer.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/learned-baseline.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/model.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/models.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/neuron.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/sister_match.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/sisters.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/superposition.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/user.html +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/wiki/experiment.md +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/wiki/index.md +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/wiki/neuron.md +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/templates/wiki/stop.md +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/builder/users.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/circuit_review.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_answers.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_baseline.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_build.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_check.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_claude_session.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_concepts.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_costs.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_coverage.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_crossref.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_evidence_store.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_interference.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_map.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_memory.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_model_check.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_patch.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_pause.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_pole_effects.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_probing.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_provider.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_reproduce.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_sisters.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_submission.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_superpositions.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/cli_wiring.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/agent_names.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/answer_records.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/attribution.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/cache_dirs.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/causal.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/circuit_records.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/confounds.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/contributors.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/draws.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/errata.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/evidence.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/examples.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/exceptions.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/explanation.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/explanation_records.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/fence.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/heavy_lock.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/identifiers.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/isolation.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/ledger.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/legacy_names.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/licenses.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/manifold.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/partners.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/patchscope.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/paths.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/pause.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/prior_art.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/probing.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/profiles.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/project.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/record_kinds.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/rivals.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/run_environment.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/specificity.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/stats.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/steering.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/strict.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/transcripts.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/core/wiring.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/corpus_presets.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/coverage.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/data/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/data/providers.toml +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/data/sample_corpus.txt +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_backend.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_corpus.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_figure_data.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_groups.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_narrate.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_output.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_plan.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_print.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_reuse.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/explain_stopped.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/git_fetch.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/half_precision.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/bundles.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/convert.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/ane/qualified.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/attribution.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/causal.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/cpu_speed.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/dead.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/dreaming.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/environment.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/explanation_scores.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/features.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/first_position.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/heads.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/hooks.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/layer_cache.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/patcher.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/patchscope.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/prepare.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/probing.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/scan.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/sites.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/units.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/wiring.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/harness/wiring_activations.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/hubs.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/behaviour.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/fisher.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/floors.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/keep.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/pruning.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/report.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/routes.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/run.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/template.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/tuning.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/interference/units.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/loop_bugs.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/loop_pending.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/mcp_server.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/model_check.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/model_revisions.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/neuronpedia_baseline.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/neuronpedia_review.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/partner_context.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/__init__.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/apply.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/gates.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/graph.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/history.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/schema.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/session.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/store.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/patches/tensors.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_effects.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_heads.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_models.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/planner_sisters.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/pole_effects.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/record_schema.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/reproduce.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/reproduce_explanation.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/reproduce_policy.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/runner_cache.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/scan_reuse.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/score_controls.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/signing.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/superposition_finders.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/until_verified.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/verdict_regression.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/verify_odds.py +0 -0
- {open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/wiring_backfill.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,132 @@ Changes waiting for the next release are files in [changelog.d/](changelog.d/REA
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [0.6.5] - 2026-12-02
|
|
17
|
+
|
|
18
|
+
Ships with protocol version **0.10**.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- The deploy now checks the live site after each sync. It fetches the home page, a model, a neuron page, a paper and the stylesheet, and compares each with the build. A failure opens or updates the "Deploy failed on main" issue (`scripts/check_live_site.py`, #3171).
|
|
23
|
+
- A *Dependency audit* workflow runs `pip-audit` on every package that `uv.lock` pins. It fails on a known vulnerability, and runs when the lock or `pyproject.toml` changes and once a day (#3179).
|
|
24
|
+
- A pre-commit config runs the fast parts of `make lint` before each commit, in about 5 s (`.pre-commit-config.yaml`, #3182). It runs ruff, the line limit, the comment and docstring checks, and the changelog check. Set it up with `uvx pre-commit install`.
|
|
25
|
+
- A daily workflow expires abandoned experiment claims. It finds draft PRs that hold only their claim commit, with no commit, update or comment for 3 days. A claim with its ledger entry is marked ready, so auto-merge lands the entry, and an empty claim closes with its branch (`scripts/expire_claims.py`, #3243).
|
|
26
|
+
- A guide to running on Google Colab, `docs/colab.md`, with a ready notebook, `notebooks/colab.ipynb`, and an "Open in Colab" badge in the README (#3252). It covers the install, keys in Colab secrets and the scan corpus. It also covers which models fit a T4, the dtype, and how to save results before the runtime resets.
|
|
27
|
+
- A literature review of Lim, Kim, Lee and Song (2026), *Geometry-adaptive explainer for faithful dictionary-based interpretability under distribution shift* (`docs/literature/geometry-adaptive-explainer.md`, #3432). It adapts only a dictionary's decoder, and the repo's audits read activations, so it changes nothing here.
|
|
28
|
+
- A literature review of Chang, Kuo, Lee and Tsai (2026), *Identically trained language models break on different jailbreaks* (`docs/literature/identically-trained-jailbreaks.md`, #3433). It measures whole models, but its design for comparing seeds bears on #5713.
|
|
29
|
+
- A versioned codebook of explanation categories, `docs/codebook/explanations.toml` (version 0.1, provisional), made by thematic analysis of 200 explanations sampled across models, layers and verdicts. It has 12 coarse codes with fine codes under them. `scripts/codebook.py` writes the coders' prompt, checks a coding and measures Krippendorff's alpha. In the first round, two Claude coders reached alpha 0.838 at the coarse level (95% interval 0.753–0.909) on 100 new explanations (`docs/codebook/reliability.md`).
|
|
30
|
+
- `docs/codebook/codes-v0.1.jsonl` codes all 5,081 records with codebook 0.1. On the reliability sample, it agrees with round 1's coders at a coarse alpha of 0.783 and 0.806.
|
|
31
|
+
- A DeepSeek cross-family coder on round 1 reached coarse alpha 0.766 against Opus and 0.779 three-way across Opus, Sonnet and DeepSeek.
|
|
32
|
+
- `docs/codebook/explanations.toml` now defines a 45-node `is_a` ontology DAG, and `docs/codebook/evidence.toml` stores shared evidence codes, GRADE certainty rules and Bradford Hill criteria (`scripts/codebook_evidence.py`, `docs/codebook/evidence.md`).
|
|
33
|
+
- `docs/codebook/probes.toml` (version 0.2) and `scripts/codebook_probes.py` add blind probe condition coding and per-condition Krippendorff's alpha for #3561, with two cross-family reliability rounds in `docs/codebook/probes-reliability.md`.
|
|
34
|
+
- An analysis of a random-matrix formula for the sister search's rotated reference, on two model pairs (`docs/analyses/rotation-formula.md`, `scripts/sister_rotation_formula.py`, #4018). It changes none of 51 sister calls, but it runs 13–22% low. The switch is #8284. Most Qwen2.5-0.5B → GPT-2 rows don't reproduce on the CPU, which #8285 holds.
|
|
35
|
+
- `docs/analyses/perf.md` now reports each stage's wall time over the newest 500 records, with the agent stages split by the product that answered (`scripts/stage_times.py`, #4103). DeepSeek Flash takes a median of 702 s as proposer, against 151 s for Claude Opus.
|
|
36
|
+
- `scripts/spd_followups_colab.ipynb` runs two follow-ups of `papers/spd-input-projections/` on a Colab GPU, from runs C and D's checkpoints. They are the equal-count curves of `spd_compare.py` (`spd_curve`) and a constant-learning-rate continuation of run C (`train_spd.py --lr-schedule constant`).
|
|
37
|
+
- Each release explains a fixed set of prompts again, with no LLM, so each prompt's page shows its coverage over time (`data/tracked-prompts.json`, `scripts/track_prompts.py`, #4327). The set has five pythia-70m prompts, and two for each other configured model.
|
|
38
|
+
- Each explanation page shows the answer token under the prompt. It shows the leading space as ␣, says the answer is one token, and says where it is predicted. It also gives the token id when the record holds it (#4596).
|
|
39
|
+
- Completed parallel `explain --run --parallel N` support (#6060): shared `--run M` experiment counts and `--target` stop signals across slots, enabled LiteLLM backends (`--proposer`, `--reviewer`, `--provider`), and added cleanup of extra slot worktrees on exit.
|
|
40
|
+
- A literature page reviews *A New Interpretation of Information Rate* (Kelly, 1956), the source of `papers/verdict-prediction/`'s Kelly rule. Kelly's theory needs reinvested profits, which an experiment budget doesn't give. So the page points to his own fallback, the most expected value per bet.
|
|
41
|
+
- A literature review of Akiba, Sano, Yanase, Ohta and Koyama (2019), *Optuna: A next-generation hyperparameter optimization framework* (`docs/literature/optuna.md`, #7968). `scripts/verdict_tuned.py` tunes the verdict predictor with its TPE sampler. Its benchmarks test no noisy objective, which may explain why the tuned model ranked no better.
|
|
42
|
+
- A literature review of Malinin, Prokhorenkova and Ustimenko (2021), *Uncertainty in gradient boosting via ensembles* (`docs/literature/uncertainty-gradient-boosting.md`, #7969). `papers/verdict-prediction/` uses its virtual ensembles and its knowledge uncertainty. Its finding that virtual members are weak on continuous features opens #8225, a test of independent ensembles.
|
|
43
|
+
- A literature review of Cammarata (2026), *Neural networks are already clean* (`docs/literature/already-clean.md`, #7978). The `native-neuron-audit` skill and the repo's papers take its method and the word *pole* from it. Its 90% of poles with one main job and the repo's 25% VERIFIED measure different things.
|
|
44
|
+
- Added the 60-pole prospective `EleutherAI/pythia-70m` sweep-ranking validation (40 top-ranked plus 20 fixed random slice) to `docs/analyses/experimentability.md` and `docs/analyses/experimentability-batch.jsonl` (#7989). Sweep-ranked draws reached 22.5% VERIFIED vs 5.0% random, cutting agent cost per VERIFIED pole 2.8× ($0.78 vs $2.20, proposer $0.022 vs $0.065).
|
|
45
|
+
- **Experiment throughput analysis.** Added the baseline cost and wall-time model, lever-by-lever savings, Jev protocol check, and ordered 100× roadmap (`docs/analyses/experiment-throughput.md`, #8062).
|
|
46
|
+
- Added `--draws` in `scripts/sweep_predict.py` to include dead and default-on stop records as negative labels (#8113). Three-model held-out AUC rises to 0.819 (ECE 0.0124), and `#7989` random-slice Brier score drops 2.7×.
|
|
47
|
+
- Accelerated `scripts/verdict_calibration.py::venn_abers` by caching exact `(p0, p1)` intervals per calibration rank bracket (#8113). Ranking 995,328 scores now takes 49.5 s instead of ~29 minutes.
|
|
48
|
+
- Added `.env` API-key fallback to `providers.py` and `LLMAgent`, and capped DeepSeek's default `reasoning_effort` to `"none"` (#8208). Override the cap through `OPENINTERPRETABILITY_REASONING_EFFORT`.
|
|
49
|
+
- Added one-round in-process counterfactual measurement and refinement for direct API proposers (`agents/proposer_refine.py`), and recorded the 40-unit matched Opus vs Sonnet/DeepSeek A/B test in `docs/analyses/experiment-throughput.md` (#8208).
|
|
50
|
+
- `open-interpretability worker` keeps models loaded for a session. With `OPENINTERPRETABILITY_WORKER` set to its socket, each `audit`, `review`, `score` and `activations` command goes to the worker. So a model loads once, not once per command. On this machine, a repeated command took 0.17–0.9 s through the worker, against 3.1 s (pythia-70m) and 4.1–6.5 s (Qwen2.5-1.5B) in its own process. Without the worker, commands run as before.
|
|
51
|
+
- **TypeSafe Jev judge backend and side-by-side benchmark.** Added native `typesafe/` Jev support in `ExplanationJudge` with 5-fold CV cutoffs and recorded the 163-task Haiku comparison (`openinterpretability/agents/jev.py`, `openinterpretability/agents/judge.py`, `openinterpretability/core/pricing.py`, `docs/analyses/experiment-throughput.md`, #8212, #8062).
|
|
52
|
+
- `open-interpretability loop --batch N` lands N experiments in one PR, which cuts the CI runs, merges and deploys per record. Each draw claims its unit with a branch `claim/experiment/<key>` and no PR. The batch PR's body then claims the units, and `--batch-minutes M` also opens the PR M minutes after the batch's first experiment.
|
|
53
|
+
- A literature review of Borkar, Mireshghallah and Smith (2026), *Predicting memorization before fine-tuning language models* (`docs/literature/predicting-memorization-before-fine-tuning.md`, #8240). Its features describe whole sequences, not units, so the review opens no follow-up.
|
|
54
|
+
- A literature review of Chung and Du (2026), *PocketRL: Training a 7B language model with reinforcement learning on one RTX 5090* (`docs/literature/pocketrl.md`, #8250). Its trainer supports Qwen2.5. Follow-up #8264 would run it on Qwen2.5-0.5B and test which VERIFIED explanations keep.
|
|
55
|
+
- A literature review of Labyrinth Research (2026), *Using influence functions to find post-training data responsible for reward hacking* (`docs/literature/influence-functions-reward-hacking.md`, #8255). It attributes to training data, not to units, and the review notes on #3377 how its method could apply to Pythia-70m.
|
|
56
|
+
- A literature review of Hong, Ma and Zhao (2026), *Manifold pretraining engineering* (`docs/literature/manifold-pretraining-engineering.md`, #8266). Its released 53M models pass `model-check`. Follow-up #8274 would audit their number neurons with and without the helix prior.
|
|
57
|
+
- `papers/what-predicts-verification/` has analysis 2: whether cheap statistics find poles of the same kind. A held-out pole's five nearest poles, by a forest's distance, name its explanation's category (codebook 0.1) 36.5% of the time. That is against 27.9% for its layer's majority and 12.4% by chance, which passes the pre-registered criterion (`scripts/verify_neighbours.py`).
|
|
58
|
+
- Added a persistent WAL-mode SQLite cache (`openinterpretability/builder/slim_cache.py`) for `SlimArchive` loads in `load_archive_paths`, and added `model`-scoped loading to `load_states` and `load_archive_paths` for `explain` and `explain-family` (#7005).
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
|
|
62
|
+
- The About page and `docs/PROTOCOL.md` §1 name the taxonomy's *Audited* column *Own verdict*, so it no longer reads as "reproduced". A new *Reproduced* column says how CI checks each concept's record. It comes from `core/record_kinds.py` (#4794).
|
|
63
|
+
- Bounded `open-interpretability sweep` memory with dense `float64` repeated-token sums, analytical singleton folding, streaming Pass 1 maxima, and `--layers` blocks (#8007). `Qwen/Qwen2.5-0.5B` sweeps now run at 3.35 GB peak RSS.
|
|
64
|
+
- The proposer's system prompt now carries its method, distilled from the `native-neuron-audit`, `vocab-projection-lookahead` and `neuron-family-triage` skills in about 3k characters (`agents/proposer_method.py`). So a direct API call gets the same method as the `neuron-proposer` subagent. The subagent no longer reads those skill files. It answers in as few steps as it can, which cuts the tokens that it resends each turn.
|
|
65
|
+
- Default new experiment scans to a shared weekly corpus per model and record `corpus_week` in `ExperimentProvenance` (#8209).
|
|
66
|
+
- **Parallel judges beside reviewer.** Run judges concurrently with each other and alongside the reviewer in API and subagent workflows (`openinterpretability/cli_review.py`, `openinterpretability/cli_score.py`, `openinterpretability/draw_steps.py`, `openinterpretability/core/costs.py`, #8211, #8062).
|
|
67
|
+
- Accelerate `lenses` (prefix sharing, length-sorted 32×256 excerpts) and `input_attribution` (nested trapezoidal IG, fp16 GPU/MPS autocast, 512-token context cap) (#8214).
|
|
68
|
+
- Registry coverage for 0.6.5 (`docs/analyses/registry-coverage.jsonl`), with VERIFIED poles and mean recovered share by model:
|
|
69
|
+
- Pythia-70m: 330 poles (was 322), 0.078 (was 0.047).
|
|
70
|
+
- Qwen2.5-0.5B: 406 (was 400), 0.014 (was 0.012).
|
|
71
|
+
- GPT-2: 238 (was 230), −0.058 (was −0.059).
|
|
72
|
+
- Qwen2.5-1.5B: 97 (was 96), 0.0004 (no change).
|
|
73
|
+
- The concept map gains 50 poles. The circuit ids add three changes, on Qwen2.5-0.5B and GPT-2.
|
|
74
|
+
- The first round of tracked prompts (#4327) records 4 pythia-70m and 2 GPT-2 explanations. "The sun rises in the" on pythia-70m now reaches 63.9% coverage, against 81.9% on 2026-11-19. The Qwen prompts wait for 8340, because one took over an hour.
|
|
75
|
+
- The sister search adds 69 rows and 9 sisters. By pair, the sisters are:
|
|
76
|
+
- Qwen2.5-0.5B → Qwen2.5-1.5B: 2. The strongest is Qwen2.5-0.5B L22/N1629− → Qwen2.5-1.5B L25/N1901− (r 0.72).
|
|
77
|
+
- Qwen2.5-0.5B → Pythia-70m: 2.
|
|
78
|
+
- GPT-2 → Qwen2.5-0.5B: 2. GPT-2 L2/N1835+ → Qwen2.5-0.5B L3/N1281+ is r 0.56.
|
|
79
|
+
- GPT-2 → Qwen2.5-1.5B: 1. GPT-2 L2/N1835+ → Qwen2.5-1.5B L1/N7048− is r 0.59.
|
|
80
|
+
- Pythia-70m → Qwen2.5-1.5B: 1.
|
|
81
|
+
- Qwen2.5-0.5B → GPT-2: 1.
|
|
82
|
+
- `loop`, `explain-family --run`, and `draw_steps` now accept `--judge-model` (for example `typesafe/jev-latest`) to override the reviewer as judge (#7005, #8212).
|
|
83
|
+
- `explain-family --run` now accepts `--batch` and `--batch-minutes` to land multiple experiments per PR, and `loop_batch` reuses the weekly scan corpus instead of rebuilding a fresh corpus per experiment (#7005, #8213).
|
|
84
|
+
- `KeptSets.masks` now expands one shared base row instead of looping per row (~150x faster), and `KeptSets._neurons` drops a redundant `.clone()` (#7005).
|
|
85
|
+
- `KeptSets.raw_add` skips neuron poles that stay inactive past token 0 under the base mask with exact parity, speeding up `explain_joint.greedy` (#7005).
|
|
86
|
+
- `KeptSets` now slices `lm_head` inputs to the target token position (with `use_cache=False`) and adds base-state `grad_deltas` (#7005).
|
|
87
|
+
- `explain_joint.greedy` now ranks candidates with `grad_deltas`, exact-verifies top picks through `raw_add`, and falls back to full scans on stalls (#7005).
|
|
88
|
+
- `explain-family` now loads registry states once and skips discarded per-prompt passes. It also reuses `KeptSets` scorers across prompts (#7005).
|
|
89
|
+
- `explain-family` now accepts `--proposer`, `--reviewer` and `--provider` for `--run`, matching `explain` (#7005).
|
|
90
|
+
- `explain_coverage.prompt_coverage` now batches Pass 1 of `minimal_set` through `KeptSets.raw_masks` and vectorizes `keep_hooks` pole indexing (#7005).
|
|
91
|
+
|
|
92
|
+
### Fixed
|
|
93
|
+
|
|
94
|
+
- The pole sign of a unit (+ or −) now passes WCAG AA contrast as small text in light and dark mode. The pending-experiments table lists follow-up PRs again, whose branches end in a draw time. The accessibility check opens every fold before it runs, and the sample site has two pending rows, so it checks that table (#5429).
|
|
95
|
+
- Fixed the `Evidence branch cleanup` workflow deleting `git/heads/...` (HTTP 404) instead of `git/refs/heads/...`, and added a `concurrency` group so closed PR runs do not race (#6820, #4326).
|
|
96
|
+
- Fixed `review --check-probes` crashing on empty or whitespace-only probes (`ValueError: Shape mismatch for blis.gemm`) by short-circuiting blank texts in `openinterpretability.names.person_matches` and `pos_matches` before calling spaCy (#6966).
|
|
97
|
+
- Mutation runs now give each forked worker its own temporary subfolder and treat segfaulted mutants as failures (#8122).
|
|
98
|
+
- `open-interpretability loop` now pushes the evidence blobs of a PR's slim records, as the `land-experiment` skill's post step does. Without them, CI's "Evidence of slim records" check fails. This holds both for a PR per experiment and for a batch PR.
|
|
99
|
+
- `scripts/next_issue.py` now skips an agent's own started issue while an open issue blocks it, as it already skipped blocked release and backlog candidates (#8222). Before, a paused issue was offered on every run. #7005 waits on #8062 at the maintainer's request, so the loop never reached the backlog.
|
|
100
|
+
- Fixed `open-interpretability audit --window-tokens 1024` crashing in the lens phase (`ValueError: stride must be in 1..256, got 512`) by passing `stride=window` to `cut_pieces` in `evidence_lenses.py::read_lenses` (#8261).
|
|
101
|
+
- `open-interpretability loop` no longer fails on pythia-70m explore draws whose fresh corpus holds a document longer than the model's 2,048 positions. pythia-70m now scans in 1,024-token windows by default (`[tool.openinterpretability.window_tokens]`). Its records have used that window since 2026-11-25.
|
|
102
|
+
- `open-interpretability corpus` no longer stops on a document with no letters, such as only digits or punctuation. fastText gives such text no label, and the language detector now records no language for it.
|
|
103
|
+
- The model worker's client connects only to a socket owned by the current user, with no group or other access. Otherwise it runs the command in-process (#8315).
|
|
104
|
+
- The tests no longer fail with "CUDA error: out of memory" when other jobs fill the machine's GPU. torch's optimizers created a CUDA context in every test worker on a machine with a GPU, even for tensors on the CPU. The test session now hides the GPU. Set `OPENINTERPRETABILITY_TEST_GPU=1` to run the CUDA tests (`tests/test_cuda_streaming.py`).
|
|
105
|
+
- `test_batched_leave_one_out_and_vectorized_keep_hooks_match_sequential` runs its model in float64, so it no longer fails on macOS, where float32 rounds differently (#8344).
|
|
106
|
+
|
|
107
|
+
## [0.6.4] - 2026-12-01
|
|
108
|
+
|
|
109
|
+
Ships with protocol version **0.10**.
|
|
110
|
+
|
|
111
|
+
### Added
|
|
112
|
+
|
|
113
|
+
- 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.
|
|
114
|
+
- `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.
|
|
115
|
+
- 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.
|
|
116
|
+
- `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.
|
|
117
|
+
- 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.
|
|
118
|
+
- 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.
|
|
119
|
+
- 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.
|
|
120
|
+
|
|
121
|
+
### Changed
|
|
122
|
+
|
|
123
|
+
- **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.
|
|
124
|
+
- **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.
|
|
125
|
+
- 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.
|
|
126
|
+
- 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.
|
|
127
|
+
- **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:
|
|
128
|
+
|
|
129
|
+
| Model | VERIFIED poles | Share of poles | Mean recovered |
|
|
130
|
+
| --- | --- | --- | --- |
|
|
131
|
+
| pythia-70m | 284 → 322 | 1.31% | 0.045 → 0.047 |
|
|
132
|
+
| GPT-2 | 230 → 230 | 0.31% | −0.059 → −0.059 |
|
|
133
|
+
| Qwen2.5-0.5B | 395 → 400 | 0.17% | 0.012 → 0.012 |
|
|
134
|
+
| Qwen2.5-1.5B | 92 → 96 | 0.02% | 0.000 → 0.000 |
|
|
135
|
+
|
|
136
|
+
- 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).
|
|
137
|
+
|
|
138
|
+
### Fixed
|
|
139
|
+
|
|
140
|
+
- **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.
|
|
141
|
+
|
|
16
142
|
## [0.6.3] - 2026-11-30
|
|
17
143
|
|
|
18
144
|
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.5
|
|
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
|
|
@@ -20,7 +20,7 @@ Requires-Dist: duckdb>=1.0.0
|
|
|
20
20
|
Requires-Dist: fasttext-predict>=0.9.2
|
|
21
21
|
Requires-Dist: instructor>=1.3.0
|
|
22
22
|
Requires-Dist: jinja2>=3.1.3
|
|
23
|
-
Requires-Dist: labinacan[pii,r2]==0.1.
|
|
23
|
+
Requires-Dist: labinacan[pii,r2]==0.1.8
|
|
24
24
|
Requires-Dist: latex2mathml>=3.81.1
|
|
25
25
|
Requires-Dist: litellm>=1.40.0
|
|
26
26
|
Requires-Dist: magika<2,>=1.0.3
|
|
@@ -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
|
|
@@ -68,6 +74,7 @@ Description-Content-Type: text/markdown
|
|
|
68
74
|
|
|
69
75
|
[](https://doi.org/10.5281/zenodo.24150022)
|
|
70
76
|
[](https://pypi.org/project/open-interpretability/)
|
|
77
|
+
[](https://colab.research.google.com/github/8W9aG/openinterpretability/blob/main/notebooks/colab.ipynb)
|
|
71
78
|
|
|
72
79
|
An open project, run with agents, that explains the native neurons and attention heads of open-weight language models and publishes each result at **[open-interpretability.com](https://open-interpretability.com/)**.
|
|
73
80
|
|
|
@@ -96,6 +103,7 @@ It lists the units that carry the model's answer, says which of them the registr
|
|
|
96
103
|
## More
|
|
97
104
|
|
|
98
105
|
- [docs/experiments.md](docs/experiments.md): what you need, other ways to run, API keys, and every option.
|
|
106
|
+
- [docs/colab.md](docs/colab.md): running on a free Google Colab GPU, with a ready notebook.
|
|
99
107
|
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
100
108
|
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
101
109
|
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://doi.org/10.5281/zenodo.24150022)
|
|
6
6
|
[](https://pypi.org/project/open-interpretability/)
|
|
7
|
+
[](https://colab.research.google.com/github/8W9aG/openinterpretability/blob/main/notebooks/colab.ipynb)
|
|
7
8
|
|
|
8
9
|
An open project, run with agents, that explains the native neurons and attention heads of open-weight language models and publishes each result at **[open-interpretability.com](https://open-interpretability.com/)**.
|
|
9
10
|
|
|
@@ -32,6 +33,7 @@ It lists the units that carry the model's answer, says which of them the registr
|
|
|
32
33
|
## More
|
|
33
34
|
|
|
34
35
|
- [docs/experiments.md](docs/experiments.md): what you need, other ways to run, API keys, and every option.
|
|
36
|
+
- [docs/colab.md](docs/colab.md): running on a free Google Colab GPU, with a ready notebook.
|
|
35
37
|
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
36
38
|
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
37
39
|
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
{open_interpretability-0.6.3 → open_interpretability-0.6.5}/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.5"
|
|
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"
|
{open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/base.py
RENAMED
|
@@ -24,6 +24,11 @@ T = TypeVar("T", bound=BaseModel)
|
|
|
24
24
|
|
|
25
25
|
DEFAULT_MODEL = os.environ.get("OPENINTERPRETABILITY_AGENT_MODEL", "anthropic/claude-opus-5-5")
|
|
26
26
|
MODEL_ALIASES_ENV = "OPENINTERPRETABILITY_MODEL_ALIASES"
|
|
27
|
+
REASONING_EFFORT_ENV = "OPENINTERPRETABILITY_REASONING_EFFORT"
|
|
28
|
+
# DeepSeek's direct API defaults to unbounded thinking (100–370 s and 17k–43k completion tokens
|
|
29
|
+
# on proposer prompts, #8208). Setting reasoning_effort="none" cuts latency to ~7 s. Override it
|
|
30
|
+
# through reasoning_effort= or $OPENINTERPRETABILITY_REASONING_EFFORT ("default" disables it).
|
|
31
|
+
DEFAULT_REASONING_EFFORT: dict[str, str] = {"deepseek": "none"}
|
|
27
32
|
# LiteLLM providers that cache a prompt prefix only where a ``cache_control`` mark ends it.
|
|
28
33
|
# Others (OpenAI, DeepSeek, Gemini) cache a repeated prefix without a mark.
|
|
29
34
|
CACHE_CONTROL_PROVIDERS = frozenset({"anthropic", "bedrock"})
|
|
@@ -87,6 +92,7 @@ class LLMAgent:
|
|
|
87
92
|
model: str = DEFAULT_MODEL,
|
|
88
93
|
*,
|
|
89
94
|
temperature: float | None = None,
|
|
95
|
+
reasoning_effort: str | None = None,
|
|
90
96
|
max_retries: int = 2,
|
|
91
97
|
client: Any | None = None,
|
|
92
98
|
exchange_dir: Path | None = None,
|
|
@@ -95,6 +101,7 @@ class LLMAgent:
|
|
|
95
101
|
) -> None:
|
|
96
102
|
self.model = model
|
|
97
103
|
self.temperature = temperature
|
|
104
|
+
self.reasoning_effort = reasoning_effort
|
|
98
105
|
self.max_retries = max_retries
|
|
99
106
|
self._client = client
|
|
100
107
|
self.exchange_dir = exchange_dir or Path(
|
|
@@ -156,10 +163,28 @@ class LLMAgent:
|
|
|
156
163
|
return result
|
|
157
164
|
return self._completion(response_model, prompt)
|
|
158
165
|
|
|
159
|
-
def
|
|
166
|
+
def _completion_kwargs(self) -> dict[str, Any]:
|
|
167
|
+
"""Extra kwargs for LiteLLM: temperature, reasoning effort and ``.env`` API key."""
|
|
168
|
+
from openinterpretability.providers import dotenv_key_for_model
|
|
169
|
+
|
|
160
170
|
kwargs: dict[str, Any] = {}
|
|
161
171
|
if self.temperature is not None:
|
|
162
172
|
kwargs["temperature"] = self.temperature
|
|
173
|
+
provider = self.model.split("/", 1)[0]
|
|
174
|
+
effort = (
|
|
175
|
+
self.reasoning_effort
|
|
176
|
+
if self.reasoning_effort is not None
|
|
177
|
+
else os.environ.get(REASONING_EFFORT_ENV, "").strip()
|
|
178
|
+
or DEFAULT_REASONING_EFFORT.get(provider)
|
|
179
|
+
)
|
|
180
|
+
if effort and effort != "default":
|
|
181
|
+
kwargs["reasoning_effort"] = effort
|
|
182
|
+
if api_key := dotenv_key_for_model(self.model):
|
|
183
|
+
kwargs["api_key"] = api_key
|
|
184
|
+
return kwargs
|
|
185
|
+
|
|
186
|
+
def _completion(self, response_model: type[T], prompt: str) -> T:
|
|
187
|
+
kwargs = self._completion_kwargs()
|
|
163
188
|
responses: list[Any] = [] # one raw response per attempt, for usage and cost
|
|
164
189
|
client, hook = self.client, responses.append
|
|
165
190
|
if hasattr(client, "on"): # instructor's hooks; a stub client may lack them
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"""TypeSafe AI Jev backend for explanation simulation scoring (#8212, #8062).
|
|
2
|
+
|
|
3
|
+
Jev evaluates a shared ``state`` against a map of ``noul`` (yes/no probability) questions
|
|
4
|
+
in one HTTP call to ``/v1/systemone``. Default thresholds come from 5-fold cross-validation
|
|
5
|
+
across 163 Haiku-judged tasks in ``docs/analyses/experiment-throughput.md``.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import json
|
|
11
|
+
import os
|
|
12
|
+
import urllib.error
|
|
13
|
+
import urllib.request
|
|
14
|
+
from collections.abc import Callable, Mapping, Sequence
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
from typing import Any, Literal
|
|
17
|
+
|
|
18
|
+
from openinterpretability.agents.judge import MARK_CLOSE, MARK_OPEN, TaskWindow, _show
|
|
19
|
+
from openinterpretability.core import costs
|
|
20
|
+
from openinterpretability.core.exceptions import AgentError
|
|
21
|
+
|
|
22
|
+
PREFIX = "typesafe/"
|
|
23
|
+
DEFAULT_BASE_URL = "https://api.typesafe.ai"
|
|
24
|
+
API_KEY_ENV = "TYPESAFE_API_KEY"
|
|
25
|
+
BASE_URL_ENV = "TYPESAFE_BASE_URL"
|
|
26
|
+
INPUT_USD_PER_MILLION = 0.042
|
|
27
|
+
# 5-fold CV thresholds over 163 stored Haiku tasks (all 5 folds chose 0.35 / 0.20).
|
|
28
|
+
DETECTION_THRESHOLD = 0.35
|
|
29
|
+
FUZZING_THRESHOLD = 0.20
|
|
30
|
+
TIMEOUT_SECONDS = 45.0
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def is_jev_model(model: str) -> bool:
|
|
34
|
+
"""Return True when ``model`` selects a TypeSafe AI Jev model.
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
model: Model identifier string such as ``typesafe/jev-latest``.
|
|
38
|
+
|
|
39
|
+
Returns:
|
|
40
|
+
True when ``model`` starts with ``typesafe/``.
|
|
41
|
+
|
|
42
|
+
>>> is_jev_model("typesafe/jev-latest")
|
|
43
|
+
True
|
|
44
|
+
>>> is_jev_model("anthropic/claude-haiku-5-5")
|
|
45
|
+
False
|
|
46
|
+
"""
|
|
47
|
+
return model.startswith(PREFIX)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def api_key(env: Mapping[str, str] | None = None, dotenv: Path | None = None) -> str:
|
|
51
|
+
"""Read ``TYPESAFE_API_KEY`` from ``env`` or a git-ignored ``.env`` file.
|
|
52
|
+
|
|
53
|
+
Args:
|
|
54
|
+
env: Environment mapping; defaults to ``os.environ``.
|
|
55
|
+
dotenv: Fallback ``.env`` path; defaults to ``Path('.env')``.
|
|
56
|
+
|
|
57
|
+
Returns:
|
|
58
|
+
The non-empty API key string.
|
|
59
|
+
|
|
60
|
+
Raises:
|
|
61
|
+
AgentError: When the key is missing from both ``env`` and ``dotenv``.
|
|
62
|
+
|
|
63
|
+
>>> api_key({"TYPESAFE_API_KEY": "demo-key"})
|
|
64
|
+
'demo-key'
|
|
65
|
+
"""
|
|
66
|
+
source = os.environ if env is None else env
|
|
67
|
+
if value := source.get(API_KEY_ENV, "").strip():
|
|
68
|
+
return value
|
|
69
|
+
path = Path(".env") if dotenv is None else dotenv
|
|
70
|
+
if path.exists():
|
|
71
|
+
prefix = f"{API_KEY_ENV}="
|
|
72
|
+
for line in path.read_text().splitlines():
|
|
73
|
+
if line.startswith(prefix) and (
|
|
74
|
+
found := line.removeprefix(prefix).strip().strip("\"'")
|
|
75
|
+
):
|
|
76
|
+
return found
|
|
77
|
+
raise AgentError(f"{API_KEY_ENV} is not set in the environment or {path}.")
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def _post_systemone(
|
|
81
|
+
payload: dict[str, Any], key: str, base_url: str | None = None
|
|
82
|
+
) -> dict[str, Any]:
|
|
83
|
+
"""Send one System One JSON request to TypeSafe AI.
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
payload: Request body with ``model``, ``state`` and ``questions``.
|
|
87
|
+
key: Bearer token for TypeSafe AI.
|
|
88
|
+
base_url: Optional API base URL overriding ``TYPESAFE_BASE_URL``.
|
|
89
|
+
|
|
90
|
+
Returns:
|
|
91
|
+
Decoded JSON response object.
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
AgentError: On HTTP, network, timeout or JSON decode failures.
|
|
95
|
+
"""
|
|
96
|
+
root = (base_url or os.environ.get(BASE_URL_ENV) or DEFAULT_BASE_URL).rstrip("/")
|
|
97
|
+
if not root.startswith(("https://", "http://")):
|
|
98
|
+
raise AgentError(f"TypeSafe base URL must use http or https: {root!r}")
|
|
99
|
+
req = urllib.request.Request( # noqa: S310 (scheme checked above)
|
|
100
|
+
f"{root}/v1/systemone",
|
|
101
|
+
data=json.dumps(payload).encode(),
|
|
102
|
+
headers={
|
|
103
|
+
"Authorization": f"Bearer {key}",
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
"User-Agent": "open-interpretability",
|
|
106
|
+
},
|
|
107
|
+
method="POST",
|
|
108
|
+
)
|
|
109
|
+
try:
|
|
110
|
+
with urllib.request.urlopen(req, timeout=TIMEOUT_SECONDS) as resp: # noqa: S310 (scheme checked above)
|
|
111
|
+
return dict(json.loads(resp.read().decode()))
|
|
112
|
+
except (urllib.error.URLError, TimeoutError, ValueError) as exc:
|
|
113
|
+
raise AgentError(f"TypeSafe Jev request failed: {exc}") from exc
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def build_payload(
|
|
117
|
+
model: str,
|
|
118
|
+
explanation: str,
|
|
119
|
+
windows: Sequence[TaskWindow],
|
|
120
|
+
kind: Literal["detection", "fuzzing"],
|
|
121
|
+
noun: str,
|
|
122
|
+
) -> dict[str, Any]:
|
|
123
|
+
"""Build one batched System One payload for all detection or fuzzing windows.
|
|
124
|
+
|
|
125
|
+
Args:
|
|
126
|
+
model: Full model string with ``typesafe/`` prefix.
|
|
127
|
+
explanation: Natural-language explanation under test.
|
|
128
|
+
windows: Held-out windows to judge.
|
|
129
|
+
kind: Either ``"detection"`` or ``"fuzzing"``.
|
|
130
|
+
noun: Unit noun shown in the prompt (for example ``"neuron"``).
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
System One request payload dictionary.
|
|
134
|
+
|
|
135
|
+
>>> win = TaskWindow(text="a", tokens=["a"])
|
|
136
|
+
>>> out = build_payload("typesafe/jev-latest", "fires on a", [win], "detection", "neuron")
|
|
137
|
+
>>> out["model"], list(out["questions"])
|
|
138
|
+
('jev-latest', ['t1'])
|
|
139
|
+
"""
|
|
140
|
+
if kind == "detection":
|
|
141
|
+
numbered = "\n".join(f"{i}. {_show(w.tokens)}" for i, w in enumerate(windows, 1))
|
|
142
|
+
note = "Texts are excerpts; line breaks appear as ⏎."
|
|
143
|
+
ask = (
|
|
144
|
+
"Apply the explanation literally, as written. Do not reward a related topic "
|
|
145
|
+
f"if the explanation's condition is not met. Does the {noun} fire on at least "
|
|
146
|
+
"one token in text {i}?"
|
|
147
|
+
)
|
|
148
|
+
else:
|
|
149
|
+
numbered = "\n".join(
|
|
150
|
+
f"{i}. {_show(w.tokens, w.highlighted)}" for i, w in enumerate(windows, 1)
|
|
151
|
+
)
|
|
152
|
+
note = (
|
|
153
|
+
f"Tokens marked {MARK_OPEN}like this{MARK_CLOSE} are candidate firing sites. "
|
|
154
|
+
"Line breaks appear as ⏎."
|
|
155
|
+
)
|
|
156
|
+
ask = (
|
|
157
|
+
"Apply the explanation literally, as written. In text {i}, are the "
|
|
158
|
+
f"{MARK_OPEN}marked{MARK_CLOSE} tokens where the explanation says the {noun} fires?"
|
|
159
|
+
)
|
|
160
|
+
# Send all windows in one shared state so Jev reads the explanation once per prompt.
|
|
161
|
+
state = f"Explanation of the {noun}:\n{explanation}\n\n{note}\n\nNumbered texts:\n{numbered}"
|
|
162
|
+
questions = {
|
|
163
|
+
f"t{i}": {"type": "noul", "instructions": ask.format(i=i)}
|
|
164
|
+
for i in range(1, len(windows) + 1)
|
|
165
|
+
}
|
|
166
|
+
return {"model": model.removeprefix(PREFIX), "state": state, "questions": questions}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
def judge_windows(
|
|
170
|
+
model: str,
|
|
171
|
+
explanation: str,
|
|
172
|
+
windows: Sequence[TaskWindow],
|
|
173
|
+
*,
|
|
174
|
+
kind: Literal["detection", "fuzzing"],
|
|
175
|
+
noun: str = "neuron",
|
|
176
|
+
threshold: float | None = None,
|
|
177
|
+
transport: Callable[[dict[str, Any], str], dict[str, Any]] | None = None,
|
|
178
|
+
) -> list[int]:
|
|
179
|
+
"""Judge ``windows`` in one batched Jev call and record stage time and token usage.
|
|
180
|
+
|
|
181
|
+
Args:
|
|
182
|
+
model: TypeSafe model string starting with ``typesafe/``.
|
|
183
|
+
explanation: Natural-language explanation under test.
|
|
184
|
+
windows: Held-out windows to judge.
|
|
185
|
+
kind: Either ``"detection"`` or ``"fuzzing"``.
|
|
186
|
+
noun: Unit noun shown in the instructions.
|
|
187
|
+
threshold: Probability cutoff; defaults to the 5-fold CV cutoff for ``kind``.
|
|
188
|
+
transport: Optional callable ``(payload, key) -> response`` for testing.
|
|
189
|
+
|
|
190
|
+
Returns:
|
|
191
|
+
Sorted 1-based window numbers whose ``noul`` probability meets ``threshold``.
|
|
192
|
+
|
|
193
|
+
>>> judge_windows("typesafe/jev-latest", "fires on a", [], kind="detection")
|
|
194
|
+
[]
|
|
195
|
+
"""
|
|
196
|
+
if not windows:
|
|
197
|
+
return []
|
|
198
|
+
# Calibrated cutoffs offset Jev's conservative bias on 50/50 held-out window samples.
|
|
199
|
+
default_cut = DETECTION_THRESHOLD if kind == "detection" else FUZZING_THRESHOLD
|
|
200
|
+
cutoff = default_cut if threshold is None else threshold
|
|
201
|
+
payload = build_payload(model, explanation, windows, kind, noun)
|
|
202
|
+
send = _post_systemone if transport is None else transport
|
|
203
|
+
key = api_key()
|
|
204
|
+
with costs.stage("judge"):
|
|
205
|
+
response = send(payload, key)
|
|
206
|
+
usage = response.get("usage") or {}
|
|
207
|
+
in_tokens = usage.get("input_tokens")
|
|
208
|
+
out_tokens = usage.get("output_tokens")
|
|
209
|
+
usd = round(in_tokens * INPUT_USD_PER_MILLION / 1e6, 8) if in_tokens is not None else None
|
|
210
|
+
call = costs.LLMCall(
|
|
211
|
+
agent="judge",
|
|
212
|
+
model=model,
|
|
213
|
+
prompt_chars=len(payload["state"]),
|
|
214
|
+
prompt_tokens=in_tokens,
|
|
215
|
+
completion_tokens=out_tokens,
|
|
216
|
+
cost_usd=usd,
|
|
217
|
+
)
|
|
218
|
+
costs.add_call(call)
|
|
219
|
+
answers = response["answers"]
|
|
220
|
+
return [i for i in range(1, len(windows) + 1) if float(answers[f"t{i}"]["noul"]) >= cutoff]
|
{open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/judge.py
RENAMED
|
@@ -130,6 +130,11 @@ class ExplanationJudge(LLMAgent):
|
|
|
130
130
|
self, explanation: str, windows: Sequence[TaskWindow], noun: str = "neuron"
|
|
131
131
|
) -> DetectionAnswer:
|
|
132
132
|
"""Ask the judge the detection question."""
|
|
133
|
+
from openinterpretability.agents.jev import is_jev_model, judge_windows
|
|
134
|
+
|
|
135
|
+
if is_jev_model(self.model):
|
|
136
|
+
active = judge_windows(self.model, explanation, windows, kind="detection", noun=noun)
|
|
137
|
+
return DetectionAnswer(active=active)
|
|
133
138
|
prompt = self.detection_prompt(explanation, windows, noun)
|
|
134
139
|
return self.structured(DetectionAnswer, prompt)
|
|
135
140
|
|
|
@@ -137,6 +142,11 @@ class ExplanationJudge(LLMAgent):
|
|
|
137
142
|
self, explanation: str, windows: Sequence[TaskWindow], noun: str = "neuron"
|
|
138
143
|
) -> FuzzingAnswer:
|
|
139
144
|
"""Ask the judge the fuzzing question."""
|
|
145
|
+
from openinterpretability.agents.jev import is_jev_model, judge_windows
|
|
146
|
+
|
|
147
|
+
if is_jev_model(self.model):
|
|
148
|
+
correct = judge_windows(self.model, explanation, windows, kind="fuzzing", noun=noun)
|
|
149
|
+
return FuzzingAnswer(correct=correct)
|
|
140
150
|
return self.structured(FuzzingAnswer, self.fuzzing_prompt(explanation, windows, noun))
|
|
141
151
|
|
|
142
152
|
|
{open_interpretability-0.6.3 → open_interpretability-0.6.5}/openinterpretability/agents/proposer.py
RENAMED
|
@@ -10,6 +10,7 @@ from pydantic import BaseModel, Field
|
|
|
10
10
|
from openinterpretability import wordnet
|
|
11
11
|
from openinterpretability.agents.base import LLMAgent
|
|
12
12
|
from openinterpretability.agents.probe_hints import pos_flag
|
|
13
|
+
from openinterpretability.agents.proposer_method import PROPOSER_METHOD
|
|
13
14
|
from openinterpretability.agents.proposer_profiles import ( # noqa: F401 (re-exported)
|
|
14
15
|
format_dictionary_profile,
|
|
15
16
|
format_head_profile,
|
|
@@ -251,7 +252,7 @@ class ProposerAgent(LLMAgent):
|
|
|
251
252
|
"counterfactuals that change as little text as possible, including at least one "
|
|
252
253
|
"control pair with expected_delta near 0. Give two rival readings that fit the same "
|
|
253
254
|
"examples but predict differently elsewhere: the review scores them beside your "
|
|
254
|
-
"hypothesis
|
|
255
|
+
"hypothesis.\n" + PROPOSER_METHOD + "\n" + FENCE_RULE # the fence rule stays last
|
|
255
256
|
)
|
|
256
257
|
|
|
257
258
|
def propose(
|
|
@@ -269,24 +270,28 @@ class ProposerAgent(LLMAgent):
|
|
|
269
270
|
related: str = "",
|
|
270
271
|
superposition_profile=None,
|
|
271
272
|
manifold=None,
|
|
273
|
+
runner: NeuronHookRunner | None = None,
|
|
272
274
|
) -> HypothesisDraft:
|
|
273
|
-
"""Ask the proposer for a hypothesis about ``identifier``.
|
|
275
|
+
"""Ask the proposer for a hypothesis about ``identifier``.
|
|
276
|
+
|
|
277
|
+
When ``runner`` is given for a direct API model, runs one live measurement-and-refinement
|
|
278
|
+
call on Call 1's counterfactuals (#8208).
|
|
279
|
+
"""
|
|
274
280
|
prompt = self.proposal_prompt(
|
|
275
|
-
identifier,
|
|
276
|
-
|
|
277
|
-
lens,
|
|
278
|
-
confounds,
|
|
279
|
-
correlated,
|
|
280
|
-
head_profile,
|
|
281
|
-
attribution,
|
|
282
|
-
dictionary_profile,
|
|
283
|
-
first_token_floor,
|
|
284
|
-
full_snippets,
|
|
285
|
-
related,
|
|
286
|
-
superposition_profile,
|
|
281
|
+
identifier, examples, lens, confounds, correlated, head_profile, attribution,
|
|
282
|
+
dictionary_profile, first_token_floor, full_snippets, related, superposition_profile,
|
|
287
283
|
manifold,
|
|
288
|
-
)
|
|
289
|
-
|
|
284
|
+
) # fmt: skip
|
|
285
|
+
draft = self.structured(HypothesisDraft, prompt)
|
|
286
|
+
if runner is not None and not self.model.startswith("external/"):
|
|
287
|
+
from openinterpretability.agents.proposer_refine import refine_draft
|
|
288
|
+
|
|
289
|
+
return refine_draft(
|
|
290
|
+
self, prompt, draft, runner, identifier, examples, head_profile=head_profile,
|
|
291
|
+
dictionary_profile=dictionary_profile, first_token_floor=first_token_floor,
|
|
292
|
+
superposition_profile=superposition_profile,
|
|
293
|
+
) # fmt: skip
|
|
294
|
+
return draft
|
|
290
295
|
|
|
291
296
|
@staticmethod
|
|
292
297
|
def proposal_prompt(
|