-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[MPS] Copy fixes for MPS backend #95321
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/95321
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit fbd63e8: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot rebase |
|
@pytorchbot successfully started a rebase job. Check the current status here |
|
Rebase failed due to Command Raised by https://github.com/pytorch/pytorch/actions/runs/4254301625 |
…#95272) Fixes #ISSUE_NUMBER Pull Request resolved: pytorch#95272 Approved by: https://github.com/DenisVieriu97
- The copy_cast path requires storage_offset to be applied before casting - This should fix some correctness issues in transformer models Fixes pytorch#94980 Pull Request resolved: pytorch#95093 Approved by: https://github.com/kulinseth
419de95 to
fbd63e8
Compare
atalman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* [MPS] Handle broadcasting by expanding src tensor in Copy.mm (pytorch#95272) Fixes #ISSUE_NUMBER Pull Request resolved: pytorch#95272 Approved by: https://github.com/DenisVieriu97 * [MPS] Fix copy_cast_mps() on tensors with storage offset (pytorch#95093) - The copy_cast path requires storage_offset to be applied before casting - This should fix some correctness issues in transformer models Fixes pytorch#94980 Pull Request resolved: pytorch#95093 Approved by: https://github.com/kulinseth --------- Co-authored-by: Ramin Azarmehr <razarmehr@apple.com>
Combination PR: #95272, #95093