Skip to content

This repository contains integer operators on GPUs for PyTorch.

License

Notifications You must be signed in to change notification settings

ELS-RD/torch-int

 
 

Repository files navigation

torch-int

This repository contains integer operators on GPUs for PyTorch.

Dependencies

  • CUTLASS
  • PyTorch with CUDA 11.3
  • NVIDIA-Toolkit 11.3
  • CUDA Driver 11.3
  • gcc g++ 9.4.0

Installation

git clone --recurse-submodules https://github.com/Guangxuan-Xiao/torch-int.git
conda create -n int python=3.8
conda activate int
conda install -c anaconda gxx_linux-64=9
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
pip install -r requirements.txt
source environment.sh
bash build_cutlass.sh
python setup.py install

Test

python tests/test_linear_modules.py

About

This repository contains integer operators on GPUs for PyTorch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.4%
  • Cuda 21.5%
  • Shell 9.3%
  • C 1.6%
  • C++ 1.2%