Open-weight model
Qwen-Image-2.1-Text-Encoder-Heretic-DHQ-GGUF
by Pottokao pottokao/Qwen-Image-2.1-Text-Encoder-Heretic-DHQ-GGUF
Qwen-Image-2.1-Text-Encoder-Heretic-DHQ-GGUF is an open-weight model from Pottokao, released under Apache License 2.0. Its published files total 31.8 GB.
DHQ = Dual-Head Quant. Same heretic weights as quantized a different way: instead of llama.cpp's fixed rules, every tensor gets the precision that matters to what the Qwen-Image-2.1 DiT actually reads (measured per tensor with gradients through the DiT's text…
Model Card
By Pottokao, published under apache-2.0, revision d594fed98494.
DHQ = Dual-Head Quant. Same heretic weights as quantized a different way: instead of llama.cpp's fixed rules, every tensor gets the precision that matters to what the Qwen-Image-2.1 DiT actually reads (measured per tensor with gradients through the DiT's text input), plus an importance matrix weighted the same way. Each file is exactly the size of the standard llama.cpp file of the same name, and better at every level. Tuned for Qwen-Image-2.1 only. Other models that use Qwen3-VL-8B (Ideogram 4, Boogu, JoyImageEdit) can load these files, but they were not tuned for them. Need Q5/Q6/Q8? Use the standard files in the GGUF repo — at those sizes the standard recipe is already as good. DHQ files…
Read Pottokao's full model card
DHQ = Dual-Head Quant. Same heretic weights as Qwen-Image-2.1-Text-Encoder-Heretic-GGUF, quantized a different way: instead of llama.cpp's fixed rules, every tensor gets the precision that matters to what the Qwen-Image-2.1 DiT actually reads (measured per tensor with gradients through the DiT's text input), plus an importance matrix weighted the same way. Each file is exactly the size of the standard llama.cpp file of the same name, and better at every level.
Tuned for Qwen-Image-2.1 only. Other models that use Qwen3-VL-8B (Ideogram 4, Boogu, JoyImageEdit) can load these files, but they were not tuned for them. Need Q5/Q6/Q8? Use the standard files in the GGUF repo — at those sizes the standard recipe is already as good.
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 heretic bf16 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 bf16 on 80 prompt-rewrite samples, i.e. how well the same file still works as a prompt enhancer (lower is better).
| File | Size | TE standard → DHQ | PE standard → DHQ |
|---|---|---|---|
qi21-te-heretic-dhq-Q4_K_M.gguf |
5.03 GB | 4.4% → 3.5% | 0.0153 → 0.0126 |
qi21-te-heretic-dhq-IQ4_XS.gguf |
4.56 GB | 4.8% → 4.5% | 0.0185 → 0.0194 |
qi21-te-heretic-dhq-Q3_K_M.gguf |
4.12 GB | 7.2% → 6.1% | 0.0559 → 0.0462 |
qi21-te-heretic-dhq-IQ3_M.gguf |
3.90 GB | 9.4% → 7.2% | 0.0649 → 0.0486 |
qi21-te-heretic-dhq-IQ3_S.gguf |
3.79 GB | 9.8% → 8.0% | 0.0604 → 0.0542 |
qi21-te-heretic-dhq-Q2_K.gguf |
3.28 GB | 25.4% → 13.2% | 0.169 → 0.144 |
qi21-te-heretic-dhq-IQ2_M.gguf |
3.05 GB | 20.2% → 13.8% | 0.169 → 0.177 |
qi21-te-heretic-dhq-IQ2_S.gguf |
2.87 GB | 26.6% → 20.4% | 0.312 → 0.239 |
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 | Q4_K_M |
| Tight | Q3_K_M, then Q2_K |
| The IQ files | see the speed note below first |
K files (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. Measured on a GB10: ~36 s per prompt forIQ3_S, vs ~1 s for the K files. They are fine in llama.cpp itself. In ComfyUI-GGUF, use the K files.
How to load (ComfyUI)
Same as the standard GGUF: CLIPLoaderGGUF, type qwen_image, with the add-on node
ComfyUI-GGUF-Qwen3VL-TE, feeding TextEncodeQwenImage21.
Put mmproj-qi21-te-heretic-dhq-f16.gguf (in this repo) next to the GGUF — the add-on finds the vision tower by
file-name prefix, so it has to carry the qi21-te-heretic-dhq name. It is the same file as the standard repo's mmproj.
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).
License
Apache-2.0, same as the base weights (Qwen3-VL-8B-Instruct, Alibaba Cloud / Qwen). See LICENSE and NOTICE.
Identity and Version
- Repository
- pottokao/Qwen-Image-2.1-Text-Encoder-Heretic-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
- d594fed984942a9a426a237d40fa5792bc04a41e
- First published
- 2026-09-27
- Last updated
- 2026-09-28
Files and Weights
29 files, 31.8 GB in total. The weights are 9 files totalling 31.8 GB in gguf.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| mmproj-qi21-te-heretic-dhq-f16.gguf | Weights | 1.2 GB | 4649839491c8 |
| qi21-te-heretic-dhq-IQ2_M.gguf | Weights | 3.1 GB | e2cfbebfeeaf |
| qi21-te-heretic-dhq-IQ2_S.gguf | Weights | 2.9 GB | b69977efeeae |
| qi21-te-heretic-dhq-IQ3_M.gguf | Weights | 3.9 GB | 876d6773afa5 |
| qi21-te-heretic-dhq-IQ3_S.gguf | Weights | 3.8 GB | 73c9d222cc52 |
| qi21-te-heretic-dhq-IQ4_XS.gguf | Weights | 4.6 GB | 04299e552403 |
| qi21-te-heretic-dhq-Q2_K.gguf | Weights | 3.3 GB | 70e5ec066f8e |
| qi21-te-heretic-dhq-Q3_K_M.gguf | Weights | 4.1 GB | d5144e07d766 |
| qi21-te-heretic-dhq-Q4_K_M.gguf | Weights | 5.0 GB | fabb1eda1314 |
| recipes/qi21-te-heretic-dhq-IQ2_M.recipe.json | Configuration | 36.0 KB | — |
| recipes/qi21-te-heretic-dhq-IQ2_S.recipe.json | Configuration | 35.9 KB | — |
| recipes/qi21-te-heretic-dhq-IQ3_M.recipe.json | Configuration | 35.5 KB | — |
| recipes/qi21-te-heretic-dhq-IQ3_S.recipe.json | Configuration | 35.7 KB | — |
| recipes/qi21-te-heretic-dhq-IQ4_XS.recipe.json | Configuration | 35.3 KB | — |
| recipes/qi21-te-heretic-dhq-Q2_K.recipe.json | Configuration | 34.7 KB | — |
| recipes/qi21-te-heretic-dhq-Q3_K_M.recipe.json | Configuration | 34.7 KB | — |
| recipes/qi21-te-heretic-dhq-Q4_K_M.recipe.json | Configuration | 12.4 KB | — |
| LICENSE | Documentation | 11.4 KB | — |
| NOTICE | Documentation | 976 B | — |
| README.md | Documentation | 5.9 KB | — |
| recipes/qi21-te-heretic-dhq-IQ2_M.recipe.md | Documentation | 5.9 KB | — |
| recipes/qi21-te-heretic-dhq-IQ2_S.recipe.md | Documentation | 5.6 KB | — |
| recipes/qi21-te-heretic-dhq-IQ3_M.recipe.md | Documentation | 5.7 KB | — |
| recipes/qi21-te-heretic-dhq-IQ3_S.recipe.md | Documentation | 5.4 KB | — |
| recipes/qi21-te-heretic-dhq-IQ4_XS.recipe.md | Documentation | 5.1 KB | — |
| recipes/qi21-te-heretic-dhq-Q2_K.recipe.md | Documentation | 4.1 KB | — |
| recipes/qi21-te-heretic-dhq-Q3_K_M.recipe.md | Documentation | 4.1 KB | — |
| recipes/qi21-te-heretic-dhq-Q4_K_M.recipe.md | Documentation | 2.6 KB | — |
| .gitattributes | Repository | 2.1 KB | — |
License and Download
- License
- apache-2.0
- Access
- Open weights, no gate
- Download size
- 31.8 GB
Released by Pottokao through its official repository on Hugging Face. Read the license.
Built From
- Derived from pottokao/Qwen-Image-2.1-Text-Encoder-Heretic
- Quantized from pottokao/Qwen-Image-2.1-Text-Encoder-Heretic
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 31.8 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About Qwen-Image-2.1-Text-Encoder-Heretic-DHQ-GGUF
Can I use Qwen-Image-2.1-Text-Encoder-Heretic-DHQ-GGUF commercially?
Yes. Qwen-Image-2.1-Text-Encoder-Heretic-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.