From 6fe729e20fa8f95e4c61b969c452a7088ffe11a7 Mon Sep 17 00:00:00 2001 From: Matthew Douglas <38992547+matthewdouglas@users.noreply.github.com> Date: Wed, 22 Oct 2025 12:31:09 -0400 Subject: [PATCH] Fix regression with CPU/disk offloading for accelerate + int8 --- bitsandbytes/nn/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitsandbytes/nn/modules.py b/bitsandbytes/nn/modules.py index c36fb68a6..f482ae6d3 100644 --- a/bitsandbytes/nn/modules.py +++ b/bitsandbytes/nn/modules.py @@ -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