To run inference, please clone Apple's repo:  
```bash
git clone https://github.com/apple/ml-stable-diffusion
cd ml-stable-diffusion
```  
And then use Apple's command line tool, [Swift Package Manager](https://www.swift.org/package-manager/#):  
```bash
swift run StableDiffusionSample --resource-path models/coreml-stable-diffusion-v1-4_original_compiled --compute-units all "a photo of an astronaut riding a horse on mars"
```