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

Apparent issue with macOS Sonoma 14.4.1 #143

Open
DenaJGibbon opened this issue Apr 28, 2024 · 2 comments
Open

Apparent issue with macOS Sonoma 14.4.1 #143

DenaJGibbon opened this issue Apr 28, 2024 · 2 comments

Comments

@DenaJGibbon
Copy link

DenaJGibbon commented Apr 28, 2024

Hello,

I just upgraded to macOS Sonoma 14.4.1, and it appears to have caused a breaking change with the 'luz' setup for multi-class models. Everything was running fine before, and still runs fine on my other computer with an earlier OS. Unfortunately, it does not print out any errors, it just freezes! I have set PYTORCH_ENABLE_MPS_FALLBACK=1 in the R environment, and it prints out the fallback message and then crashes.

The binary example (https://mlverse.github.io/luz/articles/examples/dogs-vs-cats-binary-classification.html) works fine, however the multi-class example (https://mlverse.github.io/luz/articles/examples/mnist-cnn.html) causes problems. This leads me to believe it is something with the 'setup' function. This other multi-class example using 'coro' also runs fine (https://torchvision.mlverse.org/articles/examples/mnist-cnn).

I am not sure if there is other information I could provide to help, and thanks for your hard work on these great tools!

R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.4.1

torch_0.12.0
torchvision_0.5.1
luz_0.4.0

Update: I updated to R version 4.4.0 (2024-04-24) and get the same error.

@DenaJGibbon
Copy link
Author

I found a temporary work around here, by disabling MPS on luz.

mlverse/torch#1167 (comment)

@AKALeon
Copy link

AKALeon commented Jul 27, 2024

Error on M2... Rstudio just crashed

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

2 participants