Create a virtual environment for the software.
python3 -m venv env
source env/bin/activate
Install dependencies: pip install -r requirements.txt
Add the circuit_explorer package itself: pip install -e .
Make the virtual environment available to jupyter notebooks: python -m ipykernel install --user --name=circuit_explorer
Demo Jupyter Notebooks of experiments can be found in the folder 'demo_notebooks'.
api.ipynb
: A notebook with general examples of how to use the circuit pruner API.trajectory_map.ipynb
a notebook for generating and launching the UI for 'image-feature' trajectory mapscircuit_diagram.ipynb
: A notebook for generating 'circuit diagrams'polysemantic_subcircuits.ipynb
: A notebook for the polysemantic subcircuit experimentcircle_subcircuits.ipynb
: A notebook for the circle subcircuit experiment