Skip to content

Commit 21cf8c1

Browse files
committed
update ipex install guide
Signed-off-by: jiqing-feng <[email protected]>
1 parent b9f3c40 commit 21cf8c1

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

docs/source/installation.mdx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,29 @@ pip install -e . # `-e` for "editable" install, when developing BNB (otherwise
316316
> [!TIP]
317317
> Intel CPU/XPU backend only supports building from source; for now, please follow the instructions below.
318318
319-
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.
319+
It requires [intel_extension_for_pytorch](https://pytorch-extension.intel.com/), please follow the instruction to install ipex.
320320

321-
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).
321+
The below commands are for Linux. The ipex does not support Windows.
322322

323+
1. Install intel_extension_for_pytorch
324+
CPU: `pip install intel_extension_for_pytorch`
325+
XPU: `pip install intel_extension_for_pytorch --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/`
326+
327+
2. Install bitsandbytes:
328+
CPU: Need to build CPU C++ codes
323329
```
324-
pip install intel_extension_for_pytorch
325-
git clone --depth 1 -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd bitsandbytes/
326-
pip install -e . # `-e` for "editable" install, when developing BNB (otherwise leave that out)
330+
git clone https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd bitsandbytes/
331+
cmake -DCOMPUTE_BACKEND=cpu -S .
332+
make
333+
pip install .
327334
```
335+
XPU:
336+
```
337+
pip install git+https://github.com/bitsandbytes-foundation/bitsandbytes.git
338+
```
339+
340+
3. Install bitsandbytes-intel:
341+
`pip install git+https://github.com/bitsandbytes-foundation/bitsandbytes-intel.git`
328342

329343
</hfoption>
330344
<hfoption id="Ascend NPU">

0 commit comments

Comments
 (0)