File tree Expand file tree Collapse file tree 1 file changed +24
-24
lines changed
Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -92,27 +92,27 @@ def main():
9292 else :
9393 print (f"Checking that the library is importable and { BNB_BACKEND } is callable..." )
9494
95- try :
96- sanity_check ()
97- print ("SUCCESS!" )
98- return
99- except RuntimeError as e :
100- if "not available in CPU-only" in str (e ):
101- print (
102- f"WARNING: { __package__ } is currently running as CPU-only!\n "
103- "Therefore, 8-bit optimizers and GPU quantization are unavailable.\n \n "
104- f"If you think that this is so erroneously,\n please report an issue!" ,
105- )
106- else :
107- raise e
108- except Exception :
109- traceback .print_exc ()
110-
111- print_dedented (
112- f"""
113- Above we output some debug information.
114- Please provide this info when creating an issue via { PACKAGE_GITHUB_URL } /issues/new/choose
115- WARNING: Please be sure to sanitize sensitive info from the output before posting it.
116- """ ,
117- )
118- sys .exit (1 )
95+ try :
96+ sanity_check ()
97+ print ("SUCCESS!" )
98+ return
99+ except RuntimeError as e :
100+ if "not available in CPU-only" in str (e ):
101+ print (
102+ f"WARNING: { __package__ } is currently running as CPU-only!\n "
103+ "Therefore, 8-bit optimizers and GPU quantization are unavailable.\n \n "
104+ f"If you think that this is so erroneously,\n please report an issue!" ,
105+ )
106+ else :
107+ raise e
108+ except Exception :
109+ traceback .print_exc ()
110+
111+ print_dedented (
112+ f"""
113+ Above we output some debug information.
114+ Please provide this info when creating an issue via { PACKAGE_GITHUB_URL } /issues/new/choose
115+ WARNING: Please be sure to sanitize sensitive info from the output before posting it.
116+ """ ,
117+ )
118+ sys .exit (1 )
You can’t perform that action at this time.
0 commit comments