Using the sage attn parameter at startup will cause qwen image to generate a black image
Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help)
Expected Behavior
generate image
Actual Behavior
generate black image
Steps to Reproduce
Debug Logs
no err
Other
No response
蹲
Do not use e4m3n_fast for Unet, the result will be good~!
I had the same problem and a patch sage attention node after your model loader is what fixed for me
I had the same problem and a patch sage attention node after your model loader is what fixed for me
didn't fix it for me. i had to remove --fast and --using-sageattention from the launch bat for it to work
I had the same problem and a patch sage attention node after your model loader is what fixed for me我也有同样的问题,在模型加载器之后添加一个 sage attention 节点修复了我的问题
![]()
添加后是这样的问题
Still same no matter what.
I figured out that in my case, black images were caused by using brackets in the prompt for some reason. If I remove the brackets, the images generate normally. I have AMD GPU (7800XT) on linux.
I figured out that in my case, black images were caused by using brackets in the prompt for some reason. If I remove the brackets, the images generate normally. I have AMD GPU (7800XT) on linux.
On MacBook Pro M4 removing brackets from the prompt also solved the black output issue. Thanks!
I solved it by change version of sageattn to 2.0.1
sageattention 2.1.1+cu128torch2.7.0 also gives black image
I turned off SageAttention and it's working properly now.
why is this closed? it still doesn't work with sage attn 2.2, I shouldn't need to disable it just to get it working.
It doesn't work even without sage_attention. Only now it's not a black screen, but colored pixels.
This might be useful to anyone following this issue: https://github.com/comfyanonymous/ComfyUI/issues/9077#issuecomment-3173454804
Bad keys for QWEN:
--use-sage-attention - create black image
--fast - create broken colored pixels (I don't know what this key does)
Work keys for QWEN:
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --front-end-version Comfy-Org/ComfyUI_frontend@latest
Any solution for this?
Using Patch Sage Attention KJ with "sageattn_qk_int8_pv_fp16_cuda" option fixes the problem for me.
Using Patch Sage Attention KJ with "sageattn_qk_int8_pv_fp16_cuda" option fixes the problem for me.
30 Series video card. This does not work for me ......
Using Patch Sage Attention KJ with "sageattn_qk_int8_pv_fp16_cuda" option fixes the problem for me.
So Triton is the issue. For me, savings (with this model) are so marginal without Triton that it doesn't seem worth using SageAttention at all.
go to ComfyUI/venv/lib/python3.10/site-packages/sageattention/core.py
go to line 118
replace with this
arch = get_cuda_arch_versions()[q.device.index] if arch in ("sm80", "sm86"): return sageattn_qk_int8_pv_fp16_cuda(q, k, v, tensor_layout=tensor_layout, is_causal=is_causal, sm_scale=sm_scale, return_lse=return_lse, pv_accum_dtype="fp32") # elif arch == "sm86": # return sageattn_qk_int8_pv_fp16_triton(q, k, v, tensor_layout=tensor_layout, is_causal=is_causal, sm_scale=sm_scale, return_lse=return_lse) elif arch == "sm89":
