logogram 0.2.0__tar.gz → 0.6.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 (420) hide show
  1. {logogram-0.2.0 → logogram-0.6.0}/AGENTS.md +25 -4
  2. logogram-0.6.0/CHANGELOG.md +546 -0
  3. logogram-0.6.0/PKG-INFO +1324 -0
  4. logogram-0.6.0/README.md +1286 -0
  5. logogram-0.6.0/docs/README.md +64 -0
  6. logogram-0.6.0/notebooks/README.md +36 -0
  7. {logogram-0.2.0 → logogram-0.6.0}/pyproject.toml +1 -1
  8. logogram-0.6.0/scripts/build_reference.py +879 -0
  9. logogram-0.6.0/scripts/sae_catalogue.py +1128 -0
  10. {logogram-0.2.0 → logogram-0.6.0}/scripts/smoke_wheel.py +11 -0
  11. {logogram-0.2.0 → logogram-0.6.0}/scripts/validate_real_weights.py +275 -5
  12. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/__init__.py +18 -2
  13. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/analysis.py +203 -45
  14. logogram-0.6.0/src/logogram/api.py +1009 -0
  15. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/atp.py +220 -50
  16. logogram-0.6.0/src/logogram/backends/base.py +416 -0
  17. logogram-0.6.0/src/logogram/backends/catalogue.py +345 -0
  18. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/backends/hub.py +45 -3
  19. logogram-0.6.0/src/logogram/backends/sae_catalogue.json +14237 -0
  20. logogram-0.6.0/src/logogram/backends/saes.py +812 -0
  21. logogram-0.6.0/src/logogram/backends/transformer_lens.py +1976 -0
  22. logogram-0.6.0/src/logogram/chat.py +211 -0
  23. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/circuits.py +222 -58
  24. logogram-0.6.0/src/logogram/cli.py +2236 -0
  25. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/compare.py +67 -4
  26. logogram-0.6.0/src/logogram/datasets.py +283 -0
  27. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/direct.py +130 -24
  28. logogram-0.6.0/src/logogram/edges.py +1287 -0
  29. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/engine.py +106 -55
  30. logogram-0.6.0/src/logogram/examples/factual-recall-gpt2/datasets/factual-recall.jsonl +96 -0
  31. logogram-0.6.0/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +47 -0
  32. logogram-0.6.0/src/logogram/examples/factual-recall-gpt2/project.json +6 -0
  33. logogram-0.6.0/src/logogram/examples/gendered-pronoun-gpt2/.gitignore +3 -0
  34. logogram-0.6.0/src/logogram/examples/gendered-pronoun-gpt2/datasets/gendered-pronoun.jsonl +64 -0
  35. logogram-0.6.0/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +48 -0
  36. logogram-0.6.0/src/logogram/examples/gendered-pronoun-gpt2/project.json +6 -0
  37. logogram-0.6.0/src/logogram/examples/greater-than-gpt2/.gitignore +3 -0
  38. logogram-0.6.0/src/logogram/examples/greater-than-gpt2/datasets/greater-than.jsonl +96 -0
  39. logogram-0.6.0/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +52 -0
  40. logogram-0.6.0/src/logogram/examples/greater-than-gpt2/project.json +6 -0
  41. logogram-0.6.0/src/logogram/examples/ioi-gpt2/.gitignore +3 -0
  42. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/examples/ioi-gpt2/experiments/ioi-head-patching/spec.json +8 -3
  43. logogram-0.6.0/src/logogram/exports.py +80 -0
  44. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/features.py +327 -60
  45. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/fileio.py +69 -8
  46. logogram-0.6.0/src/logogram/gallery.py +160 -0
  47. logogram-0.6.0/src/logogram/heads.py +184 -0
  48. logogram-0.6.0/src/logogram/history.py +259 -0
  49. logogram-0.6.0/src/logogram/inside.py +318 -0
  50. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/ioi.py +29 -12
  51. logogram-0.6.0/src/logogram/local_models.py +433 -0
  52. logogram-0.6.0/src/logogram/owner.py +129 -0
  53. logogram-0.6.0/src/logogram/partial.py +284 -0
  54. logogram-0.6.0/src/logogram/paths.py +454 -0
  55. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/project.py +53 -17
  56. logogram-0.6.0/src/logogram/prompts.py +470 -0
  57. logogram-0.6.0/src/logogram/report.py +1255 -0
  58. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/research.py +13 -3
  59. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/results.py +139 -22
  60. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/robustness.py +29 -0
  61. logogram-0.6.0/src/logogram/runner.py +716 -0
  62. logogram-0.6.0/src/logogram/runqueue.py +390 -0
  63. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/runs.py +26 -3
  64. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/sae.py +67 -4
  65. logogram-0.6.0/src/logogram/schema.py +829 -0
  66. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/server/app.py +937 -45
  67. logogram-0.6.0/src/logogram/server/models.py +1033 -0
  68. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/server/security.py +103 -10
  69. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/server/state.py +423 -37
  70. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/sites.py +198 -13
  71. logogram-0.6.0/src/logogram/spec.py +1558 -0
  72. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/stats.py +155 -24
  73. logogram-0.6.0/src/logogram/steering.py +837 -0
  74. logogram-0.6.0/src/logogram/support.py +292 -0
  75. logogram-0.6.0/src/logogram/sweeps.py +1036 -0
  76. logogram-0.6.0/src/logogram/system.py +799 -0
  77. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/tasks.py +107 -35
  78. logogram-0.6.0/src/logogram/toys.py +1653 -0
  79. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/verify.py +32 -3
  80. logogram-0.6.0/src/logogram/web_dist/assets/index-BRFdKaSa.js +58 -0
  81. logogram-0.6.0/src/logogram/web_dist/assets/index-DBtleL59.css +1 -0
  82. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/web_dist/index.html +2 -2
  83. {logogram-0.2.0 → logogram-0.6.0}/tests/browser_server.py +49 -3
  84. logogram-0.6.0/tests/catalogue_fixture.py +148 -0
  85. {logogram-0.2.0 → logogram-0.6.0}/tests/conftest.py +52 -1
  86. logogram-0.6.0/tests/fixtures/old-runs/datasets/ioi.jsonl +6 -0
  87. logogram-0.6.0/tests/fixtures/old-runs/datasets/snapshots/f5e2f2b1d68ac7ab59b1cefcd84f7f0cfc81c71c85c05c925f872e01c01d6e69.jsonl +6 -0
  88. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.1.0/manifest.json +42 -0
  89. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.1.0/results.parquet +0 -0
  90. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.1.0/spec.json +44 -0
  91. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.1.0/summary.json +418 -0
  92. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.2.0/manifest.json +42 -0
  93. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.2.0/results.parquet +0 -0
  94. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.2.0/spec.json +45 -0
  95. logogram-0.6.0/tests/fixtures/old-runs/experiments/made-by-0.2.0/summary.json +509 -0
  96. logogram-0.6.0/tests/fixtures/old-runs/experiments/written-for-0.1.0/spec.json +8 -0
  97. logogram-0.6.0/tests/fixtures/old-runs/project.json +6 -0
  98. {logogram-0.2.0 → logogram-0.6.0}/tests/test_api.py +30 -0
  99. logogram-0.6.0/tests/test_architectures.py +330 -0
  100. logogram-0.6.0/tests/test_attention_saes.py +270 -0
  101. logogram-0.6.0/tests/test_chat_models.py +115 -0
  102. logogram-0.6.0/tests/test_chat_templates.py +451 -0
  103. logogram-0.6.0/tests/test_community.py +276 -0
  104. logogram-0.6.0/tests/test_docs.py +117 -0
  105. logogram-0.6.0/tests/test_edges.py +848 -0
  106. logogram-0.6.0/tests/test_examples.py +203 -0
  107. {logogram-0.2.0 → logogram-0.6.0}/tests/test_explorer.py +13 -0
  108. logogram-0.6.0/tests/test_feature_writes.py +321 -0
  109. logogram-0.6.0/tests/test_finer_sites.py +905 -0
  110. logogram-0.6.0/tests/test_gpus.py +165 -0
  111. {logogram-0.2.0 → logogram-0.6.0}/tests/test_hardening.py +149 -3
  112. logogram-0.6.0/tests/test_heads.py +203 -0
  113. logogram-0.6.0/tests/test_history.py +718 -0
  114. logogram-0.6.0/tests/test_inside.py +96 -0
  115. {logogram-0.2.0 → logogram-0.6.0}/tests/test_loading.py +27 -0
  116. logogram-0.6.0/tests/test_local_models.py +327 -0
  117. logogram-0.6.0/tests/test_notebooks.py +118 -0
  118. logogram-0.6.0/tests/test_old_runs.py +206 -0
  119. logogram-0.6.0/tests/test_partial.py +586 -0
  120. {logogram-0.2.0 → logogram-0.6.0}/tests/test_paths.py +36 -0
  121. {logogram-0.2.0 → logogram-0.6.0}/tests/test_privacy.py +30 -0
  122. logogram-0.6.0/tests/test_queue.py +373 -0
  123. logogram-0.6.0/tests/test_reference.py +135 -0
  124. logogram-0.6.0/tests/test_report.py +169 -0
  125. logogram-0.6.0/tests/test_run_tracking.py +641 -0
  126. {logogram-0.2.0 → logogram-0.6.0}/tests/test_sae.py +59 -1
  127. logogram-0.6.0/tests/test_sae_catalogue.py +834 -0
  128. logogram-0.6.0/tests/test_saved_queue.py +568 -0
  129. logogram-0.6.0/tests/test_security.py +399 -0
  130. {logogram-0.2.0 → logogram-0.6.0}/tests/test_server.py +259 -0
  131. logogram-0.6.0/tests/test_skip_transcoders.py +484 -0
  132. {logogram-0.2.0 → logogram-0.6.0}/tests/test_specs.py +95 -6
  133. {logogram-0.2.0 → logogram-0.6.0}/tests/test_statistics.py +38 -0
  134. logogram-0.6.0/tests/test_steering_features.py +654 -0
  135. logogram-0.6.0/tests/test_support.py +385 -0
  136. logogram-0.6.0/tests/test_sweeps.py +582 -0
  137. {logogram-0.2.0 → logogram-0.6.0}/tests/test_tasks.py +93 -0
  138. logogram-0.6.0/tests/test_toys.py +709 -0
  139. logogram-0.6.0/tests/test_uneven.py +869 -0
  140. {logogram-0.2.0 → logogram-0.6.0}/tests/test_validation_script.py +183 -0
  141. {logogram-0.2.0 → logogram-0.6.0}/uv.lock +1 -1
  142. {logogram-0.2.0 → logogram-0.6.0}/web/playwright.config.ts +5 -2
  143. {logogram-0.2.0 → logogram-0.6.0}/web/src/App.tsx +17 -1
  144. {logogram-0.2.0 → logogram-0.6.0}/web/src/api/client.ts +135 -12
  145. logogram-0.6.0/web/src/api/types.ts +1794 -0
  146. logogram-0.6.0/web/src/components/AboutDialog.tsx +78 -0
  147. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/CancelRunDialog.tsx +12 -3
  148. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/CommandPalette.tsx +70 -13
  149. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/CopyCommand.module.css +1 -2
  150. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Distribution.module.css +2 -2
  151. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ErrorBoundary.tsx +4 -1
  152. logogram-0.6.0/web/src/components/ExampleGallery.module.css +121 -0
  153. logogram-0.6.0/web/src/components/ExampleGallery.tsx +116 -0
  154. logogram-0.6.0/web/src/components/FeatureWrites.module.css +88 -0
  155. logogram-0.6.0/web/src/components/FeatureWrites.tsx +120 -0
  156. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/FolderPicker.module.css +0 -1
  157. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/FolderPicker.tsx +20 -3
  158. logogram-0.6.0/web/src/components/GuideDialog.module.css +177 -0
  159. logogram-0.6.0/web/src/components/GuideDialog.tsx +265 -0
  160. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Header.tsx +13 -2
  161. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Heatmap/Heatmap.module.css +1 -1
  162. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Heatmap/Heatmap.tsx +5 -1
  163. logogram-0.6.0/web/src/components/HelpDialogs.module.css +133 -0
  164. logogram-0.6.0/web/src/components/HelpMenu.module.css +5 -0
  165. logogram-0.6.0/web/src/components/HelpMenu.tsx +116 -0
  166. logogram-0.6.0/web/src/components/History.module.css +364 -0
  167. logogram-0.6.0/web/src/components/History.tsx +651 -0
  168. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Inspector.module.css +1 -1
  169. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Inspector.tsx +193 -25
  170. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/LogogramDial.module.css +1 -1
  171. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/LogogramDial.tsx +9 -2
  172. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ModelDialog.module.css +15 -1
  173. logogram-0.6.0/web/src/components/ModelDialog.tsx +498 -0
  174. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ModelMap/Legend.tsx +2 -2
  175. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ModelMap/ModelMap.module.css +1 -1
  176. logogram-0.6.0/web/src/components/ReportDialog.tsx +122 -0
  177. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/RobustnessDialog.tsx +34 -6
  178. logogram-0.6.0/web/src/components/RunButton.tsx +65 -0
  179. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ShortcutsDialog.module.css +15 -0
  180. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ShortcutsDialog.tsx +31 -5
  181. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Splitter.module.css +1 -1
  182. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/StatusLine.module.css +6 -0
  183. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/StatusLine.tsx +9 -1
  184. logogram-0.6.0/web/src/components/SweepChart/SweepChart.module.css +59 -0
  185. logogram-0.6.0/web/src/components/SweepChart/SweepChart.tsx +357 -0
  186. logogram-0.6.0/web/src/components/SweepDialog.module.css +101 -0
  187. logogram-0.6.0/web/src/components/SweepDialog.tsx +382 -0
  188. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/TokenStrip.module.css +20 -0
  189. logogram-0.6.0/web/src/components/TokenStrip.tsx +332 -0
  190. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/TopBar.module.css +1 -1
  191. logogram-0.6.0/web/src/components/TopBar.tsx +125 -0
  192. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/UpdateNotice.module.css +2 -3
  193. logogram-0.6.0/web/src/components/Walkthrough.module.css +94 -0
  194. logogram-0.6.0/web/src/components/Walkthrough.tsx +322 -0
  195. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ui/Icon.tsx +2 -0
  196. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ui/index.tsx +61 -9
  197. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ui/ui.module.css +39 -14
  198. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/analysis.ts +55 -15
  199. logogram-0.6.0/web/src/lib/buildSpec.ts +651 -0
  200. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/canvas.ts +3 -0
  201. logogram-0.6.0/web/src/lib/chat.ts +50 -0
  202. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/circuits.ts +111 -14
  203. logogram-0.6.0/web/src/lib/devices.ts +33 -0
  204. logogram-0.6.0/web/src/lib/edgePlan.ts +48 -0
  205. logogram-0.6.0/web/src/lib/edges.ts +136 -0
  206. logogram-0.6.0/web/src/lib/environment.ts +81 -0
  207. logogram-0.6.0/web/src/lib/export.ts +92 -0
  208. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/formDraft.ts +69 -6
  209. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/formState.ts +67 -5
  210. logogram-0.6.0/web/src/lib/guide.ts +63 -0
  211. logogram-0.6.0/web/src/lib/help.ts +45 -0
  212. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/hooks.ts +10 -1
  213. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/keys.ts +18 -9
  214. logogram-0.6.0/web/src/lib/promptEdits.ts +285 -0
  215. logogram-0.6.0/web/src/lib/promptRows.ts +187 -0
  216. logogram-0.6.0/web/src/lib/route.ts +131 -0
  217. logogram-0.6.0/web/src/lib/runs.ts +197 -0
  218. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/sites.ts +81 -13
  219. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/spec.ts +283 -22
  220. logogram-0.6.0/web/src/lib/sweeps.ts +143 -0
  221. logogram-0.6.0/web/src/lib/thresholds.ts +19 -0
  222. logogram-0.6.0/web/src/lib/walkthrough.ts +136 -0
  223. {logogram-0.2.0 → logogram-0.6.0}/web/src/screens/Projects.tsx +19 -14
  224. {logogram-0.2.0 → logogram-0.6.0}/web/src/screens/Screens.module.css +19 -0
  225. {logogram-0.2.0 → logogram-0.6.0}/web/src/screens/SystemCheck.tsx +8 -13
  226. {logogram-0.2.0 → logogram-0.6.0}/web/src/screens/Welcome.tsx +10 -5
  227. {logogram-0.2.0 → logogram-0.6.0}/web/src/screens/Workbench.module.css +29 -1
  228. {logogram-0.2.0 → logogram-0.6.0}/web/src/screens/Workbench.tsx +30 -18
  229. {logogram-0.2.0 → logogram-0.6.0}/web/src/store/app.ts +543 -81
  230. logogram-0.6.0/web/src/store/help.ts +73 -0
  231. {logogram-0.2.0 → logogram-0.6.0}/web/src/styles/tokens.css +4 -0
  232. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/AttentionView.tsx +22 -10
  233. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/BaselineView.module.css +5 -0
  234. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/BaselineView.tsx +54 -15
  235. logogram-0.6.0/web/src/views/ChatTemplateSettings.tsx +131 -0
  236. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/CompareView.module.css +65 -0
  237. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/CompareView.tsx +312 -45
  238. logogram-0.6.0/web/src/views/Continuations.module.css +84 -0
  239. logogram-0.6.0/web/src/views/Continuations.tsx +111 -0
  240. logogram-0.6.0/web/src/views/EdgeResults.module.css +340 -0
  241. logogram-0.6.0/web/src/views/EdgeResults.tsx +753 -0
  242. logogram-0.6.0/web/src/views/ExperimentView.module.css +235 -0
  243. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/ExperimentView.tsx +614 -124
  244. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/ExploreView.tsx +8 -8
  245. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/FeaturesView.module.css +8 -0
  246. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/FeaturesView.tsx +92 -14
  247. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/Forest.module.css +9 -2
  248. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/Forest.tsx +17 -1
  249. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/HeadComparisonView.tsx +3 -3
  250. logogram-0.6.0/web/src/views/HeadKinds.module.css +96 -0
  251. logogram-0.6.0/web/src/views/HeadKinds.tsx +216 -0
  252. logogram-0.6.0/web/src/views/NeuronResults.module.css +92 -0
  253. logogram-0.6.0/web/src/views/NeuronResults.tsx +258 -0
  254. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/PredictionsView.tsx +1 -1
  255. logogram-0.6.0/web/src/views/PromptsView.module.css +268 -0
  256. logogram-0.6.0/web/src/views/PromptsView.tsx +961 -0
  257. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/ResearchView.tsx +23 -7
  258. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/ResultsView.module.css +178 -4
  259. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/ResultsView.tsx +372 -55
  260. logogram-0.6.0/web/src/views/RunSummary.tsx +265 -0
  261. logogram-0.6.0/web/src/views/SAEPicker.module.css +159 -0
  262. logogram-0.6.0/web/src/views/SAEPicker.tsx +228 -0
  263. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/SiteSetsEditor.tsx +24 -13
  264. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/SpecView.tsx +15 -3
  265. logogram-0.6.0/web/src/views/SweepView.module.css +221 -0
  266. logogram-0.6.0/web/src/views/SweepView.tsx +545 -0
  267. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/TaskGenerator.tsx +3 -2
  268. logogram-0.6.0/web/src/views/TextView.module.css +149 -0
  269. logogram-0.6.0/web/src/views/TextView.tsx +580 -0
  270. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/views.module.css +1 -5
  271. logogram-0.6.0/web/tests/a11y.browser.ts +253 -0
  272. {logogram-0.2.0 → logogram-0.6.0}/web/tests/analyses.browser.ts +5 -4
  273. {logogram-0.2.0 → logogram-0.6.0}/web/tests/autosave.unit.ts +54 -3
  274. logogram-0.6.0/web/tests/axe.ts +43 -0
  275. logogram-0.6.0/web/tests/chat.browser.ts +154 -0
  276. logogram-0.6.0/web/tests/chat.unit.ts +58 -0
  277. {logogram-0.2.0 → logogram-0.6.0}/web/tests/context.unit.ts +27 -6
  278. logogram-0.6.0/web/tests/devices.unit.ts +43 -0
  279. logogram-0.6.0/web/tests/docs.ts +48 -0
  280. logogram-0.6.0/web/tests/edges.browser.ts +140 -0
  281. logogram-0.6.0/web/tests/edges.unit.ts +210 -0
  282. logogram-0.6.0/web/tests/environment.unit.ts +136 -0
  283. logogram-0.6.0/web/tests/export.unit.ts +93 -0
  284. logogram-0.6.0/web/tests/fakeRuns.ts +120 -0
  285. logogram-0.6.0/web/tests/finer.browser.ts +126 -0
  286. logogram-0.6.0/web/tests/finer.unit.ts +169 -0
  287. logogram-0.6.0/web/tests/gallery.browser.ts +115 -0
  288. logogram-0.6.0/web/tests/guide.browser.ts +167 -0
  289. logogram-0.6.0/web/tests/guide.unit.ts +153 -0
  290. logogram-0.6.0/web/tests/heads.browser.ts +40 -0
  291. logogram-0.6.0/web/tests/help.browser.ts +225 -0
  292. logogram-0.6.0/web/tests/help.unit.ts +72 -0
  293. logogram-0.6.0/web/tests/history.browser.ts +224 -0
  294. logogram-0.6.0/web/tests/history.unit.ts +340 -0
  295. logogram-0.6.0/web/tests/navigation.browser.ts +49 -0
  296. logogram-0.6.0/web/tests/partial.browser.ts +143 -0
  297. logogram-0.6.0/web/tests/prompts.browser.ts +231 -0
  298. logogram-0.6.0/web/tests/prompts.unit.ts +268 -0
  299. logogram-0.6.0/web/tests/queue.browser.ts +80 -0
  300. logogram-0.6.0/web/tests/queue.unit.ts +239 -0
  301. logogram-0.6.0/web/tests/route.unit.ts +24 -0
  302. logogram-0.6.0/web/tests/runs.browser.ts +192 -0
  303. logogram-0.6.0/web/tests/saes.browser.ts +86 -0
  304. {logogram-0.2.0 → logogram-0.6.0}/web/tests/spec.unit.ts +215 -9
  305. logogram-0.6.0/web/tests/steering.browser.ts +134 -0
  306. logogram-0.6.0/web/tests/sweep.browser.ts +235 -0
  307. logogram-0.6.0/web/tests/sweeps.unit.ts +159 -0
  308. logogram-0.6.0/web/tests/text.browser.ts +153 -0
  309. logogram-0.6.0/web/tests/tokens.browser.ts +26 -0
  310. logogram-0.6.0/web/tests/uneven.browser.ts +133 -0
  311. logogram-0.6.0/web/tests/ux.browser.ts +121 -0
  312. logogram-0.6.0/web/tests/walkthrough.browser.ts +316 -0
  313. {logogram-0.2.0 → logogram-0.6.0}/web/tests/workbench.browser.ts +34 -6
  314. logogram-0.2.0/CHANGELOG.md +0 -213
  315. logogram-0.2.0/PKG-INFO +0 -769
  316. logogram-0.2.0/README.md +0 -731
  317. logogram-0.2.0/src/logogram/api.py +0 -397
  318. logogram-0.2.0/src/logogram/backends/base.py +0 -245
  319. logogram-0.2.0/src/logogram/backends/saes.py +0 -425
  320. logogram-0.2.0/src/logogram/backends/transformer_lens.py +0 -1064
  321. logogram-0.2.0/src/logogram/cli.py +0 -954
  322. logogram-0.2.0/src/logogram/datasets.py +0 -189
  323. logogram-0.2.0/src/logogram/exports.py +0 -33
  324. logogram-0.2.0/src/logogram/paths.py +0 -228
  325. logogram-0.2.0/src/logogram/prompts.py +0 -295
  326. logogram-0.2.0/src/logogram/runner.py +0 -453
  327. logogram-0.2.0/src/logogram/schema.py +0 -401
  328. logogram-0.2.0/src/logogram/server/models.py +0 -491
  329. logogram-0.2.0/src/logogram/spec.py +0 -908
  330. logogram-0.2.0/src/logogram/steering.py +0 -333
  331. logogram-0.2.0/src/logogram/system.py +0 -431
  332. logogram-0.2.0/src/logogram/web_dist/assets/index-73rNh-lK.js +0 -55
  333. logogram-0.2.0/src/logogram/web_dist/assets/index-B1QioA38.css +0 -1
  334. logogram-0.2.0/tests/test_architectures.py +0 -161
  335. logogram-0.2.0/web/src/api/types.ts +0 -949
  336. logogram-0.2.0/web/src/components/History.module.css +0 -155
  337. logogram-0.2.0/web/src/components/History.tsx +0 -149
  338. logogram-0.2.0/web/src/components/ModelDialog.tsx +0 -281
  339. logogram-0.2.0/web/src/components/TokenStrip.tsx +0 -193
  340. logogram-0.2.0/web/src/components/TopBar.tsx +0 -112
  341. logogram-0.2.0/web/src/lib/buildSpec.ts +0 -337
  342. logogram-0.2.0/web/src/lib/export.ts +0 -115
  343. logogram-0.2.0/web/src/views/ExperimentView.module.css +0 -104
  344. logogram-0.2.0/web/src/views/PromptsView.tsx +0 -349
  345. logogram-0.2.0/web/tests/a11y.browser.ts +0 -83
  346. {logogram-0.2.0 → logogram-0.6.0}/.gitignore +0 -0
  347. {logogram-0.2.0 → logogram-0.6.0}/LICENSE +0 -0
  348. {logogram-0.2.0 → logogram-0.6.0}/scripts/check_privacy.py +0 -0
  349. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/__main__.py +0 -0
  350. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/backends/__init__.py +0 -0
  351. {logogram-0.2.0/src/logogram/examples/ioi-gpt2 → logogram-0.6.0/src/logogram/examples/factual-recall-gpt2}/.gitignore +0 -0
  352. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/examples/ioi-gpt2/datasets/ioi.jsonl +0 -0
  353. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/examples/ioi-gpt2/project.json +0 -0
  354. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/metrics.py +0 -0
  355. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/server/__init__.py +0 -0
  356. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/updates.py +0 -0
  357. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/web_dist/assets/instrument-sans-latin-ext-standard-normal-C5E2Gvlv.woff2 +0 -0
  358. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/web_dist/assets/instrument-sans-latin-standard-normal-BVScPF0l.woff2 +0 -0
  359. {logogram-0.2.0 → logogram-0.6.0}/src/logogram/web_dist/favicon.svg +0 -0
  360. {logogram-0.2.0 → logogram-0.6.0}/tests/test_atp.py +0 -0
  361. {logogram-0.2.0 → logogram-0.6.0}/tests/test_circuits.py +0 -0
  362. {logogram-0.2.0 → logogram-0.6.0}/tests/test_cli.py +0 -0
  363. {logogram-0.2.0 → logogram-0.6.0}/tests/test_devices.py +0 -0
  364. {logogram-0.2.0 → logogram-0.6.0}/tests/test_direct.py +0 -0
  365. {logogram-0.2.0 → logogram-0.6.0}/tests/test_engine.py +0 -0
  366. {logogram-0.2.0 → logogram-0.6.0}/tests/test_metrics.py +0 -0
  367. {logogram-0.2.0 → logogram-0.6.0}/tests/test_release_fixes.py +0 -0
  368. {logogram-0.2.0 → logogram-0.6.0}/tests/test_sanity.py +0 -0
  369. {logogram-0.2.0 → logogram-0.6.0}/tests/test_steering.py +0 -0
  370. {logogram-0.2.0 → logogram-0.6.0}/tests/test_transcoders.py +0 -0
  371. {logogram-0.2.0 → logogram-0.6.0}/tests/test_units.py +0 -0
  372. {logogram-0.2.0 → logogram-0.6.0}/tests/test_updates.py +0 -0
  373. {logogram-0.2.0 → logogram-0.6.0}/web/index.html +0 -0
  374. {logogram-0.2.0 → logogram-0.6.0}/web/package-lock.json +0 -0
  375. {logogram-0.2.0 → logogram-0.6.0}/web/package.json +0 -0
  376. {logogram-0.2.0 → logogram-0.6.0}/web/public/favicon.svg +0 -0
  377. {logogram-0.2.0 → logogram-0.6.0}/web/src/App.module.css +0 -0
  378. {logogram-0.2.0 → logogram-0.6.0}/web/src/api/events.ts +0 -0
  379. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/CircuitDialog.tsx +0 -0
  380. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/CommandPalette.module.css +0 -0
  381. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/CopyCommand.tsx +0 -0
  382. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Distribution.tsx +0 -0
  383. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ErrorBoundary.module.css +0 -0
  384. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Header.module.css +0 -0
  385. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Heatmap/ScaleBar.tsx +0 -0
  386. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Logogram.tsx +0 -0
  387. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/ModelMap/ModelMap.tsx +0 -0
  388. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Notices.module.css +0 -0
  389. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Notices.tsx +0 -0
  390. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/Splitter.tsx +0 -0
  391. {logogram-0.2.0 → logogram-0.6.0}/web/src/components/UpdateNotice.tsx +0 -0
  392. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/color.ts +0 -0
  393. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/formHistory.ts +0 -0
  394. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/format.ts +0 -0
  395. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/heatmapNavigation.ts +0 -0
  396. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/logogram.ts +0 -0
  397. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/metrics.ts +0 -0
  398. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/milestones.ts +0 -0
  399. {logogram-0.2.0 → logogram-0.6.0}/web/src/lib/motion.ts +0 -0
  400. {logogram-0.2.0 → logogram-0.6.0}/web/src/main.tsx +0 -0
  401. {logogram-0.2.0 → logogram-0.6.0}/web/src/styles/global.css +0 -0
  402. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/AttentionView.module.css +0 -0
  403. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/CircuitResults.tsx +0 -0
  404. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/ExploreView.module.css +0 -0
  405. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/HeadComparisonView.module.css +0 -0
  406. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/MetricSettings.tsx +0 -0
  407. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/PredictionsView.module.css +0 -0
  408. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/ResearchView.module.css +0 -0
  409. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/SiteSets.module.css +0 -0
  410. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/SpecView.module.css +0 -0
  411. {logogram-0.2.0 → logogram-0.6.0}/web/src/views/StatisticsSettings.tsx +0 -0
  412. {logogram-0.2.0 → logogram-0.6.0}/web/tests/circuits.unit.ts +0 -0
  413. {logogram-0.2.0 → logogram-0.6.0}/web/tests/color.unit.ts +0 -0
  414. {logogram-0.2.0 → logogram-0.6.0}/web/tests/form.unit.ts +0 -0
  415. {logogram-0.2.0 → logogram-0.6.0}/web/tests/heatmap.unit.ts +0 -0
  416. {logogram-0.2.0 → logogram-0.6.0}/web/tests/logogram.unit.ts +0 -0
  417. {logogram-0.2.0 → logogram-0.6.0}/web/tests/notices.unit.ts +0 -0
  418. {logogram-0.2.0 → logogram-0.6.0}/web/tests/tasks.unit.ts +0 -0
  419. {logogram-0.2.0 → logogram-0.6.0}/web/tsconfig.json +0 -0
  420. {logogram-0.2.0 → logogram-0.6.0}/web/vite.config.ts +0 -0
@@ -14,7 +14,7 @@ traceability come before features.
14
14
  * Use `platformdirs` for runtime locations (settings, recent projects) and project-relative paths
15
15
  in anything written into a project (specs, manifests, summaries).
16
16
  * Don't commit run outputs from your machine: manifests record the device and GPU model. The
17
- bundled example ships a spec and a dataset only.
17
+ bundled examples ship a spec and a dataset each.
18
18
  * No telemetry, analytics, crash reporting, CDNs or remote fonts. Bundle assets locally. Network
19
19
  access is limited to Hugging Face downloads the user starts (with their own login) and the
20
20
  version check in `src/logogram/updates.py`: one GET of pypi.org's JSON for `logogram`, carrying
@@ -99,6 +99,7 @@ src/logogram/
99
99
  datasets.py, ioi.py JSONL datasets and the IOI generator
100
100
  tasks.py seeded datasets for the other tasks (greater-than, docstring, ...)
101
101
  prompts.py tokenization, alignment checks, length groups, seeded splits
102
+ chat.py prompts wrapped in the model's own chat template
102
103
  metrics.py the metrics: answers, answer sets and continuations, scored per prompt
103
104
  sites.py scope expansion and result layouts
104
105
  engine.py the sweep: captures, patches, streams per layer, cancels; routes methods
@@ -108,25 +109,45 @@ src/logogram/
108
109
  verify.py the spec that verifies an estimate by patching its strongest sites
109
110
  steering.py steering with held-out prompts and a random control
110
111
  paths.py path patching
112
+ edges.py edge attribution (EAP, EAP-IG), edge patching and the faithfulness curve
111
113
  features.py SAE features: patching and attribution patching
112
114
  sae.py SAE encode, decode and fit
113
115
  stats.py bootstrap (over prompts or clusters), bands, q-values, paired differences
114
116
  results.py summary.json and results.parquet
117
+ runs.py the per-prompt evidence behind one site's number
118
+ report.py a run as words, and as one self-contained HTML page
119
+ exports.py CSV exports of a saved run
115
120
  schema.py schemas for run files, history listings and live events
116
121
  fileio.py atomic writes that never follow symlinks
122
+ project.py project folders: where runs, datasets and drafts live, read safely
123
+ research.py research notes and named selections
117
124
  runner.py run a spec end to end (used by the app, the CLI and the Python API)
125
+ partial.py what a run that stops early keeps of what finished, and what it leaves out
126
+ owner.py which process runs a run, so a run going elsewhere isn't taken for interrupted
127
+ runqueue.py the project's run queue (.logogram/queue.json) and the one process running it
128
+ history.py what people say about runs (titles, stars, the archive), and deleting runs
118
129
  robustness.py the spec that reruns a run with one choice changed
130
+ sweeps.py one spec run across several seeds, datasets or revisions, and its table
119
131
  compare.py run comparisons, paired prompt by prompt where they can be
120
132
  api.py the Python API for notebooks (imported lazily by logogram/__init__.py)
121
133
  analysis.py token strip, baseline check, attention patterns
134
+ inside.py Your text: any text's predictions, logit lens, attention and features
135
+ heads.py the head finder: previous-token, duplicate-token and induction heads
122
136
  backends/ ModelBackend interface, TransformerLens backend, Hugging Face access,
123
- published SAE formats
137
+ published SAE formats, the catalogue of published SAEs (SAELens's
138
+ registry, built by scripts/sae_catalogue.py)
139
+ local_models.py models from folders on this machine, found by the hash of their files
124
140
  server/ FastAPI app, security, response models, job and event handling
125
- system.py hardware report, doctor, memory estimates
141
+ system.py hardware report, doctor, memory estimates, the environment (logogram env)
142
+ support.py the problem report: versions and the last error, no names or paths
126
143
  updates.py opt-in version check against PyPI, update commands
127
144
  cli.py typer command line
128
145
  web_dist/ built web app (generated by `npm run build` in web/, committed)
129
- examples/ioi-gpt2/ the bundled example project
146
+ gallery.py the bundled examples: what each asks, and the result to expect
147
+ toys.py toy models whose circuits are known (weights set by hand), their datasets,
148
+ and experiments that say what each method should find
149
+ examples/ the example projects (IOI, greater-than, factual recall, gendered pronoun
150
+ on GPT-2 small): a spec and a dataset each
130
151
  web/ React + TypeScript + Vite sources
131
152
  scripts/check_privacy.py
132
153
  tests/
@@ -0,0 +1,546 @@
1
+ # Changelog
2
+
3
+ What changed in each version of Logogram.
4
+
5
+ ## 0.6.0 (2026-10-12)
6
+
7
+ Interventions on single queries, keys, values and neurons, and on the edges between components,
8
+ estimated by edge attribution and checked by path patching. Prompt pairs whose prompts tokenize
9
+ to different lengths. Published SAEs found by name. Two toy models whose circuits are known, to
10
+ check every method against.
11
+
12
+ ### Added
13
+
14
+ - **Queries, keys, values and neurons as sites.**
15
+ - Site kinds `q`, `k` and `v`: one head's query, or one key/value head's key or value. With
16
+ grouped-query attention, a key/value head is read by every query head of its group.
17
+ - Site kind `neuron`: one MLP neuron's activation after the nonlinearity (for a gated MLP, the
18
+ gate's activation times the up projection).
19
+ - The scopes `head_inputs` and `neurons`.
20
+
21
+ When a model loads, Logogram measures what these sites assume:
22
+
23
+ - queries, keys and values together reproduce the attention output, and neurons the MLP
24
+ output;
25
+ - replacing one changes only the heads that read it.
26
+
27
+ It offers only the sites that hold, and says why for the rest. Activation patching, ablation,
28
+ attribution patching and sets of sites take them. Direct logit attribution reads neurons and
29
+ values, and refuses queries and keys with the reason. Results show head inputs as the layer ×
30
+ head map. Neurons are shown layer by layer: the distribution of every neuron's effect, beside
31
+ the strongest.
32
+ - **Edge attribution** (`edge_attribution`, with the `graph` scope). EAP (Syed et al. 2023) and
33
+ EAP-IG (Hanna et al. 2024) estimate every edge of the model's graph. An edge runs from the
34
+ embeddings, a head or an MLP into a later head's query, key or value, a later MLP's input, or
35
+ the logits.
36
+ - Each receiver reads its own copy of the residual stream. Before the first use, the backend
37
+ measures that this reproduces the model.
38
+ - A run keeps every edge's per-prompt values and statistics, and its corrections count every
39
+ edge.
40
+ - An optional faithfulness curve patches the k strongest edges together (or every edge but
41
+ them), beside edges chosen at random with a seed.
42
+ - **Verify** path-patches the strongest edges one at a time (the `edges` scope). It puts each
43
+ estimate beside its measurement, with their rank correlation (`logogram verify`,
44
+ `lg.verify_run`, `lg.edge_verification`).
45
+ - Before a run starts, the app says the graph's size, the passes and the memory it needs.
46
+ - The app draws the strongest edges, with the curve and the verification beside them. The
47
+ report draws them as SVG.
48
+
49
+ Path patching also takes MLP receivers, and the embeddings as a sender.
50
+ - **Prompt pairs of different lengths.** Such a pair is usable when `corrupt_positions` labels
51
+ the same positions in the corrupt prompt as `positions` does in the clean one.
52
+ - A site at a label or at the last token is patched from the source prompt's token there into
53
+ the receiver's.
54
+ - Where a value is carried between such prompts, every position and token indices are refused.
55
+ So are integrated gradients, edge attribution and sets that replace every position. Each
56
+ refusal names the pairs and says what to choose instead.
57
+ - Datasets of equal-length pairs give the same numbers as before, bit for bit.
58
+ - The prompts table, the token strip and the editor show both prompts lined up by label.
59
+ - The form offers only positions a method can match, and a run says which of its pairs were
60
+ matched this way.
61
+ - Task generators take `full_vocabulary`: words of several tokens are kept, and both prompts
62
+ are labelled.
63
+ - **Published SAEs by name.** Logogram ships a catalogue of the 13,857 SAEs in the 170 releases
64
+ of SAELens's registry (sae-lens 6.54.0). Each entry gives the SAE's model, hook, width and
65
+ architecture, and whether Logogram reads it exactly or why not; 440 were checked on their real
66
+ files.
67
+ - **Load an SAE** searches the loaded model's SAEs by release, hook, layer and width.
68
+ - `logogram saes MODEL`, `lg.list_saes` and `lg.load_sae(release=..., sae_id=...)` do the same.
69
+ - Nothing is fetched to list them. Specs still record the repository, folder and revision.
70
+ - **Toy models whose circuits are known.** Two small GPT-2 checkpoints have weights set by hand:
71
+ - an induction toy: a previous-token head, and an induction head that reads it through its key;
72
+ - an IOI toy: GPT-2 small's circuit with one head per step.
73
+
74
+ `logogram toy NAME` and `lg.toy_model(name)` write a project holding the model, its datasets,
75
+ and experiments whose notes say what each method should find. The model is added to the local
76
+ models and named by the hash of its files, the same on every machine. Loading a toy checks that
77
+ it solves its prompts and that its planted heads attend as built.
78
+
79
+ Tests check every method against the toys:
80
+ - patching, path patching, edges, sets of sites, direct logit attribution, steering and the
81
+ head finder;
82
+ - attribution patching and edge attribution. These are exact where the path is linear and blind
83
+ through saturated attention. Integrated gradients recover what one gradient misses where the
84
+ path between the prompts is smooth enough.
85
+ - **Documentation**:
86
+ - a page on edge attribution;
87
+ - a guide to checking a method on a toy model;
88
+ - the pages on activation patching, attribution patching, path patching, direct logit
89
+ attribution, circuits, SAE features and the model checks now cover the new sites, pairs of
90
+ different lengths and published SAEs by name.
91
+
92
+ ### Changed
93
+
94
+ - Spec version 3 is unchanged. The new sites, scopes and experiment are new members of its
95
+ unions, and every existing spec reads and runs as before.
96
+ - These SAEs now load:
97
+ - SAELens's earlier files that hold a `scaling_factor` of ones their configuration doesn't
98
+ mention (ones change nothing).
99
+
100
+ These are refused before anything is downloaded, saying why:
101
+
102
+ - any other `scaling_factor`;
103
+ - normalizing activations;
104
+ - settings that SAELens's registry applies but a configuration doesn't state.
105
+
106
+ ### Fixed
107
+
108
+ - On Windows, taking the last run out of the queue while a tab read it stopped the queue with the
109
+ run still in it. Removing a file being read now retries briefly there, as replacing one did.
110
+ - A word that a word-level tokenizer doesn't know was taken for a single token, its unknown token,
111
+ which stands for every such word. It no longer is.
112
+
113
+ ## 0.5.0 (2026-10-12)
114
+
115
+ Chat models on their own template, your own fine-tunes, findings checked across seeds and
116
+ checkpoints, runs that keep what finished, a queue that runs overnight, steering along SAE
117
+ features with what the steered model goes on to say, and documentation for all of it: pages for
118
+ every method, how-to guides, notebooks, a guide in the app and a walkthrough.
119
+
120
+ ### Added
121
+
122
+ - **Chat templates** (`tokenization.chat_template`). Prompts can be wrapped in the model's own
123
+ chat template, the one its tokenizer ships: as the person's message followed by the template's
124
+ opening of the reply, or as the start of the model's reply to a fixed message, with an optional
125
+ system message. Each prompt must come out of the template unchanged around it, or it is
126
+ refused with the reason; named positions move with the template, and answers are read after
127
+ the whole wrapped text. The run, the baseline, the token strip, attention, predictions, the
128
+ SAE views, the head finder and Your text all wrap prompts the same way. The manifest records
129
+ the template's SHA-256, the summary its text around each prompt, and the methods text says
130
+ what the model read.
131
+ - **Local models** (`model.source: "local"`). A folder with `config.json`, the tokenizer and
132
+ safetensors weights is added under a name (`logogram models add PATH --name NAME`, the model
133
+ dialog, or `lg.add_local_model`) and found by the hash of its files, so specs, manifests and
134
+ reports never hold a path. Loading rehashes files whose size or time changed and refuses a
135
+ folder whose files changed, naming them; pickle-only folders are refused.
136
+ - **One GPU of several** (`model.device: "cuda:N"`). The model dialog offers each GPU with its
137
+ name and free memory, the estimate uses the chosen one, and the manifest records its index and
138
+ name. `cuda` is the default GPU, so a spec saying `cuda` and one saying `cuda:0` match.
139
+ - **Steering along an SAE feature.** Steering's direction can be a feature's decoder direction,
140
+ added where its SAE writes (the residual stream, an attention or MLP output, a transcoder's MLP
141
+ output, or the heads' outputs). Strength 1 is the feature's typical activation, recorded in
142
+ the summary. **Steer along this feature** in a feature's panel fills the form.
143
+ - **What a steered model says.** A steering run can record greedy continuations of its first
144
+ held-out prompts: unsteered, at each strength and with the random control
145
+ (`continuations.json`, shown under the results and in the report). Your text continues any
146
+ text, plainly or with a feature added from a chosen token on.
147
+ - **Sweeps.** One spec run across several values of one choice: a seed it states, the dataset
148
+ (files ticked, or generated one per seed), or the model's revision (training checkpoints in
149
+ order). The run it was made from stands in for its own value. The Sweeps view in Evidence
150
+ shows each strong site's effect and interval at every value, the spread across values beside a
151
+ run's own interval, and which sites keep their sign and size; values without results are
152
+ missing, never zero. `logogram sweep`, `lg.sweep` and `lg.load_sweep`; CSV export.
153
+ - **Runs that stop early keep what finished.** A run cancelled, interrupted or failing mid-sweep
154
+ keeps the layers (or sites, or sets) every prompt ran at, with the statistics a finished run
155
+ gives them; attribution patching and direct logit attribution keep every site over the prompts
156
+ that finished. The summary says how far the run got and what it leaves out (corrections for
157
+ the number of sites need every site). The run stays cancelled or failed; the history marks it
158
+ partial.
159
+ - **A queue that survives restarts.** The run queue is kept in the project
160
+ (`.logogram/queue.json`), comes back paused when the project opens again, and can be run
161
+ without the app: `logogram queue add`, `list`, `clear` and `run` (overnight on a remote GPU,
162
+ say). One process runs a queue at a time.
163
+ - **The head finder.** The Attention view finds previous-token, duplicate-token and induction
164
+ heads on seeded repeated random tokens (Olsson et al. 2022), each head's score with a bootstrap
165
+ interval over sequences (`lg.head_kinds`).
166
+ - **Your text**, a new Explore tab: any text's tokens, the next-token predictions after each,
167
+ the logit lens at a chosen token (where it held for the model), where a head attends, and the
168
+ SAE features that fire, without making a dataset (`lg.look`).
169
+ - **Documentation** in `docs/`: getting started, a tour of the workbench, a page for each method
170
+ (what Logogram computes, exactly, and where it comes from), how-to guides (replicating IOI,
171
+ finding induction heads, working with an SAE, checking robustness, comparing runs, sweeps,
172
+ the queue, chat models, your own fine-tune, sharing results, a remote GPU), and a reference of
173
+ every spec field, command and Python function, generated from the code
174
+ (`scripts/build_reference.py`, checked by a test). Three notebooks, with "Open in Colab":
175
+ IOI head patching, attribution patching verified by patching, and SAE features.
176
+ - **A guide in the app** (Help, Guide): what each workspace is for, how to read the map and the
177
+ logogram, what the numbers and intervals mean, and the keyboard, with buttons that open each
178
+ view. **A walkthrough of the example** in six steps on the real controls (Walk me through it),
179
+ remembered once finished or skipped. `lg.open_example()` opens the example from Python.
180
+ - **A shareable report**: one self-contained HTML page per run, with its map, strongest sites,
181
+ methods, notes, every site's numbers, provenance and spec (`logogram report`, `Run.report()`).
182
+ The figure as SVG, per-site CSV, and per-prompt CSV with the prompts' text. The methods text
183
+ now comes from one place (`logogram methods`, `Run.methods()`).
184
+
185
+ ### Changed
186
+
187
+ - Specs are version 3. Version 2 specs read as version 3 with chat templates, local models and
188
+ the new steering choices off, which is what version 2 did.
189
+
190
+ ### Fixed
191
+
192
+ - A workspace chosen while a project was opening was undone a moment later.
193
+ - The folder picker could replace a folder you had typed with the one it opened in.
194
+ - Rerunning a saved spec of SAE features with another SAE of the same site loaded used that SAE
195
+ without saying so. The form now lists the SAE among the differences from the saved spec.
196
+ - The token strip tokenized again, and took the focus off the token in hand, whenever an
197
+ unrelated choice changed (the form's batch size or prompt limit).
198
+ - A site's bootstrap interval could change in its last digits with the number of sites the run
199
+ measured: its resampled means came from one matrix product over every site, which BLAS
200
+ libraries round differently as the number of rows changes (a single row goes through another
201
+ routine). They now go through products of one fixed shape, so a run that stops early keeps
202
+ exactly what the whole run gives each site, on every platform. Intervals of earlier runs can
203
+ differ from a rerun's in their last digits.
204
+
205
+ ## 0.4.0 (2026-10-12)
206
+
207
+ Runs you can keep track of and trust across machines, a way to work on a remote GPU, help in the
208
+ app, examples with the results they should give, and SAE features read more exactly.
209
+
210
+ ### Added
211
+
212
+ - **Three more examples, each read against its paper**, on GPT-2 small: greater-than (Hanna et
213
+ al. 2023; MLPs 8 to 11 carry it, as published), factual recall traced with another country in
214
+ place of noise (Meng et al. 2022; the early site at the subject and the late site at the last
215
+ token, though one MLP at a time doesn't reproduce the MLP claim, as its notes say), and the
216
+ gendered pronoun (Mathwin et al. 2023; heads 10.9 and 9.7 write it). The welcome screens list
217
+ every example with its question, method, the result to expect and the paper; each opens as a
218
+ copy of its own, never overwritten. A weekly check runs all of them on GPT-2 small's real
219
+ weights.
220
+ - **A run's notes beside its result**, folded to three lines, and in its methods paragraph.
221
+ - **Managing runs.** Each run can have a title, shown instead of its spec's name, a star, and a
222
+ place in the archive. These are kept beside the spec, in `annotations.json`, so the spec never
223
+ changes. The history can be searched by title, name, id, method, model and dataset, and filtered
224
+ to starred or archived runs. Rename (F2), star, archive and delete from each row's menu. Deleting
225
+ asks first and removes the run's folder for good (archive keeps a run out of sight instead); runs
226
+ derived from it stay. The same is in the command line (`logogram rename`, `star`, `archive`,
227
+ `delete`; `logogram list --archived`) and the Python API (`run.rename()`, `run.star()`,
228
+ `run.archive()`, `lg.delete_run()`). The command palette searches every run.
229
+ - **Runs in other processes.** A run started with `logogram run` or from a notebook is no longer
230
+ marked failed when the app opens its project: an owner record in its folder says which process
231
+ runs it, and the history shows it running and fills in its results when it ends. A run whose
232
+ process stopped is marked failed with that reason.
233
+ - **A failed run's details.** A failed run keeps its traceback in `traceback.txt`, without this
234
+ machine's paths or names; the app shows it under **Show details**, with a copy button, and
235
+ `logogram show` and `Run.traceback` give it too. Ctrl+C during `logogram run`, or a notebook's
236
+ interrupt, records the run as cancelled. `--verbose` logs what the server does, and
237
+ `--log-file PATH` keeps the log.
238
+ - **Where a run ran.** `logogram env` prints the versions and devices results depend on
239
+ (`--requirements` pins them). The Results view says when a run ran with other versions of
240
+ Logogram, PyTorch, TransformerLens, Transformers or NumPy, or on another kind of device, and
241
+ Compare lists how two runs' environments differ.
242
+ - **A remote GPU over SSH.** `--forwarded-port N` (or `LOGOGRAM_FORWARDED_PORTS`) lets the browser
243
+ reach Logogram through a tunnel's local port; the server still listens on 127.0.0.1 only and still
244
+ answers only to loopback names. A request to an unknown port says exactly which option to add.
245
+ The README has a guide.
246
+ - **A Help menu**: keyboard shortcuts, guides, **Report a problem** (a report to paste into an
247
+ issue, with versions, the loaded model and the last error, scrubbed of paths, names and tokens;
248
+ also `logogram doctor --report`), the system check and About.
249
+ - **What a feature writes**: the tokens an SAE or transcoder feature promotes and suppresses
250
+ directly, through the final normalization (its scale held, as direct logit attribution holds it)
251
+ and the unembedding, in the Features view and the Inspector (`POST /api/sae/writes`,
252
+ `lg.feature_writes`).
253
+ - **Transcoders with a skip connection** (EleutherAI's and Gemma Scope 2's affine ones) are read
254
+ exactly; attribution patching reports what flows through the skip connection. **SAEs on attention
255
+ heads' outputs** (`hook_z`) are read, from SAELens and Gemma Scope 2.
256
+ - **Models made for chat** are recognized when they load (by their name, or by stopping at their
257
+ chat template's end-of-turn token). The model dialog, the summary beside **Run** and the baseline
258
+ say that their prompts run as plain text, and each run's manifest records it.
259
+ - SECURITY.md, CONTRIBUTING.md, CITATION.cff and issue templates.
260
+
261
+ ### Changed
262
+
263
+ - History opens failed and cancelled runs on Results, where the reason and **Edit and rerun** are.
264
+ - A run whose spec can't be read is listed as damaged, with what is wrong, instead of vanishing.
265
+ - `logogram list` hides archived runs unless `--archived` is given.
266
+ - Typer 0.16 or later is required: earlier versions can't show `--help` with Click 8.2 or later.
267
+
268
+ ### Fixed
269
+
270
+ - The welcome screens had no main landmark, and the tagline's green "Explore" had too little
271
+ contrast on white; its words are now ink, underlined in their workspace's color.
272
+ - Opening a project marked runs going on in another process as failed.
273
+ - A workspace chosen while a project was opening was undone a moment later.
274
+ - Patching a feature of an SAE that standardizes its inputs (OpenAI's GPT-2 SAEs) failed.
275
+ - Features of SAEs on attention heads' outputs weren't laid out by head in the Features view.
276
+ - EleutherAI transcoders in the current format had `b_dec` subtracted from their input; files that
277
+ use settings sparsify's releases don't define were read as TopK instead of being refused.
278
+
279
+ ## 0.3.0 (2026-10-11)
280
+
281
+ The interface, made easier to work in: the result where you look first, links and Back, a run
282
+ queue, a summary beside Run, a prompts table you can search and edit, the thresholds behind each
283
+ verdict, and nothing that is only explained on hover.
284
+
285
+ ### Added
286
+
287
+ - **A run queue.** While a job runs, **Run** reads **Queue**: the experiment waits its turn, listed
288
+ under **Queued** in History, and starts when the jobs ahead of it end, whether they finish, fail
289
+ or are cancelled. A queued run can be removed until it starts. The queue belongs to the open
290
+ project and lives in the server's memory (`POST`, `GET` and `DELETE /api/queue`).
291
+ - **Links, Back and Forward.** The address keeps your place: the view, and the run it shows or the
292
+ two it compares. Back and Forward move between views, a reload comes back to the same place, and
293
+ **All projects** leads back to the open project as you left it. The address never carries the
294
+ session token.
295
+ - **A summary beside the experiment form**, in view while the form scrolls: what will run and how
296
+ much work it is, whether a batch of that size fits in the memory free with the loaded model
297
+ (`POST /api/models/run-memory`), whether the baseline was checked for these prompts and what it
298
+ found, and, when the form can't run yet, what is missing, right above **Run**.
299
+ - **The prompts table** can be searched (both prompts, answers and metadata), shows 100 rows a
300
+ page, and is one tab stop whose arrow keys, Page Up and Down, Home and End choose a prompt.
301
+ Prompts can be edited or removed, and the edits are saved as a new dataset
302
+ (`POST /api/datasets/derive`), so the dataset a run recorded never changes.
303
+ - **Compare: a site in both runs.** Choosing a cell, or a row of the table, circles it on both
304
+ maps and shows each run's effect and interval, B − A (paired prompt by prompt when the runs
305
+ share prompts), its flags, and a way into each run at that site.
306
+ - **Single-key shortcuts can be turned off**, in the shortcuts list or the command palette, for
307
+ speech input or keys pressed by accident. Shortcuts with Ctrl or ⌘, the arrow keys and Esc keep
308
+ working.
309
+
310
+ ### Changed
311
+
312
+ - **The result first:** the Results heatmap starts on the first screen, right under the run's
313
+ figures; the corrections for testing many sites follow it, with their explanation on request.
314
+ - **The token strip** remembers being hidden or shown, starts hidden on a short window, and stays
315
+ off views that show tokens themselves. Its tokens are one tab stop with arrow keys between them.
316
+ - **One name for every view**, shared by the tabs, the command palette and the keys, and the
317
+ number keys go to the open workspace's tabs (**1** to **5**) instead of seven views across
318
+ workspaces.
319
+ - **The thresholds behind verdicts are stated where the verdict is:** the behavior is present
320
+ above a 0.5 gap, a robustness check holds above a 0.8 rank correlation, and an SAE fits poorly
321
+ under 60% of the variance explained.
322
+ - **Nothing is explained only on hover.** Explanations show on keyboard focus too; a disabled
323
+ button with a reason stays focusable so the reason can be read; choices that can't be made say
324
+ why under them; and what matters (the memory estimate's rows, the flag mark on result maps and
325
+ the forest plot) is written into the page.
326
+ - **Color keeps its job:** focus rings, selection and progress outside a workspace are ink;
327
+ intervals are drawn in a neutral band instead of the evidence pink; callouts and boxed regions
328
+ are set off by hairlines instead of grey.
329
+ - The app follows the computer's light or dark setting until a theme is chosen, so a dark-mode
330
+ user no longer sees it switch to white after it loads.
331
+ - View titles say what the view shows instead of repeating the tab's name.
332
+ - The exported methods paragraph is written in sentences, without raw JSON or true/false values,
333
+ and exported figures have a white background.
334
+ - The baseline's dot plot is one tab stop: the arrow keys go from prompt to prompt and read the
335
+ chosen prompt's values. Every progress bar has a name, and smooth scrolling respects reduced
336
+ motion.
337
+
338
+ ## 0.2.0 (2026-10-11)
339
+
340
+ Specs that state every choice, more metrics, circuits, five more tasks, statistics that hold across
341
+ many sites, a Python API and more commands, Gemma Scope 2 and transcoders, and integrated
342
+ gradients, all checked by patching.
343
+
344
+ ### Changed
345
+
346
+ - **Specs are version 2.** Every choice that can change a number must be stated: the model's
347
+ revision, dtype, device and weight processing, the dataset's hash and limit, tokenization, the
348
+ metric, the statistics (bootstrap, interval, seed, clustering) and the batch size, and every
349
+ field of an ablation's baseline and a sweep's positions. A version 1 spec still runs: where it
350
+ leaves a choice out, it takes version 1's value, the run's first warning lists each one, and
351
+ `logogram validate` shows the list without running.
352
+ - Spec paths must lie inside the project, and an SAE's revision must be a commit, tag or branch.
353
+ - Seeds must be whole numbers from 0 to 2³² − 1; a negative or huge seed used to crash a run.
354
+ - Sign flips count prompts whose preference for the answer, log P(answer) − log P(distractor),
355
+ changes sign (for single tokens that is the logit difference, as before).
356
+ - Attribution patching no longer reports patched logit differences, probabilities and sign flips
357
+ computed from first-order estimates; like direct logit attribution, it leaves them empty.
358
+ - The count of prompts with an effect of the opposite sign ignores rounding noise, so a site with
359
+ no effect no longer reads as half opposite.
360
+ - Steering compares each strength with its random control prompt by prompt, from the same
361
+ resamples, and doing significantly *less* than the control no longer counts as beating it.
362
+
363
+ ### Added
364
+
365
+ - **Metrics:** the log-probability difference, the answer's log-probability, its probability,
366
+ the probability difference and the KL divergence from the clean or corrupt prompt's next-token
367
+ distribution, beside the logit difference. Every run also keeps each prompt's answer
368
+ probability and preference.
369
+ - **Answer sets and continuations:** an answer or distractor can be a list of single tokens, read
370
+ as one answer (every later year in greater-than), or text of several tokens, read token by
371
+ token. Patching at every position covers the continuation too.
372
+ - **Sets of sites:** intervene on several sites at once, or on everything except a set ("keep
373
+ the circuit, replace the rest"), and read each set's faithfulness (how much of the behavior the
374
+ kept sites carry alone), the share of removing a set (how complete a circuit is), the
375
+ faithfulness each site adds (minimality) and the interaction of two sites, all with intervals.
376
+ - **Tasks:** seeded datasets for greater-than, docstring, gendered pronouns, subject–verb
377
+ agreement and capital cities, beside IOI, each with templates of one token length, named
378
+ positions and the metric that reads them, from the app, `logogram generate` or Python.
379
+ - **Integrated gradients** for attribution patching (as in EAP-IG): the gradient is averaged over
380
+ steps between the two prompts' embeddings, which corrects much of what one gradient misses.
381
+ Its estimates are verified by patching like any others.
382
+ - **Statistics across many sites:** simultaneous bands that hold for every site of a sweep at
383
+ once, Benjamini–Hochberg q-values, a bootstrap that resamples clusters of prompts (such as
384
+ templates, with a warning when there are too few), and paired differences between two runs on
385
+ the same prompts.
386
+ - **The every-feature sweep can choose its strongest features on a seeded share of the prompts
387
+ and report them on the rest**, so their effects aren't biased by the choice.
388
+ - **Gemma Scope 2** SAEs and transcoders (`config.json` and `params.safetensors`), EleutherAI
389
+ transcoders, and SAEs on attention heads' outputs. Transcoder features are read from an MLP's
390
+ input and patched in its output.
391
+ - **A Python API for notebooks:** `logogram.run`, `load_run`, `list_runs`, `compare_runs`,
392
+ `verify_run`, `check_robustness`, `generate` and `write_dataset`, with tables as pandas or
393
+ Arrow and runs that show their heatmap in a notebook. Importing `logogram` loads no PyTorch.
394
+ - **Commands:** `list`, `show`, `compare`, `diff`, `verify`, `robustness`, `export`, `validate`,
395
+ `tasks` and `generate`.
396
+ - **In the app,** every new choice is in the experiment form, which says before a run what the
397
+ prompts and the method allow; staged sites can be tested as a circuit, two sites checked for
398
+ their interaction, and a run's strongest sites tested as nested circuits, with a chart of
399
+ faithfulness against circuit size; results show simultaneous bands, q-values, clusters and
400
+ paired comparisons; and **Prompts → Generate a task** writes any task's dataset and offers the
401
+ metric that reads it.
402
+ - **The web app** contains errors to the part of the page that failed, with a way to reload it
403
+ and copy the details; undoes and redoes changes to the experiment form (Ctrl/⌘ Z), says when an
404
+ action replaces the form and offers to undo it, and keeps an unsaved form for each project; asks
405
+ before cancelling a run; and lists every shortcut on **?**. Radio groups take one tab stop and
406
+ arrow keys, form fields have visible edges in both themes, and the status line announces a
407
+ run's milestones rather than every tick.
408
+
409
+ ### Fixed
410
+
411
+ - **Path patching with head receivers and the logits receiver measured only the logits path.**
412
+ The logits receiver now adds its change to what the head receivers changed, so the two together
413
+ measure both paths (checked against each alone).
414
+ - A metric or gap that isn't a finite number, as a 16-bit overflow gives, stops the run with the
415
+ reason instead of finishing with empty effects; patched values that aren't finite are reported.
416
+ - A failed run's saved error no longer contains this machine's paths (the home folder, the
417
+ Hugging Face cache or the project folder).
418
+ - Running out of memory during a run says to lower `execution.batch_size`, and frees the memory.
419
+ - Memory: gradient methods no longer keep what weight gradients would need; attribution patching
420
+ computes each layer's terms once per batch instead of once per site; on a GPU, a layer's
421
+ captured activations move to CPU memory when they would take more than a quarter of what is
422
+ free; an SAE's fit is measured a chunk of tokens at a time; and the memory estimate counts what
423
+ gradient methods and path patching hold.
424
+ - A deeply nested or very large file in a shared project no longer stops the project or its
425
+ history from opening; it shows up as an error on that run or dataset.
426
+ - The server checks which project a tab shows on the SAE routes too, a tab whose session has
427
+ expired stops reconnecting, unloading a model waits for work in progress, and cancelling a run
428
+ no longer waits behind queued analyses.
429
+ - The token strip shows a run's own prompts again when you return to its results, instead of
430
+ the experiment form's.
431
+ - Heatmaps and the model map draw hover and selection on a layer of their own, and find cells
432
+ through a map, so large sweeps no longer redraw everything on every mouse move.
433
+ - Every view has one top-level heading, with the headings below it in order, and the inspector's
434
+ resize handle belongs to the inspector, so screen reader users can move through each page by
435
+ its headings and landmarks.
436
+ - Pydantic before 2.10 no longer warns about a field named `model_id` when Logogram starts.
437
+ - Text on data colors (heatmap values, the model map's labels and a feature's token highlights)
438
+ is black or white, whichever contrasts more; some mid-tone cells in the black theme had light
439
+ text below the 4.5:1 that small text needs.
440
+
441
+ ### Development
442
+
443
+ - **A weekly check against published results:** the Golden workflow runs every method on GPT-2
444
+ small's real weights and checks the bundled example against its indirect-object circuit (Wang
445
+ et al. 2022): the name movers, S-inhibition and induction heads restore the answer, the negative
446
+ name movers work against it, and the name movers write the answer most directly.
447
+ - CI type-checks the package with pyright, lints with ruff's security, async and blind-except
448
+ rules too, checks the lockfile, keeps coverage at 85% or more, tests at the lowest declared
449
+ dependency versions, audits Python and web dependencies, and pins its actions to commits;
450
+ Dependabot and CodeQL watch them. Typer 0.13 or later is required.
451
+ - The browser checks also run in the dark theme, and an axe scan of every view fails on any
452
+ accessibility violation. The inspector's resize handle now says its width to assistive
453
+ technology, and commands wider than their box can be scrolled from the keyboard.
454
+ - The privacy check also reads binary files and catches more home paths and short usernames.
455
+ - What 0.2 added was checked on GPT-2 small's real weights (see Models in the README).
456
+
457
+ ## 0.1.2 (2026-10-08)
458
+
459
+ Fixes and checks that came out of validating every method on real weights.
460
+
461
+ ### Changed
462
+
463
+ - On Apple Silicon, **Automatic** runs models on the CPU. TransformerLens reports that Apple's MPS
464
+ can give silently wrong results, and Logogram hasn't been checked on it yet, so MPS runs only when
465
+ you choose it; the system check and the model dialog say why.
466
+
467
+ ### Added
468
+
469
+ - **Check robustness** reruns a float16 or bfloat16 run in float32 and compares the two.
470
+ - When processing a model's weights is what doesn't fit, the model dialog offers to turn it off.
471
+ - When a generated IOI dataset has names the loaded model splits into several tokens, one click
472
+ makes a new one with names it doesn't.
473
+ - Steering results say when the direction does no more than its random control at any site and
474
+ strength.
475
+ - Attribution patching of residual stream sites warns that it can miss effects there, and that
476
+ **Check robustness** patches every site.
477
+ - `scripts/validate_real_weights.py` runs every method on a real model and checks identities,
478
+ agreement and bit-identical reruns, on one device or two. It is how a release, or Apple's MPS, is
479
+ checked.
480
+
481
+ ### Fixed
482
+
483
+ - The baseline says that the clean prompts prefer the distractor, instead of preferring the answer
484
+ by a negative amount.
485
+
486
+ ### Development
487
+
488
+ - Tests run on Python 3.14 too, and the Linux runners are pinned to Ubuntu 24.04.
489
+ - The test client uses httpx2, as Starlette recommends.
490
+
491
+ ## 0.1.1 (2026-10-08)
492
+
493
+ Every method has now run end to end on real weights: GPT-2 small with a SAELens and an OpenAI
494
+ SAE, Pythia-70m with an EleutherAI SAE, and Qwen 2.5 0.5B. This release fixes what that turned up.
495
+
496
+ ### Fixed
497
+
498
+ - Runs work on Apple Silicon. Every method converted tensors to float64 on the model's device,
499
+ which Apple's Metal (MPS) doesn't have, so no run got past its baseline on a Mac. This still
500
+ needs a check on a Mac.
501
+ - A model whose own forward pass overflows in the chosen dtype (Pythia in float16) is refused, with
502
+ the dtype to use. Its load checks used to read as passed.
503
+ - When processing a model's weights doesn't fit in memory, loading says so and frees the memory,
504
+ instead of failing with a raw CUDA error and keeping it.
505
+ - The memory estimate counts weight processing, which needs three to four times the float32 size
506
+ of the weights while the model loads. Qwen 2.5 0.5B on a 6 GB GPU now reads "won't fit" with
507
+ processing and "fits" without it.
508
+ - Models without a beginning-of-sequence token, such as Qwen, run without one, as documented.
509
+ TransformerLens 4 had given them its end-of-text token instead.
510
+ - Models and SAEs that Logogram downloaded open offline without a revision, and offline memory
511
+ estimates use the model's real size.
512
+ - `logogram run` reports an identical rerun of direct logit attribution or attribution patching as
513
+ identical.
514
+ - Direct logit attribution in float16 and bfloat16 no longer warns about drift that is only
515
+ rounding.
516
+
517
+ ### Added
518
+
519
+ - Runs warn when the model prefers the distractor on the clean prompts, so it doesn't show the
520
+ behavior they test (Pythia-70m on IOI).
521
+ - The model dialog shows the memory that weight processing needs. Qwen 2.5 0.5B is marked as
522
+ tested.
523
+ - Project links on PyPI, and this changelog, which the update notice links to.
524
+
525
+ ### Documentation
526
+
527
+ - What has been validated with real weights, and where attribution patching is least reliable:
528
+ residual stream sites at the token that differs between the prompts.
529
+ - Steering needs prompt pairs that differ the same way; IOI prompts that mix the ABBA and BABA
530
+ orders cancel out.
531
+ - What float16 and bfloat16 do to results, and how weight processing changes heads' direct effects.
532
+
533
+ ## 0.1.0 (2026-10-08)
534
+
535
+ First public release.
536
+
537
+ - Activation patching, ablation (zero, mean or resample), direct logit attribution, attribution
538
+ patching verified by patching, steering with a random control, path patching, and SAE features,
539
+ all described by one spec that the app and `logogram run` execute the same way.
540
+ - Every model is checked when it loads: that TransformerLens reproduces its predictions, how its
541
+ layers add into the residual stream, and whether the logit lens reproduces its output.
542
+ - Per-prompt values with seeded bootstrap intervals, and bit-identical reruns on the same machine.
543
+ - The workbench: Explore, Experiment and Evidence, logograms written by results, robustness checks
544
+ and run comparisons.
545
+ - Local-first: no account and no telemetry, safetensors weights only, and an update check that
546
+ runs only when you allow it.