-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Fix new FA2 if is_causal
is passed explicitly
#35390
Conversation
cc @ArthurZucker, this should be included in the coming release! |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay thanks
@Cyrilvallez not sure if |
We were using 'view' without 'contiguous' before the refactors, so this should be fine! |
Sounds good! Was just overly cautious then :) |
No worries, thanks for double-checking! |
What does this PR do?
In GPT2 we have to pass
is_causal
explicitly for SDPA, but it causes double occurence for FA2 as highlighted in #35380. This fixes it.Also reverts the
reshape
to simpleview
for simplicity (even if they are technically equivalent, as reshape calls view if possible)