Hugging Face Diffusers now provides native support for Nunchaku 4-bit diffusion inference. This integration allows users to load Nunchaku checkpoints directly using the `from_pretrained()` function, simplifying the workflow for optimized diffusion models.
The `kernels` package facilitates this by handling CUDA kernel downloads from the Hugging Face Hub, removing the requirement for local CUDA compilation.
Nunchaku inference engine employs SVDQuant, a quantization method that processes main transformer layers with 4-bit weights and activations (W4A4). This approach differs from weight-only quantization by not only reducing memory usage but also accelerating the denoising loop.
Traditional weight-only backends primarily reduce memory but do not typically speed up inference and can introduce latency.
Users can now load pre-quantized pipelines, such as the ERNIE-Image-Turbo-nunchaku-lite checkpoint, directly within Diffusers without custom pipeline classes or separate inference engines. The `diffuse-compressor` toolkit also enables users to quantize new architectures and publish them as standard Diffusers repositories.
An example using ERNIE-Image-Turbo-nunchaku-lite on an RTX 5090 generated a 1024x1024 image in approximately 1.7 seconds with a peak memory usage of about 12 GB, compared to 24 GB for the BF16 pipeline.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Hugging Face Diffusers now natively supports Nunchaku 4-bit diffusion inference, which utilizes SVDQuant for 4-bit weights and activations. This integration allows users to run diffusion models with reduced memory usage and faster inference directly within Diffusers, eliminating the need for separate inference libraries or local CUDA compilation.