Skip to content

[Attention] Use multiple subgroups for memory bound attention - #21363

Merged
Groverkss merged 2 commits into
iree-org:mainfrom
Groverkss:paged-attention-multi-subgroup
Jul 17, 2025
Merged

Groverkss merged 2 commits into
iree-org:mainfrom
Groverkss:paged-attention-multi-subgroup

Conversation

@Groverkss

@Groverkss Groverkss commented Jul 14, 2025 •

Copy link
Copy Markdown
Contributor

Now that we properly support unaligned/dynamic shapes in vector distribute pipeline, add a configuration for attention to use multiple subgroups for memory bound attention.

Verified on MI300-X for accuracy and a speedup of 2x for sequence length ~4096 (unaligned, dynamic).

@Groverkss Groverkss mentioned this pull request Jul 14, 2025
41 of 45 tasks
@Groverkss
Groverkss marked this pull request as ready for review July 14, 2025 17:01

@MaheshRavishankar MaheshRavishankar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamping for now (cause I dont have context on the heuristics really, and it is a heuristic). Fine with addressing any feedback after the fact.

@Groverkss
Groverkss force-pushed the paged-attention-multi-subgroup branch from 257ba74 to 467acee Compare July 17, 2025 13:51
@Groverkss
Groverkss enabled auto-merge (squash) July 17, 2025 13:52
@Groverkss
Groverkss merged commit 2947c5f into iree-org:main Jul 17, 2025
IanWood1 pushed a commit to IanWood1/iree that referenced this pull request Jul 18, 2025
…rg#21363)

Now that we properly support unaligned/dynamic shapes in vector
distribute pipeline, add a configuration for attention to use multiple
subgroups for memory bound attention.

Verified on MI300-X for accuracy and a speedup of 2x for sequence length
~4096 (unaligned, dynamic).
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
Now that we properly support unaligned/dynamic shapes in vector
distribute pipeline, add a configuration for attention to use multiple
subgroups for memory bound attention.

Verified on MI300-X for accuracy and a speedup of 2x for sequence length
~4096 (unaligned, dynamic).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants