-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Avoid overwriting COW data in MPS code #150721
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
base: gh/kurtamohler/34/base
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/150721
Note: Links to docs will display an error until the docs builds have been completed. ❌ 6 New Failures, 1 Unrelated FailureAs of commit f94aa9d with merge base 56e1c23 ( NEW FAILURES - The following jobs have failed:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
To be confident that I didn't miss anything, I will have to add a test that runs through the |
ghstack-source-id: 063d9d0 Pull Request resolved: pytorch#150721
ghstack-source-id: 10edf84 Pull Request resolved: pytorch#150721
ghstack-source-id: 10edf84 Pull Request resolved: pytorch#150721
ghstack-source-id: bc91047 Pull Request resolved: pytorch#150721
ghstack-source-id: 278497b Pull Request resolved: pytorch#150721
ghstack-source-id: c9c7b65 Pull Request resolved: pytorch#150721
ghstack-source-id: a2c05ca Pull Request resolved: pytorch#150721
ghstack-source-id: 77de1e4 Pull Request resolved: pytorch/pytorch#150721
ghstack-source-id: 5b304e2 Pull Request resolved: pytorch#150721
ghstack-source-id: 3719e28 Pull Request resolved: pytorch#150721
ghstack-source-id: df7717f Pull Request resolved: pytorch#150721
ghstack-source-id: a1783ae Pull Request resolved: pytorch#150721
ghstack-source-id: 2746d1f Pull Request resolved: pytorch#150721
ghstack-source-id: 671272f Pull Request resolved: pytorch#150721
ghstack-source-id: a7e9ce0 Pull Request resolved: pytorch#150721
ghstack-source-id: 62fac33 Pull Request resolved: pytorch#150721
ghstack-source-id: 62fac33 Pull Request resolved: pytorch#150721
ghstack-source-id: 62fac33 Pull Request resolved: pytorch#150721
ghstack-source-id: 62fac33 Pull Request resolved: pytorch#150721
ghstack-source-id: 20fca86 Pull Request resolved: pytorch#150721
Fixes MPS ops that were breaking COW behavior by overwriting data without first materializing. Along with necessary materializations, this also introduces many unnecessary materializations, but the MPS-CPU lazy cloning feature should now be safe to use.
Also introduces APIs in the MPS code which will be used in preventing unnecessary materializations in future PRs.
Stack from ghstack (oldest at bottom):
Tensor.to
between CPU and MPS #150569_lazy_clone
between CPU and MPS #148408