From 83f905919b965bdf0eaec51397a1f525eee21882 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 14 Feb 2026 11:36:52 +0800 Subject: [PATCH] flash attention is broken on qwen image edit. disabled conditioner to fix (+1 squashed commits) Squashed commits: [1b705cb6e] flash attention is broken on qwen image edit. disabled conditioner to fix --- otherarch/sdcpp/stable-diffusion.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/otherarch/sdcpp/stable-diffusion.cpp b/otherarch/sdcpp/stable-diffusion.cpp index ef9e0822c..4f8770d1a 100644 --- a/otherarch/sdcpp/stable-diffusion.cpp +++ b/otherarch/sdcpp/stable-diffusion.cpp @@ -863,7 +863,10 @@ public: if (sd_ctx_params->flash_attn) { LOG_INFO("Using flash attention"); - cond_stage_model->set_flash_attention_enabled(true); + if(!sd_version_is_qwen_image(version)) //kcpp: edit 14feb, breaks qwen image edit + { + cond_stage_model->set_flash_attention_enabled(true); + } if (clip_vision) { clip_vision->set_flash_attention_enabled(true); }