Configure Hardware Backends (MPS, Windows, CPU)
mainMac Silicon (MPS)
Support is experimental. To use the MPS backend:
- Install OpenMP runtime (e.g., via mac.r-project.org/openmp/).
- Use the latest PyTorch (2.4.0+ recommended).
- Run with the environment variable:
PYTORCH_ENABLE_MPS_FALLBACK=1. - Note: MPS uses more memory than CUDA. If you have < 32GB unified memory, consider the CPU version.
Windows
Support is experimental. Requires Visual Studio 2022 and appropriate PyTorch/CUDA versions.
CPU
- The CPU backend is used automatically if no GPU is detected.
- To force CPU usage even if a GPU is present, set the environment variable:
SF3D_USE_CPU=1.