logogram 0.6.0__tar.gz → 0.7.1__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 (445) hide show
  1. {logogram-0.6.0 → logogram-0.7.1}/AGENTS.md +14 -4
  2. {logogram-0.6.0 → logogram-0.7.1}/CHANGELOG.md +261 -0
  3. {logogram-0.6.0 → logogram-0.7.1}/PKG-INFO +276 -64
  4. {logogram-0.6.0 → logogram-0.7.1}/README.md +275 -63
  5. {logogram-0.6.0 → logogram-0.7.1}/docs/README.md +16 -3
  6. {logogram-0.6.0 → logogram-0.7.1}/scripts/build_reference.py +88 -25
  7. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/__init__.py +20 -2
  8. logogram-0.7.1/src/logogram/acdc.py +527 -0
  9. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/analysis.py +21 -2
  10. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/api.py +977 -19
  11. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/backends/base.py +55 -11
  12. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/backends/hub.py +100 -10
  13. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/backends/saes.py +62 -0
  14. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/backends/transformer_lens.py +154 -34
  15. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/cli.py +1361 -33
  16. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/compare.py +51 -0
  17. logogram-0.7.1/src/logogram/corpora.py +426 -0
  18. logogram-0.7.1/src/logogram/corpus_import.py +688 -0
  19. logogram-0.7.1/src/logogram/das.py +375 -0
  20. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/datasets.py +145 -2
  21. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/direct.py +3 -3
  22. logogram-0.7.1/src/logogram/directions.py +715 -0
  23. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/edges.py +136 -72
  24. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/engine.py +366 -69
  25. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/factual-recall-gpt2/experiments/capital-causal-trace/spec.json +1 -1
  26. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/gendered-pronoun-gpt2/experiments/pronoun-direct-effects/spec.json +1 -1
  27. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/greater-than-gpt2/experiments/greater-than-layers/spec.json +1 -1
  28. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/ioi-gpt2/experiments/ioi-head-patching/spec.json +1 -1
  29. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/history.py +39 -12
  30. logogram-0.7.1/src/logogram/lenses.py +778 -0
  31. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/local_models.py +16 -9
  32. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/metrics.py +87 -5
  33. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/partial.py +2 -1
  34. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/paths.py +23 -12
  35. logogram-0.7.1/src/logogram/probes.py +376 -0
  36. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/project.py +316 -26
  37. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/report.py +286 -31
  38. logogram-0.7.1/src/logogram/representations.py +819 -0
  39. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/results.py +46 -12
  40. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/runner.py +110 -33
  41. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/sae.py +48 -6
  42. logogram-0.7.1/src/logogram/sae_training.py +927 -0
  43. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/schema.py +163 -3
  44. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/server/app.py +730 -19
  45. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/server/models.py +312 -5
  46. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/server/state.py +265 -22
  47. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/sites.py +7 -0
  48. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/spec.py +586 -33
  49. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/steering.py +110 -2
  50. logogram-0.7.1/src/logogram/top_activations.py +386 -0
  51. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/toys.py +1 -1
  52. logogram-0.7.1/src/logogram/training.py +329 -0
  53. logogram-0.7.1/src/logogram/web_dist/assets/index-BfLPatk-.js +60 -0
  54. logogram-0.7.1/src/logogram/web_dist/assets/index-DpkMdVq8.css +1 -0
  55. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/web_dist/index.html +2 -2
  56. {logogram-0.6.0 → logogram-0.7.1}/tests/browser_server.py +5 -0
  57. logogram-0.7.1/tests/test_acdc.py +489 -0
  58. {logogram-0.6.0 → logogram-0.7.1}/tests/test_api.py +96 -0
  59. {logogram-0.6.0 → logogram-0.7.1}/tests/test_community.py +3 -2
  60. logogram-0.7.1/tests/test_corpora.py +102 -0
  61. logogram-0.7.1/tests/test_corpus_cli.py +205 -0
  62. logogram-0.7.1/tests/test_corpus_import.py +277 -0
  63. logogram-0.7.1/tests/test_corpus_server.py +352 -0
  64. logogram-0.7.1/tests/test_dataset_files.py +217 -0
  65. logogram-0.7.1/tests/test_direction_methods.py +694 -0
  66. logogram-0.7.1/tests/test_directions.py +167 -0
  67. {logogram-0.6.0 → logogram-0.7.1}/tests/test_docs.py +16 -1
  68. {logogram-0.6.0 → logogram-0.7.1}/tests/test_edges.py +89 -13
  69. {logogram-0.6.0 → logogram-0.7.1}/tests/test_explorer.py +1 -0
  70. {logogram-0.6.0 → logogram-0.7.1}/tests/test_gpus.py +2 -2
  71. {logogram-0.6.0 → logogram-0.7.1}/tests/test_hardening.py +168 -0
  72. {logogram-0.6.0 → logogram-0.7.1}/tests/test_history.py +83 -0
  73. logogram-0.7.1/tests/test_lenses.py +210 -0
  74. {logogram-0.6.0 → logogram-0.7.1}/tests/test_metrics.py +14 -6
  75. {logogram-0.6.0 → logogram-0.7.1}/tests/test_paths.py +38 -12
  76. logogram-0.7.1/tests/test_projects.py +357 -0
  77. {logogram-0.6.0 → logogram-0.7.1}/tests/test_queue.py +26 -0
  78. logogram-0.7.1/tests/test_representations.py +446 -0
  79. {logogram-0.6.0 → logogram-0.7.1}/tests/test_sae_catalogue.py +2 -1
  80. logogram-0.7.1/tests/test_sae_training.py +316 -0
  81. {logogram-0.6.0 → logogram-0.7.1}/tests/test_server.py +90 -0
  82. {logogram-0.6.0 → logogram-0.7.1}/tests/test_specs.py +45 -6
  83. {logogram-0.6.0 → logogram-0.7.1}/tests/test_steering_features.py +5 -1
  84. {logogram-0.6.0 → logogram-0.7.1}/tests/test_toys.py +38 -0
  85. logogram-0.7.1/tests/test_training_cli.py +137 -0
  86. logogram-0.7.1/tests/test_training_server.py +168 -0
  87. {logogram-0.6.0 → logogram-0.7.1}/web/playwright.config.ts +4 -0
  88. {logogram-0.6.0 → logogram-0.7.1}/web/src/api/client.ts +125 -1
  89. {logogram-0.6.0 → logogram-0.7.1}/web/src/api/types.ts +581 -18
  90. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/CancelRunDialog.tsx +14 -6
  91. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/CommandPalette.tsx +7 -0
  92. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/FolderPicker.tsx +32 -17
  93. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/GuideDialog.tsx +18 -8
  94. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Header.tsx +32 -0
  95. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/History.tsx +60 -12
  96. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Inspector.tsx +89 -29
  97. logogram-0.7.1/web/src/components/ManageDialogs.tsx +314 -0
  98. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ModelDialog.tsx +29 -6
  99. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/RobustnessDialog.tsx +103 -8
  100. logogram-0.7.1/web/src/components/StartHere.module.css +89 -0
  101. logogram-0.7.1/web/src/components/StartHere.tsx +134 -0
  102. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/StatusLine.tsx +20 -1
  103. logogram-0.7.1/web/src/components/TrainDialog.module.css +150 -0
  104. logogram-0.7.1/web/src/components/TrainDialog.tsx +695 -0
  105. logogram-0.7.1/web/src/components/ViewTabs.tsx +141 -0
  106. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ui/index.tsx +20 -15
  107. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ui/ui.module.css +13 -0
  108. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/analysis.ts +4 -2
  109. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/buildSpec.ts +183 -23
  110. logogram-0.7.1/web/src/lib/corpora.ts +231 -0
  111. logogram-0.7.1/web/src/lib/directions.ts +56 -0
  112. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/edgePlan.ts +10 -6
  113. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/edges.ts +6 -2
  114. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/export.ts +8 -6
  115. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/formDraft.ts +93 -5
  116. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/formState.ts +84 -4
  117. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/format.ts +9 -0
  118. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/guide.ts +16 -3
  119. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/hooks.ts +3 -2
  120. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/keys.ts +1 -1
  121. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/metrics.ts +14 -1
  122. logogram-0.7.1/web/src/lib/representations.ts +137 -0
  123. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/runs.ts +9 -1
  124. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/spec.ts +156 -19
  125. logogram-0.7.1/web/src/lib/start.ts +160 -0
  126. logogram-0.7.1/web/src/lib/training.ts +328 -0
  127. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/walkthrough.ts +6 -2
  128. {logogram-0.6.0 → logogram-0.7.1}/web/src/screens/Projects.tsx +104 -13
  129. {logogram-0.6.0 → logogram-0.7.1}/web/src/screens/Screens.module.css +91 -21
  130. {logogram-0.6.0 → logogram-0.7.1}/web/src/screens/Welcome.tsx +39 -2
  131. {logogram-0.6.0 → logogram-0.7.1}/web/src/screens/Workbench.module.css +23 -2
  132. {logogram-0.6.0 → logogram-0.7.1}/web/src/screens/Workbench.tsx +16 -2
  133. {logogram-0.6.0 → logogram-0.7.1}/web/src/store/app.ts +120 -4
  134. {logogram-0.6.0 → logogram-0.7.1}/web/src/store/help.ts +5 -3
  135. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/CompareView.tsx +2 -2
  136. logogram-0.7.1/web/src/views/CorpusView.module.css +201 -0
  137. logogram-0.7.1/web/src/views/CorpusView.tsx +1108 -0
  138. logogram-0.7.1/web/src/views/DirectionPicker.tsx +60 -0
  139. logogram-0.7.1/web/src/views/DirectionResults.tsx +333 -0
  140. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/EdgeResults.tsx +100 -18
  141. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ExperimentView.tsx +276 -52
  142. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/FeaturesView.tsx +29 -16
  143. logogram-0.7.1/web/src/views/MetricSettings.tsx +267 -0
  144. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/PredictionsView.module.css +1 -0
  145. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/PredictionsView.tsx +41 -8
  146. logogram-0.7.1/web/src/views/ProbeSettings.tsx +129 -0
  147. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/PromptsView.tsx +26 -5
  148. logogram-0.7.1/web/src/views/RepresentationsView.module.css +220 -0
  149. logogram-0.7.1/web/src/views/RepresentationsView.tsx +1042 -0
  150. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ResultsView.module.css +7 -3
  151. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ResultsView.tsx +126 -19
  152. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/RunSummary.tsx +39 -2
  153. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SAEPicker.module.css +33 -0
  154. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SAEPicker.tsx +73 -1
  155. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/TextView.tsx +26 -2
  156. logogram-0.7.1/web/tests/acdc.browser.ts +94 -0
  157. logogram-0.7.1/web/tests/acdc.unit.ts +131 -0
  158. {logogram-0.6.0 → logogram-0.7.1}/web/tests/analyses.browser.ts +1 -1
  159. {logogram-0.6.0 → logogram-0.7.1}/web/tests/autosave.unit.ts +18 -2
  160. {logogram-0.6.0 → logogram-0.7.1}/web/tests/chat.browser.ts +62 -2
  161. {logogram-0.6.0 → logogram-0.7.1}/web/tests/context.unit.ts +1 -1
  162. logogram-0.7.1/web/tests/corpora.unit.ts +186 -0
  163. logogram-0.7.1/web/tests/corpus.browser.ts +173 -0
  164. logogram-0.7.1/web/tests/directions.browser.ts +144 -0
  165. logogram-0.7.1/web/tests/directions.unit.ts +158 -0
  166. {logogram-0.6.0 → logogram-0.7.1}/web/tests/edges.unit.ts +2 -2
  167. {logogram-0.6.0 → logogram-0.7.1}/web/tests/export.unit.ts +1 -1
  168. {logogram-0.6.0 → logogram-0.7.1}/web/tests/guide.browser.ts +92 -13
  169. logogram-0.7.1/web/tests/guide.unit.ts +257 -0
  170. logogram-0.7.1/web/tests/manage.browser.ts +188 -0
  171. logogram-0.7.1/web/tests/manage.unit.ts +150 -0
  172. {logogram-0.6.0 → logogram-0.7.1}/web/tests/navigation.browser.ts +32 -0
  173. {logogram-0.6.0 → logogram-0.7.1}/web/tests/queue.browser.ts +11 -1
  174. {logogram-0.6.0 → logogram-0.7.1}/web/tests/spec.unit.ts +15 -5
  175. {logogram-0.6.0 → logogram-0.7.1}/web/tests/sweeps.unit.ts +1 -1
  176. logogram-0.7.1/web/tests/training.browser.ts +102 -0
  177. logogram-0.7.1/web/tests/training.unit.ts +101 -0
  178. {logogram-0.6.0 → logogram-0.7.1}/web/tests/walkthrough.browser.ts +98 -4
  179. logogram-0.6.0/src/logogram/web_dist/assets/index-BRFdKaSa.js +0 -58
  180. logogram-0.6.0/src/logogram/web_dist/assets/index-DBtleL59.css +0 -1
  181. logogram-0.6.0/web/src/views/MetricSettings.tsx +0 -123
  182. logogram-0.6.0/web/tests/guide.unit.ts +0 -153
  183. {logogram-0.6.0 → logogram-0.7.1}/.gitignore +0 -0
  184. {logogram-0.6.0 → logogram-0.7.1}/LICENSE +0 -0
  185. {logogram-0.6.0 → logogram-0.7.1}/notebooks/README.md +0 -0
  186. {logogram-0.6.0 → logogram-0.7.1}/pyproject.toml +0 -0
  187. {logogram-0.6.0 → logogram-0.7.1}/scripts/check_privacy.py +0 -0
  188. {logogram-0.6.0 → logogram-0.7.1}/scripts/sae_catalogue.py +0 -0
  189. {logogram-0.6.0 → logogram-0.7.1}/scripts/smoke_wheel.py +0 -0
  190. {logogram-0.6.0 → logogram-0.7.1}/scripts/validate_real_weights.py +0 -0
  191. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/__main__.py +0 -0
  192. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/atp.py +0 -0
  193. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/backends/__init__.py +0 -0
  194. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/backends/catalogue.py +0 -0
  195. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/backends/sae_catalogue.json +0 -0
  196. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/chat.py +0 -0
  197. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/circuits.py +0 -0
  198. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/factual-recall-gpt2/.gitignore +0 -0
  199. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/factual-recall-gpt2/datasets/factual-recall.jsonl +0 -0
  200. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/factual-recall-gpt2/project.json +0 -0
  201. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/gendered-pronoun-gpt2/.gitignore +0 -0
  202. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/gendered-pronoun-gpt2/datasets/gendered-pronoun.jsonl +0 -0
  203. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/gendered-pronoun-gpt2/project.json +0 -0
  204. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/greater-than-gpt2/.gitignore +0 -0
  205. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/greater-than-gpt2/datasets/greater-than.jsonl +0 -0
  206. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/greater-than-gpt2/project.json +0 -0
  207. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/ioi-gpt2/.gitignore +0 -0
  208. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/ioi-gpt2/datasets/ioi.jsonl +0 -0
  209. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/examples/ioi-gpt2/project.json +0 -0
  210. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/exports.py +0 -0
  211. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/features.py +0 -0
  212. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/fileio.py +0 -0
  213. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/gallery.py +0 -0
  214. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/heads.py +0 -0
  215. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/inside.py +0 -0
  216. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/ioi.py +0 -0
  217. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/owner.py +0 -0
  218. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/prompts.py +0 -0
  219. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/research.py +0 -0
  220. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/robustness.py +0 -0
  221. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/runqueue.py +0 -0
  222. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/runs.py +0 -0
  223. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/server/__init__.py +0 -0
  224. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/server/security.py +0 -0
  225. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/stats.py +0 -0
  226. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/support.py +0 -0
  227. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/sweeps.py +0 -0
  228. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/system.py +0 -0
  229. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/tasks.py +0 -0
  230. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/updates.py +0 -0
  231. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/verify.py +0 -0
  232. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/web_dist/assets/instrument-sans-latin-ext-standard-normal-C5E2Gvlv.woff2 +0 -0
  233. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/web_dist/assets/instrument-sans-latin-standard-normal-BVScPF0l.woff2 +0 -0
  234. {logogram-0.6.0 → logogram-0.7.1}/src/logogram/web_dist/favicon.svg +0 -0
  235. {logogram-0.6.0 → logogram-0.7.1}/tests/catalogue_fixture.py +0 -0
  236. {logogram-0.6.0 → logogram-0.7.1}/tests/conftest.py +0 -0
  237. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/datasets/ioi.jsonl +0 -0
  238. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/datasets/snapshots/f5e2f2b1d68ac7ab59b1cefcd84f7f0cfc81c71c85c05c925f872e01c01d6e69.jsonl +0 -0
  239. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.1.0/manifest.json +0 -0
  240. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.1.0/results.parquet +0 -0
  241. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.1.0/spec.json +0 -0
  242. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.1.0/summary.json +0 -0
  243. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.2.0/manifest.json +0 -0
  244. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.2.0/results.parquet +0 -0
  245. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.2.0/spec.json +0 -0
  246. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/made-by-0.2.0/summary.json +0 -0
  247. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/experiments/written-for-0.1.0/spec.json +0 -0
  248. {logogram-0.6.0 → logogram-0.7.1}/tests/fixtures/old-runs/project.json +0 -0
  249. {logogram-0.6.0 → logogram-0.7.1}/tests/test_architectures.py +0 -0
  250. {logogram-0.6.0 → logogram-0.7.1}/tests/test_atp.py +0 -0
  251. {logogram-0.6.0 → logogram-0.7.1}/tests/test_attention_saes.py +0 -0
  252. {logogram-0.6.0 → logogram-0.7.1}/tests/test_chat_models.py +0 -0
  253. {logogram-0.6.0 → logogram-0.7.1}/tests/test_chat_templates.py +0 -0
  254. {logogram-0.6.0 → logogram-0.7.1}/tests/test_circuits.py +0 -0
  255. {logogram-0.6.0 → logogram-0.7.1}/tests/test_cli.py +0 -0
  256. {logogram-0.6.0 → logogram-0.7.1}/tests/test_devices.py +0 -0
  257. {logogram-0.6.0 → logogram-0.7.1}/tests/test_direct.py +0 -0
  258. {logogram-0.6.0 → logogram-0.7.1}/tests/test_engine.py +0 -0
  259. {logogram-0.6.0 → logogram-0.7.1}/tests/test_examples.py +0 -0
  260. {logogram-0.6.0 → logogram-0.7.1}/tests/test_feature_writes.py +0 -0
  261. {logogram-0.6.0 → logogram-0.7.1}/tests/test_finer_sites.py +0 -0
  262. {logogram-0.6.0 → logogram-0.7.1}/tests/test_heads.py +0 -0
  263. {logogram-0.6.0 → logogram-0.7.1}/tests/test_inside.py +0 -0
  264. {logogram-0.6.0 → logogram-0.7.1}/tests/test_loading.py +0 -0
  265. {logogram-0.6.0 → logogram-0.7.1}/tests/test_local_models.py +0 -0
  266. {logogram-0.6.0 → logogram-0.7.1}/tests/test_notebooks.py +0 -0
  267. {logogram-0.6.0 → logogram-0.7.1}/tests/test_old_runs.py +0 -0
  268. {logogram-0.6.0 → logogram-0.7.1}/tests/test_partial.py +0 -0
  269. {logogram-0.6.0 → logogram-0.7.1}/tests/test_privacy.py +0 -0
  270. {logogram-0.6.0 → logogram-0.7.1}/tests/test_reference.py +0 -0
  271. {logogram-0.6.0 → logogram-0.7.1}/tests/test_release_fixes.py +0 -0
  272. {logogram-0.6.0 → logogram-0.7.1}/tests/test_report.py +0 -0
  273. {logogram-0.6.0 → logogram-0.7.1}/tests/test_run_tracking.py +0 -0
  274. {logogram-0.6.0 → logogram-0.7.1}/tests/test_sae.py +0 -0
  275. {logogram-0.6.0 → logogram-0.7.1}/tests/test_sanity.py +0 -0
  276. {logogram-0.6.0 → logogram-0.7.1}/tests/test_saved_queue.py +0 -0
  277. {logogram-0.6.0 → logogram-0.7.1}/tests/test_security.py +0 -0
  278. {logogram-0.6.0 → logogram-0.7.1}/tests/test_skip_transcoders.py +0 -0
  279. {logogram-0.6.0 → logogram-0.7.1}/tests/test_statistics.py +0 -0
  280. {logogram-0.6.0 → logogram-0.7.1}/tests/test_steering.py +0 -0
  281. {logogram-0.6.0 → logogram-0.7.1}/tests/test_support.py +0 -0
  282. {logogram-0.6.0 → logogram-0.7.1}/tests/test_sweeps.py +0 -0
  283. {logogram-0.6.0 → logogram-0.7.1}/tests/test_tasks.py +0 -0
  284. {logogram-0.6.0 → logogram-0.7.1}/tests/test_transcoders.py +0 -0
  285. {logogram-0.6.0 → logogram-0.7.1}/tests/test_uneven.py +0 -0
  286. {logogram-0.6.0 → logogram-0.7.1}/tests/test_units.py +0 -0
  287. {logogram-0.6.0 → logogram-0.7.1}/tests/test_updates.py +0 -0
  288. {logogram-0.6.0 → logogram-0.7.1}/tests/test_validation_script.py +0 -0
  289. {logogram-0.6.0 → logogram-0.7.1}/uv.lock +0 -0
  290. {logogram-0.6.0 → logogram-0.7.1}/web/index.html +0 -0
  291. {logogram-0.6.0 → logogram-0.7.1}/web/package-lock.json +0 -0
  292. {logogram-0.6.0 → logogram-0.7.1}/web/package.json +0 -0
  293. {logogram-0.6.0 → logogram-0.7.1}/web/public/favicon.svg +0 -0
  294. {logogram-0.6.0 → logogram-0.7.1}/web/src/App.module.css +0 -0
  295. {logogram-0.6.0 → logogram-0.7.1}/web/src/App.tsx +0 -0
  296. {logogram-0.6.0 → logogram-0.7.1}/web/src/api/events.ts +0 -0
  297. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/AboutDialog.tsx +0 -0
  298. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/CircuitDialog.tsx +0 -0
  299. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/CommandPalette.module.css +0 -0
  300. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/CopyCommand.module.css +0 -0
  301. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/CopyCommand.tsx +0 -0
  302. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Distribution.module.css +0 -0
  303. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Distribution.tsx +0 -0
  304. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ErrorBoundary.module.css +0 -0
  305. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ErrorBoundary.tsx +0 -0
  306. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ExampleGallery.module.css +0 -0
  307. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ExampleGallery.tsx +0 -0
  308. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/FeatureWrites.module.css +0 -0
  309. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/FeatureWrites.tsx +0 -0
  310. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/FolderPicker.module.css +0 -0
  311. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/GuideDialog.module.css +0 -0
  312. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Header.module.css +0 -0
  313. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Heatmap/Heatmap.module.css +0 -0
  314. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Heatmap/Heatmap.tsx +0 -0
  315. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Heatmap/ScaleBar.tsx +0 -0
  316. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/HelpDialogs.module.css +0 -0
  317. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/HelpMenu.module.css +0 -0
  318. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/HelpMenu.tsx +0 -0
  319. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/History.module.css +0 -0
  320. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Inspector.module.css +0 -0
  321. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Logogram.tsx +0 -0
  322. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/LogogramDial.module.css +0 -0
  323. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/LogogramDial.tsx +0 -0
  324. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ModelDialog.module.css +0 -0
  325. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ModelMap/Legend.tsx +0 -0
  326. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ModelMap/ModelMap.module.css +0 -0
  327. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ModelMap/ModelMap.tsx +0 -0
  328. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Notices.module.css +0 -0
  329. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Notices.tsx +0 -0
  330. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ReportDialog.tsx +0 -0
  331. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/RunButton.tsx +0 -0
  332. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ShortcutsDialog.module.css +0 -0
  333. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ShortcutsDialog.tsx +0 -0
  334. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Splitter.module.css +0 -0
  335. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Splitter.tsx +0 -0
  336. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/StatusLine.module.css +0 -0
  337. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/SweepChart/SweepChart.module.css +0 -0
  338. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/SweepChart/SweepChart.tsx +0 -0
  339. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/SweepDialog.module.css +0 -0
  340. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/SweepDialog.tsx +0 -0
  341. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/TokenStrip.module.css +0 -0
  342. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/TokenStrip.tsx +0 -0
  343. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/TopBar.module.css +0 -0
  344. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/TopBar.tsx +0 -0
  345. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/UpdateNotice.module.css +0 -0
  346. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/UpdateNotice.tsx +0 -0
  347. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Walkthrough.module.css +0 -0
  348. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/Walkthrough.tsx +0 -0
  349. {logogram-0.6.0 → logogram-0.7.1}/web/src/components/ui/Icon.tsx +0 -0
  350. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/canvas.ts +0 -0
  351. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/chat.ts +0 -0
  352. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/circuits.ts +0 -0
  353. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/color.ts +0 -0
  354. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/devices.ts +0 -0
  355. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/environment.ts +0 -0
  356. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/formHistory.ts +0 -0
  357. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/heatmapNavigation.ts +0 -0
  358. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/help.ts +0 -0
  359. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/logogram.ts +0 -0
  360. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/milestones.ts +0 -0
  361. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/motion.ts +0 -0
  362. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/promptEdits.ts +0 -0
  363. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/promptRows.ts +0 -0
  364. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/route.ts +0 -0
  365. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/sites.ts +0 -0
  366. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/sweeps.ts +0 -0
  367. {logogram-0.6.0 → logogram-0.7.1}/web/src/lib/thresholds.ts +0 -0
  368. {logogram-0.6.0 → logogram-0.7.1}/web/src/main.tsx +0 -0
  369. {logogram-0.6.0 → logogram-0.7.1}/web/src/screens/SystemCheck.tsx +0 -0
  370. {logogram-0.6.0 → logogram-0.7.1}/web/src/styles/global.css +0 -0
  371. {logogram-0.6.0 → logogram-0.7.1}/web/src/styles/tokens.css +0 -0
  372. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/AttentionView.module.css +0 -0
  373. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/AttentionView.tsx +0 -0
  374. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/BaselineView.module.css +0 -0
  375. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/BaselineView.tsx +0 -0
  376. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ChatTemplateSettings.tsx +0 -0
  377. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/CircuitResults.tsx +0 -0
  378. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/CompareView.module.css +0 -0
  379. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/Continuations.module.css +0 -0
  380. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/Continuations.tsx +0 -0
  381. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/EdgeResults.module.css +0 -0
  382. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ExperimentView.module.css +0 -0
  383. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ExploreView.module.css +0 -0
  384. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ExploreView.tsx +0 -0
  385. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/FeaturesView.module.css +0 -0
  386. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/Forest.module.css +0 -0
  387. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/Forest.tsx +0 -0
  388. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/HeadComparisonView.module.css +0 -0
  389. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/HeadComparisonView.tsx +0 -0
  390. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/HeadKinds.module.css +0 -0
  391. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/HeadKinds.tsx +0 -0
  392. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/NeuronResults.module.css +0 -0
  393. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/NeuronResults.tsx +0 -0
  394. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/PromptsView.module.css +0 -0
  395. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ResearchView.module.css +0 -0
  396. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/ResearchView.tsx +0 -0
  397. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SiteSets.module.css +0 -0
  398. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SiteSetsEditor.tsx +0 -0
  399. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SpecView.module.css +0 -0
  400. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SpecView.tsx +0 -0
  401. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/StatisticsSettings.tsx +0 -0
  402. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SweepView.module.css +0 -0
  403. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/SweepView.tsx +0 -0
  404. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/TaskGenerator.tsx +0 -0
  405. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/TextView.module.css +0 -0
  406. {logogram-0.6.0 → logogram-0.7.1}/web/src/views/views.module.css +0 -0
  407. {logogram-0.6.0 → logogram-0.7.1}/web/tests/a11y.browser.ts +0 -0
  408. {logogram-0.6.0 → logogram-0.7.1}/web/tests/axe.ts +0 -0
  409. {logogram-0.6.0 → logogram-0.7.1}/web/tests/chat.unit.ts +0 -0
  410. {logogram-0.6.0 → logogram-0.7.1}/web/tests/circuits.unit.ts +0 -0
  411. {logogram-0.6.0 → logogram-0.7.1}/web/tests/color.unit.ts +0 -0
  412. {logogram-0.6.0 → logogram-0.7.1}/web/tests/devices.unit.ts +0 -0
  413. {logogram-0.6.0 → logogram-0.7.1}/web/tests/docs.ts +0 -0
  414. {logogram-0.6.0 → logogram-0.7.1}/web/tests/edges.browser.ts +0 -0
  415. {logogram-0.6.0 → logogram-0.7.1}/web/tests/environment.unit.ts +0 -0
  416. {logogram-0.6.0 → logogram-0.7.1}/web/tests/fakeRuns.ts +0 -0
  417. {logogram-0.6.0 → logogram-0.7.1}/web/tests/finer.browser.ts +0 -0
  418. {logogram-0.6.0 → logogram-0.7.1}/web/tests/finer.unit.ts +0 -0
  419. {logogram-0.6.0 → logogram-0.7.1}/web/tests/form.unit.ts +0 -0
  420. {logogram-0.6.0 → logogram-0.7.1}/web/tests/gallery.browser.ts +0 -0
  421. {logogram-0.6.0 → logogram-0.7.1}/web/tests/heads.browser.ts +0 -0
  422. {logogram-0.6.0 → logogram-0.7.1}/web/tests/heatmap.unit.ts +0 -0
  423. {logogram-0.6.0 → logogram-0.7.1}/web/tests/help.browser.ts +0 -0
  424. {logogram-0.6.0 → logogram-0.7.1}/web/tests/help.unit.ts +0 -0
  425. {logogram-0.6.0 → logogram-0.7.1}/web/tests/history.browser.ts +0 -0
  426. {logogram-0.6.0 → logogram-0.7.1}/web/tests/history.unit.ts +0 -0
  427. {logogram-0.6.0 → logogram-0.7.1}/web/tests/logogram.unit.ts +0 -0
  428. {logogram-0.6.0 → logogram-0.7.1}/web/tests/notices.unit.ts +0 -0
  429. {logogram-0.6.0 → logogram-0.7.1}/web/tests/partial.browser.ts +0 -0
  430. {logogram-0.6.0 → logogram-0.7.1}/web/tests/prompts.browser.ts +0 -0
  431. {logogram-0.6.0 → logogram-0.7.1}/web/tests/prompts.unit.ts +0 -0
  432. {logogram-0.6.0 → logogram-0.7.1}/web/tests/queue.unit.ts +0 -0
  433. {logogram-0.6.0 → logogram-0.7.1}/web/tests/route.unit.ts +0 -0
  434. {logogram-0.6.0 → logogram-0.7.1}/web/tests/runs.browser.ts +0 -0
  435. {logogram-0.6.0 → logogram-0.7.1}/web/tests/saes.browser.ts +0 -0
  436. {logogram-0.6.0 → logogram-0.7.1}/web/tests/steering.browser.ts +0 -0
  437. {logogram-0.6.0 → logogram-0.7.1}/web/tests/sweep.browser.ts +0 -0
  438. {logogram-0.6.0 → logogram-0.7.1}/web/tests/tasks.unit.ts +0 -0
  439. {logogram-0.6.0 → logogram-0.7.1}/web/tests/text.browser.ts +0 -0
  440. {logogram-0.6.0 → logogram-0.7.1}/web/tests/tokens.browser.ts +0 -0
  441. {logogram-0.6.0 → logogram-0.7.1}/web/tests/uneven.browser.ts +0 -0
  442. {logogram-0.6.0 → logogram-0.7.1}/web/tests/ux.browser.ts +0 -0
  443. {logogram-0.6.0 → logogram-0.7.1}/web/tests/workbench.browser.ts +0 -0
  444. {logogram-0.6.0 → logogram-0.7.1}/web/tsconfig.json +0 -0
  445. {logogram-0.6.0 → logogram-0.7.1}/web/vite.config.ts +0 -0
@@ -36,9 +36,11 @@ traceability come before features.
36
36
  never add a code path that only one of them uses.
37
37
  * Every choice that can change a number lives in the spec and is shown in the UI: direction,
38
38
  baseline, site, position, metric, normalization, seeds, clustering, batch size, dtype, model
39
- revision. Nothing methodological is silently defaulted: a version 2 spec states every such
40
- field, and a new one is required (with the value that reproduces earlier behavior filled in
41
- for version 1 specs by `upgrade_v1`, listed when it was a choice). Ablation has no default
39
+ revision. Nothing methodological is silently defaulted: a spec of the current version
40
+ (`SPEC_VERSION` in `spec.py`) states every such field, and a new one is required. Specs of
41
+ earlier versions still run: each version's upgrade function (`upgrade_v1`, `upgrade_v2`,
42
+ `upgrade_v3`) fills in the fields the next version added, with the values that reproduce
43
+ earlier behavior (`upgrade_v1` lists those that were a choice). Ablation has no default
42
44
  baseline.
43
45
  * Specs use abstract sites (`resid_pre`, `resid_mid`, `resid_post`, `attn_out`, `mlp_out`,
44
46
  `head`). Library hook names appear only inside a backend (`src/logogram/backends/`).
@@ -95,7 +97,7 @@ traceability come before features.
95
97
 
96
98
  ```text
97
99
  src/logogram/
98
- spec.py experiment spec (pydantic); version 1 specs are upgraded here
100
+ spec.py experiment spec (pydantic); earlier versions' specs are upgraded here
99
101
  datasets.py, ioi.py JSONL datasets and the IOI generator
100
102
  tasks.py seeded datasets for the other tasks (greater-than, docstring, ...)
101
103
  prompts.py tokenization, alignment checks, length groups, seeded splits
@@ -112,6 +114,10 @@ src/logogram/
112
114
  edges.py edge attribution (EAP, EAP-IG), edge patching and the faithfulness curve
113
115
  features.py SAE features: patching and attribution patching
114
116
  sae.py SAE encode, decode and fit
117
+ sae_training.py TopK SAEs trained in the project from a training spec (saes/NAME)
118
+ lenses.py tuned lenses trained in the project from a training spec (lenses/NAME)
119
+ training.py what both share: a corpus's texts split and ordered by seed, folders
120
+ written whole or not at all
115
121
  stats.py bootstrap (over prompts or clusters), bands, q-values, paired differences
116
122
  results.py summary.json and results.parquet
117
123
  runs.py the per-prompt evidence behind one site's number
@@ -121,6 +127,10 @@ src/logogram/
121
127
  fileio.py atomic writes that never follow symlinks
122
128
  project.py project folders: where runs, datasets and drafts live, read safely
123
129
  research.py research notes and named selections
130
+ corpus_import.py corpora from files, Hugging Face datasets' files and a dataset's prompts
131
+ top_activations.py where a neuron, an SAE feature, a direction or a head is most active in a corpus
132
+ representations.py activations at a site over prompts or texts: principal components, mean
133
+ differences, directions saved from them, exported activations
124
134
  runner.py run a spec end to end (used by the app, the CLI and the Python API)
125
135
  partial.py what a run that stops early keeps of what finished, and what it leaves out
126
136
  owner.py which process runs a run, so a run going elsewhere isn't taken for interrupted
@@ -2,6 +2,267 @@
2
2
 
3
3
  What changed in each version of Logogram.
4
4
 
5
+ ## 0.7.1 (2026-10-14)
6
+
7
+ Start here, a first page in the guide for someone new to Logogram or to interpretability, and two
8
+ fixes: a path typed into the folder picker as it opened, and the first screens' top bar in a
9
+ narrow window.
10
+
11
+ ### Added
12
+
13
+ - **Start here.** The guide opens on a new first page for people new to Logogram or to
14
+ interpretability: one question asked with two prompts, what patching a head does and what its
15
+ effect means, with a figure of the three runs, the parts of a model the map shows, the first
16
+ hour with the IOI example, what that example finds and how it can mislead, and what to try next.
17
+ Its prompt and heads are the example's own, checked by a test. It is part of the app, so it
18
+ reads the same without a network. The first screens offer it under the tagline, as the first
19
+ thing the keyboard reaches, and **Learn the basics** in the command palette opens it from
20
+ anywhere. Its **Walk me through the example** stays after the walkthrough is finished or
21
+ skipped, and the walkthrough's last step points to it.
22
+
23
+ ### Fixed
24
+
25
+ - The folder picker could put the folder it opens in before a path typed into its box: when its
26
+ first listing arrived after the box's text was selected and before the path was typed or pasted
27
+ over it, the box held the listed folder's path with the typed one after it, and Go then said that
28
+ folder isn't one. A listing no longer changes the box once you have gone into it since the
29
+ listing was asked for. The picker's error is now announced as an alert. This was why the model
30
+ folder's browser check failed now and then on CI (#14).
31
+ - In a window 900 pixels wide or less, the first screens' top bar keeps its height, so its glyph
32
+ and name are no longer cut off when the page below it is longer than the window.
33
+
34
+ ### Development
35
+
36
+ - When the browser checks fail on CI, their results are uploaded: each failed check's error, a
37
+ screenshot and a trace of the page and its requests.
38
+
39
+ ## 0.7.0 (2026-10-13)
40
+
41
+ Methods that find directions in the model and test them: linear probes, distributed alignment
42
+ search, subspace patching, directional ablation, steering along a saved direction and readouts.
43
+ ACDC, and edges into shared keys and values. Corpora of plain text, where a unit is most active in
44
+ them, and principal components. SAEs and tuned lenses trained in the project. Projects, datasets
45
+ and runs renamed, deleted and rerun from the app.
46
+
47
+ ### Added
48
+
49
+ - **Spec version 4.** Versions 1 to 3 still load, and are upgraded as they load.
50
+ - **Directions saved in the project.** A direction, or a subspace of several, is two files in the
51
+ project's `directions/` folder: the vectors (safetensors, rows made orthonormal) and what they
52
+ are (the model and site they were found on, how, and the run they came from). A run pins each
53
+ direction it uses by the hash of its file and keeps a copy, and its manifest and methods
54
+ paragraph name them. `logogram directions` lists, renames, deletes and saves them.
55
+ - **Linear probes** (`"kind": "probe"`): a logistic regression at each site, trained on a seeded
56
+ split of the pairs to read which prompt of a pair it is, or a field of the prompts' `meta`, and
57
+ measured on the held-out pairs, with a probe on shuffled labels as a control and selectivity
58
+ with its interval. A probe's weights can be saved as a direction.
59
+ - **Distributed alignment search** (`"kind": "das"`): learns the subspace of a stated number of
60
+ dimensions whose patching carries a site's effect, on training pairs, and measures it on
61
+ held-out pairs beside the whole site and a random subspace of the same size. The learned
62
+ subspace can be saved as a direction.
63
+ - **Subspace patching** (`"kind": "subspace_patching"`): patch only the component of each site's
64
+ activation along a saved direction or within a saved subspace.
65
+ - **Two ablation baselines**: `scale` multiplies the activation by a factor, and `projection`
66
+ (directional ablation) removes its component along a saved direction or sets it to its mean.
67
+ - **Steering along a saved direction** (`"direction": {"kind": "direction", ...}`).
68
+ - **Readouts** (`"metric": {"kind": "readout", ...}`): patching and ablation can read a neuron's
69
+ activation, an activation's component along a saved direction or an SAE feature's activation
70
+ instead of the model's output, to ask what drives it.
71
+ - **ACDC** (`acdc`, with the `graph` scope): automated circuit discovery (Conmy et al. 2023) over
72
+ edge attribution's graph.
73
+ - The receiver prompt runs with every edge in the circuit. Then the candidate edges are removed
74
+ one at a time, in the reverse of the graph's order (from the logits back toward the
75
+ embeddings). A removed edge carries its sender's output on the source prompt.
76
+ - An edge stays removed when removing it moves the metric's mean by less than `threshold`, in
77
+ the metric's own units. `rule` says which change counts: the move toward the source prompt's
78
+ value (`toward_source`, the paper's) or its size either way (`either_way`). Neither has a
79
+ default.
80
+ - A run keeps every edge's change when it was tested and whether it was kept, the circuit, and
81
+ the circuit's faithfulness with a bootstrap interval. Tests check that the faithfulness is
82
+ the faithfulness curve's for the same edges, bit for bit. `edges.parquet` gains `kept` and
83
+ `step`.
84
+ - It costs a forward pass per edge and batch of prompts. Before a run, the app says how many
85
+ passes it takes and about how long, timed on the loaded model. A run that stops early keeps
86
+ nothing.
87
+ - The experiment form offers it as **Circuit discovery (ACDC)**. The results draw the circuit
88
+ and list every tested edge with whether it was kept, and the inspector says how an edge was
89
+ tested. **Check robustness** offers another threshold, the other rule, the opposite direction
90
+ and edge attribution over the same graph.
91
+ - `logogram run` and `logogram show` list the circuit, the report draws it, and `run.circuit()`
92
+ returns it.
93
+ - **Edges into shared keys and values.** Edge attribution, ACDC and path patching work on models
94
+ with grouped-query attention, as in Llama and Qwen. A key or value receiver is the key/value
95
+ head, read by every query head of its group.
96
+ - Results write it `L5 KV1 k`, and the app and the report draw it at the middle of its group.
97
+ - Tests on tiny Llama and Qwen 2 models check three things: every estimate is the slope of
98
+ patching its edge, one edge patched is path patching of that edge, and patching every edge
99
+ reproduces the source run.
100
+ - Models whose heads don't add up to their attention output (Gemma 2, OLMo 2) are still
101
+ refused.
102
+ - **Corpora**: plain texts in the project's `corpora/` folder, each with an optional label, for
103
+ the analyses that read text rather than prompt pairs. **Explore → Corpus**, `logogram corpora
104
+ import` and `lg.import_corpus` import them from a text, JSON Lines, JSON, CSV, TSV or Parquet
105
+ file (the text field and the label field named), from one file of a Hugging Face dataset
106
+ (downloaded once at the exact commit its revision resolves to, as a job with progress and
107
+ Cancel in the app; offline, from the cache), or from a dataset's clean or corrupt prompts,
108
+ labelled by side or by a field of their meta. A corpus records where its texts came from and
109
+ the hash of its file. The app pages and searches its texts, and renames and deletes it
110
+ (`logogram corpora rename`, `logogram corpora delete`).
111
+ - **Where a unit is most active** (**Explore → Corpus**, `lg.top_examples`): over a corpus's
112
+ texts, the tokens where an MLP neuron, a feature of the loaded SAE, a saved direction (its
113
+ projection, signed) or an attention head (the length of what it writes) is largest, each with a
114
+ window of context shaded on the ink ramp, the most negative ones for a signed unit, a histogram
115
+ of its values and the share of tokens where it is above zero. The beginning-of-sequence token is
116
+ read but never counted; ties go to the earlier text, then token; every choice comes back with
117
+ the answer. An example opens in **Your text**, read at its token.
118
+ - **Representations** (**Explore → Representations**, `lg.principal_components`,
119
+ `lg.mean_difference`): the activation at a site and token (the last, an index, a labelled
120
+ position or the mean over tokens) of each of a dataset's prompts or a corpus's texts, on its
121
+ principal components, centered and computed in float64, each signed so its largest loading is
122
+ positive. The app draws them on canvas, each class an ink shape, and saves a component or the
123
+ difference between two classes' means as a direction.
124
+ - **Directions in the app**: the Representations view lists the project's directions with what
125
+ made each, where and on which model, marks one found on another model than the one loaded, and
126
+ renames and deletes them (`logogram directions`, `lg.list_directions`, `lg.read_direction`,
127
+ `lg.save_direction`).
128
+ - **Exported activations**: `activations/NAME.safetensors` (one float32 tensor per site) with
129
+ `activations/NAME.json` saying what each row is and how it was read, from the Representations
130
+ view, `logogram activations` or `lg.export_activations`; `lg.activations` returns them as NumPy
131
+ arrays without writing anything.
132
+ - **SAEs trained in the project.** A TopK SAE (Gao et al. 2024) on one site of one layer
133
+ (`resid_pre`, `resid_post`, `attn_out` or `mlp_out`), trained on a corpus of the project.
134
+ - A training spec (`logogram_sae_training: 1`) states every choice that can change the weights,
135
+ with no default: the model, the corpus by name and hash, the tokenization, the site and layer,
136
+ k and the number of features, the steps and tokens per step, the learning rate, Adam's betas
137
+ and epsilon, the seed, the held-out share, the normalization (to a mean squared norm of the
138
+ width, its factor recorded and folded into the saved weights) and the optional AuxK loss.
139
+ - The same spec on the same machine gives the same weights, bit for bit: seeded generators,
140
+ fixed batches, float32 and deterministic algorithms throughout.
141
+ - The decoder's rows keep unit length (the gradient along each is projected out, and each is
142
+ made unit length again after every step), and the decoder's bias starts at the activations'
143
+ mean.
144
+ - It is saved as `saes/NAME` in SAELens's format, read back by the same reader as published
145
+ SAEs, with `training.json` (its spec, pinned) and `metrics.json`: the loss curve and, on
146
+ held-out texts, the variance explained, the features that fire per token, the share that
147
+ never fire, and the next-token loss recovered.
148
+ - A spec's `sae` gains `source` (`hub` or `project`) and `sha256`. An SAE trained in the project
149
+ is named by its folder and the hash of its files, which a run pins when it starts, and is
150
+ refused if they have changed. Version 3 specs read with `source` `hub`.
151
+ - In the app, **Features** lists the SAEs trained in the project and offers **Train an SAE…**.
152
+ The dialog shows every choice, then what training would take on this machine (texts, tokens,
153
+ memory, and time measured there) or why it can't train. It follows the training's progress
154
+ and loss curve, shows what was measured, and offers **Load this SAE**. A cancelled training
155
+ writes nothing.
156
+ - `logogram sae train` (a spec, or options that state every choice), `logogram sae list`,
157
+ `lg.train_sae` and `lg.load_sae(NAME, project=project, model=model)`.
158
+ - **Tuned lenses** (Belrose et al. 2023). An affine translator per layer, starting as the identity,
159
+ trained on a corpus of the project to minimize the KL divergence from the model's own
160
+ next-token distribution.
161
+ - A training spec (`logogram_lens_training: 1`) states every choice, with no default, and the
162
+ same spec on the same machine gives the same translators, bit for bit.
163
+ - It is saved as `lenses/NAME`: `lens.safetensors`, `training.json`, and `metrics.json` with the
164
+ loss curve and each layer's held-out KL divergence through the logit lens and through the
165
+ tuned lens.
166
+ - The layer predictions gain the method `tuned_lens` and `lens`, the lens's name and the hash
167
+ of its file, pinned when a run starts. Version 3 specs read with `lens` null. A lens trained
168
+ on another model, with TransformerLens's weight processing the other way, or of another
169
+ width is refused.
170
+ - **Layer predictions** chooses between the logit lens and a tuned lens, marks how each layer
171
+ was read, and offers **Train a tuned lens…**.
172
+ - `logogram lens train`, `logogram lens list` and `lg.train_lens`.
173
+ - **Documentation**: pages on training an SAE and on the tuned lens (what is computed, every
174
+ choice, where it can mislead), a guide to training an SAE and a tuned lens and using them, and
175
+ a reference of the training specs, generated from the code.
176
+ - **Managing projects.**
177
+ - Rename a project: its project.json says the new name, and its folder keeps its own
178
+ (**Rename project…** in the project menu, `logogram project rename NAME`,
179
+ `project.rename(name)`).
180
+ - Delete a project: its folder and everything in it, for good, once its name is typed
181
+ (**Delete project…** in the project menu and in a recent project's menu, `logogram project
182
+ delete`, `lg.delete_project`). Refused while a run is in progress in it or its queue is being
183
+ run, and when the folder holds anything Logogram doesn't make there (a repository, say),
184
+ listing what.
185
+ - Take a project out of the recent list; its folder is left as it is (**Remove from the list**
186
+ in the Projects screen, `logogram projects` and `logogram projects forget PATH`).
187
+ - `logogram new NAME [--parent DIR]` creates a project, as the app's Create project does.
188
+ - **Managing datasets.** Rename or delete a dataset file: in the dataset menu of the header and
189
+ in the Prompts view, or with `logogram datasets`, `logogram datasets rename NAME NEW`,
190
+ `logogram datasets delete NAME`, `lg.rename_dataset` and `lg.delete_dataset`. Runs that ran on
191
+ it keep their own copy of its prompts. Refused while a saved draft or a queued run names it,
192
+ naming them. Every tab showing the dataset follows it to its new name.
193
+ - **Rerun** in the app: a run's results and its menu in the history run its spec again, exactly
194
+ as it ran (a finished, failed or cancelled run; Edit and rerun stays for changing it first). When
195
+ the rerun finishes, a notice says whether every per-prompt value matches the original exactly,
196
+ as `logogram run` does, and a difference offers the comparison of the two runs
197
+ (`GET /api/runs/{id}/reproduction`).
198
+ - `lg.with_model(spec, model)`: the spec with its model replaced by a loaded model, as it was
199
+ loaded (its files, the exact revision, dtype, device and weight processing), to run the spec on
200
+ that model.
201
+
202
+ ### Changed
203
+
204
+ - The experiment form groups its methods by the question each answers: where is it computed, how
205
+ does it flow, what does a site represent, and what does adding a direction do. A new page,
206
+ [Choosing a method](docs/concepts/choosing-a-method.md), says what each measures, what it costs
207
+ and what it can't tell you.
208
+ - A workspace's views that don't fit beside the tabs go under a menu at the end of the row,
209
+ named **More**, or after the open view when it is one of them.
210
+ - A run's results put their actions (**Test the top sites as a circuit**, **Check robustness**,
211
+ **Rerun**, **Sweep…**, **Export**) in a row under the title, beside the run's glyph.
212
+ - The README and the documentation show the app: a sweep painting onto the model map, a run's
213
+ results, the method picker, an ACDC circuit, a probe and a principal components plot.
214
+
215
+ ### Fixed
216
+
217
+ - When edge attribution's batch didn't fit in memory, the batch size it suggested could still be
218
+ too large: it scaled the batch size in the spec, though a batch holds no more prompts than the
219
+ largest group of prompts of one length. It now names the batch that runs and scales that, and
220
+ says when not even one prompt fits.
221
+ - The folder picker's **Choose** chose the folder listed last, not the one in the box: a path
222
+ typed, or still being listed after Go, gave way to the folder the picker had shown before. It
223
+ now chooses the folder in the box, listing it first when it hasn't been.
224
+ - A run the queue started could end before the tabs heard it had started, and the queue then
225
+ read as waiting, with nothing left in it, instead of running.
226
+ - Loading a model on a device this machine doesn't have (CUDA without a GPU, say) unloaded the
227
+ model that was loaded before it said so. The device, the dtype and a local model's folder are
228
+ now checked first, and the loaded model stays. The model dialog keeps **Load** disabled while
229
+ the device chosen isn't there, and the message no longer says "the spec asks for" when no spec
230
+ is involved.
231
+ - `lg.run(spec, project, model=model)` loaded a second copy of the model, without a word, when
232
+ `model` wasn't the one the spec names (loaded on another GPU, say, or in bfloat16). It now
233
+ refuses, naming each difference (the files or revision, the dtype, the device as it resolves
234
+ here, weight processing), and says what to do: pass `lg.with_model(spec, model)`, or no model
235
+ to load the spec's own. `lg.verify_run`, `lg.check_robustness` and `lg.sweep` refuse a model
236
+ passed to them that their runs don't name, and a toy's experiments run on the toy as it was
237
+ loaded.
238
+ - An analysis in the app that ran out of memory (the baseline, attention, predictions, Your text,
239
+ an SAE's features, …) failed with "Internal Server Error". It now gives the memory back and
240
+ says what ran out (GPU memory, or memory) and what to do: fewer prompts, a smaller batch size
241
+ or a shorter text, or a smaller model or a 16-bit dtype.
242
+ - A project whose folder was missing when the recent projects were listed (on a drive that
243
+ wasn't connected, say) was dropped from the list for good. It now stays, marked *Folder not
244
+ found*, until it is removed from the list, and opening it says plainly that its folder isn't
245
+ there. Listing the recent projects no longer writes into them: it used to add their folders and
246
+ `.gitignore` when they were missing.
247
+ - Opening a project could fail after the project had been switched, with no tab told, when the
248
+ recent list couldn't be written (Logogram's settings folder read-only, say) or held entries
249
+ that aren't objects. The recent list never stops a project opening now, and entries it can't
250
+ read are left out.
251
+ - `logogram generate --overwrite` and `lg.write_dataset(..., overwrite=True)` replaced a dataset
252
+ that saved drafts and queued runs named, and they then failed with "has changed since this
253
+ spec was written". Replacing a dataset, from the app too, is now refused while a draft or a
254
+ queued run names it, naming them. Finished runs were never affected: each keeps its own copy
255
+ of the prompts it ran on.
256
+ - `logogram delete` and `lg.delete_run` deleted a draft waiting in the queue, which the app
257
+ refuses; the queue then failed when its turn came. Every front end now refuses it, saying to take
258
+ it out of the queue first, and `logogram delete` says so before asking.
259
+ - Taking one run out of the queue, in the history, happened at once and couldn't be undone, while
260
+ clearing the queue asked first. It now asks too, saying whether its spec is kept (a saved draft
261
+ stays in the history) or lost.
262
+ - A settings file holding `null`, a list or anything else that isn't an object stopped the app
263
+ from starting (an internal server error). It now reads as no settings, and settings are written
264
+ whole, through a temporary file, so an interrupted write never leaves half a file.
265
+
5
266
  ## 0.6.0 (2026-10-12)
6
267
 
7
268
  Interventions on single queries, keys, values and neurons, and on the edges between components,