Skip to content

Commit 5027e64

Browse files
authored
fix log (#1604)
Signed-off-by: jiqing-feng <[email protected]>
1 parent b090d85 commit 5027e64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bitsandbytes/cextension.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ def get_native_library() -> BNBNativeLibrary:
116116
except Exception as e:
117117
lib = None
118118
if not is_ipex_available:
119-
logger.error(f"Could not load bitsandbytes native library: {e}", exc_info=True)
119+
logger.error(
120+
f"Could not load bitsandbytes native library: {e}. If you use Intel CPU or XPU, please pip install intel_extension_for_pytorch",
121+
exc_info=True,
122+
)
120123
if torch.cuda.is_available():
121124
logger.warning(
122125
f"""

0 commit comments

Comments
 (0)