, torch_dtype=torch.float16)
pipe.to("cuda")
You can also run the diffusion process for a shorter number of timesteps.
This can either be done with the num_inference_steps argument


	Copied
pipe("<prompt>", num_inference_steps=30)
Or with the timesteps argument


	Copied
from diffusers.pipelines.deepfloyd_if import fast27_timesteps

pipe("<prompt>", timesteps=fast27_timesteps)
When doing image variation or inpainting, you can also decrease the