Text-to-Video
π Reading Time: ~17 min read
π
Updated 2026-03
Tencent HunyuanVideo: Dual-Stream DiT Video Generation, 54GB Model Pulling & Low-VRAM Offload
Deep dive into Tencent HunyuanVideo dual-stream diffusion transformer, 3D VAE video reconstruction, 54GB weight mirror download, and 24GB VRAM CPU offload.
π¬ Analysis of HunyuanVideo video generation architecture
Tencent HunyuanVideo has 13 billion parameters and uses a Diffusion Transformer design that mixes dual streams and single streams:
- Dual-stream text-video attention: The early layer retains the independent expression of video frame Latent and multi-language text Token respectively, and the later layer is unified and integrated.
- High-fidelity 3D causal VAE: 4x8x8 joint compression of the temporal and spatial dimensions, significantly reducing the DiT sequence length.
β‘ High-speed image pulling and Diffusers pipeline running
# Image pull weight
export HF_ENDPOINT="https://hf-mirror.net"
huggingface-cli download tencent/HunyuanVideo \
--local-dir /data/models/HunyuanVideo \
--local-dir-use-symlinks False \
--resume-download
import torch
from diffusers import HunyuanVideoPipeline, HunyuanVideoTransformer3DModel
transformer = HunyuanVideoTransformer3DModel.from_pretrained(
"/data/models/HunyuanVideo", subfolder="transformer", torch_dtype=torch.bfloat16
)
pipe = HunyuanVideoPipeline.from_pretrained(
"/data/models/HunyuanVideo", transformer=transformer, torch_dtype=torch.float16
)
# Enable video memory CPU offload, allowing 24GB single card to generate smoothly
pipe.enable_model_cpu_offload()
pipe.vae.enable_tiling()
output = pipe(
prompt="A cute red panda wearing glasses reading a book in an ancient library, cinematic lighting, 4k.",
num_frames=61,
height=544,
width=960,
num_inference_steps=30
).frames[0]