Text-to-Image
MiniMax H3
Diffusers
Safetensors
English
image-to-image
image-editing
image-generation
Instructions to use MiniMaxAI/MiniMax-H3-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MiniMaxAI/MiniMax-H3-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-H3-Image", 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
Download transformer_diffusers/config.json from MiniMaxAI/MiniMax-H3-Image: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/resolve/refs%2Fpr%2F2/transformer_diffusers/config.json
- Command line
-
hf download hf://MiniMaxAI/MiniMax-H3-Image@refs/pr/2/transformer_diffusers/config.json
-
curl -L -o config.json https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/resolve/refs%2Fpr%2F2/transformer_diffusers/config.json
546 Bytes
| { | |
| "_class_name": "MiniMaxH3ImageTransformer2DModel", | |
| "_diffusers_version": "0.42.0.dev0", | |
| "num_attention_heads": 56, | |
| "attention_head_dim": 128, | |
| "hidden_size": 5376, | |
| "num_layers": 50, | |
| "num_refiner_layers": 2, | |
| "ffn_dim": 14336, | |
| "in_channels": 24, | |
| "patch_size": [ | |
| 1, | |
| 2, | |
| 2 | |
| ], | |
| "text_dim": 5120, | |
| "freq_dim": 256, | |
| "time_embed_hidden_dim": 5376, | |
| "time_embed_dim": 2688, | |
| "rope_freq_dim": 16, | |
| "rope_theta": 10000.0, | |
| "norm_eps": 1e-05, | |
| "qk_norm_eps": 1e-05, | |
| "final_norm_eps": 1e-05, | |
| "num_pdd_heads": 6 | |
| } |