ssible generations you should enable HPU graphs with use_hpu_graphs=True.
Finally, you will need to specify a Gaudi configuration which can be downloaded from the Hugging Face Hub.


	Copied
from optimum.habana import GaudiConfig
from optimum.habana.diffusers import GaudiDDIMScheduler, GaudiStableDiffusionPipeline

model_name = "stabilityai/stable-diffusion-2-base"
scheduler = GaudiDDIMScheduler.from_pretrained(model_name, subfolder="scheduler"