diff --git a/bitsandbytes/backends/cpu.py b/bitsandbytes/backends/cpu.py index 97e6580ed..d6a9192e4 100644 --- a/bitsandbytes/backends/cpu.py +++ b/bitsandbytes/backends/cpu.py @@ -5,7 +5,6 @@ from bitsandbytes.utils import QuantState from .base import Backend - from .cpu_xpu_common import ( double_quant_impl, igemmlt_impl, diff --git a/bitsandbytes/backends/cpu_xpu_common.py b/bitsandbytes/backends/cpu_xpu_common.py index 5a0f0f9d5..ceac893b4 100644 --- a/bitsandbytes/backends/cpu_xpu_common.py +++ b/bitsandbytes/backends/cpu_xpu_common.py @@ -5,6 +5,7 @@ try: # to support Intel CPU/GPU (XPU) backend import intel_extension_for_pytorch as ipex + ipex_cpu = ipex if ipex._C._has_cpu() else None ipex_xpu = ipex if ipex._C._has_xpu() else None except: