Commit 7bfe923c authored by Matthew Douglas's avatar Matthew Douglas
Browse files

Restore temporary changes from release

parent 9088107f
...@@ -104,7 +104,6 @@ jobs: ...@@ -104,7 +104,6 @@ jobs:
retention-days: 7 retention-days: 7
build-shared-libs-rocm: build-shared-libs-rocm:
if: false # Temporarily disabled
strategy: strategy:
matrix: matrix:
os: [ubuntu-22.04] os: [ubuntu-22.04]
...@@ -152,7 +151,7 @@ jobs: ...@@ -152,7 +151,7 @@ jobs:
needs: needs:
- build-shared-libs - build-shared-libs
- build-shared-libs-cuda - build-shared-libs-cuda
#- build-shared-libs-rocm - build-shared-libs-rocm
strategy: strategy:
matrix: matrix:
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-latest, macos-latest] os: [ubuntu-22.04, ubuntu-22.04-arm, windows-latest, macos-latest]
......
...@@ -73,9 +73,9 @@ bitsandbytes has the following minimum requirements for all platforms: ...@@ -73,9 +73,9 @@ bitsandbytes has the following minimum requirements for all platforms:
CDNA: gfx90a, gfx942<br> CDNA: gfx90a, gfx942<br>
RDNA: gfx1100 RDNA: gfx1100
</td> </td>
<td>🚧</td> <td></td>
<td>🚧</td> <td>〰️</td>
<td>🚧</td> <td></td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
...@@ -85,16 +85,16 @@ bitsandbytes has the following minimum requirements for all platforms: ...@@ -85,16 +85,16 @@ bitsandbytes has the following minimum requirements for all platforms:
Arc A-Series (Alchemist)<br> Arc A-Series (Alchemist)<br>
Arc B-Series (Battlemage) Arc B-Series (Battlemage)
</td> </td>
<td>🚧</td> <td></td>
<td>🚧</td> <td></td>
<td>🚧</td> <td>🚧</td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
<td>🟪 Intel Gaudi <br><code>hpu</code></td> <td>🟪 Intel Gaudi <br><code>hpu</code></td>
<td>Gaudi1, Gaudi2, Gaudi3</td> <td>Gaudi1, Gaudi2, Gaudi3</td>
<td>🚧</td> <td></td>
<td>🚧</td> <td>〰️</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -139,8 +139,8 @@ bitsandbytes has the following minimum requirements for all platforms: ...@@ -139,8 +139,8 @@ bitsandbytes has the following minimum requirements for all platforms:
Arc A-Series (Alchemist) <br> Arc A-Series (Alchemist) <br>
Arc B-Series (Battlemage) Arc B-Series (Battlemage)
</td> </td>
<td>🚧</td> <td></td>
<td>🚧</td> <td></td>
<td>🚧</td> <td>🚧</td>
</tr> </tr>
<tr> <tr>
......
...@@ -35,6 +35,16 @@ supported_torch_devices = { ...@@ -35,6 +35,16 @@ supported_torch_devices = {
if torch.cuda.is_available(): if torch.cuda.is_available():
from .backends.cuda import ops as cuda_ops from .backends.cuda import ops as cuda_ops
if hasattr(torch, "xpu") and torch.xpu.is_available():
from .backends.xpu import ops as xpu_ops
if importlib.util.find_spec("habana_frameworks") and importlib.util.find_spec("habana_frameworks.torch"):
# In case not automatically imported
import habana_frameworks.torch
if hasattr(torch, "hpu") and torch.hpu.is_available():
from .backends.hpu import ops as hpu_ops
def _import_backends(): def _import_backends():
""" """
......
...@@ -74,7 +74,6 @@ test = [ ...@@ -74,7 +74,6 @@ test = [
package-data = { "*" = ["libbitsandbytes*.*"] } package-data = { "*" = ["libbitsandbytes*.*"] }
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
exclude = ["*backends.xpu", "*backends.hpu", "*backends.triton"]
include = ["bitsandbytes*"] include = ["bitsandbytes*"]
[tool.setuptools.dynamic] [tool.setuptools.dynamic]
......
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