import torch if not torch.backends.mps.is_available(): print("MPS is available")