or=generator, num_inference_steps=25).images
image_grid(images)


Next steps
	
In this tutorial, you learned how to optimize a DiffusionPipeline for computational and memory efficiency as well as improving the quality of generated outputs. If you’re interested in making your pipeline even faster, take a look at the following resources:
Enable xFormers memory efficient attention mechanism for faster speed and reduced memory consumption.
Learn ho