[Benchmark & Bug Report] Running KREA-2 (Qwen2-VL DiT) on AMD Radeon RX 9070 XT (RDNA 4) under Windows 11

:green_circle: Environment & Hardware Specs

  • GPU: AMD Radeon RX 9070 XT (XFX, 16GB VRAM)

  • Interface: PCIe 4.0 x16 (Resizable BAR / SAM Enabled)

  • CPU: AMD Ryzen 9 5900X

  • OS: Windows 11 (23H2/24H2)

  • PyTorch Version: 2.12.0+rocm7.14.0 (Native AMD ROCm backend)

  • ComfyUI Version: 0.33.0


:magnifying_glass_tilted_left: The Core Issue: Severe VRAM Pagination & GPU Usage Oscillations (0% to 100%)

When trying to run the Krea-2 model (based on the Qwen-VL architecture with a huge 30,720-feature text conditioning stack) using native workflows, the GPU experiences a heavy bottleneck. The Windows Task Manager displays a “sawtooth” graph pattern (rapidly shifting from 0% to 100% usage every second) while Dedicated VRAM peaks hard at 15.2 GB - 15.5 GB / 16.0 GB.

The GPU core remains completely cool (fans don’t even spin up), indicating that the hardware is mostly idle, waiting for the system to swap memory blocks between System RAM and VRAM via the PCIe bus.


:test_tube: Test Logs & Iterations

Test 1: Native Checkpoint (FP16/FP8 hybrid) at 1024x1024

  • CLI Args: --use-pytorch-cross-attention --highvram

  • KSampler: 8 Steps, CFG 1.0, Euler / Normal

  • Behavior: Heavy fatiamento/VRAM offloading. The CLI throws continuous Unloaded partially logs for every step, moving ~2.7 GB blocks back and forth.

  • Execution Time: 193.48 seconds

Test 2: Lower Resolution Attempt (896x896)

  • CLI Args: --use-pytorch-cross-attention --highvram --disable-smart-memory --preview-method none

  • Behavior: By reducing the tensor matrix resolution, the PCIe bottleneck drastically decreased. The GPU usage graph showed flat, wide peaks at 100%, proving that keeping the latent space smaller helps the AMD Windows driver stream data faster.

  • Execution Time: 127.81 seconds

Test 3: Quantized GGUF Model (8GB) with ComfyUI-GGUF_KREA-2 Fork

  • Model: krea2TurboGGUF_turboGGUFConversion.gguf

  • Behavior: Native ComfyUI-GGUF (by city96) fails with ValueError: Unexpected architecture type in GGUF file: ‘krea2’. Cloning the specialized fork RealRebelAI/ComfyUI-GGUF_KREA-2 successfully patched the UNET loader to bypass the validation error.

  • The Final Bottleneck (WanVAE): Even though the 8GB GGUF model freed up VRAM space, loading the VAE (WanVAE) caused a second offloading layer:
    [INFO] Unloaded partially: 2554.68 MB freed, 2238.13 MB remains loaded

  • Final Execution Time (Best Windows Run): 164.88 seconds / 181.45 seconds (depending on the VAE flush).


:light_bulb: Engineering Conclusions & Community Takeaways

  1. The Text Encoder Burden: The text encoder device option in native nodes is locked to CPU or default. The 30,720 features required by the Qwen3-VL token stack are being processed strictly on the Host CPU, bottlenecking the RDNA 4 scheduling on Windows.

  2. Windows VRAM Allocation Tax: Windows natively hogs up to 1.5GB - 2GB of VRAM for Desktop/Browser composition. On a 16GB card, this forces ComfyUI to operate within a tight ~14GB margin, which is instantly choked when allocating the Krea-2 UNET space alongside the high-overhead WanVAE matrix decoding operations.

  3. The [WARNING] False Positive: The warning Skip module comfyui-rocm due to the lack of NODE_CLASS_MAPPINGS is safely ignorable. It occurs when applying low-level backend variables (such as forcing torch.backends.cuda.matmul.allow_tf32 = True) inside custom nodes without registering graphical front-end UI components.

  4. Linux Dual-Boot Recommendation: To fully exploit the physical AI Matrix Accelerators of RDNA 4 chips without system-enforced memory paging or PCIe scheduling latency, migrating to Linux (Ubuntu 24.04 LTS / ROCm nativo no Kernel) is highly recommended for developers running heavy Diffusion Vision-Language Models.

2 Likes

Hello, you ran --highvram in all three tests. ComfyUI’s own help for that flag says it keeps models in GPU memory instead of unloading them to CPU after use. On a 16GB card with a stack that does not fit, that is close to asking for the churn you are seeing, and the partial unload spam and the sawtooth follow from it. Worth one run with no VRAM flag at all, letting the default dynamic management do its thing. It may not fix it, but as it stands the flag is a confound in every test. Also another thing i noticed, the post calls it Qwen2-VL in the title, Qwen-VL in the body and Qwen3-VL in the conclusions.

I would love to create a community that focuses on trying to create ways to use old amd gpus from the mining days like vega 56, 64, and vega frontiers… or even the old 2017 32gb Radeon PRODUO dual die workstation cards polaris arch… like I have a fleet of all of these, and yea i know we have vulkan and sketchy forms of modded ROCm, but I know we can get batter speeds

1 Like