-
Notifications
You must be signed in to change notification settings - Fork 11
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
support GPU? #6
Comments
I run this model on the GPU on my MacBook Pro M1. Why do you say it only runs on CPU? |
When initializing the model with .cpuAndGPU, it crashes and throws the following error.using:/AppleInternal/Library/BuildRoots/4b66fb3c-7dd0-11ef-b4fb-4a83e32a47e1/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphExecutable.mm, line 129: error 'Error: unhandled platform for MPSGraph serialization' The only way it works is by |
Hmmm... I've never seen that error. What hardware and macOS version are you running? |
I’m running macOS 15.1 (24B83) both a MacBook Air M1 and a MacBook Pro M1 Pro.The issue occurs on both machines, so it seems to be consistent across the hardware.” Xcode Version 16.1 (16B40) Do it need to adapt it for macOS 15.1 or Xcode 16.1? |
I'm also running macOS 15.1 and Xcode 16.1. Hmmm... I tried rebuilding I was able to successfully use the model I built. I suggest doing a |
BTW, I did a Google search for the error you're encountering and found the following: https://forums.developer.apple.com/forums/thread/768295 So it looks like this can be an issue with "official" models, too... 👎. Can you try the example from the forum post and see if you get the same error again? |
Thanks for your update! I did a git pull, deleted my conda environment, and created a new one. I also updated the environment by running pip install -r requirements.txt and rebuilt the model. Unfortunately, the issue persists, and I still encounter the same error when trying to use the model. |
Thanks for pointing me to the forum post! I tried the example mentioned there, but I encountered the same error again. |
You’re right, it seems like this issue also occurs with the official models. I |
The current script can only run on Mac if config.computeUnits = .cpuOnly is set.
How can I change it to support GPU?
Thank you!
The text was updated successfully, but these errors were encountered: