HunyuanVideo-Training
HunyuanVideo-Training is a lightweight framework for training the HunyuanVideo video generation model, open-sourced on GitHub by developer spacepxl. It aims to provide a simple, easy-to-read, easy-to-modify single-file training script, similar to diffusers' example training scripts, but optimized for video models. The framework's default configuration uses less than 16 GB of VRAM (targeting under 24 GB), and can run natively on Windows. To achieve low VRAM requirements, the diffusion model is quantized to nf4 via bitsandbytes (similar to QLoRA), text embeddings are precomputed, and latents are encoded on the fly to reduce overfitting. It supports image and video files, and requires accompanying .txt caption files. Users need to first download the model and cache the text embeddings, then run the training script. This tool is mainly aimed at users who want to adjust the training code themselves, and does not provide comprehensive support. The code is under the MIT license, but the HunyuanVideo model is subject to the Tencent Community License.