-
Notifications
You must be signed in to change notification settings - Fork 204
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
PyTorch #432
Comments
There are several clues about the supports of pytorch on M1 chip. |
BTW, although pytorch can work "just ok" via M1, many tools are still lack of supports, including Scipy, matplotlib and so on. And IDEs are also far from optimized like Pycharm. |
@Cat7373 Thanks for the App Request! It looks like it's not clear that it works well enough for production on Apple Silicon. Next we'll need to see if it works via Rosetta 2. |
See: pytorch/pytorch#48524 |
Honestly, I'm not super familiar with Pytorch. Would you say that it can be installed and run as a Python developer would expect it to? |
I can confirm that pytorch works well under Rosetta. It seems there are still some issues with installing it through pip (at least for me), so developers need to build it from source, which is possible but kind of tricky at the moment since some people are having issues with OpenMP linking. So probably should not be listed as "native" just yet depending on how strict you want to be with that designation |
I just try on my MacBook Air 13 with M1, and pip works greatly installing pytorch.
|
Note that you should use the latest version python on python.org rather than the python in the Apple CommandLineTools. |
Yes, but the speed is quite slow than the other neural network platform TensorFlow which is optimized on Apple M1. Therefore, it still needs further updates I think. |
App is now live on the site! https://doesitarm.com/app/pytorch/ We'll keep this issue open for when native Apple Silicon support drops via pip on the stable release channel |
@liyucheng09 have you tried to see if GPU supports work, doing something like this?
|
reply to @mtrazzi
|
ok so you're not using your GPU. So pip install (not from source) seems to
work fine for CPU, but there's currently no evidence for GPU support.
…On Tue, Dec 29, 2020 at 2:35 PM liyucheng09 ***@***.***> wrote:
reply to @mtrazzi <https://github.com/mtrazzi>
>>> import torch
>>> device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
>>> device
device(type='cpu')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGQWBKAEVPVEH5WG2GTI5G3SXHLJRANCNFSM4UZFLCGA>
.
|
@mtrazzi It is almost impossible for developers of pytorch to support Apple M1 GPU. So, the best situation I can expect is pytorch can release an original arm version. |
from this issue comment: pytorch/pytorch#47702 (comment)
"We work on supporting AMD ROCm, you can see https://pytorch.org/docs/stable/community/persons_of_interest.html and the number of ROCm-specific Pull Requests to understand that we take it seriously. We haven't announced yet because it isn't ready yet in terms of user-friendliness to our satisfaction. There are unofficial posts such as http://lernapparat.de/pytorch-rocm/ that clearly show how to get going. We will announce when we are ready."
"We are not ready to confirm or announce M1 / MLCompute support, please stay tuned. If you are a PyTorch user, you know we will do something if it's worth it and we will do it right."
|
@mtrazzi Even on previous Intel-based Macs, Pytorch's support for GPU has been discontinued for years. The official releases of PyTorch for macOS have always been CPU-only. |
It is now available through miniforge: pytorch/pytorch#48145 (comment) |
@iliailmer So you're saying PyTorch can now be considered working and stable on Apple Silicon? |
@ThatGuySam I think so, but I may be wrong. I will be using it myself on my Silicon machine soon and so far I see no reason to believe it is unstable. |
It looks like the ARM64 Binary is also listed here and here We'll go ahead and upgrade PyTorch to the following status: And we'll link to the following for updates on GPU support: |
Update is live! |
Something M1 GPU-related is coming... |
PyTorch public beta should be available in ~4 months time. |
SIKE! |
The official name of the app
Pytorch
Is there a supported version available on a stable release channel?
Unknown
Proposed App Status
Unknown
Proposed App Category
Developer Tools
Related Issue Tracker Link or discussion
None
An Official App Download Page
https://pytorch.org
Additional context
None
Full Screenshot with the App and Activity Monitor(if self reporting) or Silicon Info
None
The text was updated successfully, but these errors were encountered: