
To speed-up things and reduce memory, let’s enable model offloading and use the fast UniPCMultistepScheduler.


	Copied
from diffusers import UniPCMultistepScheduler

pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)

# this command loads the individual model components on GPU on-demand.
pipe.enable_model_cpu_offload()
Finally, we can run the pipeline:


	Copied
generator = torch.manual_seed(0)

out_image = pipe(
    