Instructions to use DiffusersVersionsOfModels/HunyuanVideo-1.5-480p_t2v with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DiffusersVersionsOfModels/HunyuanVideo-1.5-480p_t2v with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("DiffusersVersionsOfModels/HunyuanVideo-1.5-480p_t2v", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| { | |
| "_class_name": "HunyuanVideo_1_5_DiffusionTransformer", | |
| "_diffusers_version": "0.35.0", | |
| "attn_mode": "flash", | |
| "attn_param": null, | |
| "concat_condition": true, | |
| "glyph_byT5_v2": true, | |
| "guidance_embed": false, | |
| "heads_num": 16, | |
| "hidden_size": 2048, | |
| "ideal_resolution": "480p", | |
| "ideal_task": "t2v", | |
| "in_channels": 32, | |
| "is_reshape_temporal_channels": false, | |
| "mlp_act_type": "gelu_tanh", | |
| "mlp_width_ratio": 4, | |
| "mm_double_blocks_depth": 54, | |
| "mm_single_blocks_depth": 0, | |
| "out_channels": 32, | |
| "patch_size": [ | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| "qk_norm": true, | |
| "qk_norm_type": "rms", | |
| "qkv_bias": true, | |
| "rope_dim_list": [ | |
| 16, | |
| 56, | |
| 56 | |
| ], | |
| "rope_theta": 256, | |
| "text_pool_type": null, | |
| "text_projection": "single_refiner", | |
| "text_states_dim": 3584, | |
| "text_states_dim_2": null, | |
| "use_attention_mask": true, | |
| "use_cond_type_embedding": true, | |
| "use_meanflow": false, | |
| "vision_projection": "linear", | |
| "vision_states_dim": 1152 | |
| } | |