r.unet, mode="reduce-overhead", fullgraph=True) Enable xFormers to run SDXL if torch<2.0:   Copied + base.enable_xformers_memory_efficient_attention()
+ refiner.enable_xformers_memory_efficient_attention()  Other resources If you’re interested in experimenting with a minimal version of the UNet2DConditionModel used in SDXL, take a look at the minSDXL implementation which is written in PyTorch and directly compatible with 🤗 Diffusers.
