Views
No views yet
| GPU | CUDA version | model | inference mode | inference steps | GPU Peak Memory | inference time |
|---|---|---|---|---|---|---|
| H800 | 12.1 | HunyuanDiT | PyTorch | 100 | 13G | 28s |
| H800 | 12.1 | HunyuanDiT | TensorRT | 100 | 12G | 10s |
| H800 | 12.1 | HunyuanDiT | Distill+PyTorch | 50 | 13G | 14s |
| H800 | 12.1 | HunyuanDiT | Distill+TensorRT | 50 | 12G | 5s |
| A100 | 11.7 | HunyuanDiT | PyTorch | 100 | 13GB | 54s |
| A100 | 11.7 | HunyuanDiT | TensorRT | 100 | 11GB | 20s |
| A100 | 11.7 | HunyuanDiT | Distill+PyTorch | 50 | 13GB | 25s |
| A100 | 11.7 | HunyuanDiT | Distill+TensorRT | 50 | 11GB | 10s |
| 3090 | 11.8 | HunyuanDiT | PyTorch | 100 | 14G | 98s |
| 3090 | 11.8 | HunyuanDiT | TensorRT | 100 | 14G | 40s |
| 3090 | 11.8 | HunyuanDiT | Distill+PyTorch | 50 | 14G | 49s |
| 3090 | 11.8 | HunyuanDiT | Distill+TensorRT | 50 | 14G | 20s |
| 4090 | 11.8 | HunyuanDiT | PyTorch | 100 | 14G | 54s |
| 4090 | 11.8 | HunyuanDiT | TensorRT | 100 | 14G | 20s |
| 4090 | 11.8 | HunyuanDiT | Distill+PyTorch | 50 | 14G | 27s |
| 4090 | 11.8 | HunyuanDiT | Distill+TensorRT | 50 | 14G | 10s |
1cd HunyuanDiT
2# Use the huggingface-cli tool to download the model.
3huggingface-cli download Tencent-Hunyuan/Distillation ./pytorch_model_distill.pt --local-dir ./ckpts/t2i/model
41# By default, we start a Chinese UI.
2python app/hydit_app.py --load-key distill
3
4# Using Flash Attention for acceleration.
5python app/hydit_app.py --infer-mode fa --load-key distill
6
7# You can disable the enhancement model if the GPU memory is insufficient.
8# The enhancement will be unavailable until you restart the app without the `--no-enhance` flag.
9python app/hydit_app.py --no-enhance ---load-key distill
10
11# Start with English UI
12python app/hydit_app.py --lang en --load-key distill 1# Prompt Enhancement + Text-to-Image. Torch mode
2python sample_t2i.py --prompt "渔舟唱晚" --load-key distill --infer-steps 50
3
4# Only Text-to-Image. Torch mode
5python sample_t2i.py --prompt "渔舟唱晚" --no-enhance --load-key distill --infer-steps 50
6
7# Only Text-to-Image. Flash Attention mode
8python sample_t2i.py --infer-mode fa --prompt "渔舟唱晚" --load-key distill --infer-steps 50
9
10# Generate an image with other image sizes.
11python sample_t2i.py --prompt "渔舟唱晚" --image-size 1280 768 --load-key distill --infer-steps 50