Skip to content

Commit e59236a

Browse files
committed
Fix self.quant_type is None
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
1 parent 5256287 commit e59236a

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
@@ -526,7 +526,7 @@ def as_dict(self, packed: bool = False) -> dict[str, Any]:
526526
"nested_offset": self.offset.item(),
527527
},
528528
)
529-
if not packed:
529+
if not packed or self.quant_type is None:
530530
return qs_dict
531531

532532
# packed format allows serialization of non-tensor components, critical for saving in safetensors format

0 commit comments

Comments
 (0)