print(f"Model downloaded at {model_path}")

Inference
	
To run inference, please clone Apple’s repo:


	Copied
git clone https://github.com/apple/ml-stable-diffusion
cd ml-stable-diffusion
And then use Apple’s command line tool, Swift Package Manager:


	Copied
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"
You have to spe