Installation

Note currently bitsandbytes is only supported on CUDA GPU hardwares, support for AMD GPUs and M1 chips (MacOS) is coming soon.

Linux
Windows
MacOS

Hardware requirements:

Supported CUDA versions: 10.2 - 12.0 #TODO: check currently supported versions

Linux

From Pypi

pip install bitsandbytes

From source

You need CMake and Python installed. For Linux, make sure to install a compiler (apt install build-essential, for example).

git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/
pip install -r requirements-dev.txt
cmake -DCOMPUTE_BACKEND=cuda -S .
make
pip install .

Note support for non-CUDA GPUs (e.g. AMD, Intel, Apple Silicon), is also coming soon. For a more detailed compilation guide, head to the dedicated page on the topic