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
Preserve pinned official Ideogram 4 FP8 release, components, original terms and reference code
8ebf922 verified |
Download reference/official-inference/docs/model_architecture.md from Infini-Srr/Ideogram-4: direct link, hf CLI and curl.
- Browser
- Download file 2.01 kB
-
https://huggingface.co/Infini-Srr/Ideogram-4/resolve/main/reference/official-inference/docs/model_architecture.md
- Command line
-
hf download hf://Infini-Srr/Ideogram-4/reference/official-inference/docs/model_architecture.md
-
curl -L -o model_architecture.md https://huggingface.co/Infini-Srr/Ideogram-4/resolve/main/reference/official-inference/docs/model_architecture.md
2.01 kB
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 |