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 343bfd5 commit ccc645dCopy full SHA for ccc645d
bitsandbytes/cextension.py
@@ -299,13 +299,13 @@ def get_native_library() -> BNBNativeLibrary:
299
300
try:
301
if hasattr(torch, "xpu") and torch.xpu.is_available():
302
- if not (ipex_cpu or ipex_xpu):
+ if not ipex_xpu:
303
logger.warning(
304
"Detected Intel XPU but no Intel Extension for PyTorch (IPEX) installed. "
305
"IPEX is recommended for Intel XPU support in bitsandbytes to get better performance. "
306
"Please check the installation doc to install `intel_extension_for_pytorch`. "
307
)
308
- lib = ErrorHandlerMockBNBNativeLibrary("XPU does not need native library")
+ lib = None
309
else:
310
lib = get_native_library()
311
except Exception as e:
0 commit comments