Skip to content

Commit

Permalink
Enable sparse24bytemask compressor
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Dec 12, 2024
1 parent 938a526 commit 8699a24
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ def from_pretrained(
# compression
format = CompressionFormat.dense.value
if compress:
format = CompressionFormat.sparse_bitmask.value
format = (
CompressionFormat.sparse_24_bytemask.value
if sparsity_structure == SparsityStructure.TWO_FOUR.value
else CompressionFormat.sparse_bitmask.value
)

else:
format = CompressionFormat.dense.value
Expand Down

0 comments on commit 8699a24

Please sign in to comment.