Menu

LatentSync 1.6 on a free Kaggle T4: fp32 OOM vs fp16 + VAE slicing at 7.56 GiB
📰

LatentSync 1.6 on a free Kaggle T4: fp32 OOM vs fp16 + VAE slicing at 7.56 GiB

DEV Community: pytorch·Zero5 Works·1 day ago
#fbBBbyPL
#devtopytorch#devto#dev#latentsync#peak
Long article (967 words) — no AI summary yet.
Reading 0:00
15s threshold

LatentSync 1.6 ran out of memory on a free Kaggle T4. PyTorch held 13.28 GiB and asked for 2 more. With fp16 and VAE slicing, the same clip finished all 242 frames at a 7.56 GiB peak.

The fix is two lines in my own runner, and LatentSync's code stays untouched. Every number below comes from one run: Version #4 of my public Kaggle notebook for LatentSync 1.6 on a free T4 . The notebook's title carries the peak from my own private clip. This post sticks to the public demo run.

The setup

Model: LatentSync 1.6 at commit a229c39 . Its README lists 18 GB of VRAM for inference.

GPU: Kaggle T4 ×2. PyTorch sees 14.56 GiB per card, compute capability 7.5.

Input: the upstream demo clip demo1 . 10 s, 1080×1920, 25 fps.

Settings: 10 steps, guidance 1.5, DeepCache on, seed 1247.

Pinned: torch 2.5.1+cu121, diffusers 0.32.2, mediapipe 0.10.14, in a separate Python 3.10 env built with uv .

I ran two configs in parallel, one per T4. A follows the upstream dtype rule.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.