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