Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: johnmarktaylor91/torchlens
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.20.5
Choose a base ref
...
head repository: johnmarktaylor91/torchlens
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.21.0
Choose a head ref
  • 7 commits
  • 56 files changed
  • 3 contributors

Commits on Mar 9, 2026

  1. docs: update all CLAUDE.md files with deepdive session 4 findings

    Sync all project and subpackage documentation with current codebase:
    - Updated line counts across all 36 modules
    - Added elk_layout.py documentation to visualization/
    - Added arg_positions.py and salient_args.py to capture/
    - Documented 13 new bugs (ELK-IF-THEN, BFLOAT16-TOL, etc.)
    - Updated test counts (1,004 tests across 16 files)
    - Added known bugs sections to validation/, utils/, decoration/
    - Updated data_classes/ with new fields and properties
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    johnmarktaylor91 and claude committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    b15c5bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    254337f View commit details
    Browse the repository at this point in the history
  3. fix(vis): pass heap limits to ELK Worker thread to prevent OOM on 1M …

    …nodes
    
    The Node.js Worker running ELK layout had no explicit maxOldGenerationSizeMb
    in its resourceLimits — only stackSizeMb was set. The --max-old-space-size
    flag controls the main thread's V8 isolate, not the Worker's. This caused
    the Worker to OOM at ~16GB on 1M-node graphs despite the main thread being
    configured for up to 64GB.
    
    - Add maxOldGenerationSizeMb and maxYoungGenerationSizeMb to Worker
      resourceLimits, passed via _TL_HEAP_MB env var
    - Add _available_memory_mb() to detect system RAM and cap heap allocation
      to (available - 4GB), preventing competition with Python process
    - Include available system memory in OOM diagnostic messages
    
    Also includes field/param renames from feat/grand-rename branch.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    johnmarktaylor91 and claude committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    23ef8d8 View commit details
    Browse the repository at this point in the history
  4. feat: rename all data structure fields and function args for clarity

    Rename ~68 fields across all 8 data structures (ModelLog, LayerPassLog,
    LayerLog, ParamLog, ModuleLog, BufferLog, ModulePassLog, FuncCallLocation)
    plus user-facing function arguments. Key changes:
    
    - tensor_contents → activation, grad_contents → gradient
    - All *_fsize* → *_memory* (e.g. tensor_fsize → tensor_memory)
    - func_applied_name → func_name, gradfunc → grad_fn_name
    - is_bottom_level_submodule_output → is_leaf_module_output
    - containing_module_origin → containing_module
    - spouse_layers → co_parent_layers, orig_ancestors → root_ancestors
    - model_is_recurrent → is_recurrent, elapsed_time_* → time_*
    - vis_opt → vis_mode, save_only → vis_save_only
    - Fix typo: output_descendents → output_descendants
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    johnmarktaylor91 and claude committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    f0d7452 View commit details
    Browse the repository at this point in the history
  5. fix(capture): fix mypy type errors in output_tensors field dict

    Annotate fields_dict as Dict[str, Any] and extract param_shapes
    with proper type to satisfy mypy strict inference.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    johnmarktaylor91 and claude committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    d54e9a9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6eeeee1 View commit details
    Browse the repository at this point in the history
  7. chore(release): 0.21.0

    semantic-release committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    bd8b348 View commit details
    Browse the repository at this point in the history
Loading