Skip to content

Commit aa8c0eb

Browse files
author
semantic-release
committed
chore(release): 0.20.4
1 parent 43a2539 commit aa8c0eb

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
# CHANGELOG
22

33

4+
## v0.20.4 (2026-03-09)
5+
6+
### Bug Fixes
7+
8+
- **postprocess**: Backward-only flood in conditional branch detection + THEN labeling
9+
([#88](https://github.com/johnmarktaylor91/torchlens/pull/88),
10+
[`d737828`](https://github.com/johnmarktaylor91/torchlens/commit/d7378281a4be5e56602902cd4cf1aa555b391d44))
11+
12+
Bug #88: _mark_conditional_branches flooded bidirectionally (parents + children), causing
13+
non-conditional nodes' children to be falsely marked as in_cond_branch. Fix restricts flooding to
14+
parent_layers only.
15+
16+
Additionally adds THEN branch detection via AST analysis when save_source_context=True, with IF/THEN
17+
edge labels in visualization. Includes 8 new test models, 22 new tests, and fixes missing
18+
'verbose' in MODEL_LOG_FIELD_ORDER.
19+
20+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21+
22+
- **vis**: Use Worker thread for ELK layout to fix stack overflow on large graphs
23+
([`3fe6a84`](https://github.com/johnmarktaylor91/torchlens/commit/3fe6a84c3d9d8a5856dfadcf451ef85700a2385c))
24+
25+
V8's --stack-size flag silently caps at values well below what's requested, causing "Maximum call
26+
stack size exceeded" on 1M+ node graphs. Switch to Node.js Worker threads with
27+
resourceLimits.stackSizeMb, which reliably delivers the requested stack size at the V8 isolate
28+
level.
29+
30+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31+
32+
433
## v0.20.3 (2026-03-08)
534

635
### Bug Fixes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "torchlens"
7-
version = "0.20.3"
7+
version = "0.20.4"
88
description = "A package for extracting activations from PyTorch models"
99
readme = "README.md"
1010
license = "GPL-3.0-only"

torchlens/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
first imported. See the bottom of this file for details.
1010
"""
1111

12-
__version__ = "0.20.3"
12+
__version__ = "0.20.4"
1313

1414
# ---- Public API: user-facing entry points --------------------------------
1515

0 commit comments

Comments
 (0)