This repository is for reproducing the plots (and corresponding data) in "The Persian Rug: solving toy models of superposition using large-scale symmetries".
- Create and activate a new conda environment:
conda create -n persian-rug python=3.10
conda activate persian-rug- Install the package and its dependencies in editable mode:
pip install -e .See the jupyter notebook getting_started.ipynb.
To re-train the models we trained, run:
python train_models.pyThen to make the plots, run:
python plotting_scripts/make_rps_plots.py
python plotting_scripts/make_hadamard_plots.py
python plotting_scripts/plot_matrix.py saved_models/recreate_trained_models/921