Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ab11d96
added main demo test
bryce13950 Oct 22, 2023
5607713
skipped plain text comparison
bryce13950 Oct 22, 2023
eb354d9
installed matplotlib
bryce13950 Oct 22, 2023
17aed20
added demo to scripts
bryce13950 Oct 22, 2023
f4fdcc9
added matlib plot to jupyter group and removed plain text mime type
bryce13950 Oct 23, 2023
2a55162
updated circuitsvis
bryce13950 Oct 23, 2023
90b4e15
added sanitize file
bryce13950 Oct 23, 2023
52f53b2
regenerated output
bryce13950 Oct 23, 2023
1bd3895
updated output
bryce13950 Oct 23, 2023
13fa523
set default device
bryce13950 Oct 23, 2023
5867833
removed pulling device from utils
bryce13950 Oct 23, 2023
4ce46fa
ignored loading output
bryce13950 Oct 23, 2023
ba01a0a
changed input tensor to be the same in github instead of random
bryce13950 Oct 23, 2023
3c53ce2
regenerated output
bryce13950 Oct 23, 2023
b8fa8b8
updated random tests to be static
bryce13950 Oct 23, 2023
459c881
regenerated demo content with more expanded random range
bryce13950 Oct 23, 2023
9e43db5
aded regex to replace all white space
bryce13950 Oct 23, 2023
87e27de
marked last few cells as skip output
bryce13950 Oct 23, 2023
5f2e6fd
turned off error warnings
bryce13950 Oct 23, 2023
234c1e8
added warn to error flag again
bryce13950 Oct 23, 2023
591bd36
revised demo
bryce13950 Oct 26, 2023
604bd1a
Merge branch 'main' into test-main-demo
bryce13950 Oct 26, 2023
fb68ba8
recalculated hash
bryce13950 Oct 26, 2023
9393e01
removed inline matplotlib reference
bryce13950 Oct 26, 2023
d53df90
regenerated output and ignored cell
bryce13950 Oct 26, 2023
3425b8d
fixed url
bryce13950 Oct 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
432 changes: 213 additions & 219 deletions demos/Main_Demo.ipynb

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions demos/doc_sanitize.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[regex1]
regex: \d{1,2}/\d{1,2}/\d{2,4}
replace: DATE-STAMP

[regex2]
regex: \d{2}:\d{2}:\d{2}
replace: TIME-STAMP

[regex3]
regex: 0[xX][0-9a-fA-F]+
replace: HEX-CODE
5 changes: 4 additions & 1 deletion docs/make_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def generate_model_table(_app: Optional[Any] = None):
def copy_demos(_app: Optional[Any] = None):
"""Copy demo notebooks to the generated directory."""
copy_to_dir = GENERATED_DIR / "demos"
notebooks_to_copy = ["Exploratory_Analysis_Demo.ipynb"]
notebooks_to_copy = [
"Exploratory_Analysis_Demo.ipynb",
"Main_Demo.ipynb",
]

if copy_to_dir.exists():
shutil.rmtree(copy_to_dir)
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ generated/model_properties_table.md
content/tutorials
content/citation
content/contributing
generated/demos/Main_Demo
generated/demos/Exploratory_Analysis_Demo
```

Expand Down
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ docstring-test:
poetry run pytest transformer_lens/

notebook-test:
poetry run pytest demos/Exploratory_Analysis_Demo.ipynb
poetry run pytest --nbval-sanitize-with demos/doc_sanitize.cfg demos/Main_Demo.ipynb
poetry run pytest --nbval-sanitize-with demos/doc_sanitize.cfg demos/Exploratory_Analysis_Demo.ipynb

test:
make unit-test
Expand Down
24 changes: 22 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ nbval = "^0.10.0"

[tool.poetry.group.jupyter.dependencies]
jupyterlab = ">=3.5.0"
ipywidgets = "^8.1.1"

[tool.poetry.group.docs.dependencies]
sphinx = {version = "5.2.3" }
Expand Down