Blackwell Image 2.1 NVFP4 for ComfyUI
Experimental evaluation package. Preliminary controlled A/B evidence is included in
benchmark.json; it is not a quality-parity or production-throughput claim.NON-COMMERCIAL research/evaluation only. Built with Qwen.
This is an NVFP4 quantized derivative of Qwen/Qwen-Image-2.1, packaged for ComfyUI. The ComfyUI-native repackaging it was converted from is Comfy-Org/Qwen-Image-2.1. This repository is dzeng/Blackwell-Image-2.1-NVFP4-ComfyUI. “Blackwell Image 2.1 NVFP4” is the primary descriptive name; Qwen is named only to identify the upstream basis, per the Qwen naming rule.
The converted diffusion model is a changed derivative. The exact upstream Qwen Research License is in LICENSE; required attribution and redistribution guidance are in NOTICE.
Package contents
qwen_image_2.1_nvfp4.safetensors— NVFP4 quantized diffusion model artifact.convert_qwen21_nvfp4.py— cleaned reproducible converter copy. It preserves the source quantization math and layer split, removes the silent per-layer fallback, asserts the expected 192 quantized layers before saving, and records input/output/method metadata.blackwell_image_2_1_nvfp4_t2i.json— release copy of the ComfyUI workflow. The locally converted NVFP4 model has no fake upstream download URL; companion text encoder and VAE links usehf-mirror.com.benchmark.json— completed preliminary BF16-versus-NVFP4 protocol and results.LICENSE— exact canonical text fetched from https://raw.githubusercontent.com/QwenLM/Qwen-Image-2.1/main/LICENSE.NOTICE— required Qwen attribution, changed-material notice, “Built with Qwen”, and non-commercial/use-name reminders.manifest.json— package file manifest and model artifact provenance/checksum.
Method (exact scope)
The converter selects every transformer_blocks.*.weight tensor that is 2-D: 192 linears across 32 transformer blocks (six selected linears per block). It calls comfy_kitchen.tensor.TensorCoreNVFP4Layout.quantize on BF16 tensors, then writes ComfyUI NVFP4 state-dict tensors and comfy_quant metadata. The method is weight-only absolute-maximum, round-to-nearest post-training quantization (PTQ). Activation quantization is dynamic at inference. There is no calibration or optimization pass. Sensitive and non-selected layers remain BF16, including input projections, shared modulation, text projection, timestep embedder, final norm/proj_out, and 1-D norms.
- Diffusion arms: BF16 and NVFP4, matched one-to-one in the completed preliminary suite.
- Text encoder: INT8 and held fixed across arms (
qwen3vl_8b_int8_convrot.safetensors). - VAE: BF16 and held fixed (
qwen_image_2.1_vae_bf16.safetensors). - Compute: BF16 compute held fixed.
- Protocol: 12 prompts × 2 seeds at 1024×1024, 16 Euler/simple steps, CFG 1.0; 48 successful renders.
The completed suite measured mean request time of 11.963 s for BF16 and 7.395 s for NVFP4 (1.618×, 38.2% lower under --cache-none). Server logs reported 13,571 MiB versus 4,003 MiB of staged diffusion weights, a 70.5% reduction; this is not a peak-device-VRAM measurement. Matched pixel drift was white-background SSIM 0.8496 mean, with drift explicitly treated as non-quality evidence. See benchmark.json for the protocol and limitations.
These facts describe the measured setup. They do not establish prompt-adherence, perceptual-quality, or production-throughput parity.
Known gaps and limitations
- Status is experimental. The preliminary A/B suite completed with 48/48 successful renders, but it makes no quality-parity claim.
- The NVFP4 model artifact is
qwen_image_2.1_nvfp4.safetensors(4,197,587,152 bytes; SHA-2561ab340ab02672500df1a3f4924f656ca57a7f67afaa76c28d9376672dae4edf4). - The converter requires the source BF16 diffusion model and a working
torch,safetensors, andcomfy-kitchenenvironment. It does not download models, alter ComfyUI core, or provide a calibration corpus. - The converter records absolute input/output paths in output metadata; review those paths before redistributing a converted file if they expose local filesystem layout.
- The included benchmark is 1024×1024, 16 steps, and uses
--cache-none; timings include staging/reload behavior and are not steady-state throughput. Pixel drift is not a quality judgment, and no CLIP/FID score is claimed. - Qwen’s license may terminate on breach and includes export-control, non-commercial, indemnity, warranty, and Hangzhou jurisdiction provisions. Read
LICENSE, not this summary, as the controlling text.
Reproduce the conversion
From the ComfyUI repository root, with the BF16 source present at the default path:
python release/qwen21_nvfp4/convert_qwen21_nvfp4.py \
--input models/diffusion_models/qwen_image_2.1_bf16.safetensors \
--output models/diffusion_models/qwen_image_2.1_nvfp4.safetensors \
--device cuda
For a CPU conversion (slower and more memory-intensive), replace --device cuda with --device cpu. The converter fails rather than silently retaining an unquantized selected layer and refuses to save unless exactly 192 selected layers were quantized.
Pinned environment labels for the intended evaluation are:
- ComfyUI
99073836 torch 2.10with CUDA13.0comfy-kitchen 0.2.35aimdo 0.5.5
These labels are provenance for the evaluation environment, not an installer lockfile.
Obtain companion files
Use either ModelScope or the no-proxy HF mirror for the fixed companion files. Place them as follows:
models/
├── diffusion_models/
│ ├── qwen_image_2.1_bf16.safetensors # conversion input
│ └── qwen_image_2.1_nvfp4.safetensors # this repository's NVFP4 artifact
├── text_encoders/
│ └── qwen3vl_8b_int8_convrot.safetensors # fixed INT8 TE
└── vae/
└── qwen_image_2.1_vae_bf16.safetensors # fixed BF16 VAE
Reference source/repackaged model pages:
- Upstream weights: https://huggingface.co/Qwen/Qwen-Image-2.1
- ComfyUI-native source: https://huggingface.co/Comfy-Org/Qwen-Image-2.1
- ModelScope: https://modelscope.cn/models/Comfy-Org/Qwen-Image-2.1
- HF mirror: https://hf-mirror.com/Comfy-Org/Qwen-Image-2.1
The workflow also points directly to the companion files on hf-mirror.com. The NVFP4 file is supplied by this repository; it is not an upstream downloadable artifact.
Publication status
The experimental model and package are published at https://huggingface.co/dzeng/Blackwell-Image-2.1-NVFP4-ComfyUI.
- Artifact:
qwen_image_2.1_nvfp4.safetensors - Size: 4,197,587,152 bytes
- SHA-256:
1ab340ab02672500df1a3f4924f656ca57a7f67afaa76c28d9376672dae4edf4 - Publication visibility: public
- License scope: non-commercial research/evaluation only; retain
LICENSEandNOTICEwhen redistributing.
The uploaded artifact was downloaded back from the Hub and its size and SHA-256 matched the local source. The repository contains the converter, workflow, benchmark report, exact upstream license, and attribution notice. It does not grant a commercial license.