,
we can enable CPU offloading and VAE slicing to keep the memory footprint at bay. Let’s generate a video of 8 seconds (64 frames) on the same GPU using CPU offloading and VAE slicing:   Copied import torch
from diffusers import DiffusionPipeline
from diffusers.utils import export_to_video

pipe = DiffusionPipeline.from_pretrained("damo-vilab/text-to-video-ms-1.7b", torch_dtype=torch.float16, variant="fp16")
pipe.enable_model_cpu_offload()

# 