ModelsLab / Qwen-Image-2.1-W4A4-int4

huggingface.co
Total runs: 274
24-hour runs: 0
7-day runs: 33
30-day runs: 208
Model's Last Updated: September 25 2026
text-to-image

Introduction of Qwen-Image-2.1-W4A4-int4

Model Details of Qwen-Image-2.1-W4A4-int4

Qwen-Image-2.1 W4A4 (int4)

Built with Qwen.

Non-commercial use only. An educational artifact under the Qwen Research License, which the base model carries. Commercial use needs a separate licence from the rights holder; publishing this here does not grant one.

4-bit weights, 4-bit activations, for the Qwen-Image-2.1 transformer. Calibrated with SVDQuant, error-compensated with GPTQ, packed for Nunchaku's fused kernel. 4.34 GB against about 10 GB for the same layers in bf16.

The low-rank branch is fused into the 4-bit GEMM, which is where the speed comes from — an unfused branch gives back 24–34% of it.

Hardware

sm_75 through sm_120 — Ada (4090, L40S) and Blackwell alike.

Measured
card cap seconds vs bf16 resident GB LPIPS vs bf16
RTX 4090 48GB sm_89 11.576 1.84x 21.35 0.231
RTX PRO 6000 Max-Q sm_120 37.616 0.35x 21.29 0.1836

40 steps, 1024×1024, seed 42, six prompts. LPIPS is AlexNet against the bf16 image of the same prompt on the same card.

GPTQ is worth 6% here : 0.1946 with round-to-nearest against 0.1836 with GPTQ, at the same speed, the same file size and the same resident memory — it only changes which grid point each weight lands on.

Read LPIPS as distance from the bf16 trajectory, not as damage. On a dense-text prompt every build renders the text correctly while scoring 0.24–0.35, and on one prompt the bf16 reference garbles a sign that this checkpoint renders correctly — and is scored worse for it.

Only the transformer is quantized. The Qwen3-VL text encoder stays bf16 and is about 16.3 GB of a 21.5 GB resident total, so it, not this file, decides how many reference images fit on a card.

Text accuracy against bf16

The nvfp4 build of this same recipe scored 15/16 against bf16's 14/16 on a reference-free seed sweep (8 seeds, two text prompts, text read against the prompt) — indistinguishable. This int4 build was not put through that sweep; its LPIPS is 0.1836 against the nvfp4 build's 0.1425, so treat it as the same recipe at slightly lower fidelity, on the far wider set of cards it runs on.

Requirements

Packed for a specific kernel. The layout is an MMA fragment swizzle, so a different Nunchaku build may read it incorrectly — and would produce a wrong image rather than an error. The loader checks and warns.

torch==2.12.1
nunchaku==1.3.0.dev20260306+cu13.0torch2.12
Loading
import torch
from diffusers import QwenImage21Pipeline
from quantize import nunchaku_io

transformer = nunchaku_io.load_checkpoint(precision="int4", device="cuda")
pipe = QwenImage21Pipeline.from_pretrained(
    "Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16, transformer=transformer)

nunchaku_io and the build pipeline: https://github.com/ModelsLab/qwen-image-2-1-server

How it was built

Smoothing factors from real activation statistics (SmoothQuant, α=0.5), a rank-128 SVD branch kept in bf16, and the residual rounded onto Nunchaku's grid by GPTQ against a calibration Hessian. One Hessian pass, 128 distinct inputs across 224 layers, 24 GB resident, ~5 minutes.

w4a4_build.json records the whole build, including per-layer GPTQ statistics.

License

Derivative of Qwen/Qwen-Image-2.1 under the Qwen Research License Agreement — non-commercial only. See NOTICE .

Runs of ModelsLab Qwen-Image-2.1-W4A4-int4 on huggingface.co

274
Total runs
0
24-hour runs
11
3-day runs
33
7-day runs
208
30-day runs

More Information About Qwen-Image-2.1-W4A4-int4 huggingface.co Model

More Qwen-Image-2.1-W4A4-int4 license Visit here:

https://choosealicense.com/licenses/qwen-research

Qwen-Image-2.1-W4A4-int4 huggingface.co

Qwen-Image-2.1-W4A4-int4 huggingface.co is an AI model on huggingface.co that provides Qwen-Image-2.1-W4A4-int4's model effect (), which can be used instantly with this ModelsLab Qwen-Image-2.1-W4A4-int4 model. huggingface.co supports a free trial of the Qwen-Image-2.1-W4A4-int4 model, and also provides paid use of the Qwen-Image-2.1-W4A4-int4. Support call Qwen-Image-2.1-W4A4-int4 model through api, including Node.js, Python, http.

Qwen-Image-2.1-W4A4-int4 huggingface.co Url

https://huggingface.co/ModelsLab/Qwen-Image-2.1-W4A4-int4

ModelsLab Qwen-Image-2.1-W4A4-int4 online free

Qwen-Image-2.1-W4A4-int4 huggingface.co is an online trial and call api platform, which integrates Qwen-Image-2.1-W4A4-int4's modeling effects, including api services, and provides a free online trial of Qwen-Image-2.1-W4A4-int4, you can try Qwen-Image-2.1-W4A4-int4 online for free by clicking the link below.

ModelsLab Qwen-Image-2.1-W4A4-int4 online free url in huggingface.co:

https://huggingface.co/ModelsLab/Qwen-Image-2.1-W4A4-int4

Qwen-Image-2.1-W4A4-int4 install

Qwen-Image-2.1-W4A4-int4 is an open source model from GitHub that offers a free installation service, and any user can find Qwen-Image-2.1-W4A4-int4 on GitHub to install. At the same time, huggingface.co provides the effect of Qwen-Image-2.1-W4A4-int4 install, users can directly use Qwen-Image-2.1-W4A4-int4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Qwen-Image-2.1-W4A4-int4 install url in huggingface.co:

https://huggingface.co/ModelsLab/Qwen-Image-2.1-W4A4-int4

Url of Qwen-Image-2.1-W4A4-int4

Qwen-Image-2.1-W4A4-int4 huggingface.co Url

Provider of Qwen-Image-2.1-W4A4-int4 huggingface.co

ModelsLab
ORGANIZATIONS

Other API from ModelsLab

huggingface.co

Total runs: 10.4K
Run Growth: 1.1K
Growth Rate: 10.92%
Updated:October 07 2025
huggingface.co

Total runs: 17
Run Growth: 0
Growth Rate: 0.00%
Updated:January 17 2025
huggingface.co

Total runs: 6
Run Growth: 2
Growth Rate: 33.33%
Updated:May 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2024
huggingface.co

Total runs: 0
Run Growth: -2
Growth Rate: 0.00%
Updated:May 25 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 11 2025