Skip to content

Commit abb5311

Browse files
bump: version 2.0.0b31 → 2.0.0b32
1 parent 0fa5b0c commit abb5311

5 files changed

Lines changed: 39 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## v2.0.0b32 (2026-04-17)
2+
3+
4+
- Merge pull request #217 from OpenMOSS/dev
5+
- Release: refactor TransformerLensLanguageModel to be inherited from HookedTransformer
6+
- fix(backend): cast encoding['input_ids'] to Tensor for basedpyright
7+
- fix(server): basedpyright/ruff errors from backend refactor
8+
- - Add TokenizerOnlyLanguageModel to __all__ so ruff sees the export.
9+
- Assert tokenizer is not None before chat-template paths in circuit
10+
preview + generate (model.tokenizer is Optional on the new API).
11+
- Cast apply_chat_template result to str (tokenize=False is known by
12+
us but not inferable from the overload union).
13+
- fix(server): offload sync @distributed calls to thread in host-execution mode
14+
- Under num_workers=0, the @distributed wrapper ran the target function
15+
synchronously on the asyncio event loop. Long-running torch work (circuit
16+
attribution, model forwards) blocked the loop, so parallel frontend
17+
requests (progress polling, sub-resource loads) hung until the heavy call
18+
finished. Route sync functions through asyncio.to_thread so the loop
19+
stays responsive; async functions are awaited directly.
20+
- refactor(backend): TransformerLensLanguageModel via multiple inheritance
21+
- Switch from composition (`self.model = HookedTransformer(...)`) to
22+
multiple inheritance (`class TransformerLensLanguageModel(HookedTransformer,
23+
LanguageModel)`), exposing the full TL API directly without per-method proxies.
24+
- - Rename our `self.cfg``self.lm_cfg` to avoid clashing with
25+
HookedTransformerConfig.
26+
- Drop `use_flash_attn`, `load_ckpt`, `tokenizer_only` config fields.
27+
- Replace the `tokenizer_only=True` flag with a dedicated
28+
`TokenizerOnlyLanguageModel` backend (`backend="tokenizer_only"`).
29+
- Add `from_hooked_transformer` classmethod to upgrade bare HookedTransformer
30+
instances via zero-copy __class__ swap.
31+
- Update all call sites (`model.model.blocks``model.blocks`, etc.) across
32+
circuits, initializer, analysis, server, and CLI.
33+
134
## v2.0.0b31 (2026-04-17)
235

336

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
Use [pip](https://pypi.org/project/pip/) to install Language-Model-SAEs:
3636

3737
```bash
38-
pip install lm-saes==2.0.0b31
38+
pip install lm-saes==2.0.0b32
3939
```
4040

4141
We also highly recommend using [uv](https://docs.astral.sh/uv/) to manage your own project dependencies. You can use
4242

4343
```bash
44-
uv add lm-saes==2.0.0b31
44+
uv add lm-saes==2.0.0b32
4545
```
4646

4747
to add Language-Model-SAEs as your project dependency.

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This library provides:
2424
To add our library as a project dependency, run:
2525

2626
```bash
27-
uv add lm-saes==2.0.0b31
27+
uv add lm-saes==2.0.0b32
2828
```
2929

3030
We also support [Ascend NPU](https://github.com/Ascend/pytorch) as an accelerator backend. To add our library as a project dependency with NPU dependency constraints, run:
@@ -38,7 +38,7 @@ This library provides:
3838
Of course, you can also directly use [pip](https://pypi.org/project/pip/) to install our library. To install our library with pip, run:
3939

4040
```bash
41-
pip install lm-saes==2.0.0b31
41+
pip install lm-saes==2.0.0b32
4242
```
4343

4444
We also support [Ascend NPU](https://github.com/Ascend/pytorch) as an accelerator backend. To install our library with NPU dependency constraints, run:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lm-saes"
3-
version = "2.0.0b31"
3+
version = "2.0.0b32"
44
description = "For OpenMOSS Mechanistic Interpretability Team's Sparse Autoencoder (SAE) research. Open-sourced and constantly updated."
55
dependencies = [
66
"transformer-lens>=2.16.2",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)