Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bitsandbytes/nn/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def to(self, *args, **kwargs):
if is_quantized:
new_param.CB = new_param.data

if self.SCB is not None and device is not None:
if device is not None and self.SCB is not None and self.SCB.device.type != "meta":
new_param.SCB = self.SCB.to(device)

return new_param
Expand Down