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

[Question] Finding FlexAttn #5

Open
Zsong1106 opened this issue Aug 17, 2024 · 1 comment
Open

[Question] Finding FlexAttn #5

Zsong1106 opened this issue Aug 17, 2024 · 1 comment

Comments

@Zsong1106
Copy link

Question

I have looked at the overall code but haven't found which module it is in yet. Is the FlexAttention module in that py file

@senfu
Copy link
Contributor

senfu commented Aug 24, 2024

The FlexAttention and the high-resolution feature selection module is implemented in transformers/src/transformers/models/llama/modeling_llama.py, within the self attention impl. For example, this line.

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

No branches or pull requests

2 participants