Thanks to visit codestin.com
Credit goes to github.com

Skip to content

LeonardDavid/HEP-BNN

 
 

Repository files navigation

HEP-BNN

HEP-BNN is a framework for finding Low-Latency execution configurations of BNNs on Heterogeneous multiprocessor platforms.

Presentation Paper on arXiv

How to install

First set up a conda environment with all the necessary dependencies:

git clone https://github.com/LeonardDavid/hep-bnn.git
cd fastinference
conda env create -f environment.yml
conda activate fi

Please note that this environment also contains some larger packages such as PyTorch so the installation may take some time.

Execute the following command before first time use, and after any changes to any of the Jinja2 files, or any implement.py files :

python setup.py install

How to use the framework

Include the BNN model and data

Add your BNN model (in ONNX format) under

fastinference/implementations/neuralnet/cuda/automatic/model/

and the testing data (in csv format) under

fastinference/implementations/neuralnet/cuda/automatic/data/

Also see the example files for the Fashion-MNIST and CIFAR10 models, used during development.

Run the framework

Call the following command:

fastinference/implementations/neuralnet/cuda/automatic/test_cuda.py --outpath tmp/fastinference/cuda_auto --dataset cifar

Contact

Maintaner [email protected]

Acknowledgements

Special thanks goes to Sebastian Buschjäger for providing the original FastInference framework as a base.

About

CUDA code generation for BNNs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.0%
  • C++ 3.9%
  • Python 0.5%
  • Jinja 0.4%
  • CMake 0.1%
  • Makefile 0.1%