imits across
different GPU hardware.
To achieve maximum speed performance, it is recommended to create the generator directly on GPU when running
the pipeline on GPU:


	Copied
import torch
from diffusers import DDIMPipeline
import numpy as np

model_id = "google/ddpm-cifar10-32"

# load model and scheduler
ddim = DDIMPipeline.from_pretrained(model_id)
ddim.to("cuda")

# create a generator for reproducibility
generator = torch.Generator(device=