You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] FLUX.1-Kontext-dev: -r reference editing outputs pure noise (t2i works fine) on Vulkan and CPU, both Q4_K_M and Q8_0 GGUF #2133
FLUX.1-Kontext-dev reference-image editing (-r) produces pure RGB noise with every parameter/backend/quantization combination I tried, while text-to-image with the same model files works perfectly. Reproduced on both the latest release and the build before #2085.
Environment
stable-diffusion.cpp: master-959-d637cfb (win-vulkan-x64 release), also reproduced on master-955-b7a74e6
OS: Windows 11, AMD RX 6750 GRE 12GB (RDNA2) via Vulkan; also reproduced with --backend cpu (pure CPU)
Models: flux1-kontext-dev-Q4_K_M.gguf and flux1-kontext-dev-Q8_0.gguf from QuantStack/FLUX.1-Kontext-dev-GGUF (byte sizes identical to upstream), ae.safetensors (verified 16-ch latent Flux VAE), clip_l.safetensors, t5-v1_1-xxl-encoder-Q8_0.gguf
What works
Text-to-image, same model, same session — clean output in 37s:
sd-server img2img API with Qwen-Image-Edit on the same install works fine (its ref/img-cond path is OK), so the issue appears specific to the Kontext ref path
Expected
Edited image preserving the reference, per docs/kontext.md example.
Update: additional testing shows the Q8_0 GGUF fails on Vulkan for plain text-to-image as well (pure noise), which matches the known open issue #1927 (Q6_K/Q8_0 Vulkan). So the Q8_0 datapoint above is likely explained by #1927 and should be disregarded for this bug. The core repro for this issue stands on Q4_K_M alone: t2i works perfectly (clean image), but -r reference editing outputs pure noise, on both Vulkan and --backend cpu, across master-955 and master-959.
Activity
liuwei12987 commentedon Oct 13, 2026
Update: additional testing shows the Q8_0 GGUF fails on Vulkan for plain text-to-image as well (pure noise), which matches the known open issue #1927 (Q6_K/Q8_0 Vulkan). So the Q8_0 datapoint above is likely explained by #1927 and should be disregarded for this bug. The core repro for this issue stands on Q4_K_M alone: t2i works perfectly (clean image), but -r reference editing outputs pure noise, on both Vulkan and --backend cpu, across master-955 and master-959.