pipeline.scheduler = DPMSolverMultistepScheduler.from_config(pipeline.scheduler.config)
```  
Now set the `num_inference_steps` to 20:  
```python
generator = torch.Generator("cuda").manual_seed(0)
image = pipeline(prompt, generator=generator, num_inference_steps=20).images[0]
image
```  
<div class="flex justify-center">
<img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/stable_diffusion_101/sd_101_3.png">
</div>