Downloads · 30 days
35
28% of all-time downloads
HangGlidersRule/Darkstar-Qwen-Image-2.1-Base-ModelOpt-W4A4-NVFP4
Darkstar-Qwen-Image-2.1-Base-ModelOpt-W4A4-NVFP4 is a text-to-image model from HangGlidersRule. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
Non-commercial research artifact. NVIDIA ModelOpt NVFP4 (W4A4) quantization of Qwen/Qwen-Image-2.1, built by the Model Forge pipeline from the pinned upstream BF16 — no third-party quantized checkpoints were used as b…
Downloads · 30 days
35
28% of all-time downloads
All-time downloads
125
Public
Parameters
4.4B
23.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors23.7 GB · 100%
How the weights are stored.
U83.1B · 69%
From the Hugging Face model README
Non-commercial research artifact. NVIDIA ModelOpt NVFP4 (W4A4) quantization of
Qwen/Qwen-Image-2.1, built by the Model Forge pipeline from the pinned upstream BF16 — no third-party quantized checkpoints were used as build inputs.
Published revision: 16f1b7fd748aa07e4f19c532991b0defe047dce0
This is a derivative of Qwen-Image-2.1 and inherits the Qwen Research License Agreement
(September 20, 2026). The full agreement text is shipped in this repository as LICENSE.
Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 Hangzhou Tongyi Laboratory Technology Co., Ltd. All Rights Reserved.
| Obligation | Meaning for you |
|---|---|
| §1(i) | Use for research or evaluation purposes only — non-commercial |
| §3 | Retain this Notice in distributions; prominent notices on modified files |
| §4a | You are responsible for export-control compliance |
| §4b | Products built with this model display "Built with Qwen"; products trained from it display "Improved using Qwen" |
| §4c | Do not name competing primary models "Qwen" |
| §5a | Derivatives you create are owned by you, subject to this agreement |
| §5c | License terminates if you initiate litigation against the licensor |
Commercial use requires a separate license from the Qwen team ([email protected]).
NVFP4 (W4A4, group-16) quantization of the 7B single-stream DiT
(QwenImage21Transformer2DModel, 32 blocks) with the Qwen3-VL 8B text encoder and VAE kept in
BF16. The model does text-to-image generation and image-conditioned editing in one pipeline, with
native RGBA output support.
| Component | Precision |
|---|---|
DiT blocks 2–29 linear layers (attn.to_q/k/v, attn.to_out.0, img_mlp.{gate_layer,proj,out}) | NVFP4-W4A4-g16 |
| DiT blocks 0, 1, 30, 31 | BF16 |
img_in, txt_in, modulation, time_text_embed, norm_out, proj_out | BF16 |
| Per-block scales | fp8-e4m3 [4096,256] + fp32 weight_scale_2 |
| Text encoder (Qwen3-VL 8B) | BF16 |
| VAE | BF16 |
Qwen/Qwen-Image-2.1b3179ad355be050328e483a9dfdd9e60cd62adfanvidia-modelopt 0.46.0rc2 @ 43fd41a… + diffusers main @ 80c7ed26… (bridge-fork overlay registering the 2.1 ModelType; sha-pinned)darkstar-qwen-image-2-1-base-nvfp4.yaml (in the engineering repository)HangGlidersRule/model-forgedocker run --gpus all -p 8000:8000 \
-e NCCL_CUMEM_ENABLE=0 \
-v <hf-cache>:/root/.cache/huggingface \
vllm/vllm-omni:qwen-image21 \
bash -c 'vllm serve HangGlidersRule/Darkstar-Qwen-Image-2.1-Base-ModelOpt-W4A4-NVFP4 --omni --port 8000'
OpenAI-compatible endpoints: POST /v1/images/generations, POST /v1/images/edits. Seed
determinism is byte-identical for repeated same-seed requests (max_num_seqs=1 profile).
Note: the checkpoint config carries component-prefixed ignore patterns (*transformer_blocks.N.*).
The vLLM-Omni runtime matches quantization exclusions against component-prefixed module names;
unprefixed patterns silently fail to exclude (known upstream issue, documented by Model Forge).
diffusers from_pretrained on this repo will attempt to parse the ModelOpt quantization config and
fails on the current diffusers main schema (known upstream gap — diffusers' ModelOpt quantizer
expects a different config shape and does not support NVFP4). Working consumption paths:
quantization_config from a local copy's transformer/config.json, load the pipeline, then
dequantize the packed NVFP4 tensors (e2m1 nibble LUT × per-16-block fp8 scale × global
weight_scale_2) into the BF16 model. Validated end-to-end below.Quality manifest image-eval-v1 (sha 09daf654e4015a49d1f54961687d4f6df41da9910e4c0c25d1981582190aeee9),
25 frozen cases, full-denominator scoring (blanks/errors count as failures):
| Capability | BF16 control | This cell |
|---|---|---|
| t2i_quality | 10/10 | 10/10 |
| composition | 6/6 | 6/6 |
| typography | 4/4 | 4/4 |
| rgba | 2/2 | 2/2 |
| editing | 3/3 | 3/3 |
The Darkstar Qwen-Image-2.1 family ships a four-cell matrix plus FP8 variants (Base BF16 control profile, this NVFP4 cell, Base FP8, and Ablit cells pending the DiT-side behavior-transform research — tracked in the Model Forge private ledger). Ablit cells are not part of this release.
Non-commercial. Research and evaluation use only. Built with Qwen.