noisy_model_input = noise_scheduler.add_noise(model_input, noise, timesteps)
```  
If you want to learn more about how the training loop works, check out the [Understanding pipelines, models and schedulers](../using-diffusers/write_own_pipeline) tutorial which breaks down the basic pattern of the denoising process.