 algorithms each time. Lastly, pass True to torch.use_deterministic_algorithms to enable deterministic algorithms.   Copied import os
import torch

os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":16:8"

torch.backends.cudnn.benchmark = False
torch.use_deterministic_algorithms(True) Now when you run the same pipeline twice, you’ll get identical results.   Copied import torch
from diffusers import DDIMScheduler, StableDiffusionPipeline

model_id = "run