MPSAccelerator¶
- class lightning_fabric.accelerators.MPSAccelerator[source]¶
Bases:
lightning_fabric.accelerators.accelerator.Accelerator
Accelerator for Metal Apple Silicon GPU devices.
- static is_available()[source]¶
MPS is only available for certain torch builds starting at torch>=1.12, and is only enabled on a machine with the ARM-based Apple Silicon processors.
- Return type:
- setup_device(device)[source]¶
- Raises:
ValueError – If the selected device is not MPS.
- Return type: