Skip to content

Commit 4a5f064

Browse files
Update src/compressed_tensors/compressors/sparse_compressors/sparse_24_bitmask.py
Co-authored-by: Brian Dellabetta <brian-dellabetta@users.noreply.github.com>
1 parent 4ea589b commit 4a5f064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compressed_tensors/compressors/sparse_compressors/sparse_24_bitmask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def compress_weight(self, name, value):
5858
)
5959
return bitmask_tensor.dict(
6060
name_prefix=name,
61-
device="meta" if value.device.type == "meta" else "cpu",
61+
device="meta" if value.is_meta else "cpu",
6262
)
6363

6464
def decompress_weight(self, weight_data):

0 commit comments

Comments
 (0)