Z-Image 9B Text Encoder Heretic — DHQ GGUF
A text encoder + prompt enhancer for Z-Image Turbo with a 9B text entrance. It is a DHQ GGUF of a decensored
Qwen3.5-9B; the bf16 weights come from pottokao/MOSS-Image-Text-Encoder-Heretic
(source only — this build is made and tuned for Z-Image, it is not a MOSS-Image component). The same file encodes the prompt
for the DiT and writes prompts (prompt enhancer). The MTP head is kept.
Note: official Z-Image reads a 4B text encoder (2560-dim). This file targets Z-Image Turbo whose text entrance
(cap_embedder) is replaced by a 9B entrance: RMSNorm(4096, weight 1) → Linear 4096→3840 (a closed-form fit to the
original 4B entrance). It does not plug into stock Z-Image.
Quantization (DHQ)
Each tensor's format was chosen from measured damage on two rulers: the error at the Z-Image 9B entrance
(what the DiT reads; weight 1) and the prompt-writing KL (weight 0.5). No tensor below Q5:
Q5_K ×60, Q6_K ×128, Q8_0 ×60. Size 7.17 GB, smaller than a stock Q6_K (~7.25 GB).
Compared with Q8_0 (9.79 GB, same weights)
Entrance error = relative L2 of the entrance output, run through the real llama.cpp engine.
Files
z_image_turbo_9b_entrance_nvfp4.safetensors is Z-Image Turbo NVFP4 (Apache-2.0, Tongyi-MAI) with only the text entrance
replaced by the 9B entrance (3 tensors: cap_embedder.0.weight = ones(4096), cap_embedder.1.weight/bias = the 4096→3840 fit).
All other tensors are bit-identical to the NVFP4 source. ComfyUI detects the 4096-dim entrance from the weights.
ComfyUI
- Load Diffusion Model:
z_image_turbo_9b_entrance_nvfp4.safetensors
- Dual-Head Dragon Loader (GGUF):
zimage-te-heretic-dhq-7g.gguf, type moss_image → CLIP Text Encode
- Load VAE:
ae.safetensors (the usual Z-Image / FLUX.1 VAE)
- ModelSamplingAuraFlow shift 3, KSampler 8 steps, cfg 1,
res_multistep / simple (the official Z-Image Turbo template)
About the DHQ series
DHQ builds are tuned to be used as a text encoder (the DiT-side error is the main ruler) while keeping
prompt-enhancer / LLM use close to the unquantized model. They are made for the Dual-Head Dragon ComfyUI node
(https://github.com/pottokao-dotcom/ComfyUI-DualHead-Dragon), which is still being tested; ComfyUI-GGUF does not load
Qwen3.5 GGUF files yet.
Changelog
- 2026-11-18: renamed from
pottokao/MOSS-Image-Text-Encoder-Heretic-ZImage9B-DHQ-GGUF / moss-te-heretic-zimage9b-dhq-7.2G.gguf (same file, same sha256).