Instructions to use Runware/hidream-e1-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Runware/hidream-e1-full with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Runware/hidream-e1-full", 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": "HiDreamImageTransformer2DModel", | |
| "_diffusers_version": "0.32.1", | |
| "attention_head_dim": 128, | |
| "axes_dims_rope": [ | |
| 64, | |
| 32, | |
| 32 | |
| ], | |
| "caption_channels": [ | |
| 4096, | |
| 4096 | |
| ], | |
| "max_resolution": [ | |
| 96, | |
| 192 | |
| ], | |
| "in_channels": 16, | |
| "llama_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, | |
| 30, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31, | |
| 31 | |
| ], | |
| "num_attention_heads": 20, | |
| "num_routed_experts": 4, | |
| "num_activated_experts": 2, | |
| "num_layers": 16, | |
| "num_single_layers": 32, | |
| "out_channels": 16, | |
| "patch_size": 2, | |
| "text_emb_dim": 2048 | |
| } | |