Skip to content

Commit e4fe1cf

Browse files
QuantState.to(): move code tensor with others to correct device, fixes #1527 (#1528)
1 parent cb3adb0 commit e4fe1cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bitsandbytes/functional.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ def as_dict(self, packed=False):
821821

822822
def to(self, device):
823823
# make sure the quantization state is on the right device
824+
self.code = self.code.to(device)
824825
self.absmax = self.absmax.to(device)
825826
if self.nested:
826827
self.offset = self.offset.to(device)

0 commit comments

Comments
 (0)