Compatible hardware and functioning `import torch_npu` capable environment with Python `3.10` as the minimum requirement.
Please refer to [the official Ascend installations instructions](https://www.hiascend.com/document/detail/zh/Pytorch/60RC3/configandinstg/instg/insg_0001.html) for guidance on how to pip install the necessary `torch_npu` dependency.
</hfoption>
</hfoption>
<hfoption id="Mac">
<hfoption id="Mac">
...
@@ -344,6 +352,31 @@ make
...
@@ -344,6 +352,31 @@ 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)
```
```
</hfoption>
<hfoption id="Ascend NPU">
#### Ascend NPU
> [!TIP]
> Ascend NPU backend only supports building from source; for now, please follow the instructions below.
```
# Install bitsandbytes from source
# Clone bitsandbytes repo, Ascend NPU backend is currently enabled on multi-backend-refactor branch
git clone -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd bitsandbytes/