This commit is contained in:
Timothy Jaeryang Baek 2025-01-05 00:28:36 -08:00
parent d477f73c7e
commit a4132322d9

View File

@ -53,9 +53,11 @@ if USE_CUDA.lower() == "true":
else: else:
DEVICE_TYPE = "cpu" DEVICE_TYPE = "cpu"
try:
if torch.backends.mps.is_available() and torch.backends.mps.is_built(): if torch.backends.mps.is_available() and torch.backends.mps.is_built():
DEVICE_TYPE = "mps" DEVICE_TYPE = "mps"
except Exception:
pass
#################################### ####################################
# LOGGING # LOGGING