macOS 12.6 or later (13.0 or later recommended).
arm64 version of Python.
PyTorch 2.0 (recommended) or 1.13 (minimum version supported for mps). You can install it with pip or conda using the instructions in https://pytorch.org/get-started/locally/.

Inference Pipeline
	
The snippet below demonstrates how to use the mps backend using the familiar to() interface to move the Stable Diffusion pipeline to your M1 or M2 device.
If you are using PyTo