Daankular/models / Wan2GP /shared /mps /__init__.py
Daankular's picture
download
raw
344 Bytes
"""MPS compatibility helpers and local test scripts."""
def is_mps_available():
import torch
return hasattr(torch.backends, "mps") and torch.backends.mps.is_available()
def mps_device():
import torch
return torch.device("mps") if is_mps_available() else None
def mps_device_or(default):
return mps_device() or default

Xet Storage Details

Size:
344 Bytes
·
Xet hash:
410e148d16f73cd7f8e28028cfffc769e4970ba68609995268b718e88877ac36

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.