Skip to content

Plan to enable block size = 128 for block-sparse attention on FA4? (currently forced to 256) #2727

Description

@TarzanZhao

For block-sparse attention with FA4, I need a 128-row query block size. On Blackwell (SM100), the FA4 block-sparse path currently forces the query (M) block to 256, which is too coarse for my sparsity patterns.

The obvious fix is to use q_stage=1, but doing this naively breaks the overlap between the exp (SFU) work and the tensor cores, since only a single softmax warpgroup is left to feed them.

Is there a new implementation plan to support a 128 block size while still keeping both the SFU (exp) and the tensor cores well utilized?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions