1. Model introduction
Ideogram 4 is Ideogram’s text-to-image diffusion model. SGLang Diffusion supports the official NF4 and FP8 checkpoints, the Comfy-Org NVFP4 transformer checkpoint, and fal’s single-branch Fast and Instant variants. Compared with previous open-source image models, Ideogram 4 provides a significant aesthetic lift, with stronger composition, more polished visual style, and better typography-aware generation.
The fal repositories contain only the transformer component. When either model ID is passed directly to
--model-path, SGLang loads the text encoder, tokenizer, VAE, and scheduler from the ideogram-ai/ideogram-4-nf4-diffusers revision referenced by fal’s model cards, then runs the distilled transformer without the unconditional branch.
2. Prerequisites
- NVIDIA CUDA GPU.
- SGLang installed with diffusion dependencies.
bitsandbytes>=0.46.1andaccelerate>=1.1.0for the NF4 checkpoint and the fal variants’ shared NF4 text encoder.HF_TOKENwith access to the Ideogram 4 gated repositories.
3. Serve the model
NF4:Command
Command
Command
Command
Command
Tensor and sequence parallelism
Both fal variants support native DiT tensor parallelism and Ulysses sequence parallelism. The following two-GPU layouts were validated at 1024×1024 on B200 GPUs for bothfal/ideogram-v4-fast and fal/ideogram-v4-instant.
TP2 shards the distilled DiT weights. The shared bitsandbytes NF4 text encoder is replicated because 4-bit row-parallel quantization states cannot be safely sharded:
Command
Command
fal/ideogram-v4-fast to use the same layouts for Fast. TP2 and Ulysses/SP2 are the validated configurations; Ring SP is not yet validated for this pipeline. Ideogram 4 has 18 attention heads, so any other TP degree must divide 18.
Layerwise offload
If the distilled DiT does not fit in GPU memory, enable transformer layerwise offload. This keeps the shared NF4 text encoder on the GPU while streaming the DiT blocks from pinned CPU memory. It reduces peak VRAM at the cost of additional latency:Command
4. Generate an image
Example
prompt, for example:
Example
V4_DEFAULT_20, V4_QUALITY_48, and V4_TURBO_12. The fal variants automatically select V4_FAST_20 and V4_INSTANT_8, respectively. A preset controls both num_inference_steps and guidance, so do not set those fields directly.