You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: CLAUDE.md
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,10 @@
2
2
3
3
## Project Overview
4
4
5
-
TorchLens is a Python package for extracting activations from PyTorch models. It provides functionality for extracting model activations, visualizing computational graphs, and extracting exhaustive metadata about models.
5
+
TorchLens is a Python package for extracting activations from PyTorch models. It permanently
6
+
wraps all PyTorch functions at import time with toggle-gated wrappers, runs forward passes
7
+
with the toggle enabled, and logs every operation into ModelLog/LayerLog/LayerPassLog objects.
8
+
~20,800 lines core code (36 modules across 7 subpackages), ~1,004 tests across 16 test files.
6
9
7
10
## Commit Convention
8
11
@@ -38,12 +41,31 @@ If there is no issue, omit the issue reference — but prefer having an issue fo
38
41
39
42
## Testing
40
43
41
-
- Run tests: `pytest tests/`
42
-
- Linting: `black --check .`
44
+
- Run all tests: `pytest tests/`
45
+
- Smoke tests (~6s): `pytest tests/ -m smoke`
46
+
- Skip slow tests: `pytest tests/ -m "not slow"`
47
+
- Linting: `ruff format` + `ruff check --fix`
43
48
44
49
## Project Structure
45
50
46
-
-`torchlens/` — main package source
47
-
-`tests/` — test suite
51
+
-`torchlens/` — main package source ([see subpackage docs](torchlens/CLAUDE.md))
52
+
-`tests/` — test suite ([see test docs](tests/CLAUDE.md))
53
+
-`scripts/` — development utilities ([see scripts docs](scripts/CLAUDE.md))
54
+
-`.github/` — CI/CD workflows ([see CI docs](.github/CLAUDE.md))
48
55
-`images/` — documentation images
49
-
-`local_jmt/` — local development scripts (not packaged)
0 commit comments