Text-to-Image
Diffusers
Safetensors
MageFlowPipeline
image-generation
image-editing
diffusion
rectified-flow
mage-flow
Instructions to use microsoft/Mage-Flow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use microsoft/Mage-Flow with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("microsoft/Mage-Flow", torch_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
- Local Apps Settings
- Draw Things
- DiffusionBee
| { | |
| "in_channels": 128, | |
| "out_channels": 128, | |
| "vec_in_dim": 0, | |
| "context_in_dim": 2560, | |
| "hidden_size": 3072, | |
| "mlp_ratio": 4.0, | |
| "num_heads": 24, | |
| "depth": 12, | |
| "depth_single_blocks": 0, | |
| "axes_dim": [ | |
| 16, | |
| 56, | |
| 56 | |
| ], | |
| "theta": 10000, | |
| "patch_size": 1, | |
| "qkv_bias": true, | |
| "guidance_embed": false, | |
| "checkpoint": false, | |
| "rope_type": "msrope", | |
| "time_type": "qwen_proj", | |
| "double_block_type": "double_stream", | |
| "vec_type": null, | |
| "apply_text_rotary_emb": false, | |
| "_class_name": "MageFlow", | |
| "txt_max_length": 2048, | |
| "max_sequence_length": 2048, | |
| "param_dtype": "bfloat16", | |
| "packing": true, | |
| "schedule_mode": "z-image", | |
| "static_shift": 6.0, | |
| "use_time_shift": false | |
| } |