unet = UNet2DConditionModel.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", subfolder="unet", use_safetensors=True)
```  
They can also be directly loaded from a [repository](https://huggingface.co/google/ddpm-cifar10-32/tree/main).  
```python
from diffusers import UNet2DModel