Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FlexAttention] Allow num_warps 8 since when block size >=128 #143299

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

Closed
wants to merge 5 commits into from

Conversation

drisspg
Copy link
Contributor

@drisspg drisspg commented Dec 16, 2024

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Dec 16, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit a5420d8 with merge base 7ab3177 (image):
💚 Looks good so far! There are no failures yet. 💚

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

[ghstack-poisoned]
@drisspg drisspg added the ciflow/rocm Trigger "default" config CI on ROCm label Dec 16, 2024
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@drisspg
Copy link
Contributor Author

drisspg commented Dec 17, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 17, 2024
@pytorchmergebot
Copy link
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

AmdSampsa pushed a commit to AmdSampsa/pytorch that referenced this pull request Dec 17, 2024
aditew01 pushed a commit to aditew01/pytorch that referenced this pull request Dec 18, 2024
…h#143299)

# Summary
Fixes pytorch#143290

We already strip bad configs here: https://github.com/pytorch/pytorch/blob/e0e763e33135d2ad25c613007aa5f2fee6d2cc24/torch/_inductor/kernel/flex_attention.py#L2299
So this shouldn't be needed. Confirming that the 64 x 128 case is valid otherwise we can just change the default config

Pull Request resolved: pytorch#143299
Approved by: https://github.com/yanboliang
aditew01 pushed a commit to aditew01/pytorch that referenced this pull request Dec 18, 2024
@github-actions github-actions bot deleted the gh/drisspg/101/head branch January 18, 2025 02:02
Git-Hub-Chris pushed a commit to Git-Hub-Chris/PyTorch that referenced this pull request Jan 19, 2025
dimdi-y pushed a commit to poolsideai/pytorch that referenced this pull request Jan 20, 2025
…h#143299)

# Summary
Fixes pytorch#143290

We already strip bad configs here: https://github.com/pytorch/pytorch/blob/e0e763e33135d2ad25c613007aa5f2fee6d2cc24/torch/_inductor/kernel/flex_attention.py#L2299
So this shouldn't be needed. Confirming that the 64 x 128 case is valid otherwise we can just change the default config

Pull Request resolved: pytorch#143299
Approved by: https://github.com/yanboliang
dimdi-y pushed a commit to poolsideai/pytorch that referenced this pull request Jan 20, 2025
dimdi-y pushed a commit to poolsideai/pytorch that referenced this pull request Jan 20, 2025
…h#143299)

# Summary
Fixes pytorch#143290

We already strip bad configs here: https://github.com/pytorch/pytorch/blob/e0e763e33135d2ad25c613007aa5f2fee6d2cc24/torch/_inductor/kernel/flex_attention.py#L2299
So this shouldn't be needed. Confirming that the 64 x 128 case is valid otherwise we can just change the default config

Pull Request resolved: pytorch#143299
Approved by: https://github.com/yanboliang
dimdi-y pushed a commit to poolsideai/pytorch that referenced this pull request Jan 20, 2025
@atalman atalman added this to the 2.6.1 milestone Feb 19, 2025
@atalman
Copy link
Contributor

atalman commented Feb 19, 2025

Adding to 2.6.1 as requested by Runway

@patrickvonplaten
Copy link

Is that not worth making a patch release 2.6.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor ciflow/rocm Trigger "default" config CI on ROCm ciflow/trunk Trigger trunk jobs on your pull request Merged module: flex attention module: inductor topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants