Skip to content

Commit

Permalink
Merge branch 'main' into int8
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdouglas authored Nov 19, 2024
2 parents 161c194 + 31eeb60 commit 0ac1452
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitsandbytes/cextension.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_cuda_bnb_library_path(cuda_specs: CUDASpecs) -> Path:

override_value = os.environ.get("BNB_CUDA_VERSION")
if override_value:
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)
logger.warning(
f"WARNING: BNB_CUDA_VERSION={override_value} environment variable detected; loading {library_name}.\n"
"This can be used to load a bitsandbytes version that is different from the PyTorch CUDA version.\n"
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ line-length = 119
[tool.ruff.lint]
select = [
"B", # bugbear: security warnings
"E", # pycodestyle
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
"F", # pyflakes
"I", # isort
"ISC", # implicit string concatenation
Expand Down

0 comments on commit 0ac1452

Please sign in to comment.