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

[linalgExt::Attention] add AttentionOP boolean useExp2 to choose either exp or exp2 #19820

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ita9naiwa
Copy link
Member

@ita9naiwa ita9naiwa commented Jan 27, 2025

#18932

  • Add useExp attribute to use exp_e or exp_2
    @Groverkss I created separated PR here,

Signed-off-by: Hyunsung Lee <[email protected]>
Signed-off-by: Hyunsung Lee <[email protected]>
@ita9naiwa ita9naiwa force-pushed the ita9naiwa/att-logexp branch from 8c25391 to f3ce0d5 Compare January 27, 2025 12:25
@hanhanW hanhanW requested a review from Groverkss January 28, 2025 07:18
@ita9naiwa
Copy link
Member Author

@Groverkss Hi, any updates?

Copy link
Contributor

@Groverkss Groverkss left a comment

Choose a reason for hiding this comment

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

This looks good mostly. Can you also change the torch lowering to set this flag and verify if this flag actually gets propagated until the end?

Signed-off-by: Hyunsung Lee <[email protected]>
@ita9naiwa ita9naiwa force-pushed the ita9naiwa/att-logexp branch from 8703ce5 to a1f9be1 Compare February 25, 2025 00:03
@ita9naiwa
Copy link
Member Author

Hi, I added fix and tests to see it's propagated from TMTensor to LinalgExt.

btw, I don't see any that uses use_exp2 or something like that from torch.aten.scaled_dot_attention?

@ita9naiwa ita9naiwa requested a review from Groverkss February 25, 2025 03:41
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