AI Potluck
Infrastructure / Compilers & Model Optimization

Block Sparse Attention

MIT HAN Lab

Block Sparse Attention is a library of sparse attention kernels from MIT HAN Lab supporting streaming attention at token and block granularity plus block-sparse attention, modified from FlashAttention to reduce the compute and memory cost of long-context LLM inference.

Verified 2026-09-02 via the GitHub API and the LICENSE body.

Openness

5 high confidence
5.0
license
BSD-3-Clause(OSI)
source
public
core-gated
ungated

BSD-3-Clause license body confirmed. The repository is public and unarchived and builds the whole product, and the README describes no paid tier, enterprise edition or license-gated build beside it, so source is public and the core ungated.

Adoption

1 low confidence
1.0

549 GitHub stars, which lands in the <1K stars band of the stars scale, level 1. Block-Sparse-Attention has no registry package and installs from source, so no download count exists and the stars scale applies.

Capability

2 medium confidence
2.0

Banded on the category feature matrix as a narrow kernel set: a small number of sparse-pattern variants built on top of FlashAttention rather than the general attention coverage flash-attention itself supplies. Placed two bands below the tensorrt rung.

Verified 2026-09-02