/SparseButterfly

Butterfly matrix for Sparse NN Inference on FPGA

Primary LanguagePython

SparseButterfly

Butterfly matrix for Sparse NN Inference on FPGA

Follow the instructions below to run our codes:

1. Conda environment

Create conda environment:

conda-env create -f environment.yml

Activate the environment:

conda activate fly

install pytorch:

conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia

And then do whatever you want in this environment (edit files, open notebooks, etc.). To deactivate the environment:

conda deactivate

If you make any update for the environment, please edit the environment.yml file and run:

conda env update --file environment.yml  --prune

Reference on conda environment here: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

Related Code

Related Blog Posts

Butterflies Are All You Need: A Universal Building Block for Structured Linear Maps: https://dawn.cs.stanford.edu/2019/06/13/butterfly/

Related Paper