---
id: pr-flashinfer-1177
repo: flashinfer-ai/flashinfer
pr: 1177
title: '[feat] support block sparse attention w/ variable block sizes and head-wise sparse patterns'
author: happierpig
date: '2025-06-27'
url: https://github.com/flashinfer-ai/flashinfer/pull/1177
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- sparse-attention
techniques: []
hardware_features: []
kernel_types:
- attention
- sparse-attention
languages:
- python
captured_at: '2026-04-17'
status: merged
merge_sha: 4ec2116e58ad5c0c7e130690ad0b7b57f2698020
inclusion_reason: kernel file changes
changed_paths:
- benchmarks/bench_block_sparse_attention.py
- docs/api/sparse.rst
- flashinfer/sparse.py
- setup.py
- tests/test_block_sparse.py
head_ref_oid: ea681988bce2cd5c55f8217d90354bce5349f3f8
artifact_dir: evidence/pull-bundles/flashinfer/gh-1177
---
# [feat] support block sparse attention w/ variable block sizes and head-wise sparse patterns

- Repository: `flashinfer-ai/flashinfer`
- PR: [1177](https://github.com/flashinfer-ai/flashinfer/pull/1177)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `benchmarks/bench_block_sparse_attention.py`
- `docs/api/sparse.rst`
- `flashinfer/sparse.py`
- `setup.py`
- `tests/test_block_sparse.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-1177`
