Downloads · 30 days
23
51% of all-time downloads
lite-infer/ideogram-v4-fast-nunchaku-lite-nvfp4
ideogram-v4-fast-nunchaku-lite-nvfp4 is a text-to-image model from lite-infer. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
Calibrated SVDQuant (NVFP4 (fp4, group size 16) weights with int4 W4A16 on AdaLN) quantization of Ideogram v4 fast, packaged as a ready-to-run Diffusers pipeline. ~16 GB vs the bf16 original.
Downloads · 30 days
23
51% of all-time downloads
All-time downloads
45
Public
Parameters
5.3B
16.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.7 GB · 100%
How the weights are stored.
I84.3B · 82%
From the Hugging Face model README
Calibrated SVDQuant (NVFP4 (fp4, group size 16) weights with int4 W4A16 on AdaLN) quantization of Ideogram v4 fast, packaged as a ready-to-run Diffusers pipeline. ~16 GB vs the bf16 original.
Derived from the gated fal/ideogram-v4-fast;
the text encoder + VAE components come from
ideogram-ai/ideogram-4-nf4-diffusers.
Same "GOOD MORNING" caption/prompt (see below), 1024×1024, 20 steps:
| bf16 (reference) | int4 | nvfp4 |
|---|---|---|
![]() | ![]() | ![]() |
The main design renders well at both int4 and nvfp4; only small text differs from bf16.
import json, torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"lite-infer/ideogram-v4-fast-nunchaku-lite-nvfp4",
torch_dtype=torch.bfloat16,
).to("cuda")
# Ideogram v4 expects a STRUCTURED JSON caption (a plain string will not render):
prompt = json.dumps({
"high_level_description": "A bold minimalist typographic poster with a friendly sunrise motif",
"compositional_deconstruction": {
"background": "Warm white textured paper with a soft peach gradient at the bottom",
"elements": [
{"type": "text", "text": "GOOD MORNING", "desc": "large bold rounded sans-serif title in deep navy"},
{"type": "illustration", "desc": "a simple flat sun with rays rising behind the text in warm orange"},
],
},
})
image = pipe(
prompt, height=1024, width=1024, num_inference_steps=20,
guidance_scale=1.0, guidance_schedule=None, mu=0.0, std=1.75,
generator=torch.Generator("cuda").manual_seed(42),
).images[0]
image.save("out.png")
guidance_scale=1.0 + guidance_schedule=None are required (the pipeline's zero unconditional branch
means the default guidance schedule over-amplifies and produces garbage).
The quantized weights run through the nunchaku fp4/int4 kernels:
pip install "kernels==0.16" and PyTorch 2.11+cu128Ideogram4PipelineDIFFUSERS_TRUST_REMOTE_KERNELS=true (kernels are fetched from
rootonchair/nunchaku-lite-kernels)Requires a Blackwell (sm_120) GPU for the fp4 kernels.
Calibrated SVDQuant produced with
diffuse-compressor
(examples/text_to_image/quantize_ideogram_v4.py): NVFP4 (fp4, group size 16) weights with int4 W4A16 on AdaLN, a rank-32 low-rank branch (search mode),
grid-search projection smoothing, AWQ W4A16 on the AdaLN modulation projections, no GPTQ; calibrated on
Ideogram JSON-caption prompts replayed through chained per-block scopes.