Instructions to use Infini-Srr/Ideogram-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Infini-Srr/Ideogram-4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Infini-Srr/Ideogram-4", 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
File size: 2,010 Bytes
8ebf922 | 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # Model Architecture
```
prompt ββΊ Qwen3-VL-8B-Instruct (extract hidden states from layers (0,3,β¦,33,35) β concat)
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Ideogram4Transformer β
β β’ 34 Γ Ideogram4TransformerBlock β
β β Ideogram4Attention (QK-RMSNorm, MRoPE) β
β β Ideogram4MLP (SwiGLU) β
β β adaln scale/gate from t-embedding β
β β’ Ideogram4FinalLayer β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
β velocity prediction
β
βΌ
Euler flow-matching sampler with asymmetric CFG
β
β denoised image latents
β
βΌ
VAE decode
β
βΌ
PIL.Image
```
The transformer is a single-stream DiT: text tokens (Qwen3-VL hidden states from
the activation layers) and image latent tokens are concatenated into one
sequence, modulated per-block by an AdaLN computed from the flow-matching
timestep embedding. Attention uses QK-RMSNorm and 3D MRoPE so that text and
image tokens share a unified positional space.
Model spec:
| field | value |
|-------------------|---------------|
| `emb_dim` | 4608 |
| `num_layers` | 34 |
| `num_heads` | 18 |
| `intermediate` | 12288 |
| `adanln_dim` | 512 |
| `rope_theta` | 5_000_000 |
| `mrope_section` | (24, 20, 20) |
| latent channels | 32 Γ 2Β² = 128 |
| max text tokens | 2048 |
| sampler | Euler flow-matching, logit-normal schedule, asymmetric CFG |
|