Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for more intrinsics in attention #248

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

harsh-nod
Copy link
Contributor

This PR adds support for the 32x32x8 intrinsic in
attention. This should allow for a wider search space when tuning attention.

In order to do so, the following changes were required:

  • Add reshape as an anchor op in thread shape analysis, primarily to block the backward propagation of thread shapes from the MMA operands

  • Modify assignment of anchor ops to take indexing dims into account

This PR adds support for the 32x32x8 intrinsic in
attention. This should allow for a wider search space
when tuning attention.

In order to do so, the following changes were required:
- Add reshape as an anchor op in thread shape analysis,
  primarily to block the backward propagation of thread
  shapes from the MMA operands

- Propagate thread shapes from MMA operands only if
  they are propagatable

- Modify assignment of anchor ops to take indexing dims
  into account

- Modify the computation of cluster size and stride

- Simplification of code that adds reshapes

Signed-off-by: Harsh Menon <[email protected]>
Signed-off-by: Harsh Menon <[email protected]>
@harsh-nod harsh-nod merged commit ee62366 into iree-org:main Nov 1, 2024
7 of 8 checks passed
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