Skip to content

Commit 7bfe923

Browse files
Restore temporary changes from release
1 parent 9088107 commit 7bfe923

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ jobs:
104104
retention-days: 7
105105

106106
build-shared-libs-rocm:
107-
if: false # Temporarily disabled
108107
strategy:
109108
matrix:
110109
os: [ubuntu-22.04]
@@ -152,7 +151,7 @@ jobs:
152151
needs:
153152
- build-shared-libs
154153
- build-shared-libs-cuda
155-
#- build-shared-libs-rocm
154+
- build-shared-libs-rocm
156155
strategy:
157156
matrix:
158157
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-latest, macos-latest]

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ bitsandbytes has the following minimum requirements for all platforms:
7373
CDNA: gfx90a, gfx942<br>
7474
RDNA: gfx1100
7575
</td>
76-
<td>🚧</td>
77-
<td>🚧</td>
78-
<td>🚧</td>
76+
<td></td>
77+
<td>〰️</td>
78+
<td></td>
7979
</tr>
8080
<tr>
8181
<td></td>
@@ -85,16 +85,16 @@ bitsandbytes has the following minimum requirements for all platforms:
8585
Arc A-Series (Alchemist)<br>
8686
Arc B-Series (Battlemage)
8787
</td>
88-
<td>🚧</td>
89-
<td>🚧</td>
88+
<td></td>
89+
<td></td>
9090
<td>🚧</td>
9191
</tr>
9292
<tr>
9393
<td></td>
9494
<td>🟪 Intel Gaudi <br><code>hpu</code></td>
9595
<td>Gaudi1, Gaudi2, Gaudi3</td>
96-
<td>🚧</td>
97-
<td>🚧</td>
96+
<td></td>
97+
<td>〰️</td>
9898
<td>❌</td>
9999
</tr>
100100
<tr>
@@ -139,8 +139,8 @@ bitsandbytes has the following minimum requirements for all platforms:
139139
Arc A-Series (Alchemist) <br>
140140
Arc B-Series (Battlemage)
141141
</td>
142-
<td>🚧</td>
143-
<td>🚧</td>
142+
<td></td>
143+
<td></td>
144144
<td>🚧</td>
145145
</tr>
146146
<tr>

bitsandbytes/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
if torch.cuda.is_available():
3636
from .backends.cuda import ops as cuda_ops
3737

38+
if hasattr(torch, "xpu") and torch.xpu.is_available():
39+
from .backends.xpu import ops as xpu_ops
40+
41+
if importlib.util.find_spec("habana_frameworks") and importlib.util.find_spec("habana_frameworks.torch"):
42+
# In case not automatically imported
43+
import habana_frameworks.torch
44+
45+
if hasattr(torch, "hpu") and torch.hpu.is_available():
46+
from .backends.hpu import ops as hpu_ops
47+
3848

3949
def _import_backends():
4050
"""

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ test = [
7474
package-data = { "*" = ["libbitsandbytes*.*"] }
7575

7676
[tool.setuptools.packages.find]
77-
exclude = ["*backends.xpu", "*backends.hpu", "*backends.triton"]
7877
include = ["bitsandbytes*"]
7978

8079
[tool.setuptools.dynamic]

0 commit comments

Comments
 (0)