rated.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()
+ pipe.to("cuda")
+ pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)  Reduce memory usage Video generation is very memory intensive because you’re essentially generating num_frames 