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
e4fe1cfb
"vscode:/vscode.git/clone" did not exist on "7ebc3ad8d720004df01fdde424dcaefc9f43bd6f"
Unverified
Commit
e4fe1cfb
authored
Feb 19, 2025
by
Matthew Douglas
Committed by
GitHub
Feb 19, 2025
Browse files
QuantState.to(): move code tensor with others to correct device, fixes #1527 (#1528)
parent
cb3adb03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
bitsandbytes/functional.py
bitsandbytes/functional.py
+1
-0
No files found.
bitsandbytes/functional.py
View file @
e4fe1cfb
...
...
@@ -821,6 +821,7 @@ class QuantState:
def
to
(
self
,
device
):
# make sure the quantization state is on the right device
self
.
code
=
self
.
code
.
to
(
device
)
self
.
absmax
=
self
.
absmax
.
to
(
device
)
if
self
.
nested
:
self
.
offset
=
self
.
offset
.
to
(
device
)
...
...
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