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
0acab1c6
Commit
0acab1c6
authored
May 06, 2025
by
Titus von Koeller
Browse files
case 3,4a/b: no lib but cuda validated
parent
71a9ce41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
bitsandbytes/cextension.py
bitsandbytes/cextension.py
+11
-9
No files found.
bitsandbytes/cextension.py
View file @
0acab1c6
...
...
@@ -135,16 +135,18 @@ class ErrorHandlerMockBNBNativeLibrary(BNBNativeLibrary):
elif
no_cuda_lib_found
:
version_list_str
=
"
\n
- "
+
"
\n
- "
.
join
(
available_versions
)
if
available_versions
else
"NONE"
analysis
=
(
(
f
"
\n
🚨 CUDA VERSION MISMATCH 🚨
\n
"
f
"Requested CUDA version:
{
requested_version
}
\n
"
f
"Detected PyTorch CUDA version:
{
user_cuda_version
}
\n
"
f
"Available pre-compiled versions:
{
version_list_str
}
\n\n
"
"This means:
\n
"
"The version you're trying to use is NOT distributed with this package
\n\n
"
)
if
available_versions
else
"
1. You're not using the package but checked-out the source code
\n
"
"
2
. You
MUST compile from source for this specific CUDA version
\n
"
"
3
.
The installation will NOT work until you compile or choose a CUDA supported version via export BNB_CUDA_VERSION=<version>
\n\n
"
else
"
\n
🚨 Forgot to compile the bitsandbytes library? 🚨
\n
"
"
1
. You
're not using the package but checked-out the source code
\n
"
"
2
.
You MUST compile from source
\n\n
"
)
base_msg
=
"Attempted to use bitsandbytes native library functionality but it's not available.
\n\n
"
...
...
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