print("Saving image to flux.png")
image.save("flux.png")
```  
fp8 dynamic quantization and torch.compile reduced the inference speed to 7.56 seconds compared to the baseline, or 3.48x faster.  
</hfoption>
<hfoption id="HunyuanVideo">  
```python
import time
import torch
from diffusers import HunyuanVideoPipeline, HunyuanVideoTransformer3DModel
from diffusers.utils import export_to_video