From ea4b59f34c86ad5149d968c2bb92e9e046b828ce Mon Sep 17 00:00:00 2001 From: jiqing-feng Date: Thu, 3 Jul 2025 15:05:17 +0000 Subject: [PATCH] fix log Signed-off-by: jiqing-feng --- bitsandbytes/cextension.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)