Blksprs

Latest version: v1.11

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

2.0

Added

- Add option to pre-build LUTs for most operations, improving performance for repeated operations with same sparsity
layouts

Changed

- Rework all operations to use new `torch.library.triton_op()` approach, allowing for JIT compilation and better
compatability
- Rework kernels to work with triton block sizes larger than sparsity block sizes via masking
- Rework kernels to use automatic tuning of triton block sizes rather than fixed block sizes
- Rework operations to support dtype autocasting

Removed

- Remove manual specification of triton block sizes

1.11

Added

- Add ``build_lut()`` method for most operations, allowing for faster execution when precomputing lookup tables

Changed

- Adapt transpose to use flow kernel

1.10.2

Fixed

- Fix small performance issues

1.10.1

Fixed

- Fix return type of ``to_dense``

1.10

Changed

- Change dtype of sparsity layouts from ``int32`` to ``int1``
- Change signature of ``split`` and ``merge`` to contain placeholder ``dim`` parameter

Fixed

- Fix masking bounds of kernels not being tight

Removed

- Remove ``bs.ops.experimental`` module

1.9.3

Fixed

- Fix deprecation warning for ``resize``
- Fix representation of ``BlksprsTensor``

Page 1 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.