We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9264f02 commit 0d45b45Copy full SHA for 0d45b45
bitsandbytes/cextension.py
@@ -45,7 +45,7 @@ def get_cuda_bnb_library_path(cuda_specs: CUDASpecs) -> Path:
45
46
override_value = os.environ.get("BNB_CUDA_VERSION")
47
if override_value:
48
- library_name = re.sub("cuda\d+", f"cuda{override_value}", library_name, count=1)
+ library_name = re.sub(r"cuda\d+", f"cuda{override_value}", library_name, count=1)
49
logger.warning(
50
f"WARNING: BNB_CUDA_VERSION={override_value} environment variable detected; loading {library_name}.\n"
51
"This can be used to load a bitsandbytes version that is different from the PyTorch CUDA version.\n"
0 commit comments