logogram 0.7.1__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 (479) hide show
  1. {logogram-0.7.1 → logogram-0.8.0}/AGENTS.md +27 -15
  2. {logogram-0.7.1 → logogram-0.8.0}/CHANGELOG.md +136 -0
  3. {logogram-0.7.1 → logogram-0.8.0}/PKG-INFO +48 -18
  4. {logogram-0.7.1 → logogram-0.8.0}/README.md +47 -17
  5. {logogram-0.7.1 → logogram-0.8.0}/docs/README.md +14 -0
  6. {logogram-0.7.1 → logogram-0.8.0}/pyproject.toml +1 -1
  7. {logogram-0.7.1 → logogram-0.8.0}/scripts/build_reference.py +37 -0
  8. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/__init__.py +2 -2
  9. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/atp.py +1 -1
  10. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/backends/transformer_lens.py +67 -5
  11. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/circuits.py +213 -23
  12. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/edges.py +1 -1
  13. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/engine.py +75 -2
  14. logogram-0.8.0/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +49 -0
  15. logogram-0.8.0/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +50 -0
  16. logogram-0.8.0/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +54 -0
  17. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/experiments/ioi-head-patching/spec.json +4 -2
  18. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/partial.py +4 -0
  19. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/report.py +40 -3
  20. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/results.py +71 -24
  21. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/robustness.py +4 -1
  22. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/schema.py +29 -7
  23. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/spec.py +181 -6
  24. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/stats.py +68 -4
  25. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/system.py +9 -1
  26. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/toys.py +11 -2
  27. logogram-0.8.0/src/logogram/web_dist/assets/GuideFigures-oNmw1JJx.css +1 -0
  28. logogram-0.8.0/src/logogram/web_dist/assets/GuideFigures-p7qiS74L.js +1 -0
  29. logogram-0.8.0/src/logogram/web_dist/assets/PatchingFigures-DeWS5QCW.js +1 -0
  30. logogram-0.8.0/src/logogram/web_dist/assets/PatchingFigures-Se31mF8l.css +1 -0
  31. logogram-0.8.0/src/logogram/web_dist/assets/StartHere-D9we17E2.js +1 -0
  32. logogram-0.8.0/src/logogram/web_dist/assets/StartHere-DwqjC9X4.css +1 -0
  33. logogram-0.8.0/src/logogram/web_dist/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  34. logogram-0.8.0/src/logogram/web_dist/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  35. logogram-0.8.0/src/logogram/web_dist/assets/index-CvUrkw0h.js +61 -0
  36. logogram-0.8.0/src/logogram/web_dist/assets/index-CxuG1JuO.css +1 -0
  37. logogram-0.8.0/src/logogram/web_dist/assets/instrument-serif-latin-400-normal-BVbkICAY.woff +0 -0
  38. logogram-0.8.0/src/logogram/web_dist/assets/instrument-serif-latin-400-normal-DnYpCC2O.woff2 +0 -0
  39. logogram-0.8.0/src/logogram/web_dist/assets/night-observatory-C_gG3uNO.webp +0 -0
  40. logogram-0.8.0/src/logogram/web_dist/assets/paint-observatory-zcbTu2Fm.webp +0 -0
  41. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/web_dist/index.html +2 -2
  42. logogram-0.8.0/tests/test_controls.py +390 -0
  43. {logogram-0.7.1 → logogram-0.8.0}/tests/test_partial.py +1 -1
  44. {logogram-0.7.1 → logogram-0.8.0}/tests/test_reference.py +8 -2
  45. {logogram-0.7.1 → logogram-0.8.0}/tests/test_specs.py +34 -7
  46. {logogram-0.7.1 → logogram-0.8.0}/tests/test_statistics.py +98 -0
  47. {logogram-0.7.1 → logogram-0.8.0}/uv.lock +505 -443
  48. {logogram-0.7.1 → logogram-0.8.0}/web/package-lock.json +278 -253
  49. {logogram-0.7.1 → logogram-0.8.0}/web/package.json +13 -11
  50. {logogram-0.7.1 → logogram-0.8.0}/web/src/api/types.ts +67 -9
  51. logogram-0.8.0/web/src/assets/night-observatory.webp +0 -0
  52. logogram-0.8.0/web/src/assets/paint-observatory.webp +0 -0
  53. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/CircuitDialog.tsx +1 -1
  54. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/GuideDialog.module.css +5 -0
  55. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/GuideDialog.tsx +69 -34
  56. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Header.module.css +2 -2
  57. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Heatmap/Heatmap.tsx +1 -1
  58. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Inspector.tsx +9 -1
  59. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ModelMap/ModelMap.tsx +1 -1
  60. logogram-0.8.0/web/src/components/Questions.module.css +117 -0
  61. logogram-0.8.0/web/src/components/Questions.tsx +81 -0
  62. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/RobustnessDialog.tsx +1 -1
  63. logogram-0.8.0/web/src/components/StartHere.module.css +77 -0
  64. logogram-0.8.0/web/src/components/StartHere.tsx +120 -0
  65. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/SweepChart/SweepChart.tsx +1 -1
  66. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/TopBar.module.css +1 -1
  67. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/TopBar.tsx +2 -2
  68. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/UpdateNotice.module.css +1 -1
  69. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Walkthrough.module.css +44 -1
  70. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Walkthrough.tsx +42 -9
  71. logogram-0.8.0/web/src/components/figures/Figures.module.css +365 -0
  72. logogram-0.8.0/web/src/components/figures/GuideFigures.module.css +109 -0
  73. logogram-0.8.0/web/src/components/figures/GuideFigures.tsx +430 -0
  74. logogram-0.8.0/web/src/components/figures/IoiFinds.tsx +123 -0
  75. logogram-0.8.0/web/src/components/figures/ModelParts.module.css +97 -0
  76. logogram-0.8.0/web/src/components/figures/ModelParts.tsx +170 -0
  77. logogram-0.8.0/web/src/components/figures/Patching.module.css +70 -0
  78. logogram-0.8.0/web/src/components/figures/PatchingFigures.tsx +313 -0
  79. logogram-0.8.0/web/src/components/figures/StagedFigure.tsx +232 -0
  80. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ui/Icon.tsx +1 -0
  81. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ui/index.tsx +4 -1
  82. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ui/ui.module.css +12 -6
  83. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/buildSpec.ts +43 -4
  84. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/canvas.ts +4 -1
  85. logogram-0.8.0/web/src/lib/figures.ts +52 -0
  86. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/formDraft.ts +21 -2
  87. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/formState.ts +9 -0
  88. logogram-0.8.0/web/src/lib/guide.ts +124 -0
  89. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/hooks.ts +11 -0
  90. logogram-0.8.0/web/src/lib/questions.ts +123 -0
  91. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/spec.ts +44 -5
  92. logogram-0.8.0/web/src/lib/start.ts +222 -0
  93. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/walkthrough.ts +24 -6
  94. {logogram-0.7.1 → logogram-0.8.0}/web/src/screens/Projects.tsx +31 -7
  95. {logogram-0.7.1 → logogram-0.8.0}/web/src/screens/Screens.module.css +66 -52
  96. {logogram-0.7.1 → logogram-0.8.0}/web/src/screens/SystemCheck.tsx +6 -5
  97. {logogram-0.7.1 → logogram-0.8.0}/web/src/screens/Welcome.tsx +10 -7
  98. {logogram-0.7.1 → logogram-0.8.0}/web/src/screens/Workbench.tsx +7 -4
  99. {logogram-0.7.1 → logogram-0.8.0}/web/src/styles/global.css +11 -8
  100. {logogram-0.7.1 → logogram-0.8.0}/web/src/styles/tokens.css +63 -48
  101. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/BaselineView.module.css +18 -0
  102. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/BaselineView.tsx +12 -4
  103. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/CircuitResults.tsx +51 -6
  104. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/DirectionResults.tsx +1 -1
  105. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/EdgeResults.tsx +1 -1
  106. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ExperimentView.tsx +59 -73
  107. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ExploreView.tsx +1 -1
  108. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/FeaturesView.module.css +2 -2
  109. logogram-0.8.0/web/src/views/GateSettings.tsx +52 -0
  110. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/NeuronResults.module.css +1 -1
  111. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/PromptsView.tsx +1 -1
  112. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/RepresentationsView.tsx +1 -1
  113. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/RunSummary.tsx +9 -1
  114. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SAEPicker.module.css +2 -2
  115. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SiteSets.module.css +8 -1
  116. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SiteSetsEditor.tsx +34 -0
  117. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/StatisticsSettings.tsx +26 -1
  118. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/TextView.tsx +2 -2
  119. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/views.module.css +3 -3
  120. {logogram-0.7.1 → logogram-0.8.0}/web/tests/analyses.browser.ts +52 -1
  121. {logogram-0.7.1 → logogram-0.8.0}/web/tests/autosave.unit.ts +26 -1
  122. {logogram-0.7.1 → logogram-0.8.0}/web/tests/chat.browser.ts +2 -2
  123. {logogram-0.7.1 → logogram-0.8.0}/web/tests/circuits.unit.ts +3 -3
  124. {logogram-0.7.1 → logogram-0.8.0}/web/tests/context.unit.ts +12 -2
  125. {logogram-0.7.1 → logogram-0.8.0}/web/tests/directions.browser.ts +4 -4
  126. {logogram-0.7.1 → logogram-0.8.0}/web/tests/directions.unit.ts +1 -1
  127. {logogram-0.7.1 → logogram-0.8.0}/web/tests/export.unit.ts +2 -2
  128. {logogram-0.7.1 → logogram-0.8.0}/web/tests/guide.browser.ts +3 -3
  129. {logogram-0.7.1 → logogram-0.8.0}/web/tests/guide.unit.ts +142 -12
  130. {logogram-0.7.1 → logogram-0.8.0}/web/tests/spec.unit.ts +67 -6
  131. {logogram-0.7.1 → logogram-0.8.0}/web/tests/sweep.browser.ts +1 -1
  132. {logogram-0.7.1 → logogram-0.8.0}/web/tests/sweeps.unit.ts +2 -2
  133. {logogram-0.7.1 → logogram-0.8.0}/web/tests/workbench.browser.ts +2 -2
  134. logogram-0.7.1/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +0 -47
  135. logogram-0.7.1/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +0 -48
  136. logogram-0.7.1/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +0 -52
  137. logogram-0.7.1/src/logogram/web_dist/assets/index-BfLPatk-.js +0 -60
  138. logogram-0.7.1/src/logogram/web_dist/assets/index-DpkMdVq8.css +0 -1
  139. logogram-0.7.1/web/src/components/StartHere.module.css +0 -89
  140. logogram-0.7.1/web/src/components/StartHere.tsx +0 -134
  141. logogram-0.7.1/web/src/lib/guide.ts +0 -76
  142. logogram-0.7.1/web/src/lib/start.ts +0 -160
  143. {logogram-0.7.1 → logogram-0.8.0}/.gitignore +0 -0
  144. {logogram-0.7.1 → logogram-0.8.0}/LICENSE +0 -0
  145. {logogram-0.7.1 → logogram-0.8.0}/notebooks/README.md +0 -0
  146. {logogram-0.7.1 → logogram-0.8.0}/scripts/check_privacy.py +0 -0
  147. {logogram-0.7.1 → logogram-0.8.0}/scripts/sae_catalogue.py +0 -0
  148. {logogram-0.7.1 → logogram-0.8.0}/scripts/smoke_wheel.py +0 -0
  149. {logogram-0.7.1 → logogram-0.8.0}/scripts/validate_real_weights.py +0 -0
  150. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/__main__.py +0 -0
  151. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/acdc.py +0 -0
  152. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/analysis.py +0 -0
  153. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/api.py +0 -0
  154. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/backends/__init__.py +0 -0
  155. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/backends/base.py +0 -0
  156. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/backends/catalogue.py +0 -0
  157. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/backends/hub.py +0 -0
  158. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/backends/sae_catalogue.json +0 -0
  159. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/backends/saes.py +0 -0
  160. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/chat.py +0 -0
  161. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/cli.py +0 -0
  162. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/compare.py +0 -0
  163. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/corpora.py +0 -0
  164. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/corpus_import.py +0 -0
  165. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/das.py +0 -0
  166. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/datasets.py +0 -0
  167. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/direct.py +0 -0
  168. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/directions.py +0 -0
  169. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/factual-recall-gpt2/.gitignore +0 -0
  170. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/factual-recall-gpt2/datasets/factual-recall.jsonl +0 -0
  171. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/factual-recall-gpt2/project.json +0 -0
  172. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/gendered-pronoun-gpt2/.gitignore +0 -0
  173. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/gendered-pronoun-gpt2/datasets/gendered-pronoun.jsonl +0 -0
  174. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/gendered-pronoun-gpt2/project.json +0 -0
  175. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/greater-than-gpt2/.gitignore +0 -0
  176. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/greater-than-gpt2/datasets/greater-than.jsonl +0 -0
  177. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/greater-than-gpt2/project.json +0 -0
  178. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/.gitignore +0 -0
  179. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/datasets/ioi.jsonl +0 -0
  180. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/examples/ioi-gpt2/project.json +0 -0
  181. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/exports.py +0 -0
  182. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/features.py +0 -0
  183. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/fileio.py +0 -0
  184. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/gallery.py +0 -0
  185. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/heads.py +0 -0
  186. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/history.py +0 -0
  187. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/inside.py +0 -0
  188. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/ioi.py +0 -0
  189. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/lenses.py +0 -0
  190. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/local_models.py +0 -0
  191. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/metrics.py +0 -0
  192. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/owner.py +0 -0
  193. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/paths.py +0 -0
  194. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/probes.py +0 -0
  195. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/project.py +0 -0
  196. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/prompts.py +0 -0
  197. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/representations.py +0 -0
  198. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/research.py +0 -0
  199. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/runner.py +0 -0
  200. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/runqueue.py +0 -0
  201. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/runs.py +0 -0
  202. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/sae.py +0 -0
  203. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/sae_training.py +0 -0
  204. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/server/__init__.py +0 -0
  205. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/server/app.py +0 -0
  206. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/server/models.py +0 -0
  207. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/server/security.py +0 -0
  208. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/server/state.py +0 -0
  209. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/sites.py +0 -0
  210. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/steering.py +0 -0
  211. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/support.py +0 -0
  212. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/sweeps.py +0 -0
  213. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/tasks.py +0 -0
  214. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/top_activations.py +0 -0
  215. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/training.py +0 -0
  216. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/updates.py +0 -0
  217. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/verify.py +0 -0
  218. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/web_dist/assets/instrument-sans-latin-ext-standard-normal-C5E2Gvlv.woff2 +0 -0
  219. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/web_dist/assets/instrument-sans-latin-standard-normal-BVScPF0l.woff2 +0 -0
  220. {logogram-0.7.1 → logogram-0.8.0}/src/logogram/web_dist/favicon.svg +0 -0
  221. {logogram-0.7.1 → logogram-0.8.0}/tests/browser_server.py +0 -0
  222. {logogram-0.7.1 → logogram-0.8.0}/tests/catalogue_fixture.py +0 -0
  223. {logogram-0.7.1 → logogram-0.8.0}/tests/conftest.py +0 -0
  224. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/datasets/ioi.jsonl +0 -0
  225. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/datasets/snapshots/f5e2f2b1d68ac7ab59b1cefcd84f7f0cfc81c71c85c05c925f872e01c01d6e69.jsonl +0 -0
  226. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/manifest.json +0 -0
  227. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/results.parquet +0 -0
  228. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/spec.json +0 -0
  229. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.1.0/summary.json +0 -0
  230. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/manifest.json +0 -0
  231. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/results.parquet +0 -0
  232. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/spec.json +0 -0
  233. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/made-by-0.2.0/summary.json +0 -0
  234. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/experiments/written-for-0.1.0/spec.json +0 -0
  235. {logogram-0.7.1 → logogram-0.8.0}/tests/fixtures/old-runs/project.json +0 -0
  236. {logogram-0.7.1 → logogram-0.8.0}/tests/test_acdc.py +0 -0
  237. {logogram-0.7.1 → logogram-0.8.0}/tests/test_api.py +0 -0
  238. {logogram-0.7.1 → logogram-0.8.0}/tests/test_architectures.py +0 -0
  239. {logogram-0.7.1 → logogram-0.8.0}/tests/test_atp.py +0 -0
  240. {logogram-0.7.1 → logogram-0.8.0}/tests/test_attention_saes.py +0 -0
  241. {logogram-0.7.1 → logogram-0.8.0}/tests/test_chat_models.py +0 -0
  242. {logogram-0.7.1 → logogram-0.8.0}/tests/test_chat_templates.py +0 -0
  243. {logogram-0.7.1 → logogram-0.8.0}/tests/test_circuits.py +0 -0
  244. {logogram-0.7.1 → logogram-0.8.0}/tests/test_cli.py +0 -0
  245. {logogram-0.7.1 → logogram-0.8.0}/tests/test_community.py +0 -0
  246. {logogram-0.7.1 → logogram-0.8.0}/tests/test_corpora.py +0 -0
  247. {logogram-0.7.1 → logogram-0.8.0}/tests/test_corpus_cli.py +0 -0
  248. {logogram-0.7.1 → logogram-0.8.0}/tests/test_corpus_import.py +0 -0
  249. {logogram-0.7.1 → logogram-0.8.0}/tests/test_corpus_server.py +0 -0
  250. {logogram-0.7.1 → logogram-0.8.0}/tests/test_dataset_files.py +0 -0
  251. {logogram-0.7.1 → logogram-0.8.0}/tests/test_devices.py +0 -0
  252. {logogram-0.7.1 → logogram-0.8.0}/tests/test_direct.py +0 -0
  253. {logogram-0.7.1 → logogram-0.8.0}/tests/test_direction_methods.py +0 -0
  254. {logogram-0.7.1 → logogram-0.8.0}/tests/test_directions.py +0 -0
  255. {logogram-0.7.1 → logogram-0.8.0}/tests/test_docs.py +0 -0
  256. {logogram-0.7.1 → logogram-0.8.0}/tests/test_edges.py +0 -0
  257. {logogram-0.7.1 → logogram-0.8.0}/tests/test_engine.py +0 -0
  258. {logogram-0.7.1 → logogram-0.8.0}/tests/test_examples.py +0 -0
  259. {logogram-0.7.1 → logogram-0.8.0}/tests/test_explorer.py +0 -0
  260. {logogram-0.7.1 → logogram-0.8.0}/tests/test_feature_writes.py +0 -0
  261. {logogram-0.7.1 → logogram-0.8.0}/tests/test_finer_sites.py +0 -0
  262. {logogram-0.7.1 → logogram-0.8.0}/tests/test_gpus.py +0 -0
  263. {logogram-0.7.1 → logogram-0.8.0}/tests/test_hardening.py +0 -0
  264. {logogram-0.7.1 → logogram-0.8.0}/tests/test_heads.py +0 -0
  265. {logogram-0.7.1 → logogram-0.8.0}/tests/test_history.py +0 -0
  266. {logogram-0.7.1 → logogram-0.8.0}/tests/test_inside.py +0 -0
  267. {logogram-0.7.1 → logogram-0.8.0}/tests/test_lenses.py +0 -0
  268. {logogram-0.7.1 → logogram-0.8.0}/tests/test_loading.py +0 -0
  269. {logogram-0.7.1 → logogram-0.8.0}/tests/test_local_models.py +0 -0
  270. {logogram-0.7.1 → logogram-0.8.0}/tests/test_metrics.py +0 -0
  271. {logogram-0.7.1 → logogram-0.8.0}/tests/test_notebooks.py +0 -0
  272. {logogram-0.7.1 → logogram-0.8.0}/tests/test_old_runs.py +0 -0
  273. {logogram-0.7.1 → logogram-0.8.0}/tests/test_paths.py +0 -0
  274. {logogram-0.7.1 → logogram-0.8.0}/tests/test_privacy.py +0 -0
  275. {logogram-0.7.1 → logogram-0.8.0}/tests/test_projects.py +0 -0
  276. {logogram-0.7.1 → logogram-0.8.0}/tests/test_queue.py +0 -0
  277. {logogram-0.7.1 → logogram-0.8.0}/tests/test_release_fixes.py +0 -0
  278. {logogram-0.7.1 → logogram-0.8.0}/tests/test_report.py +0 -0
  279. {logogram-0.7.1 → logogram-0.8.0}/tests/test_representations.py +0 -0
  280. {logogram-0.7.1 → logogram-0.8.0}/tests/test_run_tracking.py +0 -0
  281. {logogram-0.7.1 → logogram-0.8.0}/tests/test_sae.py +0 -0
  282. {logogram-0.7.1 → logogram-0.8.0}/tests/test_sae_catalogue.py +0 -0
  283. {logogram-0.7.1 → logogram-0.8.0}/tests/test_sae_training.py +0 -0
  284. {logogram-0.7.1 → logogram-0.8.0}/tests/test_sanity.py +0 -0
  285. {logogram-0.7.1 → logogram-0.8.0}/tests/test_saved_queue.py +0 -0
  286. {logogram-0.7.1 → logogram-0.8.0}/tests/test_security.py +0 -0
  287. {logogram-0.7.1 → logogram-0.8.0}/tests/test_server.py +0 -0
  288. {logogram-0.7.1 → logogram-0.8.0}/tests/test_skip_transcoders.py +0 -0
  289. {logogram-0.7.1 → logogram-0.8.0}/tests/test_steering.py +0 -0
  290. {logogram-0.7.1 → logogram-0.8.0}/tests/test_steering_features.py +0 -0
  291. {logogram-0.7.1 → logogram-0.8.0}/tests/test_support.py +0 -0
  292. {logogram-0.7.1 → logogram-0.8.0}/tests/test_sweeps.py +0 -0
  293. {logogram-0.7.1 → logogram-0.8.0}/tests/test_tasks.py +0 -0
  294. {logogram-0.7.1 → logogram-0.8.0}/tests/test_toys.py +0 -0
  295. {logogram-0.7.1 → logogram-0.8.0}/tests/test_training_cli.py +0 -0
  296. {logogram-0.7.1 → logogram-0.8.0}/tests/test_training_server.py +0 -0
  297. {logogram-0.7.1 → logogram-0.8.0}/tests/test_transcoders.py +0 -0
  298. {logogram-0.7.1 → logogram-0.8.0}/tests/test_uneven.py +0 -0
  299. {logogram-0.7.1 → logogram-0.8.0}/tests/test_units.py +0 -0
  300. {logogram-0.7.1 → logogram-0.8.0}/tests/test_updates.py +0 -0
  301. {logogram-0.7.1 → logogram-0.8.0}/tests/test_validation_script.py +0 -0
  302. {logogram-0.7.1 → logogram-0.8.0}/web/index.html +0 -0
  303. {logogram-0.7.1 → logogram-0.8.0}/web/playwright.config.ts +0 -0
  304. {logogram-0.7.1 → logogram-0.8.0}/web/public/favicon.svg +0 -0
  305. {logogram-0.7.1 → logogram-0.8.0}/web/src/App.module.css +0 -0
  306. {logogram-0.7.1 → logogram-0.8.0}/web/src/App.tsx +0 -0
  307. {logogram-0.7.1 → logogram-0.8.0}/web/src/api/client.ts +0 -0
  308. {logogram-0.7.1 → logogram-0.8.0}/web/src/api/events.ts +0 -0
  309. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/AboutDialog.tsx +0 -0
  310. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/CancelRunDialog.tsx +0 -0
  311. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/CommandPalette.module.css +0 -0
  312. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/CommandPalette.tsx +0 -0
  313. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/CopyCommand.module.css +0 -0
  314. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/CopyCommand.tsx +0 -0
  315. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Distribution.module.css +0 -0
  316. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Distribution.tsx +0 -0
  317. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ErrorBoundary.module.css +0 -0
  318. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ErrorBoundary.tsx +0 -0
  319. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ExampleGallery.module.css +0 -0
  320. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ExampleGallery.tsx +0 -0
  321. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/FeatureWrites.module.css +0 -0
  322. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/FeatureWrites.tsx +0 -0
  323. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/FolderPicker.module.css +0 -0
  324. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/FolderPicker.tsx +0 -0
  325. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Header.tsx +0 -0
  326. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Heatmap/Heatmap.module.css +0 -0
  327. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Heatmap/ScaleBar.tsx +0 -0
  328. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/HelpDialogs.module.css +0 -0
  329. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/HelpMenu.module.css +0 -0
  330. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/HelpMenu.tsx +0 -0
  331. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/History.module.css +0 -0
  332. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/History.tsx +0 -0
  333. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Inspector.module.css +0 -0
  334. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Logogram.tsx +0 -0
  335. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/LogogramDial.module.css +0 -0
  336. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/LogogramDial.tsx +0 -0
  337. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ManageDialogs.tsx +0 -0
  338. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ModelDialog.module.css +0 -0
  339. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ModelDialog.tsx +0 -0
  340. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ModelMap/Legend.tsx +0 -0
  341. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ModelMap/ModelMap.module.css +0 -0
  342. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Notices.module.css +0 -0
  343. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Notices.tsx +0 -0
  344. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ReportDialog.tsx +0 -0
  345. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/RunButton.tsx +0 -0
  346. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ShortcutsDialog.module.css +0 -0
  347. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ShortcutsDialog.tsx +0 -0
  348. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Splitter.module.css +0 -0
  349. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/Splitter.tsx +0 -0
  350. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/StatusLine.module.css +0 -0
  351. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/StatusLine.tsx +0 -0
  352. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/SweepChart/SweepChart.module.css +0 -0
  353. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/SweepDialog.module.css +0 -0
  354. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/SweepDialog.tsx +0 -0
  355. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/TokenStrip.module.css +0 -0
  356. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/TokenStrip.tsx +0 -0
  357. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/TrainDialog.module.css +0 -0
  358. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/TrainDialog.tsx +0 -0
  359. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/UpdateNotice.tsx +0 -0
  360. {logogram-0.7.1 → logogram-0.8.0}/web/src/components/ViewTabs.tsx +0 -0
  361. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/analysis.ts +0 -0
  362. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/chat.ts +0 -0
  363. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/circuits.ts +0 -0
  364. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/color.ts +0 -0
  365. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/corpora.ts +0 -0
  366. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/devices.ts +0 -0
  367. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/directions.ts +0 -0
  368. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/edgePlan.ts +0 -0
  369. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/edges.ts +0 -0
  370. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/environment.ts +0 -0
  371. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/export.ts +0 -0
  372. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/formHistory.ts +0 -0
  373. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/format.ts +0 -0
  374. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/heatmapNavigation.ts +0 -0
  375. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/help.ts +0 -0
  376. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/keys.ts +0 -0
  377. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/logogram.ts +0 -0
  378. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/metrics.ts +0 -0
  379. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/milestones.ts +0 -0
  380. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/motion.ts +0 -0
  381. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/promptEdits.ts +0 -0
  382. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/promptRows.ts +0 -0
  383. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/representations.ts +0 -0
  384. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/route.ts +0 -0
  385. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/runs.ts +0 -0
  386. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/sites.ts +0 -0
  387. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/sweeps.ts +0 -0
  388. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/thresholds.ts +0 -0
  389. {logogram-0.7.1 → logogram-0.8.0}/web/src/lib/training.ts +0 -0
  390. {logogram-0.7.1 → logogram-0.8.0}/web/src/main.tsx +0 -0
  391. {logogram-0.7.1 → logogram-0.8.0}/web/src/screens/Workbench.module.css +0 -0
  392. {logogram-0.7.1 → logogram-0.8.0}/web/src/store/app.ts +0 -0
  393. {logogram-0.7.1 → logogram-0.8.0}/web/src/store/help.ts +0 -0
  394. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/AttentionView.module.css +0 -0
  395. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/AttentionView.tsx +0 -0
  396. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ChatTemplateSettings.tsx +0 -0
  397. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/CompareView.module.css +0 -0
  398. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/CompareView.tsx +0 -0
  399. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/Continuations.module.css +0 -0
  400. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/Continuations.tsx +0 -0
  401. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/CorpusView.module.css +0 -0
  402. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/CorpusView.tsx +0 -0
  403. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/DirectionPicker.tsx +0 -0
  404. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/EdgeResults.module.css +0 -0
  405. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ExperimentView.module.css +0 -0
  406. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ExploreView.module.css +0 -0
  407. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/FeaturesView.tsx +0 -0
  408. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/Forest.module.css +0 -0
  409. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/Forest.tsx +0 -0
  410. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/HeadComparisonView.module.css +0 -0
  411. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/HeadComparisonView.tsx +0 -0
  412. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/HeadKinds.module.css +0 -0
  413. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/HeadKinds.tsx +0 -0
  414. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/MetricSettings.tsx +0 -0
  415. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/NeuronResults.tsx +0 -0
  416. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/PredictionsView.module.css +0 -0
  417. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/PredictionsView.tsx +0 -0
  418. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ProbeSettings.tsx +0 -0
  419. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/PromptsView.module.css +0 -0
  420. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/RepresentationsView.module.css +0 -0
  421. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ResearchView.module.css +0 -0
  422. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ResearchView.tsx +0 -0
  423. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ResultsView.module.css +0 -0
  424. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/ResultsView.tsx +0 -0
  425. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SAEPicker.tsx +0 -0
  426. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SpecView.module.css +0 -0
  427. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SpecView.tsx +0 -0
  428. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SweepView.module.css +0 -0
  429. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/SweepView.tsx +0 -0
  430. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/TaskGenerator.tsx +0 -0
  431. {logogram-0.7.1 → logogram-0.8.0}/web/src/views/TextView.module.css +0 -0
  432. {logogram-0.7.1 → logogram-0.8.0}/web/tests/a11y.browser.ts +0 -0
  433. {logogram-0.7.1 → logogram-0.8.0}/web/tests/acdc.browser.ts +0 -0
  434. {logogram-0.7.1 → logogram-0.8.0}/web/tests/acdc.unit.ts +0 -0
  435. {logogram-0.7.1 → logogram-0.8.0}/web/tests/axe.ts +0 -0
  436. {logogram-0.7.1 → logogram-0.8.0}/web/tests/chat.unit.ts +0 -0
  437. {logogram-0.7.1 → logogram-0.8.0}/web/tests/color.unit.ts +0 -0
  438. {logogram-0.7.1 → logogram-0.8.0}/web/tests/corpora.unit.ts +0 -0
  439. {logogram-0.7.1 → logogram-0.8.0}/web/tests/corpus.browser.ts +0 -0
  440. {logogram-0.7.1 → logogram-0.8.0}/web/tests/devices.unit.ts +0 -0
  441. {logogram-0.7.1 → logogram-0.8.0}/web/tests/docs.ts +0 -0
  442. {logogram-0.7.1 → logogram-0.8.0}/web/tests/edges.browser.ts +0 -0
  443. {logogram-0.7.1 → logogram-0.8.0}/web/tests/edges.unit.ts +0 -0
  444. {logogram-0.7.1 → logogram-0.8.0}/web/tests/environment.unit.ts +0 -0
  445. {logogram-0.7.1 → logogram-0.8.0}/web/tests/fakeRuns.ts +0 -0
  446. {logogram-0.7.1 → logogram-0.8.0}/web/tests/finer.browser.ts +0 -0
  447. {logogram-0.7.1 → logogram-0.8.0}/web/tests/finer.unit.ts +0 -0
  448. {logogram-0.7.1 → logogram-0.8.0}/web/tests/form.unit.ts +0 -0
  449. {logogram-0.7.1 → logogram-0.8.0}/web/tests/gallery.browser.ts +0 -0
  450. {logogram-0.7.1 → logogram-0.8.0}/web/tests/heads.browser.ts +0 -0
  451. {logogram-0.7.1 → logogram-0.8.0}/web/tests/heatmap.unit.ts +0 -0
  452. {logogram-0.7.1 → logogram-0.8.0}/web/tests/help.browser.ts +0 -0
  453. {logogram-0.7.1 → logogram-0.8.0}/web/tests/help.unit.ts +0 -0
  454. {logogram-0.7.1 → logogram-0.8.0}/web/tests/history.browser.ts +0 -0
  455. {logogram-0.7.1 → logogram-0.8.0}/web/tests/history.unit.ts +0 -0
  456. {logogram-0.7.1 → logogram-0.8.0}/web/tests/logogram.unit.ts +0 -0
  457. {logogram-0.7.1 → logogram-0.8.0}/web/tests/manage.browser.ts +0 -0
  458. {logogram-0.7.1 → logogram-0.8.0}/web/tests/manage.unit.ts +0 -0
  459. {logogram-0.7.1 → logogram-0.8.0}/web/tests/navigation.browser.ts +0 -0
  460. {logogram-0.7.1 → logogram-0.8.0}/web/tests/notices.unit.ts +0 -0
  461. {logogram-0.7.1 → logogram-0.8.0}/web/tests/partial.browser.ts +0 -0
  462. {logogram-0.7.1 → logogram-0.8.0}/web/tests/prompts.browser.ts +0 -0
  463. {logogram-0.7.1 → logogram-0.8.0}/web/tests/prompts.unit.ts +0 -0
  464. {logogram-0.7.1 → logogram-0.8.0}/web/tests/queue.browser.ts +0 -0
  465. {logogram-0.7.1 → logogram-0.8.0}/web/tests/queue.unit.ts +0 -0
  466. {logogram-0.7.1 → logogram-0.8.0}/web/tests/route.unit.ts +0 -0
  467. {logogram-0.7.1 → logogram-0.8.0}/web/tests/runs.browser.ts +0 -0
  468. {logogram-0.7.1 → logogram-0.8.0}/web/tests/saes.browser.ts +0 -0
  469. {logogram-0.7.1 → logogram-0.8.0}/web/tests/steering.browser.ts +0 -0
  470. {logogram-0.7.1 → logogram-0.8.0}/web/tests/tasks.unit.ts +0 -0
  471. {logogram-0.7.1 → logogram-0.8.0}/web/tests/text.browser.ts +0 -0
  472. {logogram-0.7.1 → logogram-0.8.0}/web/tests/tokens.browser.ts +0 -0
  473. {logogram-0.7.1 → logogram-0.8.0}/web/tests/training.browser.ts +0 -0
  474. {logogram-0.7.1 → logogram-0.8.0}/web/tests/training.unit.ts +0 -0
  475. {logogram-0.7.1 → logogram-0.8.0}/web/tests/uneven.browser.ts +0 -0
  476. {logogram-0.7.1 → logogram-0.8.0}/web/tests/ux.browser.ts +0 -0
  477. {logogram-0.7.1 → logogram-0.8.0}/web/tests/walkthrough.browser.ts +0 -0
  478. {logogram-0.7.1 → logogram-0.8.0}/web/tsconfig.json +0 -0
  479. {logogram-0.7.1 → logogram-0.8.0}/web/vite.config.ts +0 -0
@@ -59,29 +59,41 @@ 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
- appearing, or panels opening. Respect reduced motion.
93
+ appearing, or panels opening, and, in the guide's figures (`web/src/components/figures/`), how
94
+ a method works, stage by stage. A figure plays only while it is in view, can be paused and
95
+ stepped through, and is still under reduced motion, showing the whole picture. Respect reduced
96
+ motion everywhere.
85
97
  * Copy uses plain verbs that say exactly what happens. Errors say what went wrong and how to fix
86
98
  it. Titles say what a view found or is for; they don't repeat the tab's name.
87
99
  * Avoid the generic AI-app look and the enterprise look: no sidebars of icons, grey dashboards,
@@ -2,6 +2,142 @@
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
+
70
+ ## 0.7.2 (2026-11-26)
71
+
72
+ Start here and the guide in moving figures, what Logogram can find out on the first screens, and a
73
+ walkthrough that notices what you do.
74
+
75
+ ### Added
76
+
77
+ - **Figures that move.** Start here explains in figures that play through their stages: the IOI
78
+ example's two prompts, token by token, and the logit difference each gives; activation
79
+ patching, as three runs of GPT-2 small with head 9.9's output copied from the clean run into the
80
+ corrupt one and the answer moving back toward Mary by its effect; the parts of a model, each
81
+ term drawing its part, with one layer as a row of the map; and what the example finds, its heads
82
+ painting in layer by layer and then ringed role by role, with the effects the guide to
83
+ replicating IOI lists (a test checks them against it). The guide's other pages draw the
84
+ workbench part by part, how to read the map, how a run's results write its logogram (with the
85
+ app's own glyph), and a bootstrap interval built from each prompt's effect. A figure plays only
86
+ while it is in view and the page is shown; its stages are one Tab stop, chosen with the arrow
87
+ keys or the pointer, **Pause** stops it, and under reduced motion it doesn't move and shows the
88
+ whole picture. The figures load with
89
+ the guide, from this computer.
90
+ - **What you can find out.** Start here, the first screens and the documentation's index open on
91
+ the four questions Logogram's methods answer (where is it computed, how does it flow, what does
92
+ a site represent, what does adding a direction do), each with what it finds out and where to
93
+ begin. The experiment form groups its methods under the same questions, from one list.
94
+ - The documentation shows activation patching in a figure, in the README, Getting started and
95
+ the page on activation patching.
96
+
97
+ ### Changed
98
+
99
+ - **The first screens say what Logogram is for.** Under the tagline, in two sentences: it finds
100
+ which parts of a language model an answer depends on, by changing one part at a time and
101
+ measuring how far the answer moves. Start here is the solid ink button until the walkthrough
102
+ has been finished or skipped. All projects shows what you can find out and the examples first
103
+ when there are no projects yet, and the system check lists the examples before the settings.
104
+ - **Start here is shorter to read.** Its paragraphs are fewer, as the figures carry what they
105
+ said, and the first hour is a line of numbered steps, each in the color of where it happens. The
106
+ guide is a larger dialog.
107
+ - **The walkthrough notices what you do.** A step says when what it asks for is done (the
108
+ baseline checked, with how many clean prompts prefer the answer, or a cell chosen), pressing
109
+ **Run** at the experiment's step goes on to the run's results by itself, and each step shows
110
+ where it is among the six. While it is shown, the button beside the tabs that names the next of
111
+ four steps steps aside, so there is one count, not two. The experiment's step stands beside
112
+ **Run**, so the form's name and notes stay in view.
113
+ - The baseline, before it is checked, says what the check will show.
114
+
115
+ ### Fixed
116
+
117
+ - A run's own copy of its prompts is named as the dataset chip names it, the saved prompts of the
118
+ run, not by its file in `datasets/snapshots/`, a 64-character hash, in the baseline and the
119
+ experiment form.
120
+ - Four kinds of button are named by what they show, so someone who speaks a control's label to
121
+ press it can press them: **Commands**, the next of the first four steps, a token of Your text
122
+ and **Save as direction** in a probe's or a learned subspace's results. Each name now begins
123
+ with the button's own words and goes on to say the rest.
124
+ - With transformers 5.22 or later, every model's chat template was refused as one that writes
125
+ today's date, and runs with a chat template failed: transformers now rebuilds what a template is
126
+ given out of plain values, and the markers Logogram gives it for no clock and for special tokens
127
+ the model lacks broke in that. Logogram now renders the template as transformers compiles it,
128
+ with those markers as they are, so the text is the same as before.
129
+
130
+ ### Development
131
+
132
+ - The dependencies are brought up to date (fastapi, pydantic, transformer-lens 4.4, transformers,
133
+ torch 2.15, huggingface-hub, pyarrow, filelock, setuptools, certifi, opentelemetry-api and
134
+ others, the web app's packages and the GitHub Actions), which also clears the known
135
+ vulnerabilities in filelock, setuptools, certifi and opentelemetry-api. ruff is 0.17.4, and the
136
+ accessibility scan is axe-core 4.14.
137
+ - The reference pages are written the same way with Typer 0.29, whose options no longer carry a
138
+ Click type, and the check that every spec model is described skips the generic class pydantic
139
+ 2.14 adds to the spec's module.
140
+
5
141
  ## 0.7.1 (2026-10-14)
6
142
 
7
143
  Start here, a first page in the guide for someone new to Logogram or to interpretability, and two
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: logogram
3
- Version: 0.7.1
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
@@ -36,6 +36,11 @@ Requires-Dist: uvicorn>=0.30
36
36
  Requires-Dist: websockets>=12
37
37
  Description-Content-Type: text/markdown
38
38
 
39
+ <picture>
40
+ <source media="(prefers-color-scheme: dark)" srcset=".github/banner-dark.jpg">
41
+ <img src=".github/banner-light.jpg" alt="Logogram, a local workbench for causal experiments inside language models" width="100%">
42
+ </picture>
43
+
39
44
  # Logogram
40
45
 
41
46
  A local workbench for mechanistic interpretability: causal experiments inside language models,
@@ -50,19 +55,31 @@ watching what changes. Interpretability works the same way: replace one activati
50
55
  from a different input, remove a direction, add a feature, and measure what happens. Logogram
51
56
  makes those experiments visual, fast and rigorous, and asks the questions interpretability asks:
52
57
 
53
- * **Where is it computed?** Activation patching and ablation (zero, mean, resample, scaled or
54
- along a direction), attribution patching with integrated gradients, and direct logit
55
- attribution, over residual streams, heads, queries, keys, values, neurons and SAE features.
56
- * **How does it flow?** Path patching, edge attribution (EAP and EAP-IG) with its faithfulness
57
- curve, and ACDC, which finds a circuit by removing edges one at a time.
58
- * **What does a site represent?** Linear probes against shuffled-label controls, distributed
58
+ * **Where is it computed?** Which heads, MLPs or positions an answer depends on. Activation
59
+ patching and ablation (zero, mean, resample, scaled or along a direction), attribution patching
60
+ with integrated gradients, and direct logit attribution, over residual streams, heads, queries,
61
+ keys, values, neurons and SAE features.
62
+ * **How does it flow?** Which paths carry the answer, and the circuit they form. Path patching,
63
+ edge attribution (EAP and EAP-IG) with its faithfulness curve, and ACDC, which finds a circuit
64
+ by removing edges one at a time.
65
+ * **What does a site represent?** What a part of the model encodes, and whether the model uses
66
+ it. Linear probes against shuffled-label controls, distributed
59
67
  alignment search, and directions saved in the project and tested by patching along them,
60
68
  removing them, steering along them and reading them out; where a neuron, feature or direction
61
69
  is most active in your own texts; the principal components of activations over prompts or texts;
62
70
  SAEs, published or trained in the project; the logit lens, and a tuned lens trained in the
63
71
  project.
64
- * **What does adding a direction do?** Steering along a mean difference, an SAE feature or a saved
65
- direction, on held-out prompts, against a random direction.
72
+ * **What does adding a direction do?** How the answer moves when the model is pushed along a
73
+ direction. Steering along a mean difference, an SAE feature or a saved direction, on held-out
74
+ prompts, against a random direction.
75
+
76
+ The simplest of these experiments, on the bundled IOI example, copies one attention head's output
77
+ from a prompt where GPT-2 small answers *Mary* into one where it answers *John*, and measures how
78
+ far the answer moves back:
79
+
80
+ ![Activation patching on the IOI example: the clean prompt prefers Mary and the corrupt prompt
81
+ John; with head 9.9's output copied from the clean run into the corrupt run, the answer moves back
82
+ toward Mary by about a sixth of the gap, which is head 9.9's effect](docs/images/activation-patching.svg)
66
83
 
67
84
  Load GPT-2 (or Llama, Qwen, Gemma, Pythia and others, on a CPU, a GPU or Apple's MPS), set up
68
85
  prompt pairs from a task or your own file, run a sweep, watch the results paint onto a map of the
@@ -151,10 +168,17 @@ report, figures and CSV a finished run exports. **Help**, in the top bar, opens
151
168
  walkthrough of the IOI example at its own controls, the keyboard shortcuts, the documentation on
152
169
  GitHub, a problem report to paste into an issue (nothing is sent: you copy it), the system check,
153
170
  and About. The guide starts with the basics: **Start here**, for someone new to Logogram or to
154
- interpretability, follows the IOI example from its two prompts to what patching finds, names the
155
- parts of a model, and lays out a first hour. The first screens offer it under the tagline,
171
+ interpretability, says what Logogram can find out, then follows the IOI example in figures that
172
+ move: its two prompts and the logit difference each gives, a head's output copied from one run
173
+ into the other, the parts of a model, and what the example finds, head by head; and it lays out a
174
+ first hour. The guide's other pages draw the workbench part by part, how to read the map, how a
175
+ run's results write its logogram, and how an interval is built from each prompt's effect. Each
176
+ figure plays through its stages while it is in view, can be paused or stepped through, and stays
177
+ still when the system asks for less motion. The first screens offer Start here under the tagline,
156
178
  **Learn the basics** in the command palette opens it from anywhere, and it is part of the app, so
157
- it reads the same without a network.
179
+ it reads the same without a network. The walkthrough notices what you do: it says when the
180
+ baseline is checked or a cell is chosen, and when you press **Run** it follows the run to its
181
+ results.
158
182
 
159
183
  ## Documentation
160
184
 
@@ -1094,7 +1118,7 @@ must state every such choice, and a spec that leaves one out is refused with the
1094
1118
 
1095
1119
  ```json
1096
1120
  {
1097
- "logogram_spec": 4,
1121
+ "logogram_spec": 5,
1098
1122
  "name": "Which heads restore the answer?",
1099
1123
  "notes": "",
1100
1124
  "model": {
@@ -1111,8 +1135,9 @@ must state every such choice, and a spec that leaves one out is refused with the
1111
1135
  "experiment": {"kind": "activation_patching", "direction": "clean_to_corrupt"},
1112
1136
  "scope": {"kind": "heads", "position": {"kind": "all"}},
1113
1137
  "metric": {"kind": "logit_diff", "normalization": "dataset_gap"},
1114
- "statistics": {"bootstrap": 1000, "ci": 0.95, "seed": 0, "cluster": null},
1115
- "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
1116
1141
  }
1117
1142
  ```
1118
1143
 
@@ -1123,7 +1148,10 @@ specs (Logogram 0.2 to 0.4) read with what version 3 added turned off, which is
1123
1148
  chat template, a model from Hugging Face, and steering along the mean difference without
1124
1149
  continuations. Version 3 specs (Logogram 0.5 and 0.6) read as version 4 with what version 4 adds
1125
1150
  turned off: the SAE a spec names is a published one, and the layer predictions read the logit
1126
- 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.
1127
1155
 
1128
1156
  | Field | Values |
1129
1157
  |---|---|
@@ -1134,13 +1162,15 @@ lens. Version 4 also adds methods and sources that a version 3 spec can't name.
1134
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. |
1135
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. |
1136
1164
  | `dataset.sha256` | If set, the run refuses a dataset file that has changed. |
1137
- | `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"}` |
1138
- | `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) |
1139
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. |
1140
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. |
1141
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 |
1142
1170
  | `metric.normalization` | `dataset_gap` or `prompt_gap` |
1143
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). |
1144
1174
  | `execution.batch_size` | Recorded because batch shape can change floating-point results in the last digits. |
1145
1175
 
1146
1176
  ## Projects
@@ -1,3 +1,8 @@
1
+ <picture>
2
+ <source media="(prefers-color-scheme: dark)" srcset=".github/banner-dark.jpg">
3
+ <img src=".github/banner-light.jpg" alt="Logogram, a local workbench for causal experiments inside language models" width="100%">
4
+ </picture>
5
+
1
6
  # Logogram
2
7
 
3
8
  A local workbench for mechanistic interpretability: causal experiments inside language models,
@@ -12,19 +17,31 @@ watching what changes. Interpretability works the same way: replace one activati
12
17
  from a different input, remove a direction, add a feature, and measure what happens. Logogram
13
18
  makes those experiments visual, fast and rigorous, and asks the questions interpretability asks:
14
19
 
15
- * **Where is it computed?** Activation patching and ablation (zero, mean, resample, scaled or
16
- along a direction), attribution patching with integrated gradients, and direct logit
17
- attribution, over residual streams, heads, queries, keys, values, neurons and SAE features.
18
- * **How does it flow?** Path patching, edge attribution (EAP and EAP-IG) with its faithfulness
19
- curve, and ACDC, which finds a circuit by removing edges one at a time.
20
- * **What does a site represent?** Linear probes against shuffled-label controls, distributed
20
+ * **Where is it computed?** Which heads, MLPs or positions an answer depends on. Activation
21
+ patching and ablation (zero, mean, resample, scaled or along a direction), attribution patching
22
+ with integrated gradients, and direct logit attribution, over residual streams, heads, queries,
23
+ keys, values, neurons and SAE features.
24
+ * **How does it flow?** Which paths carry the answer, and the circuit they form. Path patching,
25
+ edge attribution (EAP and EAP-IG) with its faithfulness curve, and ACDC, which finds a circuit
26
+ by removing edges one at a time.
27
+ * **What does a site represent?** What a part of the model encodes, and whether the model uses
28
+ it. Linear probes against shuffled-label controls, distributed
21
29
  alignment search, and directions saved in the project and tested by patching along them,
22
30
  removing them, steering along them and reading them out; where a neuron, feature or direction
23
31
  is most active in your own texts; the principal components of activations over prompts or texts;
24
32
  SAEs, published or trained in the project; the logit lens, and a tuned lens trained in the
25
33
  project.
26
- * **What does adding a direction do?** Steering along a mean difference, an SAE feature or a saved
27
- direction, on held-out prompts, against a random direction.
34
+ * **What does adding a direction do?** How the answer moves when the model is pushed along a
35
+ direction. Steering along a mean difference, an SAE feature or a saved direction, on held-out
36
+ prompts, against a random direction.
37
+
38
+ The simplest of these experiments, on the bundled IOI example, copies one attention head's output
39
+ from a prompt where GPT-2 small answers *Mary* into one where it answers *John*, and measures how
40
+ far the answer moves back:
41
+
42
+ ![Activation patching on the IOI example: the clean prompt prefers Mary and the corrupt prompt
43
+ John; with head 9.9's output copied from the clean run into the corrupt run, the answer moves back
44
+ toward Mary by about a sixth of the gap, which is head 9.9's effect](docs/images/activation-patching.svg)
28
45
 
29
46
  Load GPT-2 (or Llama, Qwen, Gemma, Pythia and others, on a CPU, a GPU or Apple's MPS), set up
30
47
  prompt pairs from a task or your own file, run a sweep, watch the results paint onto a map of the
@@ -113,10 +130,17 @@ report, figures and CSV a finished run exports. **Help**, in the top bar, opens
113
130
  walkthrough of the IOI example at its own controls, the keyboard shortcuts, the documentation on
114
131
  GitHub, a problem report to paste into an issue (nothing is sent: you copy it), the system check,
115
132
  and About. The guide starts with the basics: **Start here**, for someone new to Logogram or to
116
- interpretability, follows the IOI example from its two prompts to what patching finds, names the
117
- parts of a model, and lays out a first hour. The first screens offer it under the tagline,
133
+ interpretability, says what Logogram can find out, then follows the IOI example in figures that
134
+ move: its two prompts and the logit difference each gives, a head's output copied from one run
135
+ into the other, the parts of a model, and what the example finds, head by head; and it lays out a
136
+ first hour. The guide's other pages draw the workbench part by part, how to read the map, how a
137
+ run's results write its logogram, and how an interval is built from each prompt's effect. Each
138
+ figure plays through its stages while it is in view, can be paused or stepped through, and stays
139
+ still when the system asks for less motion. The first screens offer Start here under the tagline,
118
140
  **Learn the basics** in the command palette opens it from anywhere, and it is part of the app, so
119
- it reads the same without a network.
141
+ it reads the same without a network. The walkthrough notices what you do: it says when the
142
+ baseline is checked or a cell is chosen, and when you press **Run** it follows the run to its
143
+ results.
120
144
 
121
145
  ## Documentation
122
146
 
@@ -1056,7 +1080,7 @@ must state every such choice, and a spec that leaves one out is refused with the
1056
1080
 
1057
1081
  ```json
1058
1082
  {
1059
- "logogram_spec": 4,
1083
+ "logogram_spec": 5,
1060
1084
  "name": "Which heads restore the answer?",
1061
1085
  "notes": "",
1062
1086
  "model": {
@@ -1073,8 +1097,9 @@ must state every such choice, and a spec that leaves one out is refused with the
1073
1097
  "experiment": {"kind": "activation_patching", "direction": "clean_to_corrupt"},
1074
1098
  "scope": {"kind": "heads", "position": {"kind": "all"}},
1075
1099
  "metric": {"kind": "logit_diff", "normalization": "dataset_gap"},
1076
- "statistics": {"bootstrap": 1000, "ci": 0.95, "seed": 0, "cluster": null},
1077
- "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
1078
1103
  }
1079
1104
  ```
1080
1105
 
@@ -1085,7 +1110,10 @@ specs (Logogram 0.2 to 0.4) read with what version 3 added turned off, which is
1085
1110
  chat template, a model from Hugging Face, and steering along the mean difference without
1086
1111
  continuations. Version 3 specs (Logogram 0.5 and 0.6) read as version 4 with what version 4 adds
1087
1112
  turned off: the SAE a spec names is a published one, and the layer predictions read the logit
1088
- 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.
1089
1117
 
1090
1118
  | Field | Values |
1091
1119
  |---|---|
@@ -1096,13 +1124,15 @@ lens. Version 4 also adds methods and sources that a version 3 spec can't name.
1096
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. |
1097
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. |
1098
1126
  | `dataset.sha256` | If set, the run refuses a dataset file that has changed. |
1099
- | `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"}` |
1100
- | `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) |
1101
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. |
1102
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. |
1103
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 |
1104
1132
  | `metric.normalization` | `dataset_gap` or `prompt_gap` |
1105
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). |
1106
1136
  | `execution.batch_size` | Recorded because batch shape can change floating-point results in the last digits. |
1107
1137
 
1108
1138
  ## Projects
@@ -12,6 +12,19 @@ the app and the methods, from a first run to the exact definition of every numbe
12
12
  * [The workbench](workbench.md): what each workspace and view is for.
13
13
  * [Models](models.md): which models load, memory, precision, weight processing, devices and GPUs.
14
14
 
15
+ ## What you can find out
16
+
17
+ Logogram's methods answer four kinds of question. [Choosing a method](concepts/choosing-a-method.md)
18
+ says which methods answer each, what they cost and where they mislead; the app's guide opens on
19
+ the same four, and walks through the first in moving figures.
20
+
21
+ | Question | What it finds out | Begin with |
22
+ |---|---|---|
23
+ | [Where is it computed?](concepts/choosing-a-method.md#where-is-it-computed) | Which heads, MLPs or positions an answer depends on. | [Replicate IOI on GPT-2](guides/replicate-ioi.md) |
24
+ | [How does it flow?](concepts/choosing-a-method.md#how-does-it-flow) | Which paths carry the answer, and the circuit they form. | [Find a circuit with ACDC](concepts/acdc.md) |
25
+ | [What does a site represent?](concepts/choosing-a-method.md#what-does-a-site-represent) | What a part of the model encodes, and whether the model uses it. | [Find a direction and test it](guides/find-and-test-a-direction.md) |
26
+ | [What does adding a direction do?](concepts/choosing-a-method.md#what-does-adding-a-direction-do) | How the answer moves when the model is pushed along a direction. | [Steering](concepts/steering.md) |
27
+
15
28
  ## Concepts
16
29
 
17
30
  What Logogram computes, exactly, and when to use each method. Each page cites the papers the
@@ -36,6 +49,7 @@ method comes from.
36
49
  | [SAE features and transcoders](concepts/sae-features.md) | Finding a published SAE by name, sparse autoencoders, transcoders, patching features, what a feature writes |
37
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 |
38
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 |
39
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 |
40
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 |
41
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 |
@@ -55,7 +55,7 @@ dev = [
55
55
  "pytest>=8",
56
56
  "pytest-cov>=7",
57
57
  "httpx2>=2.13",
58
- "ruff==0.16.10",
58
+ "ruff==0.17.4",
59
59
  ]
60
60
 
61
61
  [tool.hatch.version]
@@ -22,6 +22,7 @@ nothing in them depends on where or when they were made.
22
22
  from __future__ import annotations
23
23
 
24
24
  import dataclasses
25
+ import enum
25
26
  import inspect
26
27
  import json
27
28
  import re
@@ -585,6 +586,8 @@ def training_page() -> str:
585
586
 
586
587
  def _value_kind(param: Any) -> str:
587
588
  """What an option or argument takes, in words: never a library's own name for it."""
589
+ if not hasattr(param, "type"):
590
+ return _typed_kind(param)
588
591
  t = param.type
589
592
  name = type(t).__name__
590
593
  if "Choice" in name:
@@ -612,6 +615,40 @@ def _value_kind(param: Any) -> str:
612
615
  return kind
613
616
 
614
617
 
618
+ def _typed_kind(param: Any) -> str:
619
+ """The same, from Typer 0.29 and later, whose parameters keep their annotation and settings
620
+ rather than a Click type."""
621
+ annotation = param.type_descriptor.annotation
622
+ info = param.type_descriptor.parameter_info
623
+ while typing.get_origin(annotation) in (list, tuple, typing.Union, types.UnionType):
624
+ annotation = next(a for a in typing.get_args(annotation) if a is not type(None))
625
+ if typing.get_origin(annotation) is typing.Literal:
626
+ return either([f"`{c}`" for c in typing.get_args(annotation)])
627
+ if isinstance(annotation, type) and issubclass(annotation, enum.Enum):
628
+ return either([f"`{c.value}`" for c in annotation])
629
+ if annotation is bool:
630
+ return ""
631
+ if annotation is int:
632
+ kind = "integer"
633
+ elif annotation is float:
634
+ kind = "number"
635
+ elif isinstance(annotation, type) and issubclass(annotation, Path):
636
+ if getattr(info, "dir_okay", True) is False:
637
+ kind = "file"
638
+ elif getattr(info, "file_okay", True) is False:
639
+ kind = "folder"
640
+ else:
641
+ kind = "path"
642
+ else:
643
+ kind = "text"
644
+ low, high = getattr(param, "min", None), getattr(param, "max", None)
645
+ if low is not None and high is not None:
646
+ kind += f", {number(low)} to {number(high)}"
647
+ elif low is not None:
648
+ kind += f", {number(low)} or more"
649
+ return kind
650
+
651
+
615
652
  def _default(param: Any) -> str:
616
653
  if param.required:
617
654
  return "required"