HunyuanVideo: A Systematic Framework For Large Video Generation Model
update fp8 readme
bobmin5ab5edef9ac7
diff --git a/README.md b/README.mdindex d08dea3..9a96cb1 100644--- a/README.md+++ b/README.md@@ -391,6 +391,34 @@ You can change the `--ulysses-degree` and `--ring-degree` to control the paralle</table></p>+## 🚀 FP8 Inference++Using HunyuanVideo with FP8 quantized weights, which saves about 10GB of GPU memory.++### Using Command Line++Here, you must explicitly specify the FP8 weight path. For example, to generate a video with fp8 weights, you can use the following command:++```bash+cd HunyuanVideo++DIT_CKPT_PATH={PATH_TO_FP8_WEIGHTS}/{WEIGHT_NAME}_fp8.pt++python3 sample_video.py \+ --dit-weight ${DIT_CKPT_PATH} \+ --video-size 1280 720 \+ --video-length 129 \+ --infer-steps 50 \+ --prompt "A cat walks on the grass, realistic style." \+ --seed 42 \+ --embedded-cfg-scale 6.0 \+ --flow-shift 7.0 \+ --flow-reverse \+ --use-cpu-offload \+ --use-fp8 \+ --save-path ./results+```+## 🔗 BibTeXIf you find [HunyuanVideo](https://arxiv.org/abs/2412.03603) useful for your research and applications, please cite using this BibTeX:diff --git a/README_zh.md b/README_zh.mdindex 3abb65a..86a88c2 100644--- a/README_zh.md+++ b/README_zh.md@@ -381,6 +381,33 @@ torchrun --nproc_per_node=8 sample_video_parallel.py \</table></p>+## 🚀 FP8 Inference++使用FP8量化后的HunyuanVideo模型能够帮您节省大概10GB显存。++### Using Command Line++这里,您必须显示地指定FP8的权重路径。例如,可用如下命令使用FP8模型推理++```bash+cd HunyuanVideo++DIT_CKPT_PATH={PATH_TO_FP8_WEIGHTS}/{WEIGHT_NAME}_fp8.pt++python3 sample_video.py \+ --dit-weight ${DIT_CKPT_PATH} \+ --video-size 1280 720 \+ --video-length 129 \+ --infer-steps 50 \+ --prompt "A cat walks on the grass, realistic style." \+ --seed 42 \+ --embedded-cfg-scale 6.0 \+ --flow-shift 7.0 \+ --flow-reverse \+ --use-cpu-offload \+ --use-fp8 \+ --save-path ./results+```## 🔗 BibTeX如果您认为 [HunyuanVideo](https://arxiv.org/abs/2412.03603) 给您的研究和应用带来了一些帮助,可以通过下面的方式来引用: