ExLlamaV3 can be installed using three different methods. Before installing, ensure you have an appropriate version of PyTorch installed (CUDA 12.4 or later), as the Torch dependency is not automatically handled by pip.
Method 1: Prebuilt Wheel (Recommended)
If you are unsure about build dependencies, download a wheel from the releases page and install it directly via pip.
Method 2: PyPi
Install via pip. Note that this method does not contain a prebuilt extension and requires the CUDA toolkit and build prerequisites (e.g., VS Build Tools on Windows, gcc on Linux, python-dev headers).
Method 3: Building from Source
- Install a
flash-attn-2 wheel. - On Windows, ensure
triton-windows is installed for optimal performance. - Clone the repository and install requirements.
- Install the library into your active virtual environment.
# Method 1: Prebuilt wheel example
pip install https://github.com/turboderp-org/exllamav3/releases/download/v0.0.6/exllamav3-0.0.6+cu128.torch2.8.0-cp313-cp313-linux_x86_64.whl
# Method 2: PyPi
pip install exllamav3
# Method 3: Building from source
git clone https://github.com/turboderp-org/exllamav3
cd exllamav3
# (Optional) git checkout dev
pip install -r requirements.txt
pip install .