Native W4A4 Inference Arrives in Diffusers via Nunchaku
Hugging Face integrated the Nunchaku engine into diffusers, enabling native 4-bit W4A4 execution and reducing FLUX.1-dev VRAM requirements to 6.7 GB.
On July 23, 2026, Hugging Face announced the official integration of the Nunchaku inference engine into the diffusers library. This update brings native 4-bit weights and activations (W4A4) inference to large diffusion transformers. You can now execute models without manual CUDA compilation or external libraries. For developers building systems for local inference, this removes the severe VRAM bottlenecks previously associated with high-parameter image models.
SVDQuant and W4A4 Execution
The integration relies on SVDQuant, a post-training quantization method developed by the MIT HAN Lab. 4-bit approaches often struggle with outliers that degrade output quality. SVDQuant isolates these outliers into low-rank components, allowing the primary network to operate efficiently.
Weight-only backends like GGUF or bitsandbytes dequantize weights to higher precision during computation. Nunchaku executes the transformer layers strictly in 4-bit. This is where the tradeoff matters. By avoiding continuous dequantization overhead, the engine maximizes throughput and keeps the memory footprint constrained during active generation.
FLUX.1-dev Performance
The hardware efficiency gains are most visible on 12-billion-parameter models like FLUX.1-dev. Standard BF16 precision typically requires 24 to 30 GB of VRAM, forcing CPU offloading on consumer hardware. Nunchaku drops this requirement to approximately 6.7 GB.
On a 16GB GPU, this memory reduction yields up to an 8.7x speedup over BF16 baselines by entirely avoiding the PCIe bus bottleneck. In practical terms, an NVIDIA RTX 4090 Laptop GPU can generate a complete FLUX.1-dev image in roughly 7 seconds. The engine operates up to 3.0x faster than existing weight-only 4-bit implementations.
Hardware Support and Custom Models
You can load quantized models using the standard .from_pretrained() method within diffusers version 0.30.0 or higher. The underlying operations are handled by a companion nunchaku-kernels package, which provides pre-compiled binaries for both Linux and Windows environments.
The engine supports standard INT4 instructions for NVIDIA Turing, Ampere, and Ada architectures. If you deploy on Blackwell (50-series) hardware, Nunchaku utilizes the new NVFP4 format to maintain floating-point precision at extreme low bitrates.
Hugging Face also released Nunchaku Lite models, which provide ready-to-use optimized versions of FLUX.1-dev, SANA (1.0-1600M), and Qwen-Image-Edit-2509. If you build custom architectures, you can use the included diffuse-compressor toolkit to map your own pipelines into the Nunchaku format and publish them directly to standard model repositories.
If you provision GPU instances for image generation APIs, the transition to native W4A4 execution fundamentally alters your density calculations. Update your diffusers dependencies and evaluate the Lite models to determine if the 4-bit accuracy holds up against your specific prompt distributions.
Get Insanely Good at AI
The book for developers who want to understand how AI actually works. LLMs, prompt engineering, RAG, AI agents, and production systems.
Keep Reading
How to launch Hugging Face models in SageMaker Studio
You will learn how to use the new Hugging Face integration to automatically provision and deploy open-source models directly into Amazon SageMaker Studio.
Zero-Python LLMD Engine Compiles Native AI Inference Binaries
ZML released LLMD, an open-source Zig inference engine that compiles models into native binaries for execution across diverse hardware accelerators.
World Models and DAgger Integration Ship in LeRobot v0.6.0
Hugging Face has released LeRobot v0.6.0, introducing predictive world models, reward tracking APIs, and DAgger-style deployment for closed-loop learning.
229,000 Standardized Benchmark Results Hit Hugging Face Models
Hugging Face has integrated the Every Eval Ever schema into its model pages to expose 229,000 standardized benchmark results and eliminate redundant compute.
How to Expose Ephemeral vLLM Endpoints on Hugging Face Jobs
Learn how to spin up temporary, OpenAI-compatible vLLM inference endpoints on Hugging Face serverless infrastructure using a single CLI command.