Z-Image-Engineer-V6-DHQ-GGUF is an open-weight model from Pottokao, released under Apache License 2.0. Its published files total 18.2 GB.
DHQ = Dual-Head Quant. Z-Image-Engineer-V6 (a Qwen3-4B fine-tune that is both a Z-Image text encoder and a prompt writer), quantized so that every tensor gets the precision that matters to what the Z-Image DiT actually reads (measured per tensor with…
Model Card
By Pottokao, published under apache-2.0, revision bac178019aa5.
DHQ = Dual-Head Quant. Z-Image-Engineer-V6 (a Qwen3-4B fine-tune that is both a Z-Image text encoder and a prompt writer), quantized so that every tensor gets the precision that matters to what the Z-Image DiT actually reads (measured per tensor with gradients through the DiT's text input), with an importance matrix computed on V6 itself. Each file is exactly the size of the standard llama.cpp file of the same name, and the text-encoder error is lower at every level. Tuned for Z-Image only. It was not measured with FLUX.2 [klein] 4B; for klein use the plain Qwen3-4B file in DHQ files are quantized for use as a diffusion model's text encoder: each tensor's precision is chosen by how much its…
Read Pottokao's full model card
DHQ = Dual-Head Quant. Z-Image-Engineer-V6 (a Qwen3-4B fine-tune that is both a Z-Image text encoder and a prompt writer), quantized so that every tensor gets the precision that matters to what the Z-Image DiT actually reads (measured per tensor with gradients through the DiT's text input), with an importance matrix computed on V6 itself. Each file is exactly the size of the standard llama.cpp file of the same name, and the text-encoder error is lower at every level.
Tuned for Z-Image only. It was not measured with FLUX.2 [klein] 4B; for klein use the plain Qwen3-4B file in Qwen3-4B-Text-Encoder-DHQ-GGUF.
About the DHQ series
DHQ files are quantized for use as a diffusion model's text encoder: each tensor's precision is chosen by how much its quantization error changes what the target DiT reads (measured through the DiT's own text-input stage), not by next-token loss. They stay normal LLM GGUFs, so the same file can still write or rewrite prompts: where a model is also used as a prompt enhancer (Z-Image-Engineer-V6, the heretic Qwen3-VL-8B), every file is also checked for that (the PE column) and the tables show where it gets worse.
DHQ repos: Qwen-Image-2.1 · Ideogram 4 · Z-Image-Engineer-V6 · Qwen3-4B (Z-Image / FLUX.2 klein 4B)
We also built Dual-Head Dragon, a ComfyUI node that runs one GGUF as both the text encoder and the prompt enhancer (llama.cpp inside). It is still in testing and not released yet, including its LoRA support (separate LoRAs for the encoding and the rewriting head) and DFlash speculative decoding for faster rewriting. The files here work without it (see How to load).
Results
Same V6 f16 source, same size. Standard = llama.cpp default rules + the same imatrix. TE = relative error of the text conditioning after the DiT's own text input layer, on 36 held-out prompts never used to build or pick anything (lower is better). PE = mean KL divergence of next-token predictions vs f16 on 80 prompt rewrites written by V6 itself, i.e. how well the same file still works as a prompt writer (lower is better).
| File | Size | TE standard → DHQ | PE standard → DHQ |
|---|---|---|---|
zimage-engineer-v6-dhq-Q5_K_M.gguf |
2.89 GB | 6.3% → 5.3% | 0.0150 → 0.0110 |
zimage-engineer-v6-dhq-Q4_K_M.gguf |
2.50 GB | 10.3% → 8.4% | 0.0385 → 0.0251 |
zimage-engineer-v6-dhq-IQ4_XS.gguf |
2.27 GB | 11.4% → 10.2% | 0.0410 → 0.0689 |
zimage-engineer-v6-dhq-Q3_K_M.gguf |
2.08 GB | 18.3% → 15.5% | 0.110 → 0.086 |
zimage-engineer-v6-dhq-IQ3_M.gguf |
1.96 GB | 20.2% → 15.9% | 0.108 → 0.112 |
zimage-engineer-v6-dhq-IQ3_S.gguf |
1.90 GB | 20.6% → 17.7% | 0.111 → 0.118 |
zimage-engineer-v6-dhq-Q2_K.gguf |
1.67 GB | 31.7% → 27.4% | 0.351 → 0.319 |
zimage-engineer-v6-dhq-IQ2_M.gguf |
1.51 GB | 35.7% → 30.6% | 0.437 → 0.438 |
zimage-engineer-v6-dhq-IQ2_S.gguf |
1.42 GB | 39.6% → 35.4% | 0.536 → 0.498 |
Where PE is not bold, the DHQ file writes prompts slightly worse than the standard file (IQ4_XS clearly so). If you use V6 mostly as a prompt writer at that size, the standard file is the safer pick.
Need Q6/Q8? Standard llama.cpp files are already as good at those sizes.
Also see zimage_engineer_v6_dhq_2p9.gguf in
Qwen3-4B-Text-Encoder-DHQ-GGUF: 2.91 GB with a
Q4_K floor, TE 4.4% held-out (better than Q5_K_M here) but PE 0.0196 (worse than Q5_K_M here).
K or IQ?
Each size step comes in two series built the same way, with different llama.cpp formats:
- K files (
Q*_K*): simple block formats. Fast to decode everywhere — GPU, CPU, Metal, Vulkan — and on the GPU in ComfyUI-GGUF. - IQ files (
IQ*): codebook formats. For a similar error the file is smaller (compare the rows above), but decoding is heavier: fine on llama.cpp GPU backends, slower on CPU, and ComfyUI-GGUF decodes IQ3/IQ2 tensors on the CPU (tens of seconds per prompt). OurIQ4_XSfiles also contain some IQ3 (and in some repos IQ2) tensors, so they are slow in ComfyUI-GGUF too.
ComfyUI-GGUF → use a K file. llama.cpp (or Dual-Head Dragon) → either; IQ if you want the smallest file for a given error.
Which file
| Your setup | Pick |
|---|---|
| Plenty of VRAM / RAM | Q5_K_M |
| Normal | Q4_K_M |
| Tight | Q3_K_M, then Q2_K |
| The IQ files | see the speed note below first |
K files (Q5_K_M, Q4_K_M, Q3_K_M, Q2_K) run everywhere and as fast as the standard GGUF.
[!WARNING] IQ files (
IQ4_XS,IQ3_*,IQ2_*) are slow in ComfyUI-GGUF. They contain IQ3/IQ2 tensors, which ComfyUI-GGUF has no GPU decoder for; it falls back to numpy (tens of seconds per prompt). They are fine in llama.cpp itself. In ComfyUI-GGUF, use the K files.
How to load
ComfyUI (needs ComfyUI-GGUF): put the file in models/text_encoders/,
load it with CLIPLoaderGGUF, type lumina2. Everything else is the stock Z-Image workflow.
llama.cpp / LM Studio: standard qwen3 GGUFs; they write Z-Image prompts the same way the original V6 does
(use V6's system prompt).
Reproducibility
recipes/ has one recipe per file: source repo and revision, llama.cpp commit, importance matrix (sha256), and the
type of every tensor as built. Rebuilding from a recipe gives a bit-identical file (checked for all nine).
License
Apache-2.0, same as Z-Image-Engineer-V6 (BennyDaBall) and its base Qwen3-4B (Qwen team). See LICENSE.
Identity and Version
- Repository
- pottokao/Z-Image-Engineer-V6-DHQ-GGUF
- Publisher
- Pottokao
- Task
- Not stated by the source
- Modality
- Other
- Library
- Not stated by the source
- Parameters
- Not stated by the source
- Languages
- Not stated by the source
- Revision
- bac178019aa5439c2c1aa0fbde761fba77129c1c
- First published
- 2026-09-27
- Last updated
- 2026-09-28
Files and Weights
30 files, 18.2 GB in total. The weights are 9 files totalling 18.2 GB in gguf.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| zimage-engineer-v6-dhq-IQ2_M.gguf | Weights | 1.5 GB | b38d9519c2cf |
| zimage-engineer-v6-dhq-IQ2_S.gguf | Weights | 1.4 GB | 3aef60ab4807 |
| zimage-engineer-v6-dhq-IQ3_M.gguf | Weights | 2.0 GB | 91d361bdea67 |
| zimage-engineer-v6-dhq-IQ3_S.gguf | Weights | 1.9 GB | b1c3f028217f |
| zimage-engineer-v6-dhq-IQ4_XS.gguf | Weights | 2.3 GB | 4e5ba8732868 |
| zimage-engineer-v6-dhq-Q2_K.gguf | Weights | 1.7 GB | a9f74de02d00 |
| zimage-engineer-v6-dhq-Q3_K_M.gguf | Weights | 2.1 GB | 4c52437aa151 |
| zimage-engineer-v6-dhq-Q4_K_M.gguf | Weights | 2.5 GB | fa6ab0360af3 |
| zimage-engineer-v6-dhq-Q5_K_M.gguf | Weights | 2.9 GB | 8527b9b09609 |
| recipes/zimage-engineer-v6-dhq-IQ2_M.recipe.json | Configuration | 36.0 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ2_S.recipe.json | Configuration | 36.0 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ3_M.recipe.json | Configuration | 35.6 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ3_S.recipe.json | Configuration | 35.9 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ4_XS.recipe.json | Configuration | 35.3 KB | — |
| recipes/zimage-engineer-v6-dhq-Q2_K.recipe.json | Configuration | 34.6 KB | — |
| recipes/zimage-engineer-v6-dhq-Q3_K_M.recipe.json | Configuration | 34.7 KB | — |
| recipes/zimage-engineer-v6-dhq-Q4_K_M.recipe.json | Configuration | 34.7 KB | — |
| recipes/zimage-engineer-v6-dhq-Q5_K_M.recipe.json | Configuration | 34.7 KB | — |
| LICENSE | Documentation | 11.4 KB | — |
| README.md | Documentation | 6.2 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ2_M.recipe.md | Documentation | 6.2 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ2_S.recipe.md | Documentation | 5.8 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ3_M.recipe.md | Documentation | 6.2 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ3_S.recipe.md | Documentation | 5.4 KB | — |
| recipes/zimage-engineer-v6-dhq-IQ4_XS.recipe.md | Documentation | 5.7 KB | — |
| recipes/zimage-engineer-v6-dhq-Q2_K.recipe.md | Documentation | 4.3 KB | — |
| recipes/zimage-engineer-v6-dhq-Q3_K_M.recipe.md | Documentation | 4.1 KB | — |
| recipes/zimage-engineer-v6-dhq-Q4_K_M.recipe.md | Documentation | 4.1 KB | — |
| recipes/zimage-engineer-v6-dhq-Q5_K_M.recipe.md | Documentation | 3.9 KB | — |
| .gitattributes | Repository | 2.2 KB | — |
License and Download
- License
- apache-2.0
- Access
- Open weights, no gate
- Download size
- 18.2 GB
Released by Pottokao through its official repository on Hugging Face. Read the license.
Built From
- Derived from BennyDaBall/Z-Image-Engineer-V6
- Quantized from BennyDaBall/Z-Image-Engineer-V6
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 18.2 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About Z-Image-Engineer-V6-DHQ-GGUF
Can I use Z-Image-Engineer-V6-DHQ-GGUF commercially?
Yes. Z-Image-Engineer-V6-DHQ-GGUF is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.