Skip to content

Commit bbb257d

Browse files
mklabundematthewdouglas
authored andcommitted
pass current bnb_quantized when moving quantized Params4bit to different device (#1665)
(cherry picked from commit cd8bd2d)
1 parent d35b170 commit bbb257d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bitsandbytes/nn/modules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ def to(self, *args, **kwargs):
353353
compress_statistics=self.compress_statistics,
354354
quant_type=self.quant_type,
355355
quant_storage=self.quant_storage,
356+
bnb_quantized=self.bnb_quantized,
356357
)
357358

358359
return new_param

0 commit comments

Comments
 (0)