🤗 Diffusers is compatible with Habana Gaudi through 🤗 [Optimum](https://huggingface.co/docs/optimum/habana/usage_guides/stable_diffusion). Follow the [installation](https://docs.habana.ai/en/latest/Installation_Guide/index.html) guide to install the SynapseAI and Gaudi drivers, and then install Optimum Habana:  
```bash
python -m pip install --upgrade-strategy eager optimum[habana]
```  
To generate images with Stable Diffusion 1 and 2 on Gaudi, you need to instantiate two instances: