Skip to content

Commit a47a40e

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

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

0 commit comments

Comments
 (0)