Skip to content

Commit bd8b348

Browse files
author
semantic-release
committed
chore(release): 0.21.0
1 parent 6eeeee1 commit bd8b348

File tree

3 files changed

+63
-2
lines changed

3 files changed

+63
-2
lines changed

CHANGELOG.md

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

33

4+
## v0.21.0 (2026-03-09)
5+
6+
### Bug Fixes
7+
8+
- **capture**: Fix mypy type errors in output_tensors field dict
9+
([`d54e9a9`](https://github.com/johnmarktaylor91/torchlens/commit/d54e9a99df47442ddc396ca20666203cfbeb5f06))
10+
11+
Annotate fields_dict as Dict[str, Any] and extract param_shapes with proper type to satisfy mypy
12+
strict inference.
13+
14+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15+
16+
- **vis**: Pass heap limits to ELK Worker thread to prevent OOM on 1M nodes
17+
([`23ef8d8`](https://github.com/johnmarktaylor91/torchlens/commit/23ef8d8c175846fce1b48427a0c980a825486b9c))
18+
19+
The Node.js Worker running ELK layout had no explicit maxOldGenerationSizeMb in its resourceLimits —
20+
only stackSizeMb was set. The --max-old-space-size flag controls the main thread's V8 isolate, not
21+
the Worker's. This caused the Worker to OOM at ~16GB on 1M-node graphs despite the main thread
22+
being configured for up to 64GB.
23+
24+
- Add maxOldGenerationSizeMb and maxYoungGenerationSizeMb to Worker resourceLimits, passed via
25+
_TL_HEAP_MB env var - Add _available_memory_mb() to detect system RAM and cap heap allocation to
26+
(available - 4GB), preventing competition with Python process - Include available system memory in
27+
OOM diagnostic messages
28+
29+
Also includes field/param renames from feat/grand-rename branch.
30+
31+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32+
33+
### Documentation
34+
35+
- Update all CLAUDE.md files with deepdive session 4 findings
36+
([`b15c5bf`](https://github.com/johnmarktaylor91/torchlens/commit/b15c5bfa665011002a67cdcc7710f4737f1fc5d6))
37+
38+
Sync all project and subpackage documentation with current codebase: - Updated line counts across
39+
all 36 modules - Added elk_layout.py documentation to visualization/ - Added arg_positions.py and
40+
salient_args.py to capture/ - Documented 13 new bugs (ELK-IF-THEN, BFLOAT16-TOL, etc.) - Updated
41+
test counts (1,004 tests across 16 files) - Added known bugs sections to validation/, utils/,
42+
decoration/ - Updated data_classes/ with new fields and properties
43+
44+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
45+
46+
### Features
47+
48+
- Rename all data structure fields and function args for clarity
49+
([`f0d7452`](https://github.com/johnmarktaylor91/torchlens/commit/f0d7452e272bede7a874e1bda2dbce68dbb94697))
50+
51+
Rename ~68 fields across all 8 data structures (ModelLog, LayerPassLog, LayerLog, ParamLog,
52+
ModuleLog, BufferLog, ModulePassLog, FuncCallLocation) plus user-facing function arguments. Key
53+
changes:
54+
55+
- tensor_contents → activation, grad_contents → gradient - All *_fsize**_memory* (e.g.
56+
tensor_fsize → tensor_memory) - func_applied_name → func_name, gradfunc → grad_fn_name -
57+
is_bottom_level_submodule_output → is_leaf_module_output - containing_module_origin →
58+
containing_module - spouse_layers → co_parent_layers, orig_ancestors → root_ancestors -
59+
model_is_recurrent → is_recurrent, elapsed_time_* → time_* - vis_opt → vis_mode, save_only →
60+
vis_save_only - Fix typo: output_descendents → output_descendants
61+
62+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
63+
64+
465
## v0.20.5 (2026-03-09)
566

667
### 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.5"
7+
version = "0.21.0"
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.5"
12+
__version__ = "0.21.0"
1313

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

0 commit comments

Comments
 (0)