Skip to content

Commit 21c828f

Browse files
committed
Fix QuantState.as_dict
Signed-off-by: cyy <[email protected]>
1 parent 6a07ffe commit 21c828f

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
@@ -511,7 +511,7 @@ def as_dict(self, packed=False):
511511
"blocksize": self.blocksize,
512512
"quant_map": self.code,
513513
"dtype": str(self.dtype).strip("torch."),
514-
"shape": tuple(self.shape),
514+
"shape": tuple(self.shape) if self.shape is not None else None,
515515
}
516516
if self.nested:
517517
qs_dict.update(

0 commit comments

Comments
 (0)