pip install git+https://github.com/apple/ml-stable-diffusion  Download the Model Checkpoints To run inference in Python, use one of the versions stored in the packages folders because the compiled ones are only compatible with Swift. You may choose whether you want to use original or split_einsum attention. This is how you’d download the original attention variant from the Hub to a directory called models:   Copied from huggingface_hub import snapshot_download