Bringing Nunchaku 4-bit Diffusion Inference to Diffusers

AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.

Why it matters

Diffusers users can now run SVDQuant 4-bit diffusion models with a plain from_pretrained() call, halving VRAM while speeding up inference instead of merely saving memory.

Read this as

Hugging Face has added support for Nunchaku Lite in Diffusers, a popular open-source image-generation library. Unlike most compression methods that shrink model memory but slow things down, this one uses a technique called SVDQuant to store and compute in 4-bit form, cutting memory roughly in half while actually making image generation faster. Anyone with a consumer GPU like an RTX 40 series can now run large image models that previously needed 24 GB of VRAM.

Developers running image-generation models on consumer hardware gain a practical option: Nunchaku checkpoints now load directly through Diffusers with no separate engine or compilation. Benchmarks show a 1024x1024 image in 1.7 seconds at 12 GB peak VRAM on an RTX 5090, versus 24 GB in BF16. NVFP4 checkpoints require Blackwell GPUs; older RTX 30/40 series must use INT4, and Volta/Hopper are unsupported.

Diffusers now natively loads Nunchaku Lite checkpoints via from_pretrained(), with CUDA kernels fetched from the Hub through the kernels package. The generic path patches nn.Linear modules with SVDQ W4A4 layers for attention/MLP projections and AWQ W4A16 layers for modulation, yielding ~30% speedup and ~50% VRAM reduction; torch.compile lifts end-to-end speedup to 1.8x. Architectures needing structural rewrites (e.g. FLUX.1-dev fused QKV) require model-specific target configs and adapters. Volta/Hopper are unsupported.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Nunchaku Diffusers SVDQuant FLUX.2 Klein 4B ERNIE-Image-Turbo RTX 5090 Hugging Face

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.