Skip to content
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

M1 "cuda" Support ? #131

Open
rrigoni opened this issue Apr 10, 2022 · 10 comments
Open

M1 "cuda" Support ? #131

rrigoni opened this issue Apr 10, 2022 · 10 comments

Comments

@rrigoni
Copy link

rrigoni commented Apr 10, 2022

Hi all,

I'm new and this might be a newbie question...
Is there a way to emulate cuda on mac m1 gpu's?
Or use big-sleep at a CPU level?

I have Tensorflow installed and running in my m1 mac.

@jnyheim
Copy link

jnyheim commented May 5, 2022

Same issue here.

I have yet been able to find a solution by my self, hoping this soon will be resolved.

@WASasquatch
Copy link

Yeah, it's weird this is CUDA only, but over at deep-daze, it can be NVIDIA or AMD.

@rrigoni
Copy link
Author

rrigoni commented May 22, 2022

Pytorch now is compatible with M1 (see https://pytorch.org/blog/introducing-accelerated-pytorch-training-on-mac/). Are there any plans on big-sleep support it as well ot it will be only cuda?

@htoyryla
Copy link

M1 support is definitely not ready yet. I tried it, and could run some performance tests, but cuda ("mps") did not work correctly especially in the backward direction.

@WASasquatch
Copy link

WASasquatch commented May 23, 2022 via email

@htoyryla
Copy link

Does M1 even have Cuda? I don't see them listed on any specification. I
thouthg they had their own thing, called ALU Cores, not CUDA Cores.

Pytorch calls it mps, uses "metal shaders", see the link in rrgoni's comment.

@WASasquatch
Copy link

WASasquatch commented May 24, 2022 via email

@htoyryla
Copy link

htoyryla commented May 24, 2022

OK. I'd be surprised though if people at pytorch would not know what they are doing, implementing accelerated tensor operations using mps.

Seen from an applications developer's point of view, what is available a the moment is not even alpha. Could not get a simple loss.backwards to work correctly. It runs, but does not converge like it does on cpu. Quite soon one also gets into "not implemented area". And finally, the speed improvement over cpu was not much.

PS. Now I got what you said... that there are several incompatible M1 GPU implementations?

@WASasquatch
Copy link

WASasquatch commented May 24, 2022 via email

@htoyryla
Copy link

htoyryla commented May 24, 2022

I'll get my coat. I was hoping I would be able to get a M1 Studio to replace one of my linux boxes, but maybe not worth while expecting much.

Edit: Anyhow... I only wanted to comment that the M1 support is by no means ready. Without knowing the details, already a quick look at their issue tracker appeared to me to show that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants