# Installation Note currently `bitsandbytes` is only supported on CUDA GPU hardwares, support for AMD GPUs and M1 chips (MacOS) is coming soon. ## Hardware requirements: - LLM.int8(): NVIDIA Turing (RTX 20xx; T4) or Ampere GPU (RTX 30xx; A4-A100); (a GPU from 2018 or newer). - 8-bit optimizers and quantization: NVIDIA Kepler GPU or newer (>=GTX 78X). Supported CUDA versions: 10.2 - 12.0 #TODO: check currently supported versions ## Linux ### From Pypi ```bash 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). ```bash 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](./compiling) ## Windows Windows builds require Visual Studio with C++ support, as well as the Cuda SDK installed. Currently for Windows users, you need to build bitsandbytes from source: ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ pip install -r requirements-dev.txt cmake -DCOMPUTE_BACKEND=cuda -S . cmake --build . --config Release python -m build --wheel ``` Big thanks to [wkpark](https://github.com/wkpark), [Jamezo97](https://github.com/Jamezo97), [rickardp](https://github.com/rickardp), [akx](https://github.com/akx) for their amazing contributions to make bitsandbytes compatible with Windows. For a more detailed compilation guide, head to the [dedicated page on the topic](./compiling) ## MacOS Mac support is still a work in progress. Please make sure to check out the [Apple Silicon implementation coordination issue](https://github.com/TimDettmers/bitsandbytes/issues/1020) to get notified about the discussions and progress with respect to MacOS integration.