with enable_xformers_memory_efficient_attention() to reduce memory use further if you have xFormers installed. To use tiled VAE processing, call enable_vae_tiling() on your pipeline before inference:   Copied import torch
from diffusers import StableDiffusionPipeline, UniPCMultistepScheduler

pipe = StableDiffusionPipeline.from_pretrained(
    "runwayml/stable-diffusion-v1-5",
    torch_dtype=torch.float16,
    use_safetensors=True,
)
pipe.sche