mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[GH-ISSUE #226] [AMD RDNA3 Regression] CK Attention produces corrupted Qwen Image 2.1 output after recent update #66
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dkspwndj on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-kitchen/issues/226
Description
After updating ComfyUI and the related dependencies recently, I started getting severely corrupted image output when using CK Attention on an AMD Radeon RX 7900 XTX.
The same workflow, input image, prompt, seed, model, sampler settings, and memory settings produce a normal image when I switch only the attention backend from CK Attention to Quad Cross Attention.
CK Attention was working normally on the same system before the recent update.
This appears to be a regression in the CK Attention path, although I am not sure whether the cause is in ComfyUI itself or comfy-kitchen.
Environment
qwen_image_2.1_int8_convrot.safetensorsqwen3vl_8b_int8_convrot.safetensors[insert current version / commit]0.2.36[insert from startup log]Reproduction
With CK Attention:
The generated image becomes severely corrupted.
The output contains many green and purple artifacts, broken textures, and heavy structural corruption, although the generation process itself finishes normally.
There is no obvious exception or fatal error in the console.
I then change only the attention backend to Quad Cross Attention:
The same workflow and seed then produce a normal image.
--disable-dynamic-vramand--disable-async-offloadare explicitly enabled, so this does not appear to be caused by Dynamic VRAM eviction/reloading or async offloading.Expected behavior
CK Attention should generate a valid image, as it did before the recent update.
Actual behavior
CK Attention completes generation without an exception, but produces a severely corrupted image.
Switching only to Quad Cross Attention immediately restores normal output.
Regression information
This setup was previously working correctly with CK Attention.
The corruption started only after the recent ComfyUI / comfy-kitchen update.
Because Quad Cross Attention still works correctly with the exact same workflow and seed, the model files, VAE, workflow, input image, prompt, sampler, and scheduler appear to be valid.
This may be related to the AMD/ROCm CK Attention path on RDNA3 (
gfx1100).There are older reports of invalid output with CK Attention on AMD GPUs, but my case appears to be a newer regression involving:
0.2.36I can provide the complete startup log, generation log, workflow JSON, and additional test results if needed.
Comparison images
Show CK Attention vs Quad Cross Attention comparison
@0xDELUXA commented on GitHub (Oct 4, 2026):
This looks like #214. comfy-kitchen 0.2.36 introduced a prepared dense-mask path in the HIP int8 attention kernel, and on gfx11 fast-math folded away the empty-tile guard, so key tiles in which every key is masked produced NaN. Qwen Image 2.1 runs its text tokens through attention with a causal mask, which hits exactly that case, and the NaN then spreads through the rest of the model. 0.2.35 was not affected.
It was fixed in
19ea55band released in comfy-kitchen 0.2.37, which current ComfyUI master now requires. Could you update (pip install comfy-kitchen==0.2.37, or pull ComfyUI and reinstallrequirements.txt) and confirm whether CK attention produces correct images again?