Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161541
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit be665a2 with merge base 4fd761f ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| @@ -1342,6 +1344,9 @@ def triton_kernel_wrapper_functional_functionalize( | |||
| triton_kernel_wrapper_functional.fallthrough(DispatchKey.AutogradCUDA) | |||
| triton_kernel_wrapper_functional.fallthrough(DispatchKey.AutogradCPU) | |||
There was a problem hiding this comment.
I wonder when the functional HOP is used over mutation HOP? Should we register to both?
There was a problem hiding this comment.
after functionalization key, the mutation hop becomes functional hop. The functional hop is not user-facing.
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / linux-jammy-rocm-py3.10 / test (default, 2, 2, linux.rocm.gpu.2) Details for Dev Infra teamRaised by workflow job |
|
@soulitzer your PR has been successfully reverted. |
This reverts commit 149c680. Reverted #161541 on behalf of https://github.com/malfet due to Broke some tests in trunk workflow, see https://hud.pytorch.org/hud/pytorch/pytorch/main/1?per_page=50&name_filter=trunk%20%2F%20linux-jammy-cuda12.8 ([comment](#161541 (comment)))
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: New commits were pushed while merging. Please rerun the merge command. Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour 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 |
This PR refactors the activation checkpoint by moving `apply_ac()` out of the llama3 `parallelize.py` module. Additionally, it introduces a warning about the configuration combinations involving SAC, `torch.compile`, and `flex_attention` to inform users of potential issues. This PR depends on pytorch/pytorch#161541 cc., @drisspg @bdhirsh @soulitzer
This PR refactors the activation checkpoint by moving `apply_ac()` out of the llama3 `parallelize.py` module. Additionally, it introduces a warning about the configuration combinations involving SAC, `torch.compile`, and `flex_attention` to inform users of potential issues. This PR depends on pytorch/pytorch#161541 cc., @drisspg @bdhirsh @soulitzer
SAC interaction with triton kernel: - In eager, triton ops are not dispatchable, and so it is always ignored by SAC, i.e., always recomputed. - In compile, although we wrap triton kernels into HOPs, allowing us to intercept them, we still recompute by default rather than save by default, so that compile maintains the invariant of using less memory than eager. - If you want to do something else (e.g. save the output of your triton kernel) you should wrap it in a custom op. Pull Request resolved: pytorch#161541 Approved by: https://github.com/drisspg, https://github.com/zou3519 ghstack dependencies: pytorch#160781
This reverts commit 149c680. Reverted pytorch#161541 on behalf of https://github.com/malfet due to Broke some tests in trunk workflow, see https://hud.pytorch.org/hud/pytorch/pytorch/main/1?per_page=50&name_filter=trunk%20%2F%20linux-jammy-cuda12.8 ([comment](pytorch#161541 (comment)))
SAC interaction with triton kernel: - In eager, triton ops are not dispatchable, and so it is always ignored by SAC, i.e., always recomputed. - In compile, although we wrap triton kernels into HOPs, allowing us to intercept them, we still recompute by default rather than save by default, so that compile maintains the invariant of using less memory than eager. - If you want to do something else (e.g. save the output of your triton kernel) you should wrap it in a custom op. Pull Request resolved: pytorch#161541 Approved by: https://github.com/drisspg, https://github.com/zou3519, https://github.com/xmfan
ghstack-source-id: 4b2ce29 Pull-Request-resolved: pytorch/pytorch#161541
This PR refactors the activation checkpoint by moving `apply_ac()` out of the llama3 `parallelize.py` module. Additionally, it introduces a warning about the configuration combinations involving SAC, `torch.compile`, and `flex_attention` to inform users of potential issues. This PR depends on pytorch/pytorch#161541 cc., @drisspg @bdhirsh @soulitzer
This PR refactors the activation checkpoint by moving `apply_ac()` out of the llama3 `parallelize.py` module. Additionally, it introduces a warning about the configuration combinations involving SAC, `torch.compile`, and `flex_attention` to inform users of potential issues. This PR depends on pytorch/pytorch#161541 cc., @drisspg @bdhirsh @soulitzer
Stack from ghstack (oldest at bottom):
SAC interaction with triton kernel:
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @fegin