This repository contains the source code used to recreate the figures for the paper "Mechanistic Interpretability of Binary and Ternary Networks".
The code in this repository was used to generate the figures in the paper "Mechanistic Interpretability of Binary and Ternary Networks". The paper discusses the interpretability of binary and ternary networks from a mechanistic perspective.
To recreate the figures, follow these steps:
- Clone this repository to your local machine.
- Navigate to the root directory of the repository.
- There is one notebook that generates figures for the binary transformer and another one for the ternary transformer.
Please note that you may need to install certain Python packages to run the scripts. These packages are listed in the requirements.txt
file.