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