-
Notifications
You must be signed in to change notification settings - Fork 71
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
Error when running on Apple Silicon with device = "mps" #40
Comments
Hello, mps is not yet fully supported as a torch device so we haven't tested vmas on it. My suggestion is to use the cpu on mac untill they fix all the issues with mps EDIT: Now it should run (almost) smoothly |
Is it feasible to replace PyTorch with TensorFlow? Or TensorFlow has some limitations? |
The whole simulator is based on pytorch so I do not think it is feasible. I’ll look into testing vmas with mps and fixing what I can fix and will let you know if there are any improvements |
Thanks, that would be really helpful 🙌🏽 . |
There are a lot of operators which are not yet supperted, like the 'norm' one.
I think for now we will just have to wait for torch to fix all these mps operators. In the meantime, the mac M1/M2 cpus are really fast, you can use those. |
The simulator now seems to run fine with device="mps", the problem is just that many operations are extremely slow due to not being supported and falling back to cpu. Like norm mentioned above |
Hi, I'm running the example
use_vmas_env
; it runs well on Apple M1 Max usingdevice = "cpu"
; however, I'm getting an Error when changingdevice = "mps"
I installed PyTorch for Apple Silicon following the documentation https://developer.apple.com/metal/pytorch/
Could you help me to figure out how to fix this problem?
Here is the console log
The text was updated successfully, but these errors were encountered: