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
4075a643
Commit
4075a643
authored
Jul 14, 2025
by
Egor Krivov
Browse files
Update to kernel registration
parent
223fea51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bitsandbytes/backends/cuda/ops.py
bitsandbytes/backends/cuda/ops.py
+2
-1
No files found.
bitsandbytes/backends/cuda/ops.py
View file @
4075a643
...
@@ -610,7 +610,7 @@ str2optimizer8bit_blockwise = {
...
@@ -610,7 +610,7 @@ str2optimizer8bit_blockwise = {
}
}
def
optimizer_update_32bit
(
def
_
optimizer_update_32bit
_impl
(
optimizer_name
:
str
,
optimizer_name
:
str
,
g
:
torch
.
Tensor
,
g
:
torch
.
Tensor
,
p
:
torch
.
Tensor
,
p
:
torch
.
Tensor
,
...
@@ -763,3 +763,4 @@ def _optimizer_update_8bit_blockwise_impl(
...
@@ -763,3 +763,4 @@ def _optimizer_update_8bit_blockwise_impl(
register_kernel
(
"bitsandbytes::optimizer_update_8bit_blockwise"
,
"cuda"
)(
_optimizer_update_8bit_blockwise_impl
)
register_kernel
(
"bitsandbytes::optimizer_update_8bit_blockwise"
,
"cuda"
)(
_optimizer_update_8bit_blockwise_impl
)
register_kernel
(
"bitsandbytes::optimizer_update_32bit"
,
"cuda"
)(
_optimizer_update_32bit_impl
)
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