Z-Image ยท FP8 (transformer)
FP8 (float8_e4m3fn) quantization of the Z-Image DiT (ZImageTransformer2DModel, 6.2B) transformer from Tongyi-MAI/Z-Image. Quantized by axteam.
| File | Size |
|---|---|
Z-Image-transformer-fp8_e4m3fn.safetensors |
6.2 GB |
What this is
- Only the transformer (DiT) is quantized to
float8_e4m3fn(2-D weight tensors; norms/biases kept in BF16). ~half the size of the BF16 transformer. - VAE and text encoder(s) are NOT included โ use the ones from the original
Tongyi-MAI/Z-Image.
Checked on GPU (diffusers)
On 2026-11-02 the FP8 values of this file (the same values ComfyUI loads; upcast to BF16 for this run) were loaded into the transformer of the original Tongyi-MAI/Z-Image pipeline (diffusers 0.42.1, NVIDIA B200; all tensor names matched the original transformer โ 0 missing, 0 unexpected) and compared with the original pipeline run in BF16 at the same prompt and seed (1024ร1024, the pipeline's default sampler settings).
| Prompt | Pixel PSNR vs original (BF16 run) | Mean abs. pixel diff |
|---|---|---|
| A red apple on a wooden table, studio lighting, photorealistic | 25.5 dB | 9.4 / 255 |
| A cozy cafe street in Seoul at night with warm lights, illustration | 14.7 dB | 30.9 / 255 |
Both images show the same subject but are less clean than the BF16 ones: the apple keeps a similar composition (shorter stem, slightly different shape), with faint blocky patches in the blurred background and light smudges on the table that the BF16 image does not have; the detailed street scene changes its layout, and its lit pavement shows faint streaks. Pixel PSNR is strict for diffusion models: a small weight change shifts the sampling path, so a detailed scene can change its layout while the subject stays correct.
Requirements
| Runtime | ComfyUI (Load Diffusion Model node, float8_e4m3fn single file). Not run in ComfyUI here (no ComfyUI on this server); the FP8 weights were checked with diffusers โ see Checked on GPU above. |
| Also needed | the Qwen3 text encoder (8.0 GB) and VAE (0.17 GB) from the base repo. |
| Memory | this file is 6.2 GB; add the text encoder(s) and VAE above. |
Usage (ComfyUI)
- Download the FP8 file into ComfyUI's diffusion-model folder:
hf download axteam/Z-Image-FP8 Z-Image-transformer-fp8_e4m3fn.safetensors --local-dir ComfyUI/models/diffusion_models
- Get the VAE and text encoder(s) from the original
Tongyi-MAI/Z-Imagerepo (or the matching ComfyUI repackaged files) and put them inComfyUI/models/vae/andComfyUI/models/text_encoders/. - In your workflow, load this file with the Load Diffusion Model node (
UNETLoader) โ leaveweight_dtypeatdefault(the file is alreadyfloat8_e4m3fn) โ and wire the original VAE / text-encoder loaders as in the base model's reference workflow. - Sampler settings (steps, CFG/guidance, resolution) are the same as for the original model.
The FP8 file is a plain cast of the transformer weights (no scaling), the common ComfyUI
fp8_e4m3fnconvention; norms and biases stay BF16.
License
Quantized derivative of Tongyi-MAI/Z-Image. Original weights belong to the upstream authors; the base model's license applies to this derivative.
ํ๊ตญ์ด ์์ฝ
Tongyi-MAI/Z-Image์ transformer(DiT) FP8 ์์ํ ๋น๋ (ComfyUI์ฉ ๋จ์ผ ํ์ผ) ยท ์ ์ axteam
๊ฐ์
| ํญ๋ชฉ | ๋ด์ฉ |
|---|---|
| ์๋ณธ ๋ชจ๋ธ | Tongyi-MAI/Z-Image |
| ํ์ | float8_e4m3fn ๋จ์ผ safetensors (ComfyUI์์ ํํ ์ฐ๋ FP8 ํ์) |
| ํ์ผ | Z-Image-transformer-fp8_e4m3fn.safetensors 6.2 GB |
| ํฌํจ | transformer(DiT) |
์์ํ ์์ธ
- ์์ํ ์ ์ฐจ: transformer์ 2D ๊ฐ์ค์น๋ฅผ ์ค์ผ์ผ ์์ด
float8_e4m3fn์ผ๋ก ๋จ์ ํ๋ณํ(cast) โ ComfyUI์์ ํํ ์ฐ๋ ๋ฐฉ์ - BF16 ์ ์ง: ์ ๊ทํ์ธต, bias
- ํฌ๊ธฐ: BF16 transformer์ ์ฝ ์ ๋ฐ
- ๋ฏธํฌํจ: VAEยทํ ์คํธ ์ธ์ฝ๋ โ ์๋ณธ ๋ฆฌํฌ์์ ๋ฐ์ ์ฌ์ฉ
- ํ์ง(์ค์ธก, 2026-11-02): diffusers 0.42.1๋ก ์๋ณธ ํ์ดํ๋ผ์ธ์ BF16์ผ๋ก ์คํํ ๊ทธ๋ฆผ๊ณผ, ๊ฐ์ ํ์ดํ๋ผ์ธ์ transformer์ ์ด ํ์ผ์ FP8 ๊ฐ(ComfyUI๊ฐ ์ฝ๋ ๊ฒ๊ณผ ๊ฐ์ ๊ฐ, ์ด ์ ๊ฒ์์๋ BF16์ผ๋ก ์ฌ๋ ค ๊ณ์ฐ)์ ๋ฃ์ด ๊ทธ๋ฆฐ ๊ทธ๋ฆผ์ ๊ฐ์ ํ๋กฌํํธยท์๋ 2๊ฐ๋ก ๋น๊ต(1024ร1024) โ ๋ ๊ทธ๋ฆผ ๋ชจ๋ ๊ฐ์ ์ฃผ์ ์ด๋ ์๋ณธ๋ณด๋ค ๋ ๊นจ๋ํจ, ์ฌ๊ณผ๋ ๋น์ทํ ๊ตฌ๋(๊ผญ์ง๊ฐ ์งง๊ณ ๋ชจ์์ด ์กฐ๊ธ ๋ค๋ฆ)์ด๋ ํ๋ฆฐ ๋ฐฐ๊ฒฝ์ ์๋ณธ์ ์๋ ์ ์ ๋ค๋ชจ ์ผ๋ฃฉ๊ณผ ํ์ ์ ๋ฐ์ ์๊ตญ์ด ๋ณด์ด๊ณ , ๋ณต์กํ ๊ฑฐ๋ฆฌ ์ฅ๋ฉด์ ๊ตฌ๋๊ฐ ๋ฌ๋ผ์ง๋ฉฐ ๋ถ๋น ๋น์น ๋ฐ๋ฅ์ ์ ์ ์ค๋ฌด๋ฌ๊ฐ ๋ณด์, ํฝ์ PSNR 25.5ยท14.7 dB (๋ํจ์ ์ ๊ฐ์ค์น๊ฐ ์กฐ๊ธ๋ง ๋ฌ๋ผ๋ ์์ฑ ๊ฒฝ๋ก๊ฐ ๋ฐ๋์ด ๋ณต์กํ ์ฅ๋ฉด์ ๊ตฌ๋๊ฐ ๋ฌ๋ผ์ง ์ ์์, ์ ์์ด ๋ณธ๋ฌธ ํ ์ฐธ๊ณ )
์๊ตฌ์ฌํญ
- ์คํ ํ๊ฒฝ: ComfyUI โ Load Diffusion Model ๋
ธ๋๋ก
float8_e4m3fn๋จ์ผ ํ์ผ ๋ก๋ (ComfyUI๋ก๋ ์คํ ๋ฏธํ์ธ โ FP8 ๊ฐ์ค์น๋ diffusers๋ก ์์ฑ ํ์ธ, ํ์ง ํญ๋ชฉ ์ฐธ๊ณ ) - ์ถ๊ฐ๋ก ํ์ํ ํ์ผ: ์๋ณธ ๋ฆฌํฌ์ Qwen3 ํ ์คํธ ์ธ์ฝ๋(8.0 GB)์ VAE(0.17 GB)
- ๋ฉ๋ชจ๋ฆฌ: ์ด ํ์ผ 6.2 GB + ์ ํ ์คํธ ์ธ์ฝ๋ยทVAE
์ฌ์ฉ๋ฒ (ComfyUI)
- ํ์ผ ๋ฐ๊ธฐ:
hf download axteam/Z-Image-FP8 Z-Image-transformer-fp8_e4m3fn.safetensors --local-dir ComfyUI/models/diffusion_models - ํ
์คํธ ์ธ์ฝ๋ยทVAE: ์๋ณธ ๋ฆฌํฌ์์ ๋ฐ์
ComfyUI/models/text_encoders/ยทComfyUI/models/vae/์ ๋ฐฐ์น - ๋ถ๋ฌ์ค๊ธฐ: Load Diffusion Model ๋
ธ๋(
UNETLoader),weight_dtype์default(ํ์ผ์ด ์ด๋ฏธfloat8_e4m3fn) - ์ํ๋ฌ ์ค์ : ์คํ ยทCFG(guidance)ยทํด์๋๋ ์๋ณธ ๋ชจ๋ธ๊ณผ ๋์ผ
๋ผ์ด์ ์ค
- ๋ผ์ด์ ์ค: Apache-2.0 โ ์๋ณธ ๋ชจ๋ธ์ ๋ผ์ด์ ์ค๋ฅผ ๊ทธ๋๋ก ๋ฐ๋ฆ
- ๊ถ๋ฆฌ: ์๋ณธ ๊ฐ์ค์น๋ Tongyi-MAI(Alibaba) ์์ , ์ด ๋ฆฌํฌ๋ ์์ํ ํ์๋ฌผ
Model tree for axteam/Z-Image-FP8
Base model
Tongyi-MAI/Z-Image