TL;DR

Hugging Face has added native loading of Nunchaku Lite 4-bit diffusion checkpoints to Diffusers, removing the need for a separate inference engine or local CUDA compilation. Hugging Face reports lower memory use and faster inference, though results depend on the model, hardware and selected kernel format.

Hugging Face has added native support for Nunchaku Lite 4-bit checkpoints to Diffusers, allowing compatible diffusion models to run through standard pipelines without a separate inference engine or local CUDA compilation. The integration is designed to reduce GPU memory use while also accelerating the most computationally demanding parts of image generation.

Developers can load a pre-quantized Nunchaku Lite repository through Diffusers’ existing from_pretrained() interface. The model repository retains the normal Diffusers structure, while a quantization configuration tells the library which linear layers to replace with SVDQuant or AWQ runtime layers before loading the checkpoint. CUDA kernels are downloaded from the Hugging Face Hub through the kernels package when first required.

Nunchaku Lite uses two kernel families. svdq_w4a4 runs major attention and multilayer perceptron projections with 4-bit weights and activations, paired with a small 16-bit low-rank correction. The awq_w4a16 path uses 4-bit weights and 16-bit activations for memory-bound or precision-sensitive normalization and modulation projections.

In a benchmark reported by Hugging Face, a quantized ERNIE-Image-Turbo pipeline generated a 1,024-by-1,024 image in about 1.7 seconds on an RTX 5090, with peak GPU memory use of about 12 GB. The article compared that result with roughly 24 GB for the BF16 pipeline. These figures are Hugging Face’s reported test results, not an independent benchmark across multiple systems.

At a glance
announcementWhen: available in current Diffusers; the sup…
The developmentHugging Face has added native Nunchaku Lite checkpoint loading to Diffusers, bringing 4-bit weight-and-activation inference into standard Diffusers pipelines.
Bringing Nunchaku 4-Bit Diffusion Inference to Diffusers

Diffusers update · 4-bit inference

Bringing Nunchaku 4-Bit Diffusion Inference to Diffusers

Hugging Face has added native loading for Nunchaku Lite checkpoints, bringing low-memory diffusion inference into standard Diffusers pipelines—with no separate runtime and no local CUDA compilation.

Reported peak memory ~12 GB ERNIE-Image-Turbo at 1,024 × 1,024 on an RTX 5090.
Reported generation time ~1.7 sec A vendor-reported test result, not a multi-system independent benchmark.
Reported Lite uplift ~30% Speedup varies by model, GPU, kernel format and generation settings.
4-bit Core weights + activations
1 call Standard from_pretrained()
2 paths SVDQ W4A4 + AWQ W4A16
0 builds No local CUDA compilation

01 · What changed

A quantized model now behaves like a Diffusers model.

Nunchaku Lite repositories retain the familiar Diffusers structure. A quantization configuration identifies compatible linear layers, replaces them with low-precision runtime modules, and loads the checkpoint through the existing model interface.

Standard interface

Native checkpoint loading

Developers can load a pre-quantized repository using the same pipeline conventions already used throughout Diffusers.

MODEL.FROM_PRETRAINED(…)
Runtime patching

Targeted layer replacement

The configuration swaps selected linear modules for SVDQuant or AWQ runtime layers before checkpoint weights are loaded.

LINEAR → SVDQ / AWQ
Kernel delivery

Download, don’t compile

Required CUDA kernels are fetched from the Hugging Face Hub through the kernels package when they are first needed.

HUB → KERNELS → GPU
01

Select repository

Choose a compatible pre-quantized Nunchaku Lite model.

02

Read configuration

Diffusers discovers the format and target modules.

03

Patch linear layers

SVDQ and AWQ implementations replace selected operations.

04

Generate normally

The model runs through the standard Diffusers pipeline.

Less deployment friction

The integration removes two common hurdles: maintaining a separate Nunchaku inference engine and compiling custom CUDA code on each local system.

pipeline = DiffusionPipeline.from_pretrained(
  “nunchaku-lite-repository”,
  torch_dtype=”auto”
)

02 · Reported performance

Roughly half the peak memory in Hugging Face’s test.

The published comparison used a quantized ERNIE-Image-Turbo pipeline at 1,024 × 1,024 on an RTX 5090. Treat the figures as a directional result: architecture, resolution, sampling and hardware can materially change the outcome.

Peak GPU memory · reported comparison
Nunchaku
12 GB
BF16
24 GB

Illustrative scale based on Hugging Face’s stated peak-memory figures. It does not establish the same reduction for every model or GPU.

svdq_w4a4

Low precision on both sides

Major attention and multilayer perceptron projections run with 4-bit weights and 4-bit activations. A small 16-bit low-rank branch restores difficult outlier information.

4-bit weights 4-bit activations 16-bit correction
awq_w4a16

Precision where sensitivity matters

Memory-bound or precision-sensitive normalization and modulation projections use 4-bit weights with 16-bit activations.

4-bit weights 16-bit activations Sensitive layers

03 · The trade-off

Broader integration, with model-specific speed left on the table.

The original Nunchaku engine can use architecture-specific fused attention and MLP operations. Lite instead patches compatible modules inside stock Diffusers models, prioritizing portability and familiar workflows.

Capability Nunchaku Lite Original Nunchaku Typical weight-only path
Standard Diffusers pipeline ✓ Native ✗ Separate engine ~ Backend-dependent
Local CUDA compilation ✓ Not required ~ Setup may vary ~ Backend-dependent
4-bit activations in core compute ✓ W4A4 path ✓ Supported ✗ Often weight-only
Architecture-specific fused kernels ✗ Limited ✓ Core advantage ~ Varies
Likely performance ceiling ~ Balanced ✓ Highest potential ~ Memory savings first
Ease of repository distribution ✓ Standard structure ~ Custom workflow ✓ Usually supported
Why W4A4 can improve latency

Weight-only methods reduce storage but often restore weights to higher precision during computation. Nunchaku’s core path keeps both weights and activations at low precision, reducing memory traffic while accelerating major transformer calculations.

04 · SVDQuant explained

Outliers are separated before the residual is compressed.

Diffusion transformer weights and activations can contain unusually large values that resist simple low-bit quantization. SVDQuant isolates the difficult information so the bulk of each matrix can run efficiently at four bits.

01

Detect outliers

Find activation values that are difficult to represent at low precision.

02

Shift information

Move activation outlier effects into the associated weights.

03

Split the matrix

Represent the hardest component with a small low-rank branch.

04

Quantize residual

Compress the remaining, easier residual matrix to four bits.

05 · Hardware reality

Checkpoint format determines where it can run.

The integration simplifies software setup, but it does not eliminate hardware-specific constraints. Developers still need to match checkpoint format, GPU generation and available kernels.

NVFP4 checkpoints

NVIDIA Blackwell required

Stated compatible families include RTX 50-series, RTX PRO 6000 and B200 GPUs. Performance claims from an RTX 5090 should not be projected directly onto other devices.

INT4 checkpoints

Earlier NVIDIA generations

INT4 is the stated route for pre-Blackwell hardware. Equivalent speed and memory figures were not supplied for every supported GPU generation.

Benchmark before deployment

Measure end-to-end latency, peak VRAM, warm-up behavior and image quality on the actual model, resolution, sampler and target GPU. Kernel format and pipeline configuration can change the result.

06 · Key questions

What developers need to know.

The release expands access to low-precision diffusion, while leaving room for broader architecture coverage, more ready-to-use checkpoints and independent cross-GPU testing.

Q / 01

What changed in Diffusers?

Nunchaku Lite checkpoints can load directly through the normal Diffusers model interface without a custom pipeline class or separate inference runtime.

Q / 02

Does 4-bit mean faster?

It can. Hugging Face reports about a 30% speed increase, but the actual result depends on the model, GPU, kernels and generation settings.

Q / 03

How is quality preserved?

A small 16-bit low-rank correction retains difficult outlier information while the larger residual matrix is quantized to four bits.

Q / 04

Can teams quantize new models?

The companion diffuse-compressor toolkit provides a route to quantize additional architectures and publish them as standard Diffusers repositories.

Model hub Pre-quantized repository
Configuration Layer and format mapping
Module patching SVDQ and AWQ runtime
GPU kernels Downloaded when needed
Diffusers output Standard pipeline workflow

Lower Memory Without Losing Speed

Modern text-to-image diffusion transformers can require 20 GB to 30 GB of VRAM when loaded in BF16 precision, leaving many models beyond the capacity of consumer graphics cards. Existing weight-only quantization methods can cut memory requirements, but they usually restore weights to higher precision during computation, which may provide little or no latency improvement.

Nunchaku’s W4A4 approach addresses both sides of that constraint by performing core transformer calculations with low-precision weights and activations. Hugging Face says the Lite integration provides about a 30% speed increase while retaining the memory reduction associated with Nunchaku checkpoints. Easier loading could also broaden testing and deployment because teams can keep using standard Diffusers pipelines and repositories.

Amazon

GPU memory optimizer for AI inference

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

SVDQuant Moves Into Standard Pipelines

Nunchaku is based on SVDQuant, a quantization method created for diffusion transformers whose weights and activations contain large outliers. The method moves activation outliers into the weights, represents the hardest portion of each weight matrix through a small 16-bit low-rank branch, and quantizes the remaining residual to four bits.

The original Nunchaku inference engine uses architecture-specific features such as fused attention projections and fused MLP kernels. Those optimizations can deliver higher performance, but each new model family may require dedicated engineering. Nunchaku Lite instead patches compatible linear modules inside a stock Diffusers model, trading some speed for broader and simpler integration.

The release also points developers to the companion diffuse-compressor toolkit, which can quantize additional architectures and package the results as regular Diffusers repositories. Diffusers already supports other quantization backends, including bitsandbytes, GGUF, torchao and Quanto, but most of those options primarily reduce weight storage.

“No custom pipeline class or separate inference engine is needed, and there is nothing to compile locally.”

— Hugging Face’s technical announcement

Amazon

4-bit diffusion model hardware

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Performance Varies Across GPU Generations

It is not yet clear how closely the reported speed and memory results will carry across other diffusion architectures, image sizes, sampling settings and GPUs. The supplied material does not provide independent benchmark results, a full model-by-model comparison or detailed image-quality measurements for every available checkpoint.

Hardware support also differs by format. NVFP4 checkpoints require NVIDIA Blackwell hardware, including RTX 50-series, RTX PRO 6000 and B200 GPUs. Users of earlier GPU generations must use INT4 variants, and the source does not give equivalent performance figures for every supported device.

Amazon

AI image generation GPU

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

More Checkpoints and Architectures

Developers can now test available Nunchaku Lite repositories through recent Diffusers releases and compare them with BF16 or other quantized versions on their own hardware. The next measure of adoption will be the number of ready-to-use checkpoints published for additional architectures and the quality of real-world benchmarks across GPUs.

Hugging Face’s diffuse-compressor workflow also creates a route for model maintainers to quantize and publish their own compatible repositories. Future work is likely to focus on wider architecture coverage, kernel support and narrowing the performance gap between the flexible Lite implementation and the architecture-specific Nunchaku engine.

Amazon

Nunchaku Lite diffusion checkpoints

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What changed in Diffusers?

Diffusers can now load Nunchaku Lite checkpoints directly through its normal model-loading interface. Compatible pipelines no longer require a custom pipeline class or a separate Nunchaku runtime.

How does Nunchaku Lite reduce memory use?

Its main transformer layers use 4-bit weights and activations, while a small 16-bit low-rank correction handles difficult outlier information. Other sensitive layers can use AWQ with 4-bit weights and 16-bit activations.

Does 4-bit inference make generation faster?

Hugging Face reports about a 30% speed increase for Nunchaku Lite, but performance will vary with the model, GPU, kernel format and generation settings. The original Nunchaku engine can remain faster because it uses model-specific fused operations.

Which GPUs support the new checkpoints?

NVFP4 requires NVIDIA Blackwell GPUs, including RTX 50-series, RTX PRO 6000 and B200 hardware. INT4 checkpoints are the stated option for earlier NVIDIA GPU generations.

Can developers quantize their own diffusion models?

Hugging Face says the companion diffuse-compressor toolkit can quantize new architectures and publish them as standard Diffusers repositories. Actual compatibility and performance depend on the architecture and available kernels.

Source: Hugging Face

You May Also Like

China’s SenseTime Backs AI Space Computing Project – Light Reading

China’s SenseTime is backing an AI space computing project, but its role, partners, funding and deployment schedule remain undisclosed.

Step Into the Metaverse Mall — Where AI Avatars Do the Buying

How AI avatars revolutionize shopping in the metaverse mall, making your virtual buying experience more immersive and personalized than ever before—discover how it all works.

AI Onboarding: Introducing AI Systems Into a Company Culture Successfully

Discover how to successfully introduce AI systems into your company culture and unlock the transformative potential that awaits.

AI Co-worker Success Stories: Companies Where Humans and AI Thrive Together

Many companies showcase how humans and AI thrive together, like Groupama’s chatbot…