Skip to content

v0.20.4

Choose a tag to compare

@torchlens-release torchlens-release released this 09 Mar 01:03
· 45 commits to main since this release

v0.20.4 (2026-03-09)

This release is published under the GPL-3.0-only License.

Bug Fixes

  • postprocess: Backward-only flood in conditional branch detection + THEN labeling (#88, d737828)

Bug #88: _mark_conditional_branches flooded bidirectionally (parents + children), causing non-conditional nodes' children to be falsely marked as in_cond_branch. Fix restricts flooding to parent_layers only.

Additionally adds THEN branch detection via AST analysis when save_source_context=True, with IF/THEN edge labels in visualization. Includes 8 new test models, 22 new tests, and fixes missing 'verbose' in MODEL_LOG_FIELD_ORDER.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

  • vis: Use Worker thread for ELK layout to fix stack overflow on large graphs (3fe6a84)

V8's --stack-size flag silently caps at values well below what's requested, causing "Maximum call stack size exceeded" on 1M+ node graphs. Switch to Node.js Worker threads with resourceLimits.stackSizeMb, which reliably delivers the requested stack size at the V8 isolate level.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Detailed Changes: v0.20.3...v0.20.4