Important: This quantized model cannot run with the official upstream nunchaku package (the official repo has not been actively maintained for a long time). Install vitoom-nunchaku prebuilt wheels, or deploy via vitoom for a ready-to-use platform.
Quantized Transformer in this repo: svdq-<precision>_r32-Qwen-Image-2512-Lightning-Nunchaku.safetensors; <precision> is commonly fp4 or int4. Pick the matching file according to your vitoom inference environment and the return value of get_precision(). The repo may also provide variants such as int8
Optional quantized text encoder: svdq-int4-Qwen2.5vl-Nunchaku.safetensors from tonera/Qwen2.5vl-Nunchaku (same as Qwen-Image-Edit-2511-Lightning-Nunchaku; notsvdq-int4-Qwen2.5vl-text-Nunchaku.safetensors)
Qwen-Image-2512-Lightning is a lightweight text-to-image model distilled from Qwen-Image-2512; it typically produces results in 4–8 steps. Hardware and upstream details are on the Lightning model card.
Quantization quality
The Qwen-Image family is sensitive to weight quantization. The FP4 Transformer in this repo scores about 7.5–8 / 10 in subjective evaluation (vs. the full-precision Lightning baseline).
Objective metrics from this repo (data.txt, N=5):
Metric
Mean
Median p50
p90
PSNR
18.60
19.22
20.41
SSIM
0.706
0.750
0.762
LPIPS
0.368
0.316
0.490
For the companion text encoder (tonera/Qwen2.5vl-Nunchaku), hidden-states metrics are cosine ≈ 0.969 and rel_l2 ≈ 0.247; see that repo for details.
python -c "import nunchaku; from nunchaku import NunchakuQwenImageTransformer2DModel; print(nunchaku.__version__)"
Usage example (text-to-image + quantized Transformer + quantized text encoder)
The example below assumes vitoom-nunchaku is installed. Loading is the same as for Qwen-Image-Edit-2511-Lightning-Nunchaku (QwenImageEditPlusPipeline + NunchakuQwenEncoderModel). Replace REPO / TE_REPO with your local path or Hugging Face ID.
Download and activate this model’s weights under Models in the vitoom Web UI
Run text-to-image inference in the Image workspace
The vitoom Visual inference image already includes vitoom-nunchaku—no manual wheel install required.
License and compliance
Quantized weights are derived from Qwen-Image-2512 and the Lightning distilled release. The upstream Qwen model is generally under Apache 2.0; Lightning LoRA / fused weights follow the terms on lightx2v/Qwen-Image-2512-Lightning. Confirm upstream license terms before commercial use or redistribution.