All models

AutoencoderKLHunyuanVideo

Open-source 13B video diffusion model; the traced graph is its causal 3D VAE latent compressor.

Diffusion and generative · 396 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (25 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
246.5M
Operations
396
Framework
PyTorch
Recurrent
No
Published
2024
Cited by
2,086 (as of 20 November 2026)
Authors
Weijie Kong, Qi Tian, Zijian Zhang and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m145
Graph hash
7bc31178393ba4f39b55ba04da4b53eef6cbf49d6a1cbde821edc095dc34af0d
Skeleton hash
2b7603d590c9b3e6ecf2fa0f34f51ca71b7a984174dec5c94d7c9e68e294dc61
Architecture hash
5185ab864d4dbaa1c3025eb04396c4e44d0d6a9078206ff930205281a8a42f65
Diagram SHA-256
524b8c6d0b67b9f5e4757bb997c6c5422406c8336e3b2bf47e8af27a8e0f6f20
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

HunyuanVideo is an open-source video foundation model, released to narrow the gap between closed-source video generators and what the open community can run. The graph traced here is not the headline denoiser but the component everything else sits on: the model is trained in a spatial-temporally compressed latent space produced by a causal 3D VAE. Gaussian noise and the text condition go in, a latent comes out, and the same 3D VAE's decoder turns that latent back into frames.

The autoencoder is built from CausalConv3D layers, a choice the authors made so one model could handle both videos and images. It compresses time by a factor of 4 and each spatial side by 8, writing the result into 16 latent channels. That shrinkage is what makes the downstream transformer affordable: it cuts the token count enough to train on videos at their original resolution and frame rate. Unlike most earlier work, the authors did not initialise it from a pre-trained image VAE but trained it from scratch. Video and image data were mixed at a ratio of 4 : 1 to balance reconstruction quality across the two. Alongside the usual L1 and KL terms, the loss adds a perceptual term and a GAN adversarial term to sharpen reconstructions.

Encoding a long high-resolution video on one GPU can run out of memory, so inference splits the clip into overlapping spatial and temporal tiles and blends the overlaps linearly. Because tiling at inference alone produced visible artifacts, an extra fine-tuning phase randomly switches tiling on and off during training so the model tolerates both. On video data the paper reports a significantly higher PSNR than the other open-source video VAEs it compares against. The authors single out text, small faces and complex textures as where the reconstructions pull ahead.

The denoiser this VAE feeds is a video generative model with over 13 billion parameters, which the report calls the largest among all open-source models. It follows a dual-stream to single-stream design: video and text tokens first pass through separate Transformer blocks, then are concatenated and fused in shared ones. The text encoder is a decoder-only multimodal large language model rather than the CLIP and T5-XXL pair used by earlier text-to-video work. Training used Flow Matching, first on 256px and 512px images and then jointly on images and videos from 256px to 960px.

Key idea. HunyuanVideo's contribution is less a single trick than a complete open recipe: data curation, architecture design, progressive scaling and training, and infrastructure for large-scale training and inference, bundled into one released video foundation model.

  • HunyuanVideo
  • Hunyuan Video
  • AutoencoderKLHunyuanVideo
  • HunyuanVideoTransformer3DModel
  • causal 3D VAE
  • 3D VAE
  • video VAE
  • text-to-video
  • video generation
  • diffusion transformer
  • video foundation model

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{kong2025hunyuanvideosystematicframeworklarge,
      title={HunyuanVideo: A Systematic Framework For Large Video Generative Models}, 
      author={Weijie Kong and Qi Tian and Zijian Zhang and Rox Min and Zuozhuo Dai and Jin Zhou and Jiangfeng Xiong and Xin Li and Bo Wu and Jianwei Zhang and Kathrina Wu and Qin Lin and Junkun Yuan and Yanxin Long and Aladdin Wang and Andong Wang and Changlin Li and Duojun Huang and Fang Yang and Hao Tan and Hongmei Wang and Jacob Song and Jiawang Bai and Jianbing Wu and Jinbao Xue and Joey Wang and Kai Wang and Mengyang Liu and Pengyu Li and Shuai Li and Weiyan Wang and Wenqing Yu and Xinchi Deng and Yang Li and Yi Chen and Yutao Cui and Yuanbo Peng and Zhentao Yu and Zhiyu He and Zhiyong Xu and Zixiang Zhou and Zunnan Xu and Yangyu Tao and Qinglin Lu and Songtao Liu and Dax Zhou and Hongfa Wang and Yong Yang and Di Wang and Yuhong Liu and Jie Jiang and Caesar Zhong},
      year={2025},
      eprint={2412.03603},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2412.03603}, 
}