Skip to content

Update FlexAttention with masking semantic#133373

Closed
drisspg wants to merge 8 commits intogh/drisspg/30/basefrom
gh/drisspg/30/head
Closed

Update FlexAttention with masking semantic#133373
drisspg wants to merge 8 commits intogh/drisspg/30/basefrom
gh/drisspg/30/head

Conversation

@drisspg
Copy link
Copy Markdown
Contributor

@drisspg drisspg commented Aug 13, 2024

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Aug 13, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/133373

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5dd6433 with merge base 14ddd93 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@drisspg
Copy link
Copy Markdown
Contributor Author

drisspg commented Aug 13, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 13, 2024
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@drisspg drisspg changed the title update FlexAttention with masking semantic Update FlexAttention with masking semantic Aug 14, 2024
Copy link
Copy Markdown
Collaborator

@Chillee Chillee left a comment

Choose a reason for hiding this comment

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

Can you add a test like this?

out, lse = torch.compile(flex_attention)(q, k, v, score_mod=mask, return_lse=True)
lse.sum().backward()

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
drisspg added a commit that referenced this pull request Aug 14, 2024
ghstack-source-id: b682009
Pull Request resolved: #133373
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Reverting PR 133373 failed

Reason: Command git -C /home/runner/work/pytorch/pytorch revert --no-edit 5a7b544e5c3e37bea62c6a231f6230c004a33d38 returned non-zero exit code 1

Auto-merging test/inductor/test_flex_attention.py
CONFLICT (content): Merge conflict in test/inductor/test_flex_attention.py
Auto-merging test/inductor/test_flex_decoding.py
Auto-merging torch/_higher_order_ops/flex_attention.py
Auto-merging torch/_inductor/kernel/flex_attention.py
Auto-merging torch/_inductor/kernel/flex_decoding.py
error: could not revert 5a7b544e5c... Update FlexAttention with masking semantic (#133373)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git revert --continue".
hint: You can instead skip this commit with "git revert --skip".
hint: To abort and get back to the state before "git revert",
hint: run "git revert --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Details for Dev Infra team Raised by workflow job

pytorchmergebot added a commit that referenced this pull request Aug 22, 2024
This reverts commit e847b6b.

Reverted #134043 on behalf of https://github.com/jeanschmidt due to Need to revert, in order to be able to revert #133373, feel free to reland this after solving conflicts ([comment](#134043 (comment)))
pytorchmergebot referenced this pull request Aug 22, 2024
# Summary
Adds the option for the head dims to be different between QK and V tensors.

Fixes issue: #133674

V_DIM > QK_DIM is blocked by landing: triton-lang/triton#4138 / triton-lang/triton#4540

Into PyTorch's triton branch.

Pull Request resolved: #134043
Approved by: https://github.com/Chillee
@jeanschmidt
Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "Broke internal test/inductor signals, see D61611729" -c ghfirst

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Aug 22, 2024
This reverts commit 5a7b544.

Reverted #133373 on behalf of https://github.com/jeanschmidt due to Broke internal test/inductor signals, see D61611729 ([comment](#133373 (comment)))
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@drisspg your PR has been successfully reverted.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang mikaylagawarecki

[ghstack-poisoned]
drisspg added a commit that referenced this pull request Aug 22, 2024
ghstack-source-id: 0565f1e
Pull Request resolved: #133373
@drisspg
Copy link
Copy Markdown
Contributor Author

drisspg commented Aug 22, 2024

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@drisspg
Copy link
Copy Markdown
Contributor Author

drisspg commented Aug 22, 2024

@pytorchbot merge -f "very slow queue wait time for rocm jobs"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot added a commit to mayank31398/pytorch that referenced this pull request Aug 23, 2024
…134043)"

This reverts commit e847b6b.

Reverted pytorch#134043 on behalf of https://github.com/jeanschmidt due to Need to revert, in order to be able to revert pytorch#133373, feel free to reland this after solving conflicts ([comment](pytorch#134043 (comment)))
pytorchmergebot added a commit to mayank31398/pytorch that referenced this pull request Aug 23, 2024
This reverts commit 5a7b544.

Reverted pytorch#133373 on behalf of https://github.com/jeanschmidt due to Broke internal test/inductor signals, see D61611729 ([comment](pytorch#133373 (comment)))
@github-actions github-actions bot deleted the gh/drisspg/30/head branch October 1, 2024 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants