logogram 0.5.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.5.0 → logogram-0.7.0}/AGENTS.md +28 -5
- {logogram-0.5.0 → logogram-0.7.0}/CHANGELOG.md +335 -0
- {logogram-0.5.0 → logogram-0.7.0}/PKG-INFO +443 -64
- {logogram-0.5.0 → logogram-0.7.0}/README.md +442 -63
- {logogram-0.5.0 → logogram-0.7.0}/docs/README.md +24 -9
- {logogram-0.5.0 → logogram-0.7.0}/scripts/build_reference.py +88 -25
- logogram-0.7.0/scripts/sae_catalogue.py +1128 -0
- {logogram-0.5.0 → logogram-0.7.0}/scripts/smoke_wheel.py +6 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/__init__.py +22 -1
- logogram-0.7.0/src/logogram/acdc.py +527 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/analysis.py +116 -27
- logogram-0.7.0/src/logogram/api.py +1967 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/atp.py +164 -43
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/backends/base.py +162 -12
- logogram-0.7.0/src/logogram/backends/catalogue.py +345 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/backends/hub.py +100 -10
- logogram-0.7.0/src/logogram/backends/sae_catalogue.json +14237 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/backends/saes.py +278 -58
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/backends/transformer_lens.py +826 -42
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/circuits.py +222 -58
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/cli.py +1613 -47
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/compare.py +60 -1
- 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.7.0/src/logogram/datasets.py +426 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/direct.py +91 -22
- logogram-0.7.0/src/logogram/directions.py +715 -0
- logogram-0.7.0/src/logogram/edges.py +1351 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/engine.py +447 -108
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +1 -1
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +1 -1
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +1 -1
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/experiments/ioi-head-patching/spec.json +1 -1
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/features.py +171 -36
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/fileio.py +18 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/history.py +41 -16
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/ioi.py +29 -12
- logogram-0.7.0/src/logogram/lenses.py +778 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/local_models.py +25 -9
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/metrics.py +87 -5
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/owner.py +5 -14
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/partial.py +28 -9
- logogram-0.7.0/src/logogram/paths.py +465 -0
- logogram-0.7.0/src/logogram/probes.py +376 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/project.py +316 -26
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/prompts.py +140 -32
- logogram-0.7.0/src/logogram/report.py +1510 -0
- logogram-0.7.0/src/logogram/representations.py +819 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/results.py +103 -8
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/runner.py +131 -34
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/runqueue.py +3 -5
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/sae.py +56 -6
- logogram-0.7.0/src/logogram/sae_training.py +927 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/schema.py +254 -3
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/server/app.py +849 -20
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/server/models.py +428 -3
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/server/state.py +265 -22
- logogram-0.7.0/src/logogram/sites.py +455 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/spec.py +974 -61
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/stats.py +129 -22
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/steering.py +139 -19
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/sweeps.py +3 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/system.py +138 -5
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/tasks.py +107 -35
- logogram-0.7.0/src/logogram/top_activations.py +386 -0
- logogram-0.7.0/src/logogram/toys.py +1653 -0
- logogram-0.7.0/src/logogram/training.py +329 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/verify.py +32 -3
- 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.5.0 → logogram-0.7.0}/src/logogram/web_dist/index.html +2 -2
- {logogram-0.5.0 → logogram-0.7.0}/tests/browser_server.py +13 -0
- logogram-0.7.0/tests/catalogue_fixture.py +148 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/conftest.py +32 -0
- logogram-0.7.0/tests/test_acdc.py +489 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_api.py +96 -0
- logogram-0.7.0/tests/test_architectures.py +330 -0
- {logogram-0.5.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.5.0 → logogram-0.7.0}/tests/test_docs.py +16 -1
- logogram-0.7.0/tests/test_edges.py +924 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_explorer.py +1 -0
- logogram-0.7.0/tests/test_finer_sites.py +905 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_gpus.py +2 -2
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_hardening.py +197 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_history.py +83 -0
- logogram-0.7.0/tests/test_lenses.py +210 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_metrics.py +14 -6
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_paths.py +74 -12
- logogram-0.7.0/tests/test_projects.py +357 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_queue.py +26 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_reference.py +3 -2
- logogram-0.7.0/tests/test_representations.py +446 -0
- logogram-0.7.0/tests/test_sae_catalogue.py +835 -0
- logogram-0.7.0/tests/test_sae_training.py +316 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_saved_queue.py +23 -1
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_server.py +90 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_skip_transcoders.py +52 -3
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_specs.py +45 -6
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_steering_features.py +5 -1
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_tasks.py +93 -0
- logogram-0.7.0/tests/test_toys.py +747 -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.7.0/tests/test_uneven.py +869 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/api/client.ts +140 -2
- {logogram-0.5.0 → logogram-0.7.0}/web/src/api/types.ts +820 -27
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/CancelRunDialog.tsx +14 -6
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/FolderPicker.tsx +21 -14
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/GuideDialog.tsx +7 -1
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Header.tsx +32 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/History.tsx +60 -12
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Inspector.tsx +185 -40
- logogram-0.7.0/web/src/components/ManageDialogs.tsx +314 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ModelDialog.tsx +29 -6
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/RobustnessDialog.tsx +127 -10
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/StatusLine.tsx +20 -1
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/TokenStrip.module.css +14 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/TokenStrip.tsx +96 -35
- 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.5.0 → logogram-0.7.0}/web/src/components/ui/index.tsx +20 -15
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ui/ui.module.css +13 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/analysis.ts +4 -2
- logogram-0.7.0/web/src/lib/buildSpec.ts +811 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/circuits.ts +111 -14
- logogram-0.7.0/web/src/lib/corpora.ts +231 -0
- logogram-0.7.0/web/src/lib/directions.ts +56 -0
- logogram-0.7.0/web/src/lib/edgePlan.ts +52 -0
- logogram-0.7.0/web/src/lib/edges.ts +140 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/export.ts +8 -6
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/formDraft.ts +126 -8
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/formState.ts +113 -7
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/format.ts +9 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/guide.ts +1 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/hooks.ts +9 -2
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/keys.ts +1 -1
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/metrics.ts +14 -1
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/promptEdits.ts +34 -5
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/promptRows.ts +58 -0
- logogram-0.7.0/web/src/lib/representations.ts +137 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/runs.ts +9 -1
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/sites.ts +81 -13
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/spec.ts +342 -20
- logogram-0.7.0/web/src/lib/training.ts +328 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/screens/Projects.tsx +102 -12
- {logogram-0.5.0 → logogram-0.7.0}/web/src/screens/Screens.module.css +48 -15
- {logogram-0.5.0 → logogram-0.7.0}/web/src/screens/Workbench.module.css +23 -2
- {logogram-0.5.0 → logogram-0.7.0}/web/src/screens/Workbench.tsx +16 -2
- {logogram-0.5.0 → logogram-0.7.0}/web/src/store/app.ts +123 -7
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/CompareView.tsx +34 -4
- 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.7.0/web/src/views/EdgeResults.module.css +340 -0
- logogram-0.7.0/web/src/views/EdgeResults.tsx +835 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ExperimentView.module.css +4 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ExperimentView.tsx +692 -65
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ExploreView.tsx +2 -2
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/FeaturesView.module.css +8 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/FeaturesView.tsx +59 -14
- logogram-0.7.0/web/src/views/MetricSettings.tsx +267 -0
- logogram-0.7.0/web/src/views/NeuronResults.module.css +92 -0
- logogram-0.7.0/web/src/views/NeuronResults.tsx +258 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/PredictionsView.module.css +1 -0
- {logogram-0.5.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.5.0 → logogram-0.7.0}/web/src/views/PromptsView.module.css +21 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/PromptsView.tsx +99 -20
- 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.5.0 → logogram-0.7.0}/web/src/views/ResultsView.module.css +10 -4
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ResultsView.tsx +251 -41
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/RunSummary.tsx +121 -10
- logogram-0.7.0/web/src/views/SAEPicker.module.css +192 -0
- logogram-0.7.0/web/src/views/SAEPicker.tsx +300 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/SiteSetsEditor.tsx +23 -12
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/TaskGenerator.tsx +3 -2
- {logogram-0.5.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.5.0 → logogram-0.7.0}/web/tests/analyses.browser.ts +1 -1
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/autosave.unit.ts +18 -2
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/chat.browser.ts +31 -2
- {logogram-0.5.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.7.0/web/tests/edges.browser.ts +140 -0
- logogram-0.7.0/web/tests/edges.unit.ts +210 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/export.unit.ts +1 -1
- logogram-0.7.0/web/tests/finer.browser.ts +126 -0
- logogram-0.7.0/web/tests/finer.unit.ts +169 -0
- logogram-0.7.0/web/tests/manage.browser.ts +188 -0
- logogram-0.7.0/web/tests/manage.unit.ts +150 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/navigation.browser.ts +32 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/prompts.unit.ts +45 -1
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/queue.browser.ts +11 -1
- logogram-0.7.0/web/tests/saes.browser.ts +86 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/spec.unit.ts +68 -6
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/sweep.browser.ts +1 -1
- {logogram-0.5.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.7.0/web/tests/uneven.browser.ts +133 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/walkthrough.browser.ts +5 -1
- logogram-0.5.0/src/logogram/api.py +0 -847
- logogram-0.5.0/src/logogram/datasets.py +0 -240
- logogram-0.5.0/src/logogram/paths.py +0 -228
- logogram-0.5.0/src/logogram/report.py +0 -746
- logogram-0.5.0/src/logogram/sites.py +0 -263
- logogram-0.5.0/src/logogram/web_dist/assets/index-6ZqR5xBh.css +0 -1
- logogram-0.5.0/src/logogram/web_dist/assets/index-DNzUYGYt.js +0 -58
- logogram-0.5.0/tests/test_architectures.py +0 -161
- logogram-0.5.0/web/src/lib/buildSpec.ts +0 -433
- logogram-0.5.0/web/src/views/MetricSettings.tsx +0 -123
- {logogram-0.5.0 → logogram-0.7.0}/.gitignore +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/LICENSE +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/notebooks/README.md +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/pyproject.toml +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/scripts/check_privacy.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/scripts/validate_real_weights.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/__main__.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/backends/__init__.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/chat.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/.gitignore +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/datasets/factual-recall.jsonl +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/factual-recall-gpt2/project.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/.gitignore +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/datasets/gendered-pronoun.jsonl +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/gendered-pronoun-gpt2/project.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/.gitignore +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/datasets/greater-than.jsonl +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/greater-than-gpt2/project.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/.gitignore +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/datasets/ioi.jsonl +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/examples/ioi-gpt2/project.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/exports.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/gallery.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/heads.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/inside.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/research.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/robustness.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/runs.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/server/__init__.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/server/security.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/support.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/updates.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/web_dist/assets/instrument-sans-latin-ext-standard-normal-C5E2Gvlv.woff2 +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/web_dist/assets/instrument-sans-latin-standard-normal-BVScPF0l.woff2 +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/src/logogram/web_dist/favicon.svg +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/datasets/ioi.jsonl +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/datasets/snapshots/f5e2f2b1d68ac7ab59b1cefcd84f7f0cfc81c71c85c05c925f872e01c01d6e69.jsonl +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/manifest.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/results.parquet +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/spec.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/summary.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/manifest.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/results.parquet +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/spec.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/summary.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/experiments/written-for-0.1.0/spec.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/fixtures/old-runs/project.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_atp.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_attention_saes.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_chat_models.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_chat_templates.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_circuits.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_cli.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_devices.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_direct.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_engine.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_examples.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_feature_writes.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_heads.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_inside.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_loading.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_local_models.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_notebooks.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_old_runs.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_partial.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_privacy.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_release_fixes.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_report.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_run_tracking.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_sae.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_sanity.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_security.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_statistics.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_steering.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_support.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_sweeps.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_transcoders.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_units.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_updates.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/tests/test_validation_script.py +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/uv.lock +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/index.html +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/package-lock.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/package.json +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/playwright.config.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/public/favicon.svg +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/App.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/App.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/api/events.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/AboutDialog.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/CircuitDialog.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/CommandPalette.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/CommandPalette.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/CopyCommand.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/CopyCommand.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Distribution.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Distribution.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ErrorBoundary.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ErrorBoundary.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ExampleGallery.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ExampleGallery.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/FeatureWrites.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/FeatureWrites.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/FolderPicker.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/GuideDialog.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Header.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Heatmap/Heatmap.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Heatmap/Heatmap.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Heatmap/ScaleBar.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/HelpDialogs.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/HelpMenu.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/HelpMenu.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/History.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Inspector.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Logogram.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/LogogramDial.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/LogogramDial.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ModelDialog.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ModelMap/Legend.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ModelMap/ModelMap.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ModelMap/ModelMap.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Notices.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Notices.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ReportDialog.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/RunButton.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ShortcutsDialog.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ShortcutsDialog.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Splitter.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Splitter.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/StatusLine.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/SweepChart/SweepChart.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/SweepChart/SweepChart.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/SweepDialog.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/SweepDialog.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/TopBar.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/TopBar.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/UpdateNotice.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/UpdateNotice.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Walkthrough.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/Walkthrough.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/components/ui/Icon.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/canvas.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/chat.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/color.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/devices.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/environment.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/formHistory.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/heatmapNavigation.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/help.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/logogram.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/milestones.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/motion.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/route.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/sweeps.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/thresholds.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/lib/walkthrough.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/main.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/screens/SystemCheck.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/screens/Welcome.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/store/help.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/styles/global.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/styles/tokens.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/AttentionView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/AttentionView.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/BaselineView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/BaselineView.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ChatTemplateSettings.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/CircuitResults.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/CompareView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/Continuations.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/Continuations.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ExploreView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/Forest.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/Forest.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/HeadComparisonView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/HeadComparisonView.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/HeadKinds.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/HeadKinds.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ResearchView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/ResearchView.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/SiteSets.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/SpecView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/SpecView.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/StatisticsSettings.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/SweepView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/SweepView.tsx +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/TextView.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/src/views/views.module.css +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/a11y.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/axe.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/chat.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/circuits.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/color.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/devices.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/docs.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/environment.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/fakeRuns.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/form.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/gallery.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/guide.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/guide.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/heads.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/heatmap.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/help.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/help.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/history.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/history.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/logogram.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/notices.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/partial.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/prompts.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/queue.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/route.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/runs.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/steering.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/tasks.unit.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/text.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/tokens.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/ux.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tests/workbench.browser.ts +0 -0
- {logogram-0.5.0 → logogram-0.7.0}/web/tsconfig.json +0 -0
- {logogram-0.5.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,10 +97,11 @@ 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
|
|
104
|
+
chat.py prompts wrapped in the model's own chat template
|
|
102
105
|
metrics.py the metrics: answers, answer sets and continuations, scored per prompt
|
|
103
106
|
sites.py scope expansion and result layouts
|
|
104
107
|
engine.py the sweep: captures, patches, streams per layer, cancels; routes methods
|
|
@@ -108,12 +111,26 @@ src/logogram/
|
|
|
108
111
|
verify.py the spec that verifies an estimate by patching its strongest sites
|
|
109
112
|
steering.py steering with held-out prompts and a random control
|
|
110
113
|
paths.py path patching
|
|
114
|
+
edges.py edge attribution (EAP, EAP-IG), edge patching and the faithfulness curve
|
|
111
115
|
features.py SAE features: patching and attribution patching
|
|
112
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
|
|
113
121
|
stats.py bootstrap (over prompts or clusters), bands, q-values, paired differences
|
|
114
122
|
results.py summary.json and results.parquet
|
|
123
|
+
runs.py the per-prompt evidence behind one site's number
|
|
124
|
+
report.py a run as words, and as one self-contained HTML page
|
|
125
|
+
exports.py CSV exports of a saved run
|
|
115
126
|
schema.py schemas for run files, history listings and live events
|
|
116
127
|
fileio.py atomic writes that never follow symlinks
|
|
128
|
+
project.py project folders: where runs, datasets and drafts live, read safely
|
|
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
|
|
117
134
|
runner.py run a spec end to end (used by the app, the CLI and the Python API)
|
|
118
135
|
partial.py what a run that stops early keeps of what finished, and what it leaves out
|
|
119
136
|
owner.py which process runs a run, so a run going elsewhere isn't taken for interrupted
|
|
@@ -124,8 +141,12 @@ src/logogram/
|
|
|
124
141
|
compare.py run comparisons, paired prompt by prompt where they can be
|
|
125
142
|
api.py the Python API for notebooks (imported lazily by logogram/__init__.py)
|
|
126
143
|
analysis.py token strip, baseline check, attention patterns
|
|
144
|
+
inside.py Your text: any text's predictions, logit lens, attention and features
|
|
145
|
+
heads.py the head finder: previous-token, duplicate-token and induction heads
|
|
127
146
|
backends/ ModelBackend interface, TransformerLens backend, Hugging Face access,
|
|
128
|
-
published SAE formats
|
|
147
|
+
published SAE formats, the catalogue of published SAEs (SAELens's
|
|
148
|
+
registry, built by scripts/sae_catalogue.py)
|
|
149
|
+
local_models.py models from folders on this machine, found by the hash of their files
|
|
129
150
|
server/ FastAPI app, security, response models, job and event handling
|
|
130
151
|
system.py hardware report, doctor, memory estimates, the environment (logogram env)
|
|
131
152
|
support.py the problem report: versions and the last error, no names or paths
|
|
@@ -133,6 +154,8 @@ src/logogram/
|
|
|
133
154
|
cli.py typer command line
|
|
134
155
|
web_dist/ built web app (generated by `npm run build` in web/, committed)
|
|
135
156
|
gallery.py the bundled examples: what each asks, and the result to expect
|
|
157
|
+
toys.py toy models whose circuits are known (weights set by hand), their datasets,
|
|
158
|
+
and experiments that say what each method should find
|
|
136
159
|
examples/ the example projects (IOI, greater-than, factual recall, gendered pronoun
|
|
137
160
|
on GPT-2 small): a spec and a dataset each
|
|
138
161
|
web/ React + TypeScript + Vite sources
|
|
@@ -2,6 +2,341 @@
|
|
|
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
|
+
|
|
232
|
+
## 0.6.0 (2026-10-12)
|
|
233
|
+
|
|
234
|
+
Interventions on single queries, keys, values and neurons, and on the edges between components,
|
|
235
|
+
estimated by edge attribution and checked by path patching. Prompt pairs whose prompts tokenize
|
|
236
|
+
to different lengths. Published SAEs found by name. Two toy models whose circuits are known, to
|
|
237
|
+
check every method against.
|
|
238
|
+
|
|
239
|
+
### Added
|
|
240
|
+
|
|
241
|
+
- **Queries, keys, values and neurons as sites.**
|
|
242
|
+
- Site kinds `q`, `k` and `v`: one head's query, or one key/value head's key or value. With
|
|
243
|
+
grouped-query attention, a key/value head is read by every query head of its group.
|
|
244
|
+
- Site kind `neuron`: one MLP neuron's activation after the nonlinearity (for a gated MLP, the
|
|
245
|
+
gate's activation times the up projection).
|
|
246
|
+
- The scopes `head_inputs` and `neurons`.
|
|
247
|
+
|
|
248
|
+
When a model loads, Logogram measures what these sites assume:
|
|
249
|
+
|
|
250
|
+
- queries, keys and values together reproduce the attention output, and neurons the MLP
|
|
251
|
+
output;
|
|
252
|
+
- replacing one changes only the heads that read it.
|
|
253
|
+
|
|
254
|
+
It offers only the sites that hold, and says why for the rest. Activation patching, ablation,
|
|
255
|
+
attribution patching and sets of sites take them. Direct logit attribution reads neurons and
|
|
256
|
+
values, and refuses queries and keys with the reason. Results show head inputs as the layer ×
|
|
257
|
+
head map. Neurons are shown layer by layer: the distribution of every neuron's effect, beside
|
|
258
|
+
the strongest.
|
|
259
|
+
- **Edge attribution** (`edge_attribution`, with the `graph` scope). EAP (Syed et al. 2023) and
|
|
260
|
+
EAP-IG (Hanna et al. 2024) estimate every edge of the model's graph. An edge runs from the
|
|
261
|
+
embeddings, a head or an MLP into a later head's query, key or value, a later MLP's input, or
|
|
262
|
+
the logits.
|
|
263
|
+
- Each receiver reads its own copy of the residual stream. Before the first use, the backend
|
|
264
|
+
measures that this reproduces the model.
|
|
265
|
+
- A run keeps every edge's per-prompt values and statistics, and its corrections count every
|
|
266
|
+
edge.
|
|
267
|
+
- An optional faithfulness curve patches the k strongest edges together (or every edge but
|
|
268
|
+
them), beside edges chosen at random with a seed.
|
|
269
|
+
- **Verify** path-patches the strongest edges one at a time (the `edges` scope). It puts each
|
|
270
|
+
estimate beside its measurement, with their rank correlation (`logogram verify`,
|
|
271
|
+
`lg.verify_run`, `lg.edge_verification`).
|
|
272
|
+
- Before a run starts, the app says the graph's size, the passes and the memory it needs.
|
|
273
|
+
- The app draws the strongest edges, with the curve and the verification beside them. The
|
|
274
|
+
report draws them as SVG.
|
|
275
|
+
|
|
276
|
+
Path patching also takes MLP receivers, and the embeddings as a sender.
|
|
277
|
+
- **Prompt pairs of different lengths.** Such a pair is usable when `corrupt_positions` labels
|
|
278
|
+
the same positions in the corrupt prompt as `positions` does in the clean one.
|
|
279
|
+
- A site at a label or at the last token is patched from the source prompt's token there into
|
|
280
|
+
the receiver's.
|
|
281
|
+
- Where a value is carried between such prompts, every position and token indices are refused.
|
|
282
|
+
So are integrated gradients, edge attribution and sets that replace every position. Each
|
|
283
|
+
refusal names the pairs and says what to choose instead.
|
|
284
|
+
- Datasets of equal-length pairs give the same numbers as before, bit for bit.
|
|
285
|
+
- The prompts table, the token strip and the editor show both prompts lined up by label.
|
|
286
|
+
- The form offers only positions a method can match, and a run says which of its pairs were
|
|
287
|
+
matched this way.
|
|
288
|
+
- Task generators take `full_vocabulary`: words of several tokens are kept, and both prompts
|
|
289
|
+
are labelled.
|
|
290
|
+
- **Published SAEs by name.** Logogram ships a catalogue of the 13,857 SAEs in the 170 releases
|
|
291
|
+
of SAELens's registry (sae-lens 6.54.0). Each entry gives the SAE's model, hook, width and
|
|
292
|
+
architecture, and whether Logogram reads it exactly or why not; 440 were checked on their real
|
|
293
|
+
files.
|
|
294
|
+
- **Load an SAE** searches the loaded model's SAEs by release, hook, layer and width.
|
|
295
|
+
- `logogram saes MODEL`, `lg.list_saes` and `lg.load_sae(release=..., sae_id=...)` do the same.
|
|
296
|
+
- Nothing is fetched to list them. Specs still record the repository, folder and revision.
|
|
297
|
+
- **Toy models whose circuits are known.** Two small GPT-2 checkpoints have weights set by hand:
|
|
298
|
+
- an induction toy: a previous-token head, and an induction head that reads it through its key;
|
|
299
|
+
- an IOI toy: GPT-2 small's circuit with one head per step.
|
|
300
|
+
|
|
301
|
+
`logogram toy NAME` and `lg.toy_model(name)` write a project holding the model, its datasets,
|
|
302
|
+
and experiments whose notes say what each method should find. The model is added to the local
|
|
303
|
+
models and named by the hash of its files, the same on every machine. Loading a toy checks that
|
|
304
|
+
it solves its prompts and that its planted heads attend as built.
|
|
305
|
+
|
|
306
|
+
Tests check every method against the toys:
|
|
307
|
+
- patching, path patching, edges, sets of sites, direct logit attribution, steering and the
|
|
308
|
+
head finder;
|
|
309
|
+
- attribution patching and edge attribution. These are exact where the path is linear and blind
|
|
310
|
+
through saturated attention. Integrated gradients recover what one gradient misses where the
|
|
311
|
+
path between the prompts is smooth enough.
|
|
312
|
+
- **Documentation**:
|
|
313
|
+
- a page on edge attribution;
|
|
314
|
+
- a guide to checking a method on a toy model;
|
|
315
|
+
- the pages on activation patching, attribution patching, path patching, direct logit
|
|
316
|
+
attribution, circuits, SAE features and the model checks now cover the new sites, pairs of
|
|
317
|
+
different lengths and published SAEs by name.
|
|
318
|
+
|
|
319
|
+
### Changed
|
|
320
|
+
|
|
321
|
+
- Spec version 3 is unchanged. The new sites, scopes and experiment are new members of its
|
|
322
|
+
unions, and every existing spec reads and runs as before.
|
|
323
|
+
- These SAEs now load:
|
|
324
|
+
- SAELens's earlier files that hold a `scaling_factor` of ones their configuration doesn't
|
|
325
|
+
mention (ones change nothing).
|
|
326
|
+
|
|
327
|
+
These are refused before anything is downloaded, saying why:
|
|
328
|
+
|
|
329
|
+
- any other `scaling_factor`;
|
|
330
|
+
- normalizing activations;
|
|
331
|
+
- settings that SAELens's registry applies but a configuration doesn't state.
|
|
332
|
+
|
|
333
|
+
### Fixed
|
|
334
|
+
|
|
335
|
+
- On Windows, taking the last run out of the queue while a tab read it stopped the queue with the
|
|
336
|
+
run still in it. Removing a file being read now retries briefly there, as replacing one did.
|
|
337
|
+
- A word that a word-level tokenizer doesn't know was taken for a single token, its unknown token,
|
|
338
|
+
which stands for every such word. It no longer is.
|
|
339
|
+
|
|
5
340
|
## 0.5.0 (2026-10-12)
|
|
6
341
|
|
|
7
342
|
Chat models on their own template, your own fine-tunes, findings checked across seeds and
|