You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"The model is going to be dequantized in {output_tensor.dtype} - if you want to upcast it to another dtype, make sure to pass the desired dtype when quantizing the model through `bnb_4bit_quant_type` argument of `BitsAndBytesConfig`"
"You have Intel IPEX installed but if you're intending to use it for CPU, it might not have the right version. Be sure to double check that your PyTorch and IPEX installs are compatible."
335
+
)
336
+
337
+
available_devices.discard("cpu") # Only Intel CPU is supported by BNB at the moment
'"cpu" (needs an Intel CPU and intel_extension_for_pytorch installed and compatible with the PyTorch version)'
343
+
ifdevice=="cpu"
344
+
elsedevice
345
+
fordeviceinbnb_supported_devices
346
+
)
347
+
err_msg= (
348
+
f"None of the available devices `available_devices = {available_devicesorNone}` are supported by the bitsandbytes version you have installed: `bnb_supported_devices = {bnb_supported_devices_with_info}`. "
349
+
"Please check the docs to see if the backend you intend to use is available and how to install it: https://huggingface.co/docs/bitsandbytes/main/en/installation#multi-backend"
350
+
)
351
+
352
+
logger.error(err_msg)
353
+
raiseRuntimeError(err_msg)
354
+
355
+
logger.warning("No supported devices found for bitsandbytes multi-backend.")
"CUDA is required but not available for bitsandbytes. Please consider installing the multi-platform enabled version of bitsandbytes, which is currently a work in progress. "
371
+
"Please check currently supported platforms and installation instructions at https://huggingface.co/docs/bitsandbytes/main/en/installation#multi-backend"
0 commit comments