@@ -77,29 +77,25 @@ def main():
7777 print_header ("" )
7878
7979 cuda_specs = get_cuda_specs ()
80- if HIP_ENVIRONMENT :
81- rocm_specs = f" rocm_version_string='{ cuda_specs .cuda_version_string } ',"
82- rocm_specs += f" rocm_version_tuple={ cuda_specs .cuda_version_tuple } "
83- print (f"{ BNB_BACKEND } specs:{ rocm_specs } " )
84- else :
85- print (f"{ BNB_BACKEND } specs:{ cuda_specs } " )
86- if not torch .cuda .is_available ():
87- print (f"Torch says { BNB_BACKEND } is not available. Possible reasons:" )
88- if not HIP_ENVIRONMENT :
89- print (f"- { BNB_BACKEND } driver not installed" )
90- print (f"- { BNB_BACKEND } not installed" )
91- print (f"- You have multiple conflicting { BNB_BACKEND } libraries" )
80+
9281 if cuda_specs :
9382 print_diagnostics (cuda_specs )
94- print_runtime_diagnostics ()
95- print_header ("" )
96- print_header ("DEBUG INFO END" )
97- print_header ("" )
98- print (f"Checking that the library is importable and { BNB_BACKEND } is callable..." )
83+
84+ # TODO: There's a lot of noise in this; needs improvement.
85+ # print_cuda_runtime_diagnostics()
86+
87+ if not torch .cuda .is_available ():
88+ print (f"PyTorch says { BNB_BACKEND } is not available. Possible reasons:" )
89+ 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" )
92+
93+ else :
94+ print (f"Checking that the library is importable and { BNB_BACKEND } is callable..." )
95+
9996 try :
10097 sanity_check ()
10198 print ("SUCCESS!" )
102- print ("Installation was successful!" )
10399 return
104100 except RuntimeError as e :
105101 if "not available in CPU-only" in str (e ):
@@ -112,6 +108,7 @@ def main():
112108 raise e
113109 except Exception :
114110 traceback .print_exc ()
111+
115112 print_dedented (
116113 f"""
117114 Above we output some debug information.
0 commit comments