This document provides instructions for fine-tuning the HunyuanVideo model.
- Install the videotuna environment (see here)
- Download the checkpoints for HunyuanVideo (see here)
- Install deepspeed:
poetry run install-deepspeed-
Run the commands in the terminal to launch training.
bash shscripts/train_hunyuanvideo_t2v_lora.shNOTE: this script uses deepspeed for training.
-
After training, one additional checkpoints converting step is needed. The script is:
tools/deepspeed_checkpoint_converter.py
-
Inference:
bash shscripts/inference_hunyuanvideo_t2v_lora.sh- You need to provide the checkpoint path to the
ckptargument in the above shell script.
Note:
- The training and inference use the default model config from
configs/007_hunyuanvideo/hunyuanvideo_diffuser.yaml
- You need to provide the checkpoint path to the