Skip to content

Commit 58e989e

Browse files
committed
Lint
1 parent 75487d3 commit 58e989e

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

bitsandbytes/diagnostics/main.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
import torch
77

88
from bitsandbytes import __version__ as bnb_version
9-
from bitsandbytes.cextension import BNB_BACKEND, HIP_ENVIRONMENT
9+
from bitsandbytes.cextension import BNB_BACKEND
1010
from bitsandbytes.consts import PACKAGE_GITHUB_URL
1111
from bitsandbytes.cuda_specs import get_cuda_specs
1212
from bitsandbytes.diagnostics.cuda import (
1313
print_diagnostics,
14-
print_runtime_diagnostics,
1514
)
1615
from bitsandbytes.diagnostics.utils import print_dedented, print_header
1716

@@ -77,18 +76,18 @@ def main():
7776
print_header("")
7877

7978
cuda_specs = get_cuda_specs()
80-
79+
8180
if cuda_specs:
8281
print_diagnostics(cuda_specs)
8382

8483
# TODO: There's a lot of noise in this; needs improvement.
8584
# print_cuda_runtime_diagnostics()
86-
85+
8786
if not torch.cuda.is_available():
8887
print(f"PyTorch says {BNB_BACKEND} is not available. Possible reasons:")
8988
print(f"1. {BNB_BACKEND} driver not installed")
90-
print(f"2. Using a CPU-only PyTorch build")
91-
print(f"3. No GPU detected")
89+
print("2. Using a CPU-only PyTorch build")
90+
print("3. No GPU detected")
9291

9392
else:
9493
print(f"Checking that the library is importable and {BNB_BACKEND} is callable...")
@@ -108,7 +107,7 @@ def main():
108107
raise e
109108
except Exception:
110109
traceback.print_exc()
111-
110+
112111
print_dedented(
113112
f"""
114113
Above we output some debug information.

0 commit comments

Comments
 (0)