Ideogram-4 / reference /official-inference /docs /model_architecture.md
Infini-Srr's picture
Preserve pinned official Ideogram 4 FP8 release, components, original terms and reference code
8ebf922 verified
|
Raw History Blame Contribute Delete
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