Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
35dbb1ff
Commit
35dbb1ff
authored
Jul 15, 2023
by
Bilel Omrani
Browse files
Fix bitsandbytes import error when CUDA is unavailable
parent
486488bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bitsandbytes/cuda_setup/main.py
bitsandbytes/cuda_setup/main.py
+1
-1
No files found.
bitsandbytes/cuda_setup/main.py
View file @
35dbb1ff
...
@@ -330,7 +330,7 @@ def evaluate_cuda_setup():
...
@@ -330,7 +330,7 @@ def evaluate_cuda_setup():
cuda_setup
.
add_log_entry
((
'Welcome to bitsandbytes. For bug reports, please run
\n\n
python -m bitsandbytes
\n\n
'
),
cuda_setup
.
add_log_entry
((
'Welcome to bitsandbytes. For bug reports, please run
\n\n
python -m bitsandbytes
\n\n
'
),
(
'and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues'
))
(
'and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues'
))
cuda_setup
.
add_log_entry
(
'='
*
80
)
cuda_setup
.
add_log_entry
(
'='
*
80
)
if
not
torch
.
cuda
.
is_available
():
return
'libbitsandbytes_cpu.so'
,
None
,
None
,
None
,
None
if
not
torch
.
cuda
.
is_available
():
return
'libbitsandbytes_cpu.so'
,
None
,
None
,
None
cudart_path
=
determine_cuda_runtime_lib_path
()
cudart_path
=
determine_cuda_runtime_lib_path
()
ccs
=
get_compute_capabilities
()
ccs
=
get_compute_capabilities
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment