-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
MPS Accelerator #13123
MPS Accelerator #13123
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
I'm testing this! And works fine! It is cool to use. The problem now is the pytorch backend that most of features hadn't been implemented. |
@johnnynunez Thanks for testing it. You can still use the cpu fallback with |
thank you! I will test it. I have M1 Max with 32gb still is in beta: |
@justusschock mind checking the collision? (in git there are much smaller, don't be scared by the GH message) I think we are ready to merge it... :) |
let me see if I can get to it tomorrow :) |
7eba6a4
to
5b5a58e
Compare
Co-authored-by: RobertLaurella <[email protected]>
Co-authored-by: RobertLaurella <[email protected]>
Just saw this finally got merged. Wohoo! Great work @justusschock & everyone! 🎉 |
@johnnynunez were you able to fix the issue? I have a similar error while trying to use By debugging it further I see that this line generates the following error.
|
@saikatkumardey Thanks, since you are mentioning AveragePrecision, I suggest to open an issue directly on https://github.com/Lightning-AI/metrics. Please note, not all functions in PyTorch are implemented for MPS. |
What does this PR do?
Adds a prototype of M1 GPU support via PyTorch's MPS backend (part of #13102 , renaming existing accelerators will be done separately)
To give it a try, install PL from this branch and change the accelerator to
'mps'
Remaining ToDos:
_MPS_AVAILABLE
to accelerator fileDoes your PR introduce any breaking changes? If yes, please list them.
Nope
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃
cc @Borda @akihironitta @rohitgr7 @justusschock