Developer runs 25.6 GB BF16 HunyuanVideo-13B in 1.8 GB VRAM via per-block weight streaming
A developer tested per-block weight streaming on large video and image diffusion transformers without resorting to lossy 4-bit quantization. The approach keeps full-precision BF16 weights in pinned host RAM and moves only the active transformer blocks onto the GPU, so at most two blocks occupy VRAM at once. The write-up describes memory bottlenecks in standard offloading, including out-of-memory crashes on 24 GB cards and VAE failures during decoding. It also reports two subtle PyTorch and MMDiT bugs that silently corrupted outputs during implementation, along with a popular attention optimization that failed the benchmark. On Wan2.1-14B running on a Tesla T4, the method cut peak VRAM from about 14.1 GB to 1.8 GB while keeping runtime roughly the same.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in