Tencent HunyuanVideo: Dual-Stream DiT Video Generation, 54GB Model Pulling & Low-VRAM Offload
Run Tencent HunyuanVideo 13B locally on a single 24GB GPU. Fast 54GB checkpoint download via HF-Mirror, Diffusers FP8 quantization, and CPU offloading.
π¬ 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 mirror downloading and Diffusers pipeline running
# Mirror download 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]
Paste any huggingface.co model, GGUF, or dataset URL into our converter to generate ready-to-run huggingface-cli, cURL, Wget, and Python commands.
π Related Engineering Guides
Pick the exact Wan 2.2 ComfyUI weights without pulling 200GB. Compare 5B vs 14B High/Low-Noise experts, selective HF-Mirror CLI pulls, and VAE mismatch fixes.
Run Zhipu CogVideoX-5B text-to-video locally with Diffusers, 3D VAE tiling, CPU VRAM offloading on 24GB GPUs, and fast Hugging Face mirror downloads.
Download FLUX.1 Dev and Schnell 23GB weights fast via HF-Mirror. Step-by-step ComfyUI workflow setup, T5XXL/CLIP/VAE placement, and NF4 for 12GB GPUs.
Deploy ChatTTS conversational speech synthesis with fine-grained laugh and pause control, speaker timbre cloning, mirror downloads, and FastAPI serving.