export_to_video(frames, "generated.mp4", fps=7)  "source image of a rocket"  "generated video from source image"  torch.compile You can gain a 20-25% speedup at the expense of slightly increased memory by compiling the UNet.   Copied - pipe.enable_model_cpu_offload()