logogram 0.6.0__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {logogram-0.6.0 → logogram-0.7.0}/AGENTS.md +14 -4
- {logogram-0.6.0 → logogram-0.7.0}/CHANGELOG.md +227 -0
- {logogram-0.6.0 → logogram-0.7.0}/PKG-INFO +271 -63
- {logogram-0.6.0 → logogram-0.7.0}/README.md +270 -62
- {logogram-0.6.0 → logogram-0.7.0}/docs/README.md +16 -3
- {logogram-0.6.0 → logogram-0.7.0}/scripts/build_reference.py +88 -25
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/__init__.py +19 -1
- logogram-0.7.0/src/logogram/acdc.py +527 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/analysis.py +21 -2
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/api.py +977 -19
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/backends/base.py +55 -11
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/backends/hub.py +100 -10
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/backends/saes.py +62 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/backends/transformer_lens.py +154 -34
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/cli.py +1361 -33
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/compare.py +51 -0
- logogram-0.7.0/src/logogram/corpora.py +426 -0
- logogram-0.7.0/src/logogram/corpus_import.py +688 -0
- logogram-0.7.0/src/logogram/das.py +375 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/datasets.py +145 -2
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/direct.py +3 -3
- logogram-0.7.0/src/logogram/directions.py +715 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/edges.py +136 -72
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/engine.py +366 -69
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +1 -1
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +1 -1
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +1 -1
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/experiments/ioi-head-patching/spec.json +1 -1
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/history.py +39 -12
- logogram-0.7.0/src/logogram/lenses.py +778 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/local_models.py +16 -9
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/metrics.py +87 -5
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/partial.py +2 -1
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/paths.py +23 -12
- logogram-0.7.0/src/logogram/probes.py +376 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/project.py +316 -26
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/report.py +286 -31
- logogram-0.7.0/src/logogram/representations.py +819 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/results.py +46 -12
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/runner.py +110 -33
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/sae.py +48 -6
- logogram-0.7.0/src/logogram/sae_training.py +927 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/schema.py +163 -3
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/server/app.py +730 -19
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/server/models.py +312 -5
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/server/state.py +265 -22
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/sites.py +7 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/spec.py +586 -33
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/steering.py +110 -2
- logogram-0.7.0/src/logogram/top_activations.py +386 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/toys.py +1 -1
- logogram-0.7.0/src/logogram/training.py +329 -0
- logogram-0.7.0/src/logogram/web_dist/assets/index-B_uj0eaz.css +1 -0
- logogram-0.7.0/src/logogram/web_dist/assets/index-DrgUBvWm.js +60 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/web_dist/index.html +2 -2
- {logogram-0.6.0 → logogram-0.7.0}/tests/browser_server.py +5 -0
- logogram-0.7.0/tests/test_acdc.py +489 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_api.py +96 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_community.py +3 -2
- logogram-0.7.0/tests/test_corpora.py +102 -0
- logogram-0.7.0/tests/test_corpus_cli.py +205 -0
- logogram-0.7.0/tests/test_corpus_import.py +277 -0
- logogram-0.7.0/tests/test_corpus_server.py +352 -0
- logogram-0.7.0/tests/test_dataset_files.py +217 -0
- logogram-0.7.0/tests/test_direction_methods.py +694 -0
- logogram-0.7.0/tests/test_directions.py +167 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_docs.py +16 -1
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_edges.py +89 -13
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_explorer.py +1 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_gpus.py +2 -2
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_hardening.py +168 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_history.py +83 -0
- logogram-0.7.0/tests/test_lenses.py +210 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_metrics.py +14 -6
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_paths.py +38 -12
- logogram-0.7.0/tests/test_projects.py +357 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_queue.py +26 -0
- logogram-0.7.0/tests/test_representations.py +446 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_sae_catalogue.py +2 -1
- logogram-0.7.0/tests/test_sae_training.py +316 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_server.py +90 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_specs.py +45 -6
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_steering_features.py +5 -1
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_toys.py +38 -0
- logogram-0.7.0/tests/test_training_cli.py +137 -0
- logogram-0.7.0/tests/test_training_server.py +168 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/api/client.ts +125 -1
- {logogram-0.6.0 → logogram-0.7.0}/web/src/api/types.ts +581 -18
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/CancelRunDialog.tsx +14 -6
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/FolderPicker.tsx +21 -14
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/GuideDialog.tsx +2 -1
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Header.tsx +32 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/History.tsx +60 -12
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Inspector.tsx +89 -29
- logogram-0.7.0/web/src/components/ManageDialogs.tsx +314 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ModelDialog.tsx +29 -6
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/RobustnessDialog.tsx +103 -8
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/StatusLine.tsx +20 -1
- logogram-0.7.0/web/src/components/TrainDialog.module.css +150 -0
- logogram-0.7.0/web/src/components/TrainDialog.tsx +695 -0
- logogram-0.7.0/web/src/components/ViewTabs.tsx +141 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ui/index.tsx +20 -15
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ui/ui.module.css +13 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/analysis.ts +4 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/buildSpec.ts +183 -23
- logogram-0.7.0/web/src/lib/corpora.ts +231 -0
- logogram-0.7.0/web/src/lib/directions.ts +56 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/edgePlan.ts +10 -6
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/edges.ts +6 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/export.ts +8 -6
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/formDraft.ts +93 -5
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/formState.ts +84 -4
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/format.ts +9 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/hooks.ts +3 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/keys.ts +1 -1
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/metrics.ts +14 -1
- logogram-0.7.0/web/src/lib/representations.ts +137 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/runs.ts +9 -1
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/spec.ts +156 -19
- logogram-0.7.0/web/src/lib/training.ts +328 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/screens/Projects.tsx +102 -12
- {logogram-0.6.0 → logogram-0.7.0}/web/src/screens/Screens.module.css +48 -15
- {logogram-0.6.0 → logogram-0.7.0}/web/src/screens/Workbench.module.css +23 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/src/screens/Workbench.tsx +16 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/src/store/app.ts +120 -4
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/CompareView.tsx +2 -2
- logogram-0.7.0/web/src/views/CorpusView.module.css +201 -0
- logogram-0.7.0/web/src/views/CorpusView.tsx +1108 -0
- logogram-0.7.0/web/src/views/DirectionPicker.tsx +60 -0
- logogram-0.7.0/web/src/views/DirectionResults.tsx +333 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/EdgeResults.tsx +100 -18
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ExperimentView.tsx +276 -52
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/FeaturesView.tsx +29 -16
- logogram-0.7.0/web/src/views/MetricSettings.tsx +267 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/PredictionsView.module.css +1 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/PredictionsView.tsx +41 -8
- logogram-0.7.0/web/src/views/ProbeSettings.tsx +129 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/PromptsView.tsx +26 -5
- logogram-0.7.0/web/src/views/RepresentationsView.module.css +220 -0
- logogram-0.7.0/web/src/views/RepresentationsView.tsx +1042 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ResultsView.module.css +7 -3
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ResultsView.tsx +126 -19
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/RunSummary.tsx +39 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SAEPicker.module.css +33 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SAEPicker.tsx +73 -1
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/TextView.tsx +26 -2
- logogram-0.7.0/web/tests/acdc.browser.ts +94 -0
- logogram-0.7.0/web/tests/acdc.unit.ts +131 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/analyses.browser.ts +1 -1
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/autosave.unit.ts +18 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/chat.browser.ts +31 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/context.unit.ts +1 -1
- logogram-0.7.0/web/tests/corpora.unit.ts +186 -0
- logogram-0.7.0/web/tests/corpus.browser.ts +173 -0
- logogram-0.7.0/web/tests/directions.browser.ts +144 -0
- logogram-0.7.0/web/tests/directions.unit.ts +158 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/edges.unit.ts +2 -2
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/export.unit.ts +1 -1
- logogram-0.7.0/web/tests/manage.browser.ts +188 -0
- logogram-0.7.0/web/tests/manage.unit.ts +150 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/navigation.browser.ts +32 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/queue.browser.ts +11 -1
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/spec.unit.ts +15 -5
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/sweeps.unit.ts +1 -1
- logogram-0.7.0/web/tests/training.browser.ts +102 -0
- logogram-0.7.0/web/tests/training.unit.ts +101 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/walkthrough.browser.ts +5 -1
- logogram-0.6.0/src/logogram/web_dist/assets/index-BRFdKaSa.js +0 -58
- logogram-0.6.0/src/logogram/web_dist/assets/index-DBtleL59.css +0 -1
- logogram-0.6.0/web/src/views/MetricSettings.tsx +0 -123
- {logogram-0.6.0 → logogram-0.7.0}/.gitignore +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/LICENSE +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/notebooks/README.md +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/pyproject.toml +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/scripts/check_privacy.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/scripts/sae_catalogue.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/scripts/smoke_wheel.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/scripts/validate_real_weights.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/__main__.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/atp.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/backends/__init__.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/backends/catalogue.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/backends/sae_catalogue.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/chat.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/circuits.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/.gitignore +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/datasets/factual-recall.jsonl +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/project.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/.gitignore +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/datasets/gendered-pronoun.jsonl +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/project.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/.gitignore +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/datasets/greater-than.jsonl +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/project.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/.gitignore +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/datasets/ioi.jsonl +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/project.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/exports.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/features.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/fileio.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/gallery.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/heads.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/inside.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/ioi.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/owner.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/prompts.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/research.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/robustness.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/runqueue.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/runs.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/server/__init__.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/server/security.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/stats.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/support.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/sweeps.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/system.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/tasks.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/updates.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/verify.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/web_dist/assets/instrument-sans-latin-ext-standard-normal-C5E2Gvlv.woff2 +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/web_dist/assets/instrument-sans-latin-standard-normal-BVScPF0l.woff2 +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/src/logogram/web_dist/favicon.svg +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/catalogue_fixture.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/conftest.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/datasets/ioi.jsonl +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/datasets/snapshots/f5e2f2b1d68ac7ab59b1cefcd84f7f0cfc81c71c85c05c925f872e01c01d6e69.jsonl +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/manifest.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/results.parquet +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/spec.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/summary.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/manifest.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/results.parquet +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/spec.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/summary.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/written-for-0.1.0/spec.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/fixtures/old-runs/project.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_architectures.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_atp.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_attention_saes.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_chat_models.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_chat_templates.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_circuits.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_cli.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_devices.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_direct.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_engine.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_examples.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_feature_writes.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_finer_sites.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_heads.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_inside.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_loading.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_local_models.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_notebooks.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_old_runs.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_partial.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_privacy.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_reference.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_release_fixes.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_report.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_run_tracking.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_sae.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_sanity.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_saved_queue.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_security.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_skip_transcoders.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_statistics.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_steering.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_support.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_sweeps.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_tasks.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_transcoders.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_uneven.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_units.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_updates.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/tests/test_validation_script.py +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/uv.lock +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/index.html +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/package-lock.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/package.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/playwright.config.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/public/favicon.svg +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/App.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/App.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/api/events.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/AboutDialog.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/CircuitDialog.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/CommandPalette.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/CommandPalette.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/CopyCommand.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/CopyCommand.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Distribution.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Distribution.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ErrorBoundary.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ErrorBoundary.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ExampleGallery.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ExampleGallery.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/FeatureWrites.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/FeatureWrites.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/FolderPicker.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/GuideDialog.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Header.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Heatmap/Heatmap.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Heatmap/Heatmap.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Heatmap/ScaleBar.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/HelpDialogs.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/HelpMenu.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/HelpMenu.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/History.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Inspector.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Logogram.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/LogogramDial.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/LogogramDial.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ModelDialog.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ModelMap/Legend.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ModelMap/ModelMap.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ModelMap/ModelMap.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Notices.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Notices.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ReportDialog.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/RunButton.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ShortcutsDialog.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ShortcutsDialog.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Splitter.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Splitter.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/StatusLine.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/SweepChart/SweepChart.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/SweepChart/SweepChart.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/SweepDialog.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/SweepDialog.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/TokenStrip.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/TokenStrip.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/TopBar.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/TopBar.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/UpdateNotice.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/UpdateNotice.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Walkthrough.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/Walkthrough.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/components/ui/Icon.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/canvas.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/chat.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/circuits.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/color.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/devices.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/environment.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/formHistory.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/guide.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/heatmapNavigation.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/help.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/logogram.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/milestones.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/motion.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/promptEdits.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/promptRows.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/route.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/sites.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/sweeps.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/thresholds.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/lib/walkthrough.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/main.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/screens/SystemCheck.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/screens/Welcome.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/store/help.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/styles/global.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/styles/tokens.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/AttentionView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/AttentionView.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/BaselineView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/BaselineView.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ChatTemplateSettings.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/CircuitResults.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/CompareView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/Continuations.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/Continuations.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/EdgeResults.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ExperimentView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ExploreView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ExploreView.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/FeaturesView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/Forest.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/Forest.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/HeadComparisonView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/HeadComparisonView.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/HeadKinds.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/HeadKinds.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/NeuronResults.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/NeuronResults.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/PromptsView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ResearchView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/ResearchView.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SiteSets.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SiteSetsEditor.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SpecView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SpecView.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/StatisticsSettings.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SweepView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/SweepView.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/TaskGenerator.tsx +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/TextView.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/src/views/views.module.css +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/a11y.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/axe.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/chat.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/circuits.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/color.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/devices.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/docs.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/edges.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/environment.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/fakeRuns.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/finer.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/finer.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/form.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/gallery.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/guide.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/guide.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/heads.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/heatmap.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/help.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/help.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/history.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/history.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/logogram.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/notices.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/partial.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/prompts.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/prompts.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/queue.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/route.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/runs.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/saes.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/steering.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/sweep.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/tasks.unit.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/text.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/tokens.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/uneven.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/ux.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tests/workbench.browser.ts +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/tsconfig.json +0 -0
- {logogram-0.6.0 → logogram-0.7.0}/web/vite.config.ts +0 -0
|
@@ -36,9 +36,11 @@ traceability come before features.
|
|
|
36
36
|
never add a code path that only one of them uses.
|
|
37
37
|
* Every choice that can change a number lives in the spec and is shown in the UI: direction,
|
|
38
38
|
baseline, site, position, metric, normalization, seeds, clustering, batch size, dtype, model
|
|
39
|
-
revision. Nothing methodological is silently defaulted: a
|
|
40
|
-
field, and a new one is required
|
|
41
|
-
|
|
39
|
+
revision. Nothing methodological is silently defaulted: a spec of the current version
|
|
40
|
+
(`SPEC_VERSION` in `spec.py`) states every such field, and a new one is required. Specs of
|
|
41
|
+
earlier versions still run: each version's upgrade function (`upgrade_v1`, `upgrade_v2`,
|
|
42
|
+
`upgrade_v3`) fills in the fields the next version added, with the values that reproduce
|
|
43
|
+
earlier behavior (`upgrade_v1` lists those that were a choice). Ablation has no default
|
|
42
44
|
baseline.
|
|
43
45
|
* Specs use abstract sites (`resid_pre`, `resid_mid`, `resid_post`, `attn_out`, `mlp_out`,
|
|
44
46
|
`head`). Library hook names appear only inside a backend (`src/logogram/backends/`).
|
|
@@ -95,7 +97,7 @@ traceability come before features.
|
|
|
95
97
|
|
|
96
98
|
```text
|
|
97
99
|
src/logogram/
|
|
98
|
-
spec.py experiment spec (pydantic);
|
|
100
|
+
spec.py experiment spec (pydantic); earlier versions' specs are upgraded here
|
|
99
101
|
datasets.py, ioi.py JSONL datasets and the IOI generator
|
|
100
102
|
tasks.py seeded datasets for the other tasks (greater-than, docstring, ...)
|
|
101
103
|
prompts.py tokenization, alignment checks, length groups, seeded splits
|
|
@@ -112,6 +114,10 @@ src/logogram/
|
|
|
112
114
|
edges.py edge attribution (EAP, EAP-IG), edge patching and the faithfulness curve
|
|
113
115
|
features.py SAE features: patching and attribution patching
|
|
114
116
|
sae.py SAE encode, decode and fit
|
|
117
|
+
sae_training.py TopK SAEs trained in the project from a training spec (saes/NAME)
|
|
118
|
+
lenses.py tuned lenses trained in the project from a training spec (lenses/NAME)
|
|
119
|
+
training.py what both share: a corpus's texts split and ordered by seed, folders
|
|
120
|
+
written whole or not at all
|
|
115
121
|
stats.py bootstrap (over prompts or clusters), bands, q-values, paired differences
|
|
116
122
|
results.py summary.json and results.parquet
|
|
117
123
|
runs.py the per-prompt evidence behind one site's number
|
|
@@ -121,6 +127,10 @@ src/logogram/
|
|
|
121
127
|
fileio.py atomic writes that never follow symlinks
|
|
122
128
|
project.py project folders: where runs, datasets and drafts live, read safely
|
|
123
129
|
research.py research notes and named selections
|
|
130
|
+
corpus_import.py corpora from files, Hugging Face datasets' files and a dataset's prompts
|
|
131
|
+
top_activations.py where a neuron, an SAE feature, a direction or a head is most active in a corpus
|
|
132
|
+
representations.py activations at a site over prompts or texts: principal components, mean
|
|
133
|
+
differences, directions saved from them, exported activations
|
|
124
134
|
runner.py run a spec end to end (used by the app, the CLI and the Python API)
|
|
125
135
|
partial.py what a run that stops early keeps of what finished, and what it leaves out
|
|
126
136
|
owner.py which process runs a run, so a run going elsewhere isn't taken for interrupted
|
|
@@ -2,6 +2,233 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of Logogram.
|
|
4
4
|
|
|
5
|
+
## 0.7.0 (2026-10-13)
|
|
6
|
+
|
|
7
|
+
Methods that find directions in the model and test them: linear probes, distributed alignment
|
|
8
|
+
search, subspace patching, directional ablation, steering along a saved direction and readouts.
|
|
9
|
+
ACDC, and edges into shared keys and values. Corpora of plain text, where a unit is most active in
|
|
10
|
+
them, and principal components. SAEs and tuned lenses trained in the project. Projects, datasets
|
|
11
|
+
and runs renamed, deleted and rerun from the app.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **Spec version 4.** Versions 1 to 3 still load, and are upgraded as they load.
|
|
16
|
+
- **Directions saved in the project.** A direction, or a subspace of several, is two files in the
|
|
17
|
+
project's `directions/` folder: the vectors (safetensors, rows made orthonormal) and what they
|
|
18
|
+
are (the model and site they were found on, how, and the run they came from). A run pins each
|
|
19
|
+
direction it uses by the hash of its file and keeps a copy, and its manifest and methods
|
|
20
|
+
paragraph name them. `logogram directions` lists, renames, deletes and saves them.
|
|
21
|
+
- **Linear probes** (`"kind": "probe"`): a logistic regression at each site, trained on a seeded
|
|
22
|
+
split of the pairs to read which prompt of a pair it is, or a field of the prompts' `meta`, and
|
|
23
|
+
measured on the held-out pairs, with a probe on shuffled labels as a control and selectivity
|
|
24
|
+
with its interval. A probe's weights can be saved as a direction.
|
|
25
|
+
- **Distributed alignment search** (`"kind": "das"`): learns the subspace of a stated number of
|
|
26
|
+
dimensions whose patching carries a site's effect, on training pairs, and measures it on
|
|
27
|
+
held-out pairs beside the whole site and a random subspace of the same size. The learned
|
|
28
|
+
subspace can be saved as a direction.
|
|
29
|
+
- **Subspace patching** (`"kind": "subspace_patching"`): patch only the component of each site's
|
|
30
|
+
activation along a saved direction or within a saved subspace.
|
|
31
|
+
- **Two ablation baselines**: `scale` multiplies the activation by a factor, and `projection`
|
|
32
|
+
(directional ablation) removes its component along a saved direction or sets it to its mean.
|
|
33
|
+
- **Steering along a saved direction** (`"direction": {"kind": "direction", ...}`).
|
|
34
|
+
- **Readouts** (`"metric": {"kind": "readout", ...}`): patching and ablation can read a neuron's
|
|
35
|
+
activation, an activation's component along a saved direction or an SAE feature's activation
|
|
36
|
+
instead of the model's output, to ask what drives it.
|
|
37
|
+
- **ACDC** (`acdc`, with the `graph` scope): automated circuit discovery (Conmy et al. 2023) over
|
|
38
|
+
edge attribution's graph.
|
|
39
|
+
- The receiver prompt runs with every edge in the circuit. Then the candidate edges are removed
|
|
40
|
+
one at a time, in the reverse of the graph's order (from the logits back toward the
|
|
41
|
+
embeddings). A removed edge carries its sender's output on the source prompt.
|
|
42
|
+
- An edge stays removed when removing it moves the metric's mean by less than `threshold`, in
|
|
43
|
+
the metric's own units. `rule` says which change counts: the move toward the source prompt's
|
|
44
|
+
value (`toward_source`, the paper's) or its size either way (`either_way`). Neither has a
|
|
45
|
+
default.
|
|
46
|
+
- A run keeps every edge's change when it was tested and whether it was kept, the circuit, and
|
|
47
|
+
the circuit's faithfulness with a bootstrap interval. Tests check that the faithfulness is
|
|
48
|
+
the faithfulness curve's for the same edges, bit for bit. `edges.parquet` gains `kept` and
|
|
49
|
+
`step`.
|
|
50
|
+
- It costs a forward pass per edge and batch of prompts. Before a run, the app says how many
|
|
51
|
+
passes it takes and about how long, timed on the loaded model. A run that stops early keeps
|
|
52
|
+
nothing.
|
|
53
|
+
- The experiment form offers it as **Circuit discovery (ACDC)**. The results draw the circuit
|
|
54
|
+
and list every tested edge with whether it was kept, and the inspector says how an edge was
|
|
55
|
+
tested. **Check robustness** offers another threshold, the other rule, the opposite direction
|
|
56
|
+
and edge attribution over the same graph.
|
|
57
|
+
- `logogram run` and `logogram show` list the circuit, the report draws it, and `run.circuit()`
|
|
58
|
+
returns it.
|
|
59
|
+
- **Edges into shared keys and values.** Edge attribution, ACDC and path patching work on models
|
|
60
|
+
with grouped-query attention, as in Llama and Qwen. A key or value receiver is the key/value
|
|
61
|
+
head, read by every query head of its group.
|
|
62
|
+
- Results write it `L5 KV1 k`, and the app and the report draw it at the middle of its group.
|
|
63
|
+
- Tests on tiny Llama and Qwen 2 models check three things: every estimate is the slope of
|
|
64
|
+
patching its edge, one edge patched is path patching of that edge, and patching every edge
|
|
65
|
+
reproduces the source run.
|
|
66
|
+
- Models whose heads don't add up to their attention output (Gemma 2, OLMo 2) are still
|
|
67
|
+
refused.
|
|
68
|
+
- **Corpora**: plain texts in the project's `corpora/` folder, each with an optional label, for
|
|
69
|
+
the analyses that read text rather than prompt pairs. **Explore → Corpus**, `logogram corpora
|
|
70
|
+
import` and `lg.import_corpus` import them from a text, JSON Lines, JSON, CSV, TSV or Parquet
|
|
71
|
+
file (the text field and the label field named), from one file of a Hugging Face dataset
|
|
72
|
+
(downloaded once at the exact commit its revision resolves to, as a job with progress and
|
|
73
|
+
Cancel in the app; offline, from the cache), or from a dataset's clean or corrupt prompts,
|
|
74
|
+
labelled by side or by a field of their meta. A corpus records where its texts came from and
|
|
75
|
+
the hash of its file. The app pages and searches its texts, and renames and deletes it
|
|
76
|
+
(`logogram corpora rename`, `logogram corpora delete`).
|
|
77
|
+
- **Where a unit is most active** (**Explore → Corpus**, `lg.top_examples`): over a corpus's
|
|
78
|
+
texts, the tokens where an MLP neuron, a feature of the loaded SAE, a saved direction (its
|
|
79
|
+
projection, signed) or an attention head (the length of what it writes) is largest, each with a
|
|
80
|
+
window of context shaded on the ink ramp, the most negative ones for a signed unit, a histogram
|
|
81
|
+
of its values and the share of tokens where it is above zero. The beginning-of-sequence token is
|
|
82
|
+
read but never counted; ties go to the earlier text, then token; every choice comes back with
|
|
83
|
+
the answer. An example opens in **Your text**, read at its token.
|
|
84
|
+
- **Representations** (**Explore → Representations**, `lg.principal_components`,
|
|
85
|
+
`lg.mean_difference`): the activation at a site and token (the last, an index, a labelled
|
|
86
|
+
position or the mean over tokens) of each of a dataset's prompts or a corpus's texts, on its
|
|
87
|
+
principal components, centered and computed in float64, each signed so its largest loading is
|
|
88
|
+
positive. The app draws them on canvas, each class an ink shape, and saves a component or the
|
|
89
|
+
difference between two classes' means as a direction.
|
|
90
|
+
- **Directions in the app**: the Representations view lists the project's directions with what
|
|
91
|
+
made each, where and on which model, marks one found on another model than the one loaded, and
|
|
92
|
+
renames and deletes them (`logogram directions`, `lg.list_directions`, `lg.read_direction`,
|
|
93
|
+
`lg.save_direction`).
|
|
94
|
+
- **Exported activations**: `activations/NAME.safetensors` (one float32 tensor per site) with
|
|
95
|
+
`activations/NAME.json` saying what each row is and how it was read, from the Representations
|
|
96
|
+
view, `logogram activations` or `lg.export_activations`; `lg.activations` returns them as NumPy
|
|
97
|
+
arrays without writing anything.
|
|
98
|
+
- **SAEs trained in the project.** A TopK SAE (Gao et al. 2024) on one site of one layer
|
|
99
|
+
(`resid_pre`, `resid_post`, `attn_out` or `mlp_out`), trained on a corpus of the project.
|
|
100
|
+
- A training spec (`logogram_sae_training: 1`) states every choice that can change the weights,
|
|
101
|
+
with no default: the model, the corpus by name and hash, the tokenization, the site and layer,
|
|
102
|
+
k and the number of features, the steps and tokens per step, the learning rate, Adam's betas
|
|
103
|
+
and epsilon, the seed, the held-out share, the normalization (to a mean squared norm of the
|
|
104
|
+
width, its factor recorded and folded into the saved weights) and the optional AuxK loss.
|
|
105
|
+
- The same spec on the same machine gives the same weights, bit for bit: seeded generators,
|
|
106
|
+
fixed batches, float32 and deterministic algorithms throughout.
|
|
107
|
+
- The decoder's rows keep unit length (the gradient along each is projected out, and each is
|
|
108
|
+
made unit length again after every step), and the decoder's bias starts at the activations'
|
|
109
|
+
mean.
|
|
110
|
+
- It is saved as `saes/NAME` in SAELens's format, read back by the same reader as published
|
|
111
|
+
SAEs, with `training.json` (its spec, pinned) and `metrics.json`: the loss curve and, on
|
|
112
|
+
held-out texts, the variance explained, the features that fire per token, the share that
|
|
113
|
+
never fire, and the next-token loss recovered.
|
|
114
|
+
- A spec's `sae` gains `source` (`hub` or `project`) and `sha256`. An SAE trained in the project
|
|
115
|
+
is named by its folder and the hash of its files, which a run pins when it starts, and is
|
|
116
|
+
refused if they have changed. Version 3 specs read with `source` `hub`.
|
|
117
|
+
- In the app, **Features** lists the SAEs trained in the project and offers **Train an SAE…**.
|
|
118
|
+
The dialog shows every choice, then what training would take on this machine (texts, tokens,
|
|
119
|
+
memory, and time measured there) or why it can't train. It follows the training's progress
|
|
120
|
+
and loss curve, shows what was measured, and offers **Load this SAE**. A cancelled training
|
|
121
|
+
writes nothing.
|
|
122
|
+
- `logogram sae train` (a spec, or options that state every choice), `logogram sae list`,
|
|
123
|
+
`lg.train_sae` and `lg.load_sae(NAME, project=project, model=model)`.
|
|
124
|
+
- **Tuned lenses** (Belrose et al. 2023). An affine translator per layer, starting as the identity,
|
|
125
|
+
trained on a corpus of the project to minimize the KL divergence from the model's own
|
|
126
|
+
next-token distribution.
|
|
127
|
+
- A training spec (`logogram_lens_training: 1`) states every choice, with no default, and the
|
|
128
|
+
same spec on the same machine gives the same translators, bit for bit.
|
|
129
|
+
- It is saved as `lenses/NAME`: `lens.safetensors`, `training.json`, and `metrics.json` with the
|
|
130
|
+
loss curve and each layer's held-out KL divergence through the logit lens and through the
|
|
131
|
+
tuned lens.
|
|
132
|
+
- The layer predictions gain the method `tuned_lens` and `lens`, the lens's name and the hash
|
|
133
|
+
of its file, pinned when a run starts. Version 3 specs read with `lens` null. A lens trained
|
|
134
|
+
on another model, with TransformerLens's weight processing the other way, or of another
|
|
135
|
+
width is refused.
|
|
136
|
+
- **Layer predictions** chooses between the logit lens and a tuned lens, marks how each layer
|
|
137
|
+
was read, and offers **Train a tuned lens…**.
|
|
138
|
+
- `logogram lens train`, `logogram lens list` and `lg.train_lens`.
|
|
139
|
+
- **Documentation**: pages on training an SAE and on the tuned lens (what is computed, every
|
|
140
|
+
choice, where it can mislead), a guide to training an SAE and a tuned lens and using them, and
|
|
141
|
+
a reference of the training specs, generated from the code.
|
|
142
|
+
- **Managing projects.**
|
|
143
|
+
- Rename a project: its project.json says the new name, and its folder keeps its own
|
|
144
|
+
(**Rename project…** in the project menu, `logogram project rename NAME`,
|
|
145
|
+
`project.rename(name)`).
|
|
146
|
+
- Delete a project: its folder and everything in it, for good, once its name is typed
|
|
147
|
+
(**Delete project…** in the project menu and in a recent project's menu, `logogram project
|
|
148
|
+
delete`, `lg.delete_project`). Refused while a run is in progress in it or its queue is being
|
|
149
|
+
run, and when the folder holds anything Logogram doesn't make there (a repository, say),
|
|
150
|
+
listing what.
|
|
151
|
+
- Take a project out of the recent list; its folder is left as it is (**Remove from the list**
|
|
152
|
+
in the Projects screen, `logogram projects` and `logogram projects forget PATH`).
|
|
153
|
+
- `logogram new NAME [--parent DIR]` creates a project, as the app's Create project does.
|
|
154
|
+
- **Managing datasets.** Rename or delete a dataset file: in the dataset menu of the header and
|
|
155
|
+
in the Prompts view, or with `logogram datasets`, `logogram datasets rename NAME NEW`,
|
|
156
|
+
`logogram datasets delete NAME`, `lg.rename_dataset` and `lg.delete_dataset`. Runs that ran on
|
|
157
|
+
it keep their own copy of its prompts. Refused while a saved draft or a queued run names it,
|
|
158
|
+
naming them. Every tab showing the dataset follows it to its new name.
|
|
159
|
+
- **Rerun** in the app: a run's results and its menu in the history run its spec again, exactly
|
|
160
|
+
as it ran (a finished, failed or cancelled run; Edit and rerun stays for changing it first). When
|
|
161
|
+
the rerun finishes, a notice says whether every per-prompt value matches the original exactly,
|
|
162
|
+
as `logogram run` does, and a difference offers the comparison of the two runs
|
|
163
|
+
(`GET /api/runs/{id}/reproduction`).
|
|
164
|
+
- `lg.with_model(spec, model)`: the spec with its model replaced by a loaded model, as it was
|
|
165
|
+
loaded (its files, the exact revision, dtype, device and weight processing), to run the spec on
|
|
166
|
+
that model.
|
|
167
|
+
|
|
168
|
+
### Changed
|
|
169
|
+
|
|
170
|
+
- The experiment form groups its methods by the question each answers: where is it computed, how
|
|
171
|
+
does it flow, what does a site represent, and what does adding a direction do. A new page,
|
|
172
|
+
[Choosing a method](docs/concepts/choosing-a-method.md), says what each measures, what it costs
|
|
173
|
+
and what it can't tell you.
|
|
174
|
+
- A workspace's views that don't fit beside the tabs go under a menu at the end of the row,
|
|
175
|
+
named **More**, or after the open view when it is one of them.
|
|
176
|
+
- A run's results put their actions (**Test the top sites as a circuit**, **Check robustness**,
|
|
177
|
+
**Rerun**, **Sweep…**, **Export**) in a row under the title, beside the run's glyph.
|
|
178
|
+
- The README and the documentation show the app: a sweep painting onto the model map, a run's
|
|
179
|
+
results, the method picker, an ACDC circuit, a probe and a principal components plot.
|
|
180
|
+
|
|
181
|
+
### Fixed
|
|
182
|
+
|
|
183
|
+
- When edge attribution's batch didn't fit in memory, the batch size it suggested could still be
|
|
184
|
+
too large: it scaled the batch size in the spec, though a batch holds no more prompts than the
|
|
185
|
+
largest group of prompts of one length. It now names the batch that runs and scales that, and
|
|
186
|
+
says when not even one prompt fits.
|
|
187
|
+
- The folder picker's **Choose** chose the folder listed last, not the one in the box: a path
|
|
188
|
+
typed, or still being listed after Go, gave way to the folder the picker had shown before. It
|
|
189
|
+
now chooses the folder in the box, listing it first when it hasn't been.
|
|
190
|
+
- A run the queue started could end before the tabs heard it had started, and the queue then
|
|
191
|
+
read as waiting, with nothing left in it, instead of running.
|
|
192
|
+
- Loading a model on a device this machine doesn't have (CUDA without a GPU, say) unloaded the
|
|
193
|
+
model that was loaded before it said so. The device, the dtype and a local model's folder are
|
|
194
|
+
now checked first, and the loaded model stays. The model dialog keeps **Load** disabled while
|
|
195
|
+
the device chosen isn't there, and the message no longer says "the spec asks for" when no spec
|
|
196
|
+
is involved.
|
|
197
|
+
- `lg.run(spec, project, model=model)` loaded a second copy of the model, without a word, when
|
|
198
|
+
`model` wasn't the one the spec names (loaded on another GPU, say, or in bfloat16). It now
|
|
199
|
+
refuses, naming each difference (the files or revision, the dtype, the device as it resolves
|
|
200
|
+
here, weight processing), and says what to do: pass `lg.with_model(spec, model)`, or no model
|
|
201
|
+
to load the spec's own. `lg.verify_run`, `lg.check_robustness` and `lg.sweep` refuse a model
|
|
202
|
+
passed to them that their runs don't name, and a toy's experiments run on the toy as it was
|
|
203
|
+
loaded.
|
|
204
|
+
- An analysis in the app that ran out of memory (the baseline, attention, predictions, Your text,
|
|
205
|
+
an SAE's features, …) failed with "Internal Server Error". It now gives the memory back and
|
|
206
|
+
says what ran out (GPU memory, or memory) and what to do: fewer prompts, a smaller batch size
|
|
207
|
+
or a shorter text, or a smaller model or a 16-bit dtype.
|
|
208
|
+
- A project whose folder was missing when the recent projects were listed (on a drive that
|
|
209
|
+
wasn't connected, say) was dropped from the list for good. It now stays, marked *Folder not
|
|
210
|
+
found*, until it is removed from the list, and opening it says plainly that its folder isn't
|
|
211
|
+
there. Listing the recent projects no longer writes into them: it used to add their folders and
|
|
212
|
+
`.gitignore` when they were missing.
|
|
213
|
+
- Opening a project could fail after the project had been switched, with no tab told, when the
|
|
214
|
+
recent list couldn't be written (Logogram's settings folder read-only, say) or held entries
|
|
215
|
+
that aren't objects. The recent list never stops a project opening now, and entries it can't
|
|
216
|
+
read are left out.
|
|
217
|
+
- `logogram generate --overwrite` and `lg.write_dataset(..., overwrite=True)` replaced a dataset
|
|
218
|
+
that saved drafts and queued runs named, and they then failed with "has changed since this
|
|
219
|
+
spec was written". Replacing a dataset, from the app too, is now refused while a draft or a
|
|
220
|
+
queued run names it, naming them. Finished runs were never affected: each keeps its own copy
|
|
221
|
+
of the prompts it ran on.
|
|
222
|
+
- `logogram delete` and `lg.delete_run` deleted a draft waiting in the queue, which the app
|
|
223
|
+
refuses; the queue then failed when its turn came. Every front end now refuses it, saying to take
|
|
224
|
+
it out of the queue first, and `logogram delete` says so before asking.
|
|
225
|
+
- Taking one run out of the queue, in the history, happened at once and couldn't be undone, while
|
|
226
|
+
clearing the queue asked first. It now asks too, saying whether its spec is kept (a saved draft
|
|
227
|
+
stays in the history) or lost.
|
|
228
|
+
- A settings file holding `null`, a list or anything else that isn't an object stopped the app
|
|
229
|
+
from starting (an internal server error). It now reads as no settings, and settings are written
|
|
230
|
+
whole, through a temporary file, so an interrupted write never leaves half a file.
|
|
231
|
+
|
|
5
232
|
## 0.6.0 (2026-10-12)
|
|
6
233
|
|
|
7
234
|
Interventions on single queries, keys, values and neurons, and on the edges between components,
|