prompt = "Darth Vader surfing a wave"
video_frames = pipe(prompt, num_frames=64).frames[0]
video_path = export_to_video(video_frames)
video_path
```  
It just takes **7 GBs of GPU memory** to generate the 64 video frames using PyTorch 2.0, "fp16" precision and the techniques mentioned above.  
We can also use a different scheduler easily, using the same method we'd use for Stable Diffusion:  
```python
import torch
from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler