Sae-lens

Latest version: v5.6.1

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 22

5.6.1

Fix

* fix: Ensure activation scaling factor set before initializing b_dec when needed (440)

Co-authored-by: Keltin Grimes <kgrimessei.cmu.edu> ([`1145a62`](https://github.com/jbloomAus/SAELens/commit/1145a62ae94ceac4b0ff3f60485aa311b1f08991))

* fix: base k_aux on d_in instead of d_sae in topk aux loss (432)

* fix: base k_aux on d_in instead of d_sae in topk aux loss

* detaching error before aux loss and fixing tests

* changes from cr

* fixing tests ([`5325c06`](https://github.com/jbloomAus/SAELens/commit/5325c06309c543078e35f63e4e9fb5402811aec7))

5.6.0

Feature

* feat: Add support for dataset name in PretokenizeRunner (438)

Summary of updates:
- Added optional dataset name parameter
- Updated metadata to track dataset name and column name
- Added test for loading dataset with name argument and checking metadata
- Updated tests to use PretokenizeRunner instead of depricated pretokenizer_runner

Co-authored-by: Keltin Grimes <kgrimessei.cmu.edu> ([`1dc4ef6`](https://github.com/jbloomAus/SAELens/commit/1dc4ef655a0bc2e7e70c8f8682e86da99bb6b7cd))

Fix

* fix: fix bug with PretokenizeRunner with streaming=True (442)

* Fixed issue with PretokenizeRunner with streaming=True

* raise error if streaming with num_proc > 1

---------

Co-authored-by: David Chanin <chanindavgmail.com> ([`40a5924`](https://github.com/jbloomAus/SAELens/commit/40a59240f1999c716415d81fccc891170ef19d03))

5.5.2

Fix

* fix: Merge pull request 435 from jbloomAus/np_r1

fix: Pretrained YAML for ds r1 ([`871cdf0`](https://github.com/jbloomAus/SAELens/commit/871cdf0ec08d77bc6bd44f3e88119d291b200b5c))

* fix: deepseek ([`ddb1042`](https://github.com/jbloomAus/SAELens/commit/ddb10426e6260466cb16a05bfbf908e314c7ce0f))

5.5.1

Fix

* fix: Merge pull request 434 from jbloomAus/np_r1

fix: neuronpedia links for DS R1 ([`cd85f6d`](https://github.com/jbloomAus/SAELens/commit/cd85f6dd6b372c99b5f0c2b07d5778976f044c8f))

* fix: neuronpedia links for DS R1 ([`c335c91`](https://github.com/jbloomAus/SAELens/commit/c335c911bb3b88221b10f9e8848f19e6c054cb40))

5.5.0

Chore

* chore: skip failing test so CI passes ([`4f4a7b7`](https://github.com/jbloomAus/SAELens/commit/4f4a7b7265bae33a5e28adb9263d113b8b6c20dd))

* chore: fixing docs sae table for deepseek SAE (421)

* chore: fixing docs sae table for deepseek SAE

* Update sae_lens/toolkit/pretrained_sae_loaders.py

Co-authored-by: Anthony Duong <42191920+anthonyduong9users.noreply.github.com>

* adding test from CR

---------

Co-authored-by: Anthony Duong <42191920+anthonyduong9users.noreply.github.com> ([`8760f9e`](https://github.com/jbloomAus/SAELens/commit/8760f9e0fc3d57f57b279d03d98a9ff93fba9043))

Feature

* feat: Merge pull request 431 from Hzfinfdu/main

Supports llama scope r1 distill SAEs ([`cf754b3`](https://github.com/jbloomAus/SAELens/commit/cf754b3a52f8dbefd2e609041785f650c46a538d))

Fix

* fix: force build ([`be45fa3`](https://github.com/jbloomAus/SAELens/commit/be45fa374f99e47e3009483c93a117af3e00e14e))

* fix: force build ([`a8f38e1`](https://github.com/jbloomAus/SAELens/commit/a8f38e1243002c808d6ee5019565c31553b9a477))

Unknown

* add all sae paths and meta data to pretrained_saes.yaml ([`f099d15`](https://github.com/jbloomAus/SAELens/commit/f099d15dde3483687de263d145c3e44cbcbd47b8))

* add all sae paths and meta data to pretrained_saes.yaml ([`52f0133`](https://github.com/jbloomAus/SAELens/commit/52f01331afd9297adfc1a4420cbd9706a41ddf7b))

* fix format errors ([`f99bbbf`](https://github.com/jbloomAus/SAELens/commit/f99bbbf5244885b5cda73604f6f8348777224a51))

* add support of llamascope R1 distilled ([`131263d`](https://github.com/jbloomAus/SAELens/commit/131263dbff4dd898ac57c0977b46130c03f86779))

5.4.2

Chore

* chore: remove ToyModelSAERunnerConfig (424) ([`9af8bc0`](https://github.com/jbloomAus/SAELens/commit/9af8bc08818a02f34d89d77758f26f733cbd4c29))

* chore: Update config.py to remove duplicate of `train_batch_size_tokens: int = 4096` in line 162 and line 188 (411) ([`220471b`](https://github.com/jbloomAus/SAELens/commit/220471bce38e5c8b29489b9c7b11821bae011189))

Fix

* fix: properly parse CLI dict options as json (423)

* fix: properly parse CLI dict options as json

* Update config.py ([`a5ac0f0`](https://github.com/jbloomAus/SAELens/commit/a5ac0f0ea5fa9d5d1895956e5ba1358fdd65bc8a))

Page 1 of 22

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.