$ the-wire · showcase
TransformerLens 4.4.0 fixes MoE and hook bugs, SAELens patches bridge constructors
By RepoJournal · Filed · About Interpretability · Composed from the cited sources · methodology
TransformerLens shipped v4.4.0 with correctness fixes for Granite MoE execution on MPS, deterministic RNG seeding, and in-place edits to native normalization hooks, while SAELens landed a cluster of fixes to SAETransformerBridge.
v4.4.0 TransformerLensOrg/TransformerLens
The release stops Granite grouped expert execution from running incorrectly on MPS, forks the CUDA RNG explicitly so deterministic_rng actually seeds reproducibly, and honors in-place edits made through native normalization hooks. If you run Granite MoE or rely on native normalization hooks, this changes results you have already recorded.
fix: keep hooks working after an SAE is removed from SAETransformerBridge (#786) jbloomAus/SAELens
Hooks at a location no longer break once you remove an SAE there. Previously this hit run_with_saes, add_sae followed by reset_saes, and the with model.saes(...) context manager, raising KeyError: "Hook name 'blocks.7.hook_in' does not exist on this model." on transformer-lens 4.
fix: return SAETransformerBridge from boot_native and boot_tl_legacy jbloomAus/SAELens
boot_native and boot_tl_legacy now return an SAETransformerBridge instead of a plain TransformerBridge, so add_sae, run_with_saes and get_sae_hook_name exist on whatever those constructors hand you. Prior to this, an SAE path built through either constructor left you without the SAE methods entirely. The same fix landed as a commit.
fix: accept weight processing kwargs in SAETransformerBridge.boot_transformers jbloomAus/SAELens
SAETransformerBridge.boot_transformers now accepts HookedTransformer's weight processing options. The load pattern the SAE warning recommends, passing sae.cfg.metadata.model_from_pretrained_kwargs, used to fail on transformer-lens 4 with TypeError: boot() got an unexpected keyword argument.
Action items
- → Upgrade transformer-lens to 4.4.0 if you run Granite MoE on MPS, use deterministic_rng, or edit native normalization ... TransformerLensOrg/TransformerLens [plan]
- → Upgrade saelens once the bridge fixes land if you remove SAEs at runtime or load models via boot_native, boot_tl_lega... jbloomAus/SAELens [plan]