f"\nCUDA version overridden with BNB_CUDA_VERSION={override_value} environment variable"
ifoverride_value
else""
)
note="To make bitsandbytes work, the compiled version of the library must match the corresponding linked CUDA version. If you are using a CUDA version that doesn't come with a pre-compiled binary, the only solution is to compile the library from source."
cuda_info=(
f"Detected PyTorch CUDA version: {user_ver}\n"
f"Available pre-compiled bitsandbytes binaries for CUDA versions: {version_list}"
+override_info
+"\n\n"
+note
+"\n\n"
)
base_msg="Attempted to use bitsandbytes native library functionality but it's not available.\n\n"
base_msg="Attempted to use bitsandbytes native library functionality but it's not available.\n\n"