[Bug] cannot open z-image.
Git commit
n/a, downloaded vulkan build
Operating System & Version
Windows 10
GGML backends
Vulkan
Command-line arguments used
sd.exe -m D:\models\img\z_img_turbo-Q4_k.gguf --vae D:\models\img\vae\ae.safetensors --llm D:\models\img\Qwen3-4B-Instruct-2507-Q4_K_M.gguf --diffusion-fa
Steps to reproduce
attempt to load Z image
What you expected to happen
the model loads
What actually happened
model does not load.
Logs / error messages / stack trace
[INFO ] stable-diffusion.cpp:228 - loading model from 'D:\models\img\z_img_turbo-Q4_k.gguf' [WARN ] model.cpp:379 - unknown format D:\models\img\z_img_turbo-Q4_k.gguf [ERROR] stable-diffusion.cpp:230 - init model loader from file failed: 'D:\models\img\z_img_turbo-Q4_k.gguf' [INFO ] stable-diffusion.cpp:282 - loading llm from 'D:\models\img\Qwen3-4B-Instruct-2507-Q4_K_M.gguf' [INFO ] model.cpp:370 - load D:\models\img\Qwen3-4B-Instruct-2507-Q4_K_M.gguf using gguf format [INFO ] stable-diffusion.cpp:296 - loading vae from 'D:\models\img\vae\ae.safetensors' [INFO ] model.cpp:373 - load D:\models\img\vae\ae.safetensors using safetensors format [ERROR] stable-diffusion.cpp:306 - get sd version from file failed: 'D:\models\img\z_img_turbo-Q4_k.gguf' new_sd_ctx_t failed
Additional context / environment details
No response
You need to use the flag --diffusion-model instead of -m; see https://github.com/leejet/stable-diffusion.cpp/blob/master/docs/z_image.md for an example.
You need to use the flag
--diffusion-modelinstead of-m; see https://github.com/leejet/stable-diffusion.cpp/blob/master/docs/z_image.md for an example.
I actually ended up loading the model, but now it dosnt want to load the sampler. figuring that out now
Git commit n/a, downloaded vulkan build
Somewhat off topic: that's the reason why I suggested providing the current commit number at start of sd, see #1005 So printing a commit number would help here.