We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1414628 commit b70a09cCopy full SHA for b70a09c
1 file changed
bitsandbytes/__init__.py
@@ -34,8 +34,10 @@
34
if torch.cuda.is_available():
35
from .backends.cuda import ops as cuda_ops
36
37
-if torch.xpu.is_available():
38
- from .backends.xpu import ops as xpu_ops
+# xpu was introduced in PyTorch 2.3
+if torch.__version__ >= (2, 3):
39
+ if torch.xpu.is_available():
40
+ from .backends.xpu import ops as xpu_ops
41
42
43
def _import_backends():
0 commit comments