Skip to content

Commit bcfd75c

Browse files
committed
Fix QuantState.as_dict
Signed-off-by: cyy <[email protected]>
1 parent 7bfe923 commit bcfd75c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitsandbytes/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def as_dict(self, packed=False):
512512
"blocksize": self.blocksize,
513513
"quant_map": self.code,
514514
"dtype": str(self.dtype).strip("torch."),
515-
"shape": tuple(self.shape),
515+
"shape": tuple(self.shape) if self.shape is not None else None,
516516
}
517517
if self.nested:
518518
qs_dict.update(

0 commit comments

Comments
 (0)