← Back to context

Comment by Havoc

20 hours ago

By "Instance" do you mean their cloud platform?

Nah, just locally on my macair.

TBF, I only got to the point that using device=mps_device didn't fail. I used Sonoma at the time and the image for the vm was ghcr.io/cirruslabs/macos-sequoia-xcode:16.2-beta-3. Python 3.12, as well, because torch didn't work with later versions.

   import torch
   mps_device = torch.device("mps")
   print('device is', mps_device)
   x = torch.ones(1, device=mps_device)
   print(x)