Instructions to use FastVideo/DreamX-World-5B-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/DreamX-World-5B-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("FastVideo/DreamX-World-5B-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": "DreamXWorldARTransformer3DModel", | |
| "model_type": "ti2v", | |
| "patch_size": [ | |
| 1, | |
| 2, | |
| 2 | |
| ], | |
| "text_len": 512, | |
| "num_attention_heads": 24, | |
| "attention_head_dim": 128, | |
| "in_channels": 48, | |
| "out_channels": 48, | |
| "text_dim": 4096, | |
| "freq_dim": 256, | |
| "ffn_dim": 14336, | |
| "num_layers": 30, | |
| "local_attn_size": 12, | |
| "sink_size": 3, | |
| "cross_attn_norm": true, | |
| "qk_norm": true, | |
| "eps": 1e-06, | |
| "add_control_adapter": true, | |
| "cam_method": "prope", | |
| "attn_compress": 4, | |
| "cam_self_attn_layers": [ | |
| 0, | |
| 1, | |
| 2, | |
| 3, | |
| 4, | |
| 5, | |
| 6, | |
| 7, | |
| 8, | |
| 9, | |
| 10, | |
| 11, | |
| 12, | |
| 13, | |
| 14, | |
| 15, | |
| 16, | |
| 17, | |
| 18, | |
| 19, | |
| 20, | |
| 21, | |
| 22, | |
| 23, | |
| 24, | |
| 25, | |
| 26, | |
| 27, | |
| 28, | |
| 29 | |
| ], | |
| "num_frames_per_block": 3 | |
| } | |