From 0786184d62959dab4c2a8c79f0be3d04ae5d8554 Mon Sep 17 00:00:00 2001 From: jiqing-feng Date: Mon, 28 Apr 2025 15:28:28 +0000 Subject: [PATCH] fix intel cpu/xpu installation Signed-off-by: jiqing-feng --- docs/source/installation.mdx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/source/installation.mdx b/docs/source/installation.mdx index a90a0c172..5fa16fca8 100644 --- a/docs/source/installation.mdx +++ b/docs/source/installation.mdx @@ -311,20 +311,18 @@ pip install -e . # `-e` for "editable" install, when developing BNB (otherwise -#### Intel CPU +#### Intel CPU + XPU > [!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). ``` -git clone --depth 1 -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd bitsandbytes/ pip install intel_extension_for_pytorch -cmake -DCOMPUTE_BACKEND=cpu -S . -make +git clone --depth 1 -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd bitsandbytes/ pip install -e . # `-e` for "editable" install, when developing BNB (otherwise leave that out) ```