Skip to content
Closed
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
4 changes: 2 additions & 2 deletions bitsandbytes/nn/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@ def to(self, *args, **kwargs):
requires_grad=self.requires_grad,
has_fp16_weights=self.has_fp16_weights,
)
new_param.CB = self.CB
new_param.SCB = self.SCB
new_param.CB = self.CB.to(device=device) if self.CB is not None else self.CB
new_param.SCB = self.SCB.to(device=device) if self.SCB is not None else self.SCB

return new_param

Expand Down