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
f1d9d80a
Commit
f1d9d80a
authored
May 06, 2025
by
Titus von Koeller
Browse files
lib methods can now safely be assigned, no more cryptic errors on missing lib
parent
fe6cd17e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
96 deletions
+95
-96
bitsandbytes/functional.py
bitsandbytes/functional.py
+95
-96
No files found.
bitsandbytes/functional.py
View file @
f1d9d80a
...
...
@@ -19,9 +19,8 @@ from .cextension import lib
name2qmap
=
{}
if
lib
and
lib
.
compiled_with_cuda
:
"""C FUNCTIONS FOR OPTIMIZERS"""
str2optimizer32bit
=
{
"""C FUNCTIONS FOR OPTIMIZERS"""
str2optimizer32bit
=
{
"adam"
:
(
lib
.
cadam32bit_grad_fp32
,
lib
.
cadam32bit_grad_fp16
,
...
...
@@ -54,9 +53,9 @@ if lib and lib.compiled_with_cuda:
lib
.
cademamix32bit_grad_fp16
,
lib
.
cademamix32bit_grad_bf16
,
),
}
}
str2optimizer8bit
=
{
str2optimizer8bit
=
{
"adam"
:
(
lib
.
cadam_static_8bit_grad_32
,
lib
.
cadam_static_8bit_grad_16
,
...
...
@@ -81,9 +80,9 @@ if lib and lib.compiled_with_cuda:
lib
.
cmomentum_static_8bit_grad_32
,
lib
.
cmomentum_static_8bit_grad_16
,
),
}
}
str2optimizer8bit_blockwise
=
{
str2optimizer8bit_blockwise
=
{
"adam"
:
(
lib
.
cadam_8bit_blockwise_grad_fp32
,
lib
.
cadam_8bit_blockwise_grad_fp16
,
...
...
@@ -114,7 +113,7 @@ if lib and lib.compiled_with_cuda:
lib
.
cademamix_8bit_blockwise_grad_fp16
,
lib
.
cademamix_8bit_blockwise_grad_bf16
,
),
}
}
class
GlobalPageManager
:
...
...
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