Skip to content

[ROCm] Update to AOTriton 0.7b - #134498

Closed
xinyazhang wants to merge 32 commits into
pytorch:mainfrom
ROCm:xinyazhang/tensor_philox
Closed

xinyazhang wants to merge 32 commits into
pytorch:mainfrom
ROCm:xinyazhang/tensor_philox

Conversation

@xinyazhang

@xinyazhang xinyazhang commented Aug 26, 2024 •

Copy link
Copy Markdown
Collaborator

Notable changes:

  1. Enable CudaGraph related tests
  2. Fix UT problems
  3. EXPERIMENTAL Navi31 support. User should enable Navi31 support with Env Var TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1

Know Problem:

  1. test/test_transformers.py will massive failures and/or NaN outputs with --use-pytest
    • Update: Confirmed skip class TestSDPAPrivateUse1Only can fix the problem with --use-pytest

Note:
AOTriton 0.7b adds support to nestedtenosrs+SDPA but need more work (and consequently a separate PR) to enable it.

Fixes #133540

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang

@pytorch-bot

pytorch-bot Bot commented Aug 26, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 2 New Failures, 2 Unrelated Failures

As of commit 42a138f with merge base 451eaf0 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

@xinyazhang

Copy link
Copy Markdown
Collaborator Author

@pytorchbot label "keep-going"

@pytorch-bot pytorch-bot Bot added module: inductor keep-going Don't stop on first failure, keep running tests until the end labels Aug 28, 2024
Comment thread .ci/docker/aotriton_version.txt Resolved
@xinyazhang
xinyazhang marked this pull request as ready for review August 29, 2024 16:32
@xinyazhang
xinyazhang force-pushed the xinyazhang/tensor_philox branch from dc8934f to 2aca0ae Compare August 29, 2024 17:40
@xinyazhang
xinyazhang requested a review from a team as a code owner August 29, 2024 17:40
@janeyx99 janeyx99 added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Aug 30, 2024
@xinyazhang
xinyazhang force-pushed the xinyazhang/tensor_philox branch from a917047 to cb2e70c Compare September 3, 2024 16:42
@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

Merge failed

Reason: 1 jobs have failed, first few of them are: rocm / linux-focal-rocm6.1-py3.8 / test (default, 3, 6, linux.rocm.gpu.2)

Details for Dev Infra team Raised by workflow job

@jithunnair-amd

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -f "ROCm CI failures are unrelated as per #134498 (comment)"

@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

@pruthvistony

Copy link
Copy Markdown
Collaborator

@pytorchmergebot cherry-pick --onto release/2.5 -c critical

@pytorchbot

Copy link
Copy Markdown
Collaborator

Cherry picking #134498

Command git -C /home/runner/work/pytorch/pytorch cherry-pick -x 74fd1bf965e89dce25106a08a13b1c93e4893898 returned non-zero exit code 1

Auto-merging aten/src/ATen/native/transformers/cuda/attention.cu
Auto-merging aten/src/ATen/native/transformers/cuda/attention_backward.cu
Auto-merging aten/src/ATen/native/transformers/cuda/sdp_utils.cpp
Auto-merging test/functorch/test_control_flow.py
CONFLICT (content): Merge conflict in test/functorch/test_control_flow.py
Auto-merging test/inductor/test_flex_attention.py
Auto-merging test/inductor/test_flex_decoding.py
Auto-merging test/test_nn.py
Auto-merging test/test_transformers.py
Auto-merging torch/testing/_internal/common_methods_invocations.py
error: could not apply 74fd1bf965... [ROCm] Update to AOTriton 0.7b (#134498)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Details for Dev Infra team Raised by workflow job

pruthvistony pushed a commit to ROCm/pytorch that referenced this pull request Sep 13, 2024
It's a cherry-picked version of
pytorch#134498

(WIP: need some work on the UT part)
- [edit] Discussed with Xinya and this part is already part of current
PR.
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Sep 20, 2024
Notable changes:
1. Enable CudaGraph related tests
2. Fix UT problems
3. EXPERIMENTAL Navi31 support. User should enable Navi31 support with Env Var `TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1`

Know Problem:
1. `test/test_transformers.py` will massive failures and/or NaN outputs with `--use-pytest`
    + Update: Confirmed skip `class TestSDPAPrivateUse1Only` can fix the problem with `--use-pytest`

Note:
AOTriton 0.7b adds support to nestedtenosrs+SDPA but need more work (and consequently a separate PR) to enable it.

Fixes pytorch#133540

Pull Request resolved: pytorch#134498
Approved by: https://github.com/pruthvistony, https://github.com/jeffdaily, https://github.com/malfet
pruthvistony pushed a commit to ROCm/pytorch that referenced this pull request Oct 8, 2024
A cherry-picked version of
pytorch#134498 for
rocm6.3_internal_testing
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Oct 11, 2024
=============================================

Bump to AOTriton 0.7.1b (#1572)

A cherry-picked version of
pytorch#134498 for
rocm6.3_internal_testing

(cherry picked from commit d28d7ff)

AOTriton 0.7.1 compile fix

(cherry picked from commit 7ac294f)
pruthvistony pushed a commit to ROCm/pytorch that referenced this pull request Dec 21, 2024
=============================================

Bump to AOTriton 0.7.1b (#1572)

A cherry-picked version of
pytorch#134498 for
rocm6.3_internal_testing

(cherry picked from commit d28d7ff)

AOTriton 0.7.1 compile fix

(cherry picked from commit 7ac294f)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Mar 17, 2025
It's a cherry-picked version of
pytorch#134498

(WIP: need some work on the UT part)
- [edit] Discussed with Xinya and this part is already part of current
PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end Merged module: inductor module: rocm AMD GPU support for Pytorch open source release notes: releng release notes category rocm This tag is for PRs from ROCm team triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DISABLED test_scaled_dot_product_attention_cuda (__main__.TestOneOffModelExportResult)

8 participants