logogram 0.7.2__tar.gz → 0.8.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.
Files changed (477) hide show
  1. {logogram-0.7.2 → logogram-0.8.0}/AGENTS.md +23 -14
  2. {logogram-0.7.2 → logogram-0.8.0}/CHANGELOG.md +65 -0
  3. {logogram-0.7.2 → logogram-0.8.0}/PKG-INFO +13 -7
  4. {logogram-0.7.2 → logogram-0.8.0}/README.md +12 -6
  5. {logogram-0.7.2 → logogram-0.8.0}/docs/README.md +1 -0
  6. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/__init__.py +1 -1
  7. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/atp.py +1 -1
  8. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/circuits.py +213 -23
  9. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/edges.py +1 -1
  10. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/engine.py +75 -2
  11. logogram-0.8.0/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +49 -0
  12. logogram-0.8.0/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +50 -0
  13. logogram-0.8.0/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +54 -0
  14. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/experiments/ioi-head-patching/spec.json +4 -2
  15. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/partial.py +4 -0
  16. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/report.py +40 -3
  17. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/results.py +71 -24
  18. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/robustness.py +4 -1
  19. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/schema.py +29 -7
  20. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/spec.py +181 -6
  21. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/stats.py +68 -4
  22. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/system.py +9 -1
  23. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/toys.py +11 -2
  24. logogram-0.8.0/src/logogram/web_dist/assets/GuideFigures-oNmw1JJx.css +1 -0
  25. logogram-0.7.2/src/logogram/web_dist/assets/GuideFigures-Cmhte-Sh.js → logogram-0.8.0/src/logogram/web_dist/assets/GuideFigures-p7qiS74L.js +1 -1
  26. logogram-0.7.2/src/logogram/web_dist/assets/PatchingFigures-BR5oqtfl.js → logogram-0.8.0/src/logogram/web_dist/assets/PatchingFigures-DeWS5QCW.js +1 -1
  27. logogram-0.8.0/src/logogram/web_dist/assets/PatchingFigures-Se31mF8l.css +1 -0
  28. logogram-0.7.2/src/logogram/web_dist/assets/StartHere-NLiFuTvq.js → logogram-0.8.0/src/logogram/web_dist/assets/StartHere-D9we17E2.js +1 -1
  29. logogram-0.7.2/src/logogram/web_dist/assets/StartHere-DLYKmSNI.css → logogram-0.8.0/src/logogram/web_dist/assets/StartHere-DwqjC9X4.css +1 -1
  30. logogram-0.8.0/src/logogram/web_dist/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  31. logogram-0.8.0/src/logogram/web_dist/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  32. logogram-0.8.0/src/logogram/web_dist/assets/index-CvUrkw0h.js +61 -0
  33. logogram-0.8.0/src/logogram/web_dist/assets/index-CxuG1JuO.css +1 -0
  34. logogram-0.8.0/src/logogram/web_dist/assets/instrument-serif-latin-400-normal-BVbkICAY.woff +0 -0
  35. logogram-0.8.0/src/logogram/web_dist/assets/instrument-serif-latin-400-normal-DnYpCC2O.woff2 +0 -0
  36. logogram-0.8.0/src/logogram/web_dist/assets/night-observatory-C_gG3uNO.webp +0 -0
  37. logogram-0.8.0/src/logogram/web_dist/assets/paint-observatory-zcbTu2Fm.webp +0 -0
  38. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/web_dist/index.html +2 -2
  39. logogram-0.8.0/tests/test_controls.py +390 -0
  40. {logogram-0.7.2 → logogram-0.8.0}/tests/test_partial.py +1 -1
  41. {logogram-0.7.2 → logogram-0.8.0}/tests/test_specs.py +34 -7
  42. {logogram-0.7.2 → logogram-0.8.0}/tests/test_statistics.py +98 -0
  43. {logogram-0.7.2 → logogram-0.8.0}/web/package-lock.json +20 -0
  44. {logogram-0.7.2 → logogram-0.8.0}/web/package.json +2 -0
  45. {logogram-0.7.2 → logogram-0.8.0}/web/src/api/types.ts +67 -9
  46. logogram-0.8.0/web/src/assets/night-observatory.webp +0 -0
  47. logogram-0.8.0/web/src/assets/paint-observatory.webp +0 -0
  48. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/CircuitDialog.tsx +1 -1
  49. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/GuideDialog.tsx +1 -0
  50. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Header.module.css +2 -2
  51. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Heatmap/Heatmap.tsx +1 -1
  52. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Inspector.tsx +9 -1
  53. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ModelMap/ModelMap.tsx +1 -1
  54. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/RobustnessDialog.tsx +1 -1
  55. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/StartHere.module.css +1 -1
  56. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/StartHere.tsx +3 -2
  57. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/SweepChart/SweepChart.tsx +1 -1
  58. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/TopBar.module.css +1 -1
  59. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/UpdateNotice.module.css +1 -1
  60. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Walkthrough.module.css +1 -1
  61. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/Figures.module.css +1 -1
  62. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/GuideFigures.module.css +2 -2
  63. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ui/ui.module.css +6 -6
  64. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/buildSpec.ts +43 -4
  65. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/canvas.ts +4 -1
  66. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/formDraft.ts +21 -2
  67. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/formState.ts +9 -0
  68. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/guide.ts +1 -1
  69. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/spec.ts +44 -5
  70. {logogram-0.7.2 → logogram-0.8.0}/web/src/screens/Screens.module.css +43 -50
  71. {logogram-0.7.2 → logogram-0.8.0}/web/src/screens/Welcome.tsx +2 -4
  72. {logogram-0.7.2 → logogram-0.8.0}/web/src/styles/global.css +11 -8
  73. {logogram-0.7.2 → logogram-0.8.0}/web/src/styles/tokens.css +63 -48
  74. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/CircuitResults.tsx +51 -6
  75. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/EdgeResults.tsx +1 -1
  76. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ExperimentView.tsx +52 -8
  77. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ExploreView.tsx +1 -1
  78. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/FeaturesView.module.css +2 -2
  79. logogram-0.8.0/web/src/views/GateSettings.tsx +52 -0
  80. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/NeuronResults.module.css +1 -1
  81. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/PromptsView.tsx +1 -1
  82. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/RepresentationsView.tsx +1 -1
  83. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/RunSummary.tsx +9 -1
  84. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SAEPicker.module.css +2 -2
  85. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SiteSets.module.css +8 -1
  86. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SiteSetsEditor.tsx +34 -0
  87. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/StatisticsSettings.tsx +26 -1
  88. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/views.module.css +3 -3
  89. {logogram-0.7.2 → logogram-0.8.0}/web/tests/analyses.browser.ts +52 -1
  90. {logogram-0.7.2 → logogram-0.8.0}/web/tests/autosave.unit.ts +26 -1
  91. {logogram-0.7.2 → logogram-0.8.0}/web/tests/circuits.unit.ts +3 -3
  92. {logogram-0.7.2 → logogram-0.8.0}/web/tests/context.unit.ts +2 -2
  93. {logogram-0.7.2 → logogram-0.8.0}/web/tests/directions.unit.ts +1 -1
  94. {logogram-0.7.2 → logogram-0.8.0}/web/tests/export.unit.ts +2 -2
  95. {logogram-0.7.2 → logogram-0.8.0}/web/tests/spec.unit.ts +67 -6
  96. {logogram-0.7.2 → logogram-0.8.0}/web/tests/sweep.browser.ts +1 -1
  97. {logogram-0.7.2 → logogram-0.8.0}/web/tests/sweeps.unit.ts +2 -2
  98. logogram-0.7.2/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +0 -47
  99. logogram-0.7.2/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +0 -48
  100. logogram-0.7.2/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +0 -52
  101. logogram-0.7.2/src/logogram/web_dist/assets/GuideFigures-CVkB65JR.css +0 -1
  102. logogram-0.7.2/src/logogram/web_dist/assets/PatchingFigures-C3wr9f6-.css +0 -1
  103. logogram-0.7.2/src/logogram/web_dist/assets/index-DITrz_0O.css +0 -1
  104. logogram-0.7.2/src/logogram/web_dist/assets/index-DreV1655.js +0 -61
  105. {logogram-0.7.2 → logogram-0.8.0}/.gitignore +0 -0
  106. {logogram-0.7.2 → logogram-0.8.0}/LICENSE +0 -0
  107. {logogram-0.7.2 → logogram-0.8.0}/notebooks/README.md +0 -0
  108. {logogram-0.7.2 → logogram-0.8.0}/pyproject.toml +0 -0
  109. {logogram-0.7.2 → logogram-0.8.0}/scripts/build_reference.py +0 -0
  110. {logogram-0.7.2 → logogram-0.8.0}/scripts/check_privacy.py +0 -0
  111. {logogram-0.7.2 → logogram-0.8.0}/scripts/sae_catalogue.py +0 -0
  112. {logogram-0.7.2 → logogram-0.8.0}/scripts/smoke_wheel.py +0 -0
  113. {logogram-0.7.2 → logogram-0.8.0}/scripts/validate_real_weights.py +0 -0
  114. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/__main__.py +0 -0
  115. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/acdc.py +0 -0
  116. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/analysis.py +0 -0
  117. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/api.py +0 -0
  118. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/backends/__init__.py +0 -0
  119. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/backends/base.py +0 -0
  120. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/backends/catalogue.py +0 -0
  121. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/backends/hub.py +0 -0
  122. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/backends/sae_catalogue.json +0 -0
  123. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/backends/saes.py +0 -0
  124. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/backends/transformer_lens.py +0 -0
  125. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/chat.py +0 -0
  126. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/cli.py +0 -0
  127. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/compare.py +0 -0
  128. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/corpora.py +0 -0
  129. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/corpus_import.py +0 -0
  130. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/das.py +0 -0
  131. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/datasets.py +0 -0
  132. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/direct.py +0 -0
  133. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/directions.py +0 -0
  134. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/factual-recall-gpt2/.gitignore +0 -0
  135. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/factual-recall-gpt2/datasets/factual-recall.jsonl +0 -0
  136. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/factual-recall-gpt2/project.json +0 -0
  137. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/gendered-pronoun-gpt2/.gitignore +0 -0
  138. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/gendered-pronoun-gpt2/datasets/gendered-pronoun.jsonl +0 -0
  139. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/gendered-pronoun-gpt2/project.json +0 -0
  140. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/greater-than-gpt2/.gitignore +0 -0
  141. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/greater-than-gpt2/datasets/greater-than.jsonl +0 -0
  142. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/greater-than-gpt2/project.json +0 -0
  143. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/.gitignore +0 -0
  144. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/datasets/ioi.jsonl +0 -0
  145. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/project.json +0 -0
  146. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/exports.py +0 -0
  147. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/features.py +0 -0
  148. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/fileio.py +0 -0
  149. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/gallery.py +0 -0
  150. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/heads.py +0 -0
  151. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/history.py +0 -0
  152. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/inside.py +0 -0
  153. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/ioi.py +0 -0
  154. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/lenses.py +0 -0
  155. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/local_models.py +0 -0
  156. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/metrics.py +0 -0
  157. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/owner.py +0 -0
  158. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/paths.py +0 -0
  159. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/probes.py +0 -0
  160. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/project.py +0 -0
  161. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/prompts.py +0 -0
  162. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/representations.py +0 -0
  163. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/research.py +0 -0
  164. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/runner.py +0 -0
  165. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/runqueue.py +0 -0
  166. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/runs.py +0 -0
  167. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/sae.py +0 -0
  168. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/sae_training.py +0 -0
  169. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/server/__init__.py +0 -0
  170. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/server/app.py +0 -0
  171. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/server/models.py +0 -0
  172. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/server/security.py +0 -0
  173. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/server/state.py +0 -0
  174. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/sites.py +0 -0
  175. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/steering.py +0 -0
  176. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/support.py +0 -0
  177. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/sweeps.py +0 -0
  178. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/tasks.py +0 -0
  179. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/top_activations.py +0 -0
  180. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/training.py +0 -0
  181. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/updates.py +0 -0
  182. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/verify.py +0 -0
  183. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/web_dist/assets/instrument-sans-latin-ext-standard-normal-C5E2Gvlv.woff2 +0 -0
  184. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/web_dist/assets/instrument-sans-latin-standard-normal-BVScPF0l.woff2 +0 -0
  185. {logogram-0.7.2 → logogram-0.8.0}/src/logogram/web_dist/favicon.svg +0 -0
  186. {logogram-0.7.2 → logogram-0.8.0}/tests/browser_server.py +0 -0
  187. {logogram-0.7.2 → logogram-0.8.0}/tests/catalogue_fixture.py +0 -0
  188. {logogram-0.7.2 → logogram-0.8.0}/tests/conftest.py +0 -0
  189. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/datasets/ioi.jsonl +0 -0
  190. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/datasets/snapshots/f5e2f2b1d68ac7ab59b1cefcd84f7f0cfc81c71c85c05c925f872e01c01d6e69.jsonl +0 -0
  191. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/manifest.json +0 -0
  192. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/results.parquet +0 -0
  193. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/spec.json +0 -0
  194. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/summary.json +0 -0
  195. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/manifest.json +0 -0
  196. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/results.parquet +0 -0
  197. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/spec.json +0 -0
  198. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/summary.json +0 -0
  199. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/written-for-0.1.0/spec.json +0 -0
  200. {logogram-0.7.2 → logogram-0.8.0}/tests/fixtures/old-runs/project.json +0 -0
  201. {logogram-0.7.2 → logogram-0.8.0}/tests/test_acdc.py +0 -0
  202. {logogram-0.7.2 → logogram-0.8.0}/tests/test_api.py +0 -0
  203. {logogram-0.7.2 → logogram-0.8.0}/tests/test_architectures.py +0 -0
  204. {logogram-0.7.2 → logogram-0.8.0}/tests/test_atp.py +0 -0
  205. {logogram-0.7.2 → logogram-0.8.0}/tests/test_attention_saes.py +0 -0
  206. {logogram-0.7.2 → logogram-0.8.0}/tests/test_chat_models.py +0 -0
  207. {logogram-0.7.2 → logogram-0.8.0}/tests/test_chat_templates.py +0 -0
  208. {logogram-0.7.2 → logogram-0.8.0}/tests/test_circuits.py +0 -0
  209. {logogram-0.7.2 → logogram-0.8.0}/tests/test_cli.py +0 -0
  210. {logogram-0.7.2 → logogram-0.8.0}/tests/test_community.py +0 -0
  211. {logogram-0.7.2 → logogram-0.8.0}/tests/test_corpora.py +0 -0
  212. {logogram-0.7.2 → logogram-0.8.0}/tests/test_corpus_cli.py +0 -0
  213. {logogram-0.7.2 → logogram-0.8.0}/tests/test_corpus_import.py +0 -0
  214. {logogram-0.7.2 → logogram-0.8.0}/tests/test_corpus_server.py +0 -0
  215. {logogram-0.7.2 → logogram-0.8.0}/tests/test_dataset_files.py +0 -0
  216. {logogram-0.7.2 → logogram-0.8.0}/tests/test_devices.py +0 -0
  217. {logogram-0.7.2 → logogram-0.8.0}/tests/test_direct.py +0 -0
  218. {logogram-0.7.2 → logogram-0.8.0}/tests/test_direction_methods.py +0 -0
  219. {logogram-0.7.2 → logogram-0.8.0}/tests/test_directions.py +0 -0
  220. {logogram-0.7.2 → logogram-0.8.0}/tests/test_docs.py +0 -0
  221. {logogram-0.7.2 → logogram-0.8.0}/tests/test_edges.py +0 -0
  222. {logogram-0.7.2 → logogram-0.8.0}/tests/test_engine.py +0 -0
  223. {logogram-0.7.2 → logogram-0.8.0}/tests/test_examples.py +0 -0
  224. {logogram-0.7.2 → logogram-0.8.0}/tests/test_explorer.py +0 -0
  225. {logogram-0.7.2 → logogram-0.8.0}/tests/test_feature_writes.py +0 -0
  226. {logogram-0.7.2 → logogram-0.8.0}/tests/test_finer_sites.py +0 -0
  227. {logogram-0.7.2 → logogram-0.8.0}/tests/test_gpus.py +0 -0
  228. {logogram-0.7.2 → logogram-0.8.0}/tests/test_hardening.py +0 -0
  229. {logogram-0.7.2 → logogram-0.8.0}/tests/test_heads.py +0 -0
  230. {logogram-0.7.2 → logogram-0.8.0}/tests/test_history.py +0 -0
  231. {logogram-0.7.2 → logogram-0.8.0}/tests/test_inside.py +0 -0
  232. {logogram-0.7.2 → logogram-0.8.0}/tests/test_lenses.py +0 -0
  233. {logogram-0.7.2 → logogram-0.8.0}/tests/test_loading.py +0 -0
  234. {logogram-0.7.2 → logogram-0.8.0}/tests/test_local_models.py +0 -0
  235. {logogram-0.7.2 → logogram-0.8.0}/tests/test_metrics.py +0 -0
  236. {logogram-0.7.2 → logogram-0.8.0}/tests/test_notebooks.py +0 -0
  237. {logogram-0.7.2 → logogram-0.8.0}/tests/test_old_runs.py +0 -0
  238. {logogram-0.7.2 → logogram-0.8.0}/tests/test_paths.py +0 -0
  239. {logogram-0.7.2 → logogram-0.8.0}/tests/test_privacy.py +0 -0
  240. {logogram-0.7.2 → logogram-0.8.0}/tests/test_projects.py +0 -0
  241. {logogram-0.7.2 → logogram-0.8.0}/tests/test_queue.py +0 -0
  242. {logogram-0.7.2 → logogram-0.8.0}/tests/test_reference.py +0 -0
  243. {logogram-0.7.2 → logogram-0.8.0}/tests/test_release_fixes.py +0 -0
  244. {logogram-0.7.2 → logogram-0.8.0}/tests/test_report.py +0 -0
  245. {logogram-0.7.2 → logogram-0.8.0}/tests/test_representations.py +0 -0
  246. {logogram-0.7.2 → logogram-0.8.0}/tests/test_run_tracking.py +0 -0
  247. {logogram-0.7.2 → logogram-0.8.0}/tests/test_sae.py +0 -0
  248. {logogram-0.7.2 → logogram-0.8.0}/tests/test_sae_catalogue.py +0 -0
  249. {logogram-0.7.2 → logogram-0.8.0}/tests/test_sae_training.py +0 -0
  250. {logogram-0.7.2 → logogram-0.8.0}/tests/test_sanity.py +0 -0
  251. {logogram-0.7.2 → logogram-0.8.0}/tests/test_saved_queue.py +0 -0
  252. {logogram-0.7.2 → logogram-0.8.0}/tests/test_security.py +0 -0
  253. {logogram-0.7.2 → logogram-0.8.0}/tests/test_server.py +0 -0
  254. {logogram-0.7.2 → logogram-0.8.0}/tests/test_skip_transcoders.py +0 -0
  255. {logogram-0.7.2 → logogram-0.8.0}/tests/test_steering.py +0 -0
  256. {logogram-0.7.2 → logogram-0.8.0}/tests/test_steering_features.py +0 -0
  257. {logogram-0.7.2 → logogram-0.8.0}/tests/test_support.py +0 -0
  258. {logogram-0.7.2 → logogram-0.8.0}/tests/test_sweeps.py +0 -0
  259. {logogram-0.7.2 → logogram-0.8.0}/tests/test_tasks.py +0 -0
  260. {logogram-0.7.2 → logogram-0.8.0}/tests/test_toys.py +0 -0
  261. {logogram-0.7.2 → logogram-0.8.0}/tests/test_training_cli.py +0 -0
  262. {logogram-0.7.2 → logogram-0.8.0}/tests/test_training_server.py +0 -0
  263. {logogram-0.7.2 → logogram-0.8.0}/tests/test_transcoders.py +0 -0
  264. {logogram-0.7.2 → logogram-0.8.0}/tests/test_uneven.py +0 -0
  265. {logogram-0.7.2 → logogram-0.8.0}/tests/test_units.py +0 -0
  266. {logogram-0.7.2 → logogram-0.8.0}/tests/test_updates.py +0 -0
  267. {logogram-0.7.2 → logogram-0.8.0}/tests/test_validation_script.py +0 -0
  268. {logogram-0.7.2 → logogram-0.8.0}/uv.lock +0 -0
  269. {logogram-0.7.2 → logogram-0.8.0}/web/index.html +0 -0
  270. {logogram-0.7.2 → logogram-0.8.0}/web/playwright.config.ts +0 -0
  271. {logogram-0.7.2 → logogram-0.8.0}/web/public/favicon.svg +0 -0
  272. {logogram-0.7.2 → logogram-0.8.0}/web/src/App.module.css +0 -0
  273. {logogram-0.7.2 → logogram-0.8.0}/web/src/App.tsx +0 -0
  274. {logogram-0.7.2 → logogram-0.8.0}/web/src/api/client.ts +0 -0
  275. {logogram-0.7.2 → logogram-0.8.0}/web/src/api/events.ts +0 -0
  276. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/AboutDialog.tsx +0 -0
  277. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/CancelRunDialog.tsx +0 -0
  278. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/CommandPalette.module.css +0 -0
  279. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/CommandPalette.tsx +0 -0
  280. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/CopyCommand.module.css +0 -0
  281. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/CopyCommand.tsx +0 -0
  282. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Distribution.module.css +0 -0
  283. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Distribution.tsx +0 -0
  284. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ErrorBoundary.module.css +0 -0
  285. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ErrorBoundary.tsx +0 -0
  286. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ExampleGallery.module.css +0 -0
  287. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ExampleGallery.tsx +0 -0
  288. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/FeatureWrites.module.css +0 -0
  289. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/FeatureWrites.tsx +0 -0
  290. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/FolderPicker.module.css +0 -0
  291. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/FolderPicker.tsx +0 -0
  292. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/GuideDialog.module.css +0 -0
  293. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Header.tsx +0 -0
  294. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Heatmap/Heatmap.module.css +0 -0
  295. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Heatmap/ScaleBar.tsx +0 -0
  296. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/HelpDialogs.module.css +0 -0
  297. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/HelpMenu.module.css +0 -0
  298. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/HelpMenu.tsx +0 -0
  299. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/History.module.css +0 -0
  300. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/History.tsx +0 -0
  301. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Inspector.module.css +0 -0
  302. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Logogram.tsx +0 -0
  303. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/LogogramDial.module.css +0 -0
  304. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/LogogramDial.tsx +0 -0
  305. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ManageDialogs.tsx +0 -0
  306. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ModelDialog.module.css +0 -0
  307. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ModelDialog.tsx +0 -0
  308. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ModelMap/Legend.tsx +0 -0
  309. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ModelMap/ModelMap.module.css +0 -0
  310. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Notices.module.css +0 -0
  311. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Notices.tsx +0 -0
  312. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Questions.module.css +0 -0
  313. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Questions.tsx +0 -0
  314. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ReportDialog.tsx +0 -0
  315. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/RunButton.tsx +0 -0
  316. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ShortcutsDialog.module.css +0 -0
  317. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ShortcutsDialog.tsx +0 -0
  318. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Splitter.module.css +0 -0
  319. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Splitter.tsx +0 -0
  320. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/StatusLine.module.css +0 -0
  321. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/StatusLine.tsx +0 -0
  322. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/SweepChart/SweepChart.module.css +0 -0
  323. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/SweepDialog.module.css +0 -0
  324. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/SweepDialog.tsx +0 -0
  325. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/TokenStrip.module.css +0 -0
  326. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/TokenStrip.tsx +0 -0
  327. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/TopBar.tsx +0 -0
  328. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/TrainDialog.module.css +0 -0
  329. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/TrainDialog.tsx +0 -0
  330. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/UpdateNotice.tsx +0 -0
  331. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ViewTabs.tsx +0 -0
  332. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/Walkthrough.tsx +0 -0
  333. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/GuideFigures.tsx +0 -0
  334. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/IoiFinds.tsx +0 -0
  335. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/ModelParts.module.css +0 -0
  336. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/ModelParts.tsx +0 -0
  337. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/Patching.module.css +0 -0
  338. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/PatchingFigures.tsx +0 -0
  339. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/figures/StagedFigure.tsx +0 -0
  340. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ui/Icon.tsx +0 -0
  341. {logogram-0.7.2 → logogram-0.8.0}/web/src/components/ui/index.tsx +0 -0
  342. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/analysis.ts +0 -0
  343. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/chat.ts +0 -0
  344. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/circuits.ts +0 -0
  345. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/color.ts +0 -0
  346. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/corpora.ts +0 -0
  347. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/devices.ts +0 -0
  348. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/directions.ts +0 -0
  349. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/edgePlan.ts +0 -0
  350. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/edges.ts +0 -0
  351. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/environment.ts +0 -0
  352. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/export.ts +0 -0
  353. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/figures.ts +0 -0
  354. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/formHistory.ts +0 -0
  355. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/format.ts +0 -0
  356. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/heatmapNavigation.ts +0 -0
  357. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/help.ts +0 -0
  358. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/hooks.ts +0 -0
  359. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/keys.ts +0 -0
  360. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/logogram.ts +0 -0
  361. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/metrics.ts +0 -0
  362. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/milestones.ts +0 -0
  363. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/motion.ts +0 -0
  364. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/promptEdits.ts +0 -0
  365. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/promptRows.ts +0 -0
  366. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/questions.ts +0 -0
  367. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/representations.ts +0 -0
  368. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/route.ts +0 -0
  369. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/runs.ts +0 -0
  370. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/sites.ts +0 -0
  371. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/start.ts +0 -0
  372. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/sweeps.ts +0 -0
  373. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/thresholds.ts +0 -0
  374. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/training.ts +0 -0
  375. {logogram-0.7.2 → logogram-0.8.0}/web/src/lib/walkthrough.ts +0 -0
  376. {logogram-0.7.2 → logogram-0.8.0}/web/src/main.tsx +0 -0
  377. {logogram-0.7.2 → logogram-0.8.0}/web/src/screens/Projects.tsx +0 -0
  378. {logogram-0.7.2 → logogram-0.8.0}/web/src/screens/SystemCheck.tsx +0 -0
  379. {logogram-0.7.2 → logogram-0.8.0}/web/src/screens/Workbench.module.css +0 -0
  380. {logogram-0.7.2 → logogram-0.8.0}/web/src/screens/Workbench.tsx +0 -0
  381. {logogram-0.7.2 → logogram-0.8.0}/web/src/store/app.ts +0 -0
  382. {logogram-0.7.2 → logogram-0.8.0}/web/src/store/help.ts +0 -0
  383. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/AttentionView.module.css +0 -0
  384. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/AttentionView.tsx +0 -0
  385. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/BaselineView.module.css +0 -0
  386. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/BaselineView.tsx +0 -0
  387. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ChatTemplateSettings.tsx +0 -0
  388. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/CompareView.module.css +0 -0
  389. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/CompareView.tsx +0 -0
  390. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/Continuations.module.css +0 -0
  391. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/Continuations.tsx +0 -0
  392. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/CorpusView.module.css +0 -0
  393. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/CorpusView.tsx +0 -0
  394. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/DirectionPicker.tsx +0 -0
  395. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/DirectionResults.tsx +0 -0
  396. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/EdgeResults.module.css +0 -0
  397. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ExperimentView.module.css +0 -0
  398. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ExploreView.module.css +0 -0
  399. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/FeaturesView.tsx +0 -0
  400. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/Forest.module.css +0 -0
  401. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/Forest.tsx +0 -0
  402. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/HeadComparisonView.module.css +0 -0
  403. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/HeadComparisonView.tsx +0 -0
  404. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/HeadKinds.module.css +0 -0
  405. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/HeadKinds.tsx +0 -0
  406. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/MetricSettings.tsx +0 -0
  407. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/NeuronResults.tsx +0 -0
  408. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/PredictionsView.module.css +0 -0
  409. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/PredictionsView.tsx +0 -0
  410. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ProbeSettings.tsx +0 -0
  411. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/PromptsView.module.css +0 -0
  412. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/RepresentationsView.module.css +0 -0
  413. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ResearchView.module.css +0 -0
  414. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ResearchView.tsx +0 -0
  415. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ResultsView.module.css +0 -0
  416. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/ResultsView.tsx +0 -0
  417. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SAEPicker.tsx +0 -0
  418. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SpecView.module.css +0 -0
  419. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SpecView.tsx +0 -0
  420. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SweepView.module.css +0 -0
  421. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/SweepView.tsx +0 -0
  422. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/TaskGenerator.tsx +0 -0
  423. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/TextView.module.css +0 -0
  424. {logogram-0.7.2 → logogram-0.8.0}/web/src/views/TextView.tsx +0 -0
  425. {logogram-0.7.2 → logogram-0.8.0}/web/tests/a11y.browser.ts +0 -0
  426. {logogram-0.7.2 → logogram-0.8.0}/web/tests/acdc.browser.ts +0 -0
  427. {logogram-0.7.2 → logogram-0.8.0}/web/tests/acdc.unit.ts +0 -0
  428. {logogram-0.7.2 → logogram-0.8.0}/web/tests/axe.ts +0 -0
  429. {logogram-0.7.2 → logogram-0.8.0}/web/tests/chat.browser.ts +0 -0
  430. {logogram-0.7.2 → logogram-0.8.0}/web/tests/chat.unit.ts +0 -0
  431. {logogram-0.7.2 → logogram-0.8.0}/web/tests/color.unit.ts +0 -0
  432. {logogram-0.7.2 → logogram-0.8.0}/web/tests/corpora.unit.ts +0 -0
  433. {logogram-0.7.2 → logogram-0.8.0}/web/tests/corpus.browser.ts +0 -0
  434. {logogram-0.7.2 → logogram-0.8.0}/web/tests/devices.unit.ts +0 -0
  435. {logogram-0.7.2 → logogram-0.8.0}/web/tests/directions.browser.ts +0 -0
  436. {logogram-0.7.2 → logogram-0.8.0}/web/tests/docs.ts +0 -0
  437. {logogram-0.7.2 → logogram-0.8.0}/web/tests/edges.browser.ts +0 -0
  438. {logogram-0.7.2 → logogram-0.8.0}/web/tests/edges.unit.ts +0 -0
  439. {logogram-0.7.2 → logogram-0.8.0}/web/tests/environment.unit.ts +0 -0
  440. {logogram-0.7.2 → logogram-0.8.0}/web/tests/fakeRuns.ts +0 -0
  441. {logogram-0.7.2 → logogram-0.8.0}/web/tests/finer.browser.ts +0 -0
  442. {logogram-0.7.2 → logogram-0.8.0}/web/tests/finer.unit.ts +0 -0
  443. {logogram-0.7.2 → logogram-0.8.0}/web/tests/form.unit.ts +0 -0
  444. {logogram-0.7.2 → logogram-0.8.0}/web/tests/gallery.browser.ts +0 -0
  445. {logogram-0.7.2 → logogram-0.8.0}/web/tests/guide.browser.ts +0 -0
  446. {logogram-0.7.2 → logogram-0.8.0}/web/tests/guide.unit.ts +0 -0
  447. {logogram-0.7.2 → logogram-0.8.0}/web/tests/heads.browser.ts +0 -0
  448. {logogram-0.7.2 → logogram-0.8.0}/web/tests/heatmap.unit.ts +0 -0
  449. {logogram-0.7.2 → logogram-0.8.0}/web/tests/help.browser.ts +0 -0
  450. {logogram-0.7.2 → logogram-0.8.0}/web/tests/help.unit.ts +0 -0
  451. {logogram-0.7.2 → logogram-0.8.0}/web/tests/history.browser.ts +0 -0
  452. {logogram-0.7.2 → logogram-0.8.0}/web/tests/history.unit.ts +0 -0
  453. {logogram-0.7.2 → logogram-0.8.0}/web/tests/logogram.unit.ts +0 -0
  454. {logogram-0.7.2 → logogram-0.8.0}/web/tests/manage.browser.ts +0 -0
  455. {logogram-0.7.2 → logogram-0.8.0}/web/tests/manage.unit.ts +0 -0
  456. {logogram-0.7.2 → logogram-0.8.0}/web/tests/navigation.browser.ts +0 -0
  457. {logogram-0.7.2 → logogram-0.8.0}/web/tests/notices.unit.ts +0 -0
  458. {logogram-0.7.2 → logogram-0.8.0}/web/tests/partial.browser.ts +0 -0
  459. {logogram-0.7.2 → logogram-0.8.0}/web/tests/prompts.browser.ts +0 -0
  460. {logogram-0.7.2 → logogram-0.8.0}/web/tests/prompts.unit.ts +0 -0
  461. {logogram-0.7.2 → logogram-0.8.0}/web/tests/queue.browser.ts +0 -0
  462. {logogram-0.7.2 → logogram-0.8.0}/web/tests/queue.unit.ts +0 -0
  463. {logogram-0.7.2 → logogram-0.8.0}/web/tests/route.unit.ts +0 -0
  464. {logogram-0.7.2 → logogram-0.8.0}/web/tests/runs.browser.ts +0 -0
  465. {logogram-0.7.2 → logogram-0.8.0}/web/tests/saes.browser.ts +0 -0
  466. {logogram-0.7.2 → logogram-0.8.0}/web/tests/steering.browser.ts +0 -0
  467. {logogram-0.7.2 → logogram-0.8.0}/web/tests/tasks.unit.ts +0 -0
  468. {logogram-0.7.2 → logogram-0.8.0}/web/tests/text.browser.ts +0 -0
  469. {logogram-0.7.2 → logogram-0.8.0}/web/tests/tokens.browser.ts +0 -0
  470. {logogram-0.7.2 → logogram-0.8.0}/web/tests/training.browser.ts +0 -0
  471. {logogram-0.7.2 → logogram-0.8.0}/web/tests/training.unit.ts +0 -0
  472. {logogram-0.7.2 → logogram-0.8.0}/web/tests/uneven.browser.ts +0 -0
  473. {logogram-0.7.2 → logogram-0.8.0}/web/tests/ux.browser.ts +0 -0
  474. {logogram-0.7.2 → logogram-0.8.0}/web/tests/walkthrough.browser.ts +0 -0
  475. {logogram-0.7.2 → logogram-0.8.0}/web/tests/workbench.browser.ts +0 -0
  476. {logogram-0.7.2 → logogram-0.8.0}/web/tsconfig.json +0 -0
  477. {logogram-0.7.2 → logogram-0.8.0}/web/vite.config.ts +0 -0
@@ -59,27 +59,36 @@ traceability come before features.
59
59
 
60
60
  ## Design rules
61
61
 
62
- * White and black, with color that means something. The page is pure white (or pure black); regions
63
- are separated by space and hairlines, never grey washes or drop shadows (only menus, dialogs and
64
- tooltips float). Navigation runs across the top; there is no sidebar.
62
+ * White paper and ink, with one signal red. The page is white (or, at night, ink paper with light
63
+ type); regions are separated by space and hairlines, never grey washes or drop shadows (only
64
+ menus, dialogs and tooltips float). Navigation runs across the top; there is no sidebar.
65
65
  * Color has jobs (tokens in `web/src/styles/tokens.css`):
66
- * each workspace has one: green Explore (`--explore`), orange Experiment (`--experiment`), pink
67
- Evidence (`--evidence`). The open workspace's pill, its tab underline, its progress and its
68
- radio marks use it (`--ws` holds the current one);
66
+ * signal red (`--signal`) marks what an intervention changes and what is chosen to be changed:
67
+ the ring around a selected cell, the patched site in a figure. Nothing else is red. Results
68
+ are written up on pages that use red the same way, so a figure reads the same in the app and
69
+ in a paper;
70
+ * the workspaces are named, not colored: the open workspace's pill, its tab underline, its
71
+ progress and its radio marks are ink (`--ws` holds the current one's token, and all three
72
+ are ink);
69
73
  * green (`--live`) means a loaded model;
70
74
  * effects use the diverging cobalt–neutral–amber scale, symmetric around zero, always with a
71
75
  legend, and nothing else uses those hues. Attention uses the single-hue ink ramp.
72
- * Primary buttons are solid ink (white in the dark theme), not colored.
73
- * Selection is circled in ink (`inkRing` in `web/src/lib/canvas.ts`), not a new color.
76
+ * Primary buttons are solid ink (white at night), not colored.
77
+ * Selection is circled in signal red (`inkRing` in `web/src/lib/canvas.ts`), drawn by hand like a
78
+ mark in red pen on a printout, and cut out of the data's colors by a band of the page.
74
79
  * Logograms (`web/src/lib/logogram.ts`) are data, not decoration. A run's glyph is written by its
75
80
  results: layers clockwise from the top, the ink swelling outward where a layer's strongest
76
81
  effect is positive and inward where it is negative, bleeding in the effect colors. Glyphs from
77
- a seed alone mark identity only: the brand (`BRAND_SEED`), projects, empty states. The welcome
78
- screens' color bloom behind the brand glyph is the one decorative use of color.
79
- * One typeface, Instrument Sans (weight and width axes): condensed widths for titles and big
80
- figures (`--display-stretch`, `.figure`), tabular figures for numbers. Its word space is
81
- narrow, so body text widens it (`--word-space`). Monospace appears only in the spec view.
82
- Sentence case everywhere; no all-caps labels.
82
+ a seed alone mark identity only: the brand (`BRAND_SEED`), projects, empty states.
83
+ * One picture: the painted observatory along the foot of the first screens
84
+ (`web/src/assets/`, with a night version). It blends into the page, text stays in its sky, and
85
+ a short window leaves it out. It is the one decorative image; don't add others inside the
86
+ workbench.
87
+ * Two typefaces with jobs, both bundled. Instrument Serif (`--display`) sets titles, questions
88
+ and key numbers, as a paper sets its headings; it has one weight, so never bold it. Instrument
89
+ Sans (weight and width axes) sets everything else, with tabular figures for numbers in tables.
90
+ Its word space is narrow, so body text widens it (`--word-space`). IBM Plex Mono appears only
91
+ in the spec view. Sentence case everywhere; no all-caps labels.
83
92
  * Motion only explains state changes, such as cells filling as results stream in, a glyph
84
93
  appearing, or panels opening, and, in the guide's figures (`web/src/components/figures/`), how
85
94
  a method works, stage by stage. A figure plays only while it is in view, can be paused and
@@ -2,6 +2,71 @@
2
2
 
3
3
  What changed in each version of Logogram.
4
4
 
5
+ ## 0.8.0 (2026-11-26)
6
+
7
+ Controls a result is read against: a gate on the baseline, random sets of the same size beside a
8
+ set of sites, each site of a set alone, donors chosen by a field of the prompts, a bootstrap
9
+ crossed over two fields, and Holm-adjusted p-values. Specs are version 5. And a new look: white
10
+ paper, ink and one signal red, with titles in a serif.
11
+
12
+ ### Added
13
+
14
+ - **A gate on the baseline.** A spec's `gate` says what the model must do on the prompts before
15
+ anything is intervened on: prefer the answer on at least a stated share of the clean prompts
16
+ (`min_correct`), show at least a stated mean clean–corrupt gap in the metric (`min_gap`), or
17
+ both. The baseline is measured first, and a run that falls short stops there and says what it
18
+ measured, where before it warned and went on. The experiment form has a **Gate** section, and
19
+ the summary beside **Run** says what the gate asks.
20
+ - **Random sets beside a set of sites.** With a site-sets scope's `controls`, each set gets `n`
21
+ random sets of the same size, intervened on like it: one site for each of the set's, of the
22
+ same kind and at the same position, redrawn within its own layer or among every layer, never a
23
+ site of the set itself. The results say where the set's effect lies among theirs, as their
24
+ mean, the range holding the run's confidence level of them, how many are at least as strong,
25
+ and that count as a p-value. Each set draws from its own stream of the seed.
26
+ - **Each site alone.** With `singles`, each site of a set of two or more is also intervened on
27
+ alone, and the results give the set's effect beyond the sum of its sites' effects alone, with
28
+ an interval from the same resamples. This was reported for sets of two whose sites were also
29
+ listed alone, and now covers sets of any size.
30
+ - **Donors chosen by a field.** A resample baseline's `group` draws each prompt's donors only
31
+ among prompts with the same value of a field of their `meta`, or only among those with a
32
+ different value. The form offers the fields every prompt has.
33
+ - **A bootstrap crossed over two fields.** `statistics.cross` names a second field beside
34
+ `statistics.cluster`, for prompts built from two lists such as names and places. Both fields'
35
+ values are resampled at once, and a prompt counts as often as its two values' draws multiplied.
36
+ A design too sparse for it is refused with the number of resamples that drew no prompt.
37
+ - **Holm-adjusted p-values.** Every finished sweep reports each site's Holm-adjusted p-value
38
+ beside its q-value and simultaneous band. It bounds the chance that even one reported site is
39
+ there by chance. The inspector and the guide show it.
40
+ - A new documentation page, [Controls](docs/concepts/controls.md), describes each of these and
41
+ when to use it.
42
+
43
+ ### Changed
44
+
45
+ - **A new look: white paper, ink and one signal red.** The three workspace colors are gone. The
46
+ open workspace is filled in ink, and its tab, progress and choices are ink. One red marks what
47
+ an intervention changes and what you have chosen to change: the ring around a selected cell on
48
+ the map, a heatmap, a sweep or a chart, and the patched site in the guide's figures. Green
49
+ still means a loaded model, and the cobalt-to-amber scale still belongs to effects alone. The
50
+ night theme is ink paper with light type.
51
+ - **Titles and key numbers are set in a serif**, Instrument Serif, as a paper sets its headings.
52
+ Everything else stays in Instrument Sans, and the spec view is in IBM Plex Mono. All three ship
53
+ with the app.
54
+ - **The first screens end in a painting**, an observatory on a hill, with a night version. It
55
+ takes the place of the color bloom behind the glyph and is left out in a short window.
56
+ - The experiment form lists its methods three across, so the whole list is in view sooner.
57
+ - The Prompts view names a run's saved copy of its prompts in words, not by its file's
58
+ 64-character name.
59
+ - The documentation's pictures of the results and of the methods show the new look. Its
60
+ pictures of a probe, representations, ACDC and a sweep still show the earlier colors.
61
+ - **Specs are version 5.** A version 5 spec states `gate`, `statistics.cross`, a site-sets
62
+ scope's `singles` and `controls`, and a resample baseline's `group`. Version 4 specs still run
63
+ and read with each of them off, which is what version 4 did. The bundled examples and the toy
64
+ models' specs are version 5.
65
+ - The methods paragraph says a run's gate, its donors' group, a crossed bootstrap, and the
66
+ singles and random sets of a run over sets.
67
+ - The memory estimate and the count of forward passes beside **Run** include the sites alone and
68
+ the random sets.
69
+
5
70
  ## 0.7.2 (2026-11-26)
6
71
 
7
72
  Start here and the guide in moving figures, what Logogram can find out on the first screens, and a
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: logogram
3
- Version: 0.7.2
3
+ Version: 0.8.0
4
4
  Summary: A local-first workbench for causal experiments inside language models.
5
5
  Project-URL: Homepage, https://github.com/Jeevash23/logogram
6
6
  Project-URL: Source, https://github.com/Jeevash23/logogram
@@ -1118,7 +1118,7 @@ must state every such choice, and a spec that leaves one out is refused with the
1118
1118
 
1119
1119
  ```json
1120
1120
  {
1121
- "logogram_spec": 4,
1121
+ "logogram_spec": 5,
1122
1122
  "name": "Which heads restore the answer?",
1123
1123
  "notes": "",
1124
1124
  "model": {
@@ -1135,8 +1135,9 @@ must state every such choice, and a spec that leaves one out is refused with the
1135
1135
  "experiment": {"kind": "activation_patching", "direction": "clean_to_corrupt"},
1136
1136
  "scope": {"kind": "heads", "position": {"kind": "all"}},
1137
1137
  "metric": {"kind": "logit_diff", "normalization": "dataset_gap"},
1138
- "statistics": {"bootstrap": 1000, "ci": 0.95, "seed": 0, "cluster": null},
1139
- "execution": {"batch_size": 64}
1138
+ "statistics": {"bootstrap": 1000, "ci": 0.95, "seed": 0, "cluster": null, "cross": null},
1139
+ "execution": {"batch_size": 64},
1140
+ "gate": null
1140
1141
  }
1141
1142
  ```
1142
1143
 
@@ -1147,7 +1148,10 @@ specs (Logogram 0.2 to 0.4) read with what version 3 added turned off, which is
1147
1148
  chat template, a model from Hugging Face, and steering along the mean difference without
1148
1149
  continuations. Version 3 specs (Logogram 0.5 and 0.6) read as version 4 with what version 4 adds
1149
1150
  turned off: the SAE a spec names is a published one, and the layer predictions read the logit
1150
- lens. Version 4 also adds methods and sources that a version 3 spec can't name.
1151
+ lens. Version 4 also adds methods and sources that a version 3 spec can't name. Version 4 specs
1152
+ (Logogram 0.7) read as version 5 with the controls version 5 adds turned off: no gate, a bootstrap
1153
+ over one field or none, sets of sites without their sites alone or random sets beside them, and
1154
+ donors drawn among every prompt of the pool.
1151
1155
 
1152
1156
  | Field | Values |
1153
1157
  |---|---|
@@ -1158,13 +1162,15 @@ lens. Version 4 also adds methods and sources that a version 3 spec can't name.
1158
1162
  | `tokenization.chat_template` | `null` feeds each prompt as raw text. `{"kind": "user_turn", "system": null}` makes each prompt the person's message in the model's own chat template, so the answer is the first token of the reply; `{"kind": "assistant_prefix", "system": null, "user": "…"}` makes it the start of the model's reply to a fixed message. `system` is an optional system message. The template is the one the tokenizer ships at the model's revision (see [Chat templates](#chat-templates)). With a template, `prepend_bos` is `false`: the template writes the beginning of the text. |
1159
1163
  | `model.process_weights` | Fold LayerNorm and center weights, as TransformerLens does by default. Logit differences don't change. Value biases are folded into the attention output's bias, so zero ablation of head outputs and heads' direct effects do change (by up to several logits in Qwen 2.5, whose value biases are large); a layer's attention output doesn't. |
1160
1164
  | `dataset.sha256` | If set, the run refuses a dataset file that has changed. |
1161
- | `experiment` | `{"kind": "activation_patching", "direction": "clean_to_corrupt" \| "corrupt_to_clean"}`, `{"kind": "ablation", "baseline": …}` with `{"kind": "zero"}`, `{"kind": "mean", "reference": "clean" \| "corrupt"}` or `{"kind": "resample", "pool": "clean" \| "corrupt", "donors": 10, "seed": 0}`, `{"kind": "attribution_patching", "direction": …, "method": "gradient", "steps": null}` (same directions as patching; or `"method": "integrated_gradients", "steps": 8`), `{"kind": "direct_logit_attribution", "prompts": "clean" \| "corrupt"}`, `{"kind": "path_patching", "direction": …, "receivers": [{"kind": "head", "layer": 9, "head": 9, "input": "q" \| "k" \| "v"}, {"kind": "mlp", "layer": 3}, {"kind": "logits"}], "freeze_mlps": false}`, `{"kind": "edge_attribution", "direction": …, "method": "gradient", "steps": null, "curve": {"counts": [10, 100, 1000], "patch": "chosen" \| "rest", "control": {"seed": 0, "draws": 1}}}` (`curve` `null` for none) with a `graph` scope, `{"kind": "acdc", "direction": …, "threshold": 0.1, "rule": "toward_source" \| "either_way"}` with a `graph` scope (`threshold` in the metric's units), or `{"kind": "steering", "apply_to": "clean" \| "corrupt", "direction": {"kind": "mean_difference"}, "coefficients": [-1, 1, 2], "train_fraction": 0.5, "seed": 0, "control": true, "continuations": null}` with a scope of one residual component per layer (`layer_components`) or residual `sites`, at one token. The direction can instead be one SAE feature's decoder direction, `{"kind": "sae_feature", "feature": 1234}` (with the spec's `sae`, and `sites` naming where the SAE writes), or a saved direction, `{"kind": "direction", "direction": {"name": "…", "sha256": null}}`, and `continuations` can be `{"prompts": 3, "tokens": 20}` to record what the steered model goes on to say. Also `{"kind": "probe", "labels": {"kind": "side"} \| {"kind": "meta", "field": "gender", "prompts": "clean" \| "corrupt" \| "both"}, "train_fraction": 0.5, "seed": 0, "regularization": 0.01, "iterations": 100, "control": true}`, `{"kind": "das", "direction": …, "dimensions": 1, "train_fraction": 0.5, "seed": 0, "steps": 100, "learning_rate": 0.01, "control": true}` and `{"kind": "subspace_patching", "direction": …, "subspace": {"name": "…", "sha256": null}}`, at one site at a time; ablation's baseline can also be `{"kind": "scale", "factor": 0.5}` or `{"kind": "projection", "direction": {"name": "…", "sha256": null}, "reference": null \| "clean" \| "corrupt"}` |
1162
- | `scope` | `{"kind": "heads", "position": …}`, `{"kind": "layer_position", "site": "resid_pre", "positions": "each" \| "labels"}`, `{"kind": "layer_components", "components": ["attn_out", "mlp_out"], "position": …}` `{"kind": "sites", "sites": [{"kind": "head", "layer": 9, "head": 9, "position": {"kind": "label", "label": "end"}}]}` (feature sites are `{"kind": "sae_feature", "layer": 8, "feature": 1234, "position": …}`), `{"kind": "head_inputs", "input": "q" \| "k" \| "v", "position": …}`, `{"kind": "neurons", "layers": [3, 4], "position": …}`, for attribution patching, `{"kind": "features", "position": …, "top": 50, "choose_on": 0.5, "seed": 0}` (`choose_on` and `seed` both `null` to choose and report on every prompt), `{"kind": "site_sets", "universe": ["head"], "sets": [{"label": "circuit", "sites": […], "complement": true}]}`, for edge attribution and ACDC `{"kind": "graph", "layers": null, "logits": true}` (`layers` the heads and MLPs that receive edges, `null` for every layer), or, for path patching edges one at a time, `{"kind": "edges", "edges": [{"sender": {"kind": "head", "layer": 5, "head": 5}, "receiver": {"kind": "head", "layer": 9, "head": 6, "input": "v"}}]}` (senders `{"kind": "embed"}`, heads or `{"kind": "mlp", "layer": 0}`; `freeze_mlps` true, and the experiment's receivers those of the edges; a `k` or `v` receiver's `head` is a key/value head where heads share them) |
1165
+ | `experiment` | `{"kind": "activation_patching", "direction": "clean_to_corrupt" \| "corrupt_to_clean"}`, `{"kind": "ablation", "baseline": …}` with `{"kind": "zero"}`, `{"kind": "mean", "reference": "clean" \| "corrupt"}` or `{"kind": "resample", "pool": "clean" \| "corrupt", "donors": 10, "seed": 0, "group": null}` (or `"group": {"field": "template", "match": "same" \| "different"}` to draw each prompt's donors by a field of the prompts' `meta`), `{"kind": "attribution_patching", "direction": …, "method": "gradient", "steps": null}` (same directions as patching; or `"method": "integrated_gradients", "steps": 8`), `{"kind": "direct_logit_attribution", "prompts": "clean" \| "corrupt"}`, `{"kind": "path_patching", "direction": …, "receivers": [{"kind": "head", "layer": 9, "head": 9, "input": "q" \| "k" \| "v"}, {"kind": "mlp", "layer": 3}, {"kind": "logits"}], "freeze_mlps": false}`, `{"kind": "edge_attribution", "direction": …, "method": "gradient", "steps": null, "curve": {"counts": [10, 100, 1000], "patch": "chosen" \| "rest", "control": {"seed": 0, "draws": 1}}}` (`curve` `null` for none) with a `graph` scope, `{"kind": "acdc", "direction": …, "threshold": 0.1, "rule": "toward_source" \| "either_way"}` with a `graph` scope (`threshold` in the metric's units), or `{"kind": "steering", "apply_to": "clean" \| "corrupt", "direction": {"kind": "mean_difference"}, "coefficients": [-1, 1, 2], "train_fraction": 0.5, "seed": 0, "control": true, "continuations": null}` with a scope of one residual component per layer (`layer_components`) or residual `sites`, at one token. The direction can instead be one SAE feature's decoder direction, `{"kind": "sae_feature", "feature": 1234}` (with the spec's `sae`, and `sites` naming where the SAE writes), or a saved direction, `{"kind": "direction", "direction": {"name": "…", "sha256": null}}`, and `continuations` can be `{"prompts": 3, "tokens": 20}` to record what the steered model goes on to say. Also `{"kind": "probe", "labels": {"kind": "side"} \| {"kind": "meta", "field": "gender", "prompts": "clean" \| "corrupt" \| "both"}, "train_fraction": 0.5, "seed": 0, "regularization": 0.01, "iterations": 100, "control": true}`, `{"kind": "das", "direction": …, "dimensions": 1, "train_fraction": 0.5, "seed": 0, "steps": 100, "learning_rate": 0.01, "control": true}` and `{"kind": "subspace_patching", "direction": …, "subspace": {"name": "…", "sha256": null}}`, at one site at a time; ablation's baseline can also be `{"kind": "scale", "factor": 0.5}` or `{"kind": "projection", "direction": {"name": "…", "sha256": null}, "reference": null \| "clean" \| "corrupt"}` |
1166
+ | `scope` | `{"kind": "heads", "position": …}`, `{"kind": "layer_position", "site": "resid_pre", "positions": "each" \| "labels"}`, `{"kind": "layer_components", "components": ["attn_out", "mlp_out"], "position": …}` `{"kind": "sites", "sites": [{"kind": "head", "layer": 9, "head": 9, "position": {"kind": "label", "label": "end"}}]}` (feature sites are `{"kind": "sae_feature", "layer": 8, "feature": 1234, "position": …}`), `{"kind": "head_inputs", "input": "q" \| "k" \| "v", "position": …}`, `{"kind": "neurons", "layers": [3, 4], "position": …}`, for attribution patching, `{"kind": "features", "position": …, "top": 50, "choose_on": 0.5, "seed": 0}` (`choose_on` and `seed` both `null` to choose and report on every prompt), `{"kind": "site_sets", "universe": ["head"], "sets": [{"label": "circuit", "sites": […], "complement": true}], "singles": false, "controls": null}` (with `"singles": true` each site of a set is also intervened on alone, and `"controls": {"n": 100, "seed": 0, "match": "layer" \| "model"}` draws random sets of the same size beside each set), for edge attribution and ACDC `{"kind": "graph", "layers": null, "logits": true}` (`layers` the heads and MLPs that receive edges, `null` for every layer), or, for path patching edges one at a time, `{"kind": "edges", "edges": [{"sender": {"kind": "head", "layer": 5, "head": 5}, "receiver": {"kind": "head", "layer": 9, "head": 6, "input": "v"}}]}` (senders `{"kind": "embed"}`, heads or `{"kind": "mlp", "layer": 0}`; `freeze_mlps` true, and the experiment's receivers those of the edges; a `k` or `v` receiver's `head` is a key/value head where heads share them) |
1163
1167
  | `sae` | The SAE that feature sites belong to: a published one, `{"repo": "…", "path": "blocks.8.hook_resid_pre", "revision": "…", "source": "hub", "sha256": null}`, whose revision is pinned when a run starts, or one trained in the project, `{"repo": "NAME", "path": "saes/NAME", "revision": null, "source": "project", "sha256": "…"}`, pinned by the hash of its files. |
1164
1168
  | `predictions` | `null`, or the layer prediction diagnostic saved beside the results: `{"method": "final_norm_logit_lens" \| "tuned_lens", "lens": null, "prompt_index": 0, "which": "clean", "position": {"kind": "last"}, "top_k": 5}`, with `lens` `{"name": "NAME", "sha256": "…"}` naming a tuned lens trained in the project, pinned by the hash of its file. |
1165
1169
  | `metric` | `{"kind": "logit_diff" \| "logprob_diff" \| "logprob" \| "prob" \| "prob_diff", "normalization": …}`, `{"kind": "kl", "target": "clean" \| "corrupt", "normalization": …}`, or, for patching, ablation and subspace patching, `{"kind": "readout", "unit": {"kind": "neuron", "layer": 9, "neuron": 652}, "position": {"kind": "last"}, "normalization": …}` (a unit can also be `{"kind": "direction", "direction": {"name": "…", "sha256": null}, "site": "resid_post", "layer": 10}` or `{"kind": "sae_feature", "feature": 1234}`); `null` for a probe |
1166
1170
  | `metric.normalization` | `dataset_gap` or `prompt_gap` |
1167
1171
  | `statistics.cluster` | `null` to resample prompts, or a field of the prompts' `meta` (such as `"template"`) to resample clusters of prompts |
1172
+ | `statistics.cross` | `null`, or a second field of the prompts' `meta` crossed with `cluster`: both fields' values are resampled at once, for prompts built from two lists such as names and places |
1173
+ | `gate` | `null`, or what the baseline must show before anything is intervened on: `{"min_correct": 0.9, "min_gap": null}` asks that the model prefer the answer on at least 90% of the clean prompts, and `min_gap` for a least mean clean–corrupt gap in the metric. A run that falls short stops there and says what it measured. See [controls](docs/concepts/controls.md). |
1168
1174
  | `execution.batch_size` | Recorded because batch shape can change floating-point results in the last digits. |
1169
1175
 
1170
1176
  ## Projects
@@ -1080,7 +1080,7 @@ must state every such choice, and a spec that leaves one out is refused with the
1080
1080
 
1081
1081
  ```json
1082
1082
  {
1083
- "logogram_spec": 4,
1083
+ "logogram_spec": 5,
1084
1084
  "name": "Which heads restore the answer?",
1085
1085
  "notes": "",
1086
1086
  "model": {
@@ -1097,8 +1097,9 @@ must state every such choice, and a spec that leaves one out is refused with the
1097
1097
  "experiment": {"kind": "activation_patching", "direction": "clean_to_corrupt"},
1098
1098
  "scope": {"kind": "heads", "position": {"kind": "all"}},
1099
1099
  "metric": {"kind": "logit_diff", "normalization": "dataset_gap"},
1100
- "statistics": {"bootstrap": 1000, "ci": 0.95, "seed": 0, "cluster": null},
1101
- "execution": {"batch_size": 64}
1100
+ "statistics": {"bootstrap": 1000, "ci": 0.95, "seed": 0, "cluster": null, "cross": null},
1101
+ "execution": {"batch_size": 64},
1102
+ "gate": null
1102
1103
  }
1103
1104
  ```
1104
1105
 
@@ -1109,7 +1110,10 @@ specs (Logogram 0.2 to 0.4) read with what version 3 added turned off, which is
1109
1110
  chat template, a model from Hugging Face, and steering along the mean difference without
1110
1111
  continuations. Version 3 specs (Logogram 0.5 and 0.6) read as version 4 with what version 4 adds
1111
1112
  turned off: the SAE a spec names is a published one, and the layer predictions read the logit
1112
- lens. Version 4 also adds methods and sources that a version 3 spec can't name.
1113
+ lens. Version 4 also adds methods and sources that a version 3 spec can't name. Version 4 specs
1114
+ (Logogram 0.7) read as version 5 with the controls version 5 adds turned off: no gate, a bootstrap
1115
+ over one field or none, sets of sites without their sites alone or random sets beside them, and
1116
+ donors drawn among every prompt of the pool.
1113
1117
 
1114
1118
  | Field | Values |
1115
1119
  |---|---|
@@ -1120,13 +1124,15 @@ lens. Version 4 also adds methods and sources that a version 3 spec can't name.
1120
1124
  | `tokenization.chat_template` | `null` feeds each prompt as raw text. `{"kind": "user_turn", "system": null}` makes each prompt the person's message in the model's own chat template, so the answer is the first token of the reply; `{"kind": "assistant_prefix", "system": null, "user": "…"}` makes it the start of the model's reply to a fixed message. `system` is an optional system message. The template is the one the tokenizer ships at the model's revision (see [Chat templates](#chat-templates)). With a template, `prepend_bos` is `false`: the template writes the beginning of the text. |
1121
1125
  | `model.process_weights` | Fold LayerNorm and center weights, as TransformerLens does by default. Logit differences don't change. Value biases are folded into the attention output's bias, so zero ablation of head outputs and heads' direct effects do change (by up to several logits in Qwen 2.5, whose value biases are large); a layer's attention output doesn't. |
1122
1126
  | `dataset.sha256` | If set, the run refuses a dataset file that has changed. |
1123
- | `experiment` | `{"kind": "activation_patching", "direction": "clean_to_corrupt" \| "corrupt_to_clean"}`, `{"kind": "ablation", "baseline": …}` with `{"kind": "zero"}`, `{"kind": "mean", "reference": "clean" \| "corrupt"}` or `{"kind": "resample", "pool": "clean" \| "corrupt", "donors": 10, "seed": 0}`, `{"kind": "attribution_patching", "direction": …, "method": "gradient", "steps": null}` (same directions as patching; or `"method": "integrated_gradients", "steps": 8`), `{"kind": "direct_logit_attribution", "prompts": "clean" \| "corrupt"}`, `{"kind": "path_patching", "direction": …, "receivers": [{"kind": "head", "layer": 9, "head": 9, "input": "q" \| "k" \| "v"}, {"kind": "mlp", "layer": 3}, {"kind": "logits"}], "freeze_mlps": false}`, `{"kind": "edge_attribution", "direction": …, "method": "gradient", "steps": null, "curve": {"counts": [10, 100, 1000], "patch": "chosen" \| "rest", "control": {"seed": 0, "draws": 1}}}` (`curve` `null` for none) with a `graph` scope, `{"kind": "acdc", "direction": …, "threshold": 0.1, "rule": "toward_source" \| "either_way"}` with a `graph` scope (`threshold` in the metric's units), or `{"kind": "steering", "apply_to": "clean" \| "corrupt", "direction": {"kind": "mean_difference"}, "coefficients": [-1, 1, 2], "train_fraction": 0.5, "seed": 0, "control": true, "continuations": null}` with a scope of one residual component per layer (`layer_components`) or residual `sites`, at one token. The direction can instead be one SAE feature's decoder direction, `{"kind": "sae_feature", "feature": 1234}` (with the spec's `sae`, and `sites` naming where the SAE writes), or a saved direction, `{"kind": "direction", "direction": {"name": "…", "sha256": null}}`, and `continuations` can be `{"prompts": 3, "tokens": 20}` to record what the steered model goes on to say. Also `{"kind": "probe", "labels": {"kind": "side"} \| {"kind": "meta", "field": "gender", "prompts": "clean" \| "corrupt" \| "both"}, "train_fraction": 0.5, "seed": 0, "regularization": 0.01, "iterations": 100, "control": true}`, `{"kind": "das", "direction": …, "dimensions": 1, "train_fraction": 0.5, "seed": 0, "steps": 100, "learning_rate": 0.01, "control": true}` and `{"kind": "subspace_patching", "direction": …, "subspace": {"name": "…", "sha256": null}}`, at one site at a time; ablation's baseline can also be `{"kind": "scale", "factor": 0.5}` or `{"kind": "projection", "direction": {"name": "…", "sha256": null}, "reference": null \| "clean" \| "corrupt"}` |
1124
- | `scope` | `{"kind": "heads", "position": …}`, `{"kind": "layer_position", "site": "resid_pre", "positions": "each" \| "labels"}`, `{"kind": "layer_components", "components": ["attn_out", "mlp_out"], "position": …}` `{"kind": "sites", "sites": [{"kind": "head", "layer": 9, "head": 9, "position": {"kind": "label", "label": "end"}}]}` (feature sites are `{"kind": "sae_feature", "layer": 8, "feature": 1234, "position": …}`), `{"kind": "head_inputs", "input": "q" \| "k" \| "v", "position": …}`, `{"kind": "neurons", "layers": [3, 4], "position": …}`, for attribution patching, `{"kind": "features", "position": …, "top": 50, "choose_on": 0.5, "seed": 0}` (`choose_on` and `seed` both `null` to choose and report on every prompt), `{"kind": "site_sets", "universe": ["head"], "sets": [{"label": "circuit", "sites": […], "complement": true}]}`, for edge attribution and ACDC `{"kind": "graph", "layers": null, "logits": true}` (`layers` the heads and MLPs that receive edges, `null` for every layer), or, for path patching edges one at a time, `{"kind": "edges", "edges": [{"sender": {"kind": "head", "layer": 5, "head": 5}, "receiver": {"kind": "head", "layer": 9, "head": 6, "input": "v"}}]}` (senders `{"kind": "embed"}`, heads or `{"kind": "mlp", "layer": 0}`; `freeze_mlps` true, and the experiment's receivers those of the edges; a `k` or `v` receiver's `head` is a key/value head where heads share them) |
1127
+ | `experiment` | `{"kind": "activation_patching", "direction": "clean_to_corrupt" \| "corrupt_to_clean"}`, `{"kind": "ablation", "baseline": …}` with `{"kind": "zero"}`, `{"kind": "mean", "reference": "clean" \| "corrupt"}` or `{"kind": "resample", "pool": "clean" \| "corrupt", "donors": 10, "seed": 0, "group": null}` (or `"group": {"field": "template", "match": "same" \| "different"}` to draw each prompt's donors by a field of the prompts' `meta`), `{"kind": "attribution_patching", "direction": …, "method": "gradient", "steps": null}` (same directions as patching; or `"method": "integrated_gradients", "steps": 8`), `{"kind": "direct_logit_attribution", "prompts": "clean" \| "corrupt"}`, `{"kind": "path_patching", "direction": …, "receivers": [{"kind": "head", "layer": 9, "head": 9, "input": "q" \| "k" \| "v"}, {"kind": "mlp", "layer": 3}, {"kind": "logits"}], "freeze_mlps": false}`, `{"kind": "edge_attribution", "direction": …, "method": "gradient", "steps": null, "curve": {"counts": [10, 100, 1000], "patch": "chosen" \| "rest", "control": {"seed": 0, "draws": 1}}}` (`curve` `null` for none) with a `graph` scope, `{"kind": "acdc", "direction": …, "threshold": 0.1, "rule": "toward_source" \| "either_way"}` with a `graph` scope (`threshold` in the metric's units), or `{"kind": "steering", "apply_to": "clean" \| "corrupt", "direction": {"kind": "mean_difference"}, "coefficients": [-1, 1, 2], "train_fraction": 0.5, "seed": 0, "control": true, "continuations": null}` with a scope of one residual component per layer (`layer_components`) or residual `sites`, at one token. The direction can instead be one SAE feature's decoder direction, `{"kind": "sae_feature", "feature": 1234}` (with the spec's `sae`, and `sites` naming where the SAE writes), or a saved direction, `{"kind": "direction", "direction": {"name": "…", "sha256": null}}`, and `continuations` can be `{"prompts": 3, "tokens": 20}` to record what the steered model goes on to say. Also `{"kind": "probe", "labels": {"kind": "side"} \| {"kind": "meta", "field": "gender", "prompts": "clean" \| "corrupt" \| "both"}, "train_fraction": 0.5, "seed": 0, "regularization": 0.01, "iterations": 100, "control": true}`, `{"kind": "das", "direction": …, "dimensions": 1, "train_fraction": 0.5, "seed": 0, "steps": 100, "learning_rate": 0.01, "control": true}` and `{"kind": "subspace_patching", "direction": …, "subspace": {"name": "…", "sha256": null}}`, at one site at a time; ablation's baseline can also be `{"kind": "scale", "factor": 0.5}` or `{"kind": "projection", "direction": {"name": "…", "sha256": null}, "reference": null \| "clean" \| "corrupt"}` |
1128
+ | `scope` | `{"kind": "heads", "position": …}`, `{"kind": "layer_position", "site": "resid_pre", "positions": "each" \| "labels"}`, `{"kind": "layer_components", "components": ["attn_out", "mlp_out"], "position": …}` `{"kind": "sites", "sites": [{"kind": "head", "layer": 9, "head": 9, "position": {"kind": "label", "label": "end"}}]}` (feature sites are `{"kind": "sae_feature", "layer": 8, "feature": 1234, "position": …}`), `{"kind": "head_inputs", "input": "q" \| "k" \| "v", "position": …}`, `{"kind": "neurons", "layers": [3, 4], "position": …}`, for attribution patching, `{"kind": "features", "position": …, "top": 50, "choose_on": 0.5, "seed": 0}` (`choose_on` and `seed` both `null` to choose and report on every prompt), `{"kind": "site_sets", "universe": ["head"], "sets": [{"label": "circuit", "sites": […], "complement": true}], "singles": false, "controls": null}` (with `"singles": true` each site of a set is also intervened on alone, and `"controls": {"n": 100, "seed": 0, "match": "layer" \| "model"}` draws random sets of the same size beside each set), for edge attribution and ACDC `{"kind": "graph", "layers": null, "logits": true}` (`layers` the heads and MLPs that receive edges, `null` for every layer), or, for path patching edges one at a time, `{"kind": "edges", "edges": [{"sender": {"kind": "head", "layer": 5, "head": 5}, "receiver": {"kind": "head", "layer": 9, "head": 6, "input": "v"}}]}` (senders `{"kind": "embed"}`, heads or `{"kind": "mlp", "layer": 0}`; `freeze_mlps` true, and the experiment's receivers those of the edges; a `k` or `v` receiver's `head` is a key/value head where heads share them) |
1125
1129
  | `sae` | The SAE that feature sites belong to: a published one, `{"repo": "…", "path": "blocks.8.hook_resid_pre", "revision": "…", "source": "hub", "sha256": null}`, whose revision is pinned when a run starts, or one trained in the project, `{"repo": "NAME", "path": "saes/NAME", "revision": null, "source": "project", "sha256": "…"}`, pinned by the hash of its files. |
1126
1130
  | `predictions` | `null`, or the layer prediction diagnostic saved beside the results: `{"method": "final_norm_logit_lens" \| "tuned_lens", "lens": null, "prompt_index": 0, "which": "clean", "position": {"kind": "last"}, "top_k": 5}`, with `lens` `{"name": "NAME", "sha256": "…"}` naming a tuned lens trained in the project, pinned by the hash of its file. |
1127
1131
  | `metric` | `{"kind": "logit_diff" \| "logprob_diff" \| "logprob" \| "prob" \| "prob_diff", "normalization": …}`, `{"kind": "kl", "target": "clean" \| "corrupt", "normalization": …}`, or, for patching, ablation and subspace patching, `{"kind": "readout", "unit": {"kind": "neuron", "layer": 9, "neuron": 652}, "position": {"kind": "last"}, "normalization": …}` (a unit can also be `{"kind": "direction", "direction": {"name": "…", "sha256": null}, "site": "resid_post", "layer": 10}` or `{"kind": "sae_feature", "feature": 1234}`); `null` for a probe |
1128
1132
  | `metric.normalization` | `dataset_gap` or `prompt_gap` |
1129
1133
  | `statistics.cluster` | `null` to resample prompts, or a field of the prompts' `meta` (such as `"template"`) to resample clusters of prompts |
1134
+ | `statistics.cross` | `null`, or a second field of the prompts' `meta` crossed with `cluster`: both fields' values are resampled at once, for prompts built from two lists such as names and places |
1135
+ | `gate` | `null`, or what the baseline must show before anything is intervened on: `{"min_correct": 0.9, "min_gap": null}` asks that the model prefer the answer on at least 90% of the clean prompts, and `min_gap` for a least mean clean–corrupt gap in the metric. A run that falls short stops there and says what it measured. See [controls](docs/concepts/controls.md). |
1130
1136
  | `execution.batch_size` | Recorded because batch shape can change floating-point results in the last digits. |
1131
1137
 
1132
1138
  ## Projects
@@ -49,6 +49,7 @@ method comes from.
49
49
  | [SAE features and transcoders](concepts/sae-features.md) | Finding a published SAE by name, sparse autoencoders, transcoders, patching features, what a feature writes |
50
50
  | [Training an SAE](concepts/sae-training.md) | A TopK SAE trained in the project on a corpus, deterministically: every choice, what is measured on held-out text, where it can mislead |
51
51
  | [Circuits](concepts/circuits.md) | Sets of sites intervened on at once: faithfulness, completeness, minimality, interactions |
52
+ | [Controls](concepts/controls.md) | What a result is read against: a gate on the baseline, random sets of the same size, each site alone, donors chosen by a field, a bootstrap crossed over two fields |
52
53
  | [Corpora and representations](concepts/corpora-and-representations.md) | Plain texts in the project, where a neuron, an SAE feature, a direction or a head is most active in them, principal components and mean differences of activations, directions, and exported activations |
53
54
  | [The logit lens and the model checks](concepts/logit-lens-and-model-checks.md) | Reading each layer's prediction, and what Logogram measures about a model when it loads |
54
55
  | [The tuned lens](concepts/tuned-lens.md) | An affine translator per layer, trained in the project to read each layer's prediction more faithfully than the logit lens |
@@ -7,7 +7,7 @@ clash with Logogram's modules: ``load_spec``, not ``spec``.)
7
7
 
8
8
  from typing import Any
9
9
 
10
- __version__ = "0.7.2"
10
+ __version__ = "0.8.0"
11
11
  # The release date of this version: after a few months the app suggests looking for a newer one
12
12
  # (no network needed). Set it with every release.
13
13
  __released__ = "2026-11-26"
@@ -329,7 +329,7 @@ def run_attribution_patching(
329
329
  prompts gives them: their own gap normalizes them, and is checked as a run's is."""
330
330
  chosen = [prompts[i] for i in at]
331
331
  base = baselines.subset(at)
332
- notes = check_gap(spec, base, chosen, receiver, reference)
332
+ notes = check_gap(spec, base, chosen, receiver, reference, gate=False)
333
333
  return _estimates(
334
334
  exp,
335
335
  sites,