Skip to content

Pad OnlineAttention - #21152

Merged
nicolasvasilache merged 12 commits into
iree-org:mainfrom
nicolasvasilache:users/nico/pad-attention
Jul 6, 2025
Merged

nicolasvasilache merged 12 commits into
iree-org:mainfrom
nicolasvasilache:users/nico/pad-attention

Conversation

@nicolasvasilache

@nicolasvasilache nicolasvasilache commented Jun 20, 2025 •

Copy link
Copy Markdown
Contributor

This PR makes OnlineAttention derive from IndexingMapOpInterface and make it pad with transform.structured.pad_tiling_interface.

Additionally, ensures the dynamic case pads to a constant before tiling and properly canonicalizes to constant shapes
once AffineMin simplification kicks in.

This requires integrating LLVM past d31ba5256327d30f264c2f671bf197877b242cde.

The integrate PR is separated in #21175

@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch 5 times, most recently from a4314ce to 8e0d0b9 Compare June 24, 2025 12:14
@nicolasvasilache nicolasvasilache changed the title Users/nico/pad attention Pad OnlineAttention Jun 24, 2025
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch from a5c736d to eea5d3c Compare June 24, 2025 12:17
@nicolasvasilache
nicolasvasilache marked this pull request as ready for review June 24, 2025 12:17
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch 2 times, most recently from e44c6f0 to a8a4af6 Compare June 24, 2025 14:38

@Groverkss Groverkss left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Attention changes LGTM, I know that the integerate is a bit complex because of the upstream changes required for this patch, so it would be good to do it with this patch. I'll raise it on discord. Let's wait a bit before landing. It would be easier to split the integrate changes out of this patch into a seperate patch maybe.

nicolasvasilache pushed a commit to nicolasvasilache/iree that referenced this pull request Jun 24, 2025
Supports integrating LLVM past d31ba5256327d30f264c2f671bf197877b242cde.

Signed-off-by: Nicolas Vasilache <[email protected]>
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch from cce700c to c766ee1 Compare June 24, 2025 15:09
nicolasvasilache pushed a commit to nicolasvasilache/iree that referenced this pull request Jun 24, 2025
Supports integrating LLVM past d31ba5256327d30f264c2f671bf197877b242cde.

Signed-off-by: Nicolas Vasilache <[email protected]>
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch from 4d3ecf0 to 0aca200 Compare June 24, 2025 15:12
nicolasvasilache pushed a commit to nicolasvasilache/iree that referenced this pull request Jun 27, 2025
Supports integrating LLVM past d31ba5256327d30f264c2f671bf197877b242cde.

Signed-off-by: Nicolas Vasilache <[email protected]>
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch from 0aca200 to bc2b383 Compare June 27, 2025 09:38
@Groverkss Groverkss mentioned this pull request Jun 27, 2025
41 of 45 tasks
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch 2 times, most recently from 132fb17 to ce2863c Compare June 30, 2025 20:02
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch 2 times, most recently from 6af0369 to 79ddb81 Compare July 3, 2025 16:01
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch 8 times, most recently from bf4b88d to f7e209e Compare July 3, 2025 18:48
Signed-off-by: Nicolas Vasilache <[email protected]>
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch from f7e209e to 84a6842 Compare July 3, 2025 19:05
Signed-off-by: Nicolas Vasilache <[email protected]>
@nicolasvasilache
nicolasvasilache enabled auto-merge (squash) July 4, 2025 09:38
@Groverkss
Groverkss disabled auto-merge July 4, 2025 09:43
Signed-off-by: Nicolas Vasilache <[email protected]>
@nicolasvasilache
nicolasvasilache enabled auto-merge (squash) July 4, 2025 10:09
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch from 2dc7a2e to 13dd5c6 Compare July 4, 2025 16:31
Signed-off-by: Nicolas Vasilache <[email protected]>
@nicolasvasilache
nicolasvasilache force-pushed the users/nico/pad-attention branch from 13dd5c6 to 42765a1 Compare July 6, 2025 17:14
@nicolasvasilache
nicolasvasilache merged commit f5023e8 into iree-org:main Jul 6, 2025
@nicolasvasilache
nicolasvasilache deleted the users/nico/pad-attention branch July 6, 2025 21:13
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
This PR makes OnlineAttention derive from IndexingMapOpInterface and
make it pad with transform.structured.pad_tiling_interface.

Additionally, ensures the dynamic case pads to a constant before tiling
and properly canonicalizes to constant shapes
once AffineMin simplification kicks in.

This requires integrating LLVM past
d31ba5256327d30f264c2f671bf197877b242cde.

The integrate PR is separated in #21175

---------

Signed-off-by: Nicolas Vasilache <[email protected]>
Signed-off-by: Nicolas Vasilache <[email protected]>
Co-authored-by: Nicolas Vasilache <[email protected]>
Co-authored-by: Kunwar Grover <[email protected]>
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.

3 participants