Unverified Commit c244e983 authored by jiqing-feng's avatar jiqing-feng Committed by GitHub
Browse files

fix intel cpu/xpu installation (#1613)


Signed-off-by: default avatarjiqing-feng <jiqing.feng@intel.com>
parent 53daa0e2
...@@ -311,20 +311,18 @@ pip install -e . # `-e` for "editable" install, when developing BNB (otherwise ...@@ -311,20 +311,18 @@ pip install -e . # `-e` for "editable" install, when developing BNB (otherwise
</hfoption> </hfoption>
<hfoption id="Intel CPU + GPU"> <hfoption id="Intel CPU + GPU">
#### Intel CPU #### Intel CPU + XPU
> [!TIP] > [!TIP]
> Intel CPU backend only supports building from source; for now, please follow the instructions below. > Intel CPU/XPU backend only supports building from source; for now, please follow the instructions below.
Similar to the CUDA case, you can compile bitsandbytes from source for Linux and Windows systems. It does not need compile CPP codes, all required ops are in [intel_extension_for_pytorch](https://pytorch-extension.intel.com/), please follow the instruction to install ipex.
The below commands are for Linux. For installing on Windows, please adapt the below commands according to the same pattern as described [the section above on compiling from source under the Windows tab](#cuda-compile). The below commands are for Linux. For installing on Windows, please adapt the below commands according to the same pattern as described [the section above on compiling from source under the Windows tab](#cuda-compile).
``` ```
git clone --depth 1 -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd bitsandbytes/
pip install intel_extension_for_pytorch pip install intel_extension_for_pytorch
cmake -DCOMPUTE_BACKEND=cpu -S . git clone --depth 1 -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd bitsandbytes/
make
pip install -e . # `-e` for "editable" install, when developing BNB (otherwise leave that out) pip install -e . # `-e` for "editable" install, when developing BNB (otherwise leave that out)
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment