-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can it run on Mac M1 (Apple silicon?) #83
Comments
hey I just finally got around to playing with it on M1 mac. it looks like it does work with pytorch 2 and fast mode is works well but "best" is very slow. if you haven't yet try updating to latest torch (pip install --upgrade torch) |
I tried it out with the latest code and set the torch.device to 'mps' and it worked! The 'flavor chain' part is very slow, but it seemed to finish even with flavor chain only at 28% mark? Anyway. If there is a recommended way to set it to maximize use of M1 capabilities, please advise. Seems like this bit of code here overrides the device setting and sets the torch device back to 'cuda' which of course defaults back to 'cpu' Looks like there is a recent bug to fix this in pytorch (active 2 days ago): pytorch/pytorch#99272 Thank you! ❤️ |
There is already a PR suggesting autocast changes for a more recent version, but no fp16 is mentioned. Just wanna add that fp16 also works on mps. It reduces RAM usage in half. |
I love this proggie so much, wish I could run it on my M1 laptop.
Trying your readme example:
It fails with this error:
stacktrace:
Tried setting device to 'cpu' instead of 'cuda', same error.
Thanks for any clues
The text was updated successfully, but these errors were encountered: