#4646th of 126 in Training and fine-tuning

saelens

Python library for training and analysing sparse autoencoders on language models

Stars
1.6k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 29 weeks+231
6 May 2026: 1,363 stars13 May 2026: 1,369 stars20 May 2026: 1,379 stars27 May 2026: 1,388 stars3 Jun 2026: 1,400 stars10 Jun 2026: 1,411 stars17 Jun 2026: 1,421 stars24 Jun 2026: 1,437 stars1 Jul 2026: 1,448 stars8 Jul 2026: 1,458 stars15 Jul 2026: 1,470 stars22 Jul 2026: 1,481 stars29 Jul 2026: 1,486 stars5 Aug 2026: 1,490 stars12 Aug 2026: 1,499 stars19 Aug 2026: 1,504 stars26 Aug 2026: 1,511 stars2 Sept 2026: 1,521 stars9 Sept 2026: 1,528 stars16 Sept 2026: 1,537 stars23 Sept 2026: 1,542 stars30 Sept 2026: 1,546 stars7 Oct 2026: 1,553 stars14 Oct 2026: 1,559 stars21 Oct 2026: 1,569 stars28 Oct 2026: 1,577 stars4 Nov 2026: 1,581 stars11 Nov 2026: 1,586 stars18 Nov 2026: 1,590 stars25 Nov 2026: 1,594 stars

1,363 on 6 May 20261,594 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

SAELens trains sparse autoencoders (SAEs) on model activations and loads pre-trained SAEs for mechanistic interpretability research. It integrates with TransformerLens through SAETransformerBridge and HookedSAETransformer. Any PyTorch model, including Hugging Face Transformers or NNsight, can use an SAE by passing extracted activations to encode() and decode().

Who it is for: Interpretability researchers training or analysing sparse autoencoders

Strengths

  • Works with any PyTorch model via encode() and decode(), not only TransformerLens
  • Downloads pre-trained SAEs for various models, with a published list
  • Colab tutorials cover loading, logit lens, training and synthetic-data benchmarks
  • Works with SAE-Vis dashboards and SAEBench benchmarks

Weaknesses

  • Research-oriented; no UI or serving layer for production use
  • v6 refactor changed training code structure, so older scripts need migration
  • Feature dashboards need the separate SAE-Vis library

What it needs

  • Needs PyTorch
  • Models: TransformerLens, Hugging Face Transformers, NNsight, any PyTorch model

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Training and fine-tuning

See all 126
Also in Training and fine-tuning
RankProjectScore
#44verl-omniRL post-training framework for diffusion and omni-modal models, built on verl1.6k starsApache-2.068 out of 100
#45nnunetSelf-configuring U-Net framework for biomedical image segmentation9.1k starsApache-2.067 out of 100
#47gymLibrary for evaluating and RL-training agents in verifiable environments1.4k starsApache-2.067 out of 100
#48pytorch/ignitePyTorch library for training and evaluating models with engines, events and metrics Live demo ↗ (opens in a new tab)4.8k starsBSD-3-Clause66 out of 100
#49gptqmodelPython toolkit for quantizing LLMs with GPTQ, AWQ, EXL3 and more1.3k starscustom license66 out of 100