...     noisy_residual = model(sample=noisy_sample, timestep=2).sample To generate actual examples though, you’ll need a scheduler to guide the denoising process. In the next section, you’ll learn how to couple a model with a scheduler.  Schedulers Schedulers manage going from a noisy sample to a less noisy sample given the model output - in this case, it is the noisy_residual. 🧨 Diffusers is a toolbox for building diffusion systems. While the DiffusionPipeline is a convenient way to get started with a pre-built diffusion system, you can also choose your own model and scheduler components separately to build a custom diffusion system. For the quicktour, you’ll instantiate the DDPMScheduler with its from_config() method:   Copied >>> from diffusers import DDPMScheduler