diff --git a/bitsandbytes/cextension.py b/bitsandbytes/cextension.py index bb301e712..899a83314 100644 --- a/bitsandbytes/cextension.py +++ b/bitsandbytes/cextension.py @@ -291,10 +291,9 @@ def get_native_library() -> BNBNativeLibrary: if hasattr(dll, "get_context"): # only a CUDA-built library exposes this return CudaBNBNativeLibrary(dll) - logger.warning( - "The installed version of bitsandbytes was compiled without GPU support. " - "8-bit optimizers and GPU quantization are unavailable." - ) + # TODO: Remove this log for XPU after 8-bit optimizer is supported + logger.warning("The 8-bit optimizer is not available on your device, only available on CUDA for now.") + return BNBNativeLibrary(dll)