Instructions to use magespace/hyvideo-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use magespace/hyvideo-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("magespace/hyvideo-diffusers", 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": "HYVideoDiffusionTransformer", | |
| "_diffusers_version": "0.31.0", | |
| "_name_or_path": "/root/.cache/huggingface/hub/models--magespace--hyvideo-diffusers/snapshots/ae09a3d1e5306c922f86a6aaf8db5b691947d204/transformer", | |
| "guidance_embed": true, | |
| "heads_num": 24, | |
| "hidden_size": 3072, | |
| "in_channels": 16, | |
| "mlp_act_type": "gelu_tanh", | |
| "mlp_width_ratio": 4, | |
| "mm_double_blocks_depth": 20, | |
| "mm_single_blocks_depth": 40, | |
| "out_channels": 16, | |
| "patch_size": [ | |
| 1, | |
| 2, | |
| 2 | |
| ], | |
| "qk_norm": true, | |
| "qk_norm_type": "rms", | |
| "qkv_bias": true, | |
| "rope_dim_list": [ | |
| 16, | |
| 56, | |
| 56 | |
| ], | |
| "text_projection": "single_refiner", | |
| "text_states_dim": 4096, | |
| "text_states_dim_2": 768, | |
| "use_attention_mask": true | |
| } | |