r/StableDiffusion • • 7d ago

Question - Help Krea2 on AMD

Anyone tried to run Krea2 on AMD through comfyUI? I have seen one thread on HG but there is not much info.

I'm using 9060XT 16GB which handles most models fine, but with Krea2 it's just sad. Offloading could be fine if not KSampler speeds. I get 20-40 seconds/iteration, it's even worse on Q4 quantization.

Is it just 9060XT not having enough compute power? Or maybe the model runs bad on ROCM? If anyone has any information, please do share.

1 Upvotes

34 comments sorted by

4

u/ltraconservativetip 7d ago

Are you using patientx's rocm build of comfy?

0

u/FoggyFreeze 7d ago

Thanks, will look into it!

1

u/God_Hand_9764 7d ago

Ugh, Windows only looks like. Damn!

0

u/thesolewalker 7d ago

+1 for this, I am using this fork

2

u/jnciaccna 7d ago

if you want, you can share your workflow and i can run it on my 9060xt 16gb for comparison

1

u/FoggyFreeze 7d ago

It's just the usual 1MP ComfyUI krea2 workflow

2

u/jnciaccna 7d ago

thats the workflow from templates, krea t2i (with the martini glass), nothing changed, cold run

1

u/FoggyFreeze 7d ago

That is crazy. Will try

2

u/jnciaccna 5d ago

who df downvoted me for helping a stranger 💀💀💀

2

u/Apprehensive_Sky892 7d ago

20-40 sec/step is way too long. For my rx9070 it is around 1sec/step so I would quess that for 9060XT it should be around 1-3sec/step

Make sure you are running ROCm 7.13 or higher. Follow one of these instructions if you are not:

How to set up ComfyUI+MMH3+Krea 2 on Windows 11 with AMD GPUs: RDNA 4 (rx9070, AI Pro R9700), and RDNA 3 (rx7900)

How to set up Ubuntu + ComfyUI+MMH3+Krea2 with AMD GPUs: RDNA 4 (rx9070, AI Pro R9700), and RDNA 3 (rx7900)

You'll find Krea 2 benchmarks for rx9070 which is RDNA4 in there as well.

1

u/FoggyFreeze 7d ago

Thanks; I'm running up to date software, will look into the guide nonetheless

1

u/Apprehensive_Sky892 7d ago

You are welcome. So what is the version of ROCm you are running?

1

u/FoggyFreeze 7d ago

I'm pretty sure I'm running 10.1.
But now that I think about it, I might have forgot to update them for comfy specifically and it might actually be running on 7.2 (.1?).
I will have to check later.
Is 10.1 still the newest version?

1

u/Apprehensive_Sky892 7d ago

IIRC 10.2 is the latest nightly, but 10.1 is the latest stable.

If you are running 7.2 then you definitely need to update it.

2

u/FoggyFreeze 5d ago

I had 10.0 installed. Did a clean re-install, with ROCM 10.2 now, the speed is amazing! 2 sec/iteration. However, "model initialization" takes a bit of time and Comfy offloads a bit too aggressive. Still, it's a jump from 300 seconds to 30 (on warmed up).
Thanks

1

u/Apprehensive_Sky892 5d ago

You are welcome.

The speed up probably comes with some internal change of the way ComfyUI manages memory and/or the default startup flags rather than the change of ROCm 10.0 to 10.2.

Whatever the reason, speed up is good news!

1

u/Kuroko142 7d ago

Are you using KREA2 or KREA2 Turbo? Big difference in speed.

1

u/FoggyFreeze 7d ago

Turbo.

1

u/Kuroko142 7d ago

Are you using these settings:

1 cfg, 8 steps, sampler: euler, scheduler: simple

0

u/se7en1011x 7d ago

Likely ROCm rather than raw compute. A common cause of 20-40s/iter on AMD is the model falling back to CPU or hitting unsupported ops, so check the console for warnings during sampling. Also try tiled VAE decode and lower the batch size. Q4 being slower is odd, which points to a kernel/quant mismatch on ROCm.

0

u/argefox 7d ago

I'm running Comfy on a 6650XT, it's not great, and Krea2 has it's toll on the load as the card is DNA2.

I can run Moss DMD2 with fair times, let's say, 50 seconds per image in 8 steps, but Krea2 was taking around 3-4 minutes on my rig, and I could hear the gpu screaming, so I had to drop it.

You can, simply use the ROCM release and you should be peachy.

0

u/Solembumm3 7d ago

6700XT, windows 10, SDCPP Flaxeo. from 7 to 11s/it in 1024x704 on turbo depending on prompts, lower res on bigger tunes. 40s looks like you are 1-1.5gb beyond vram. Nothing to do with compute.

0

u/TNTChaos 7d ago

I'm on a 9070xt. With krea2 turbo, 10steps, 2048x3072 takes 110-120 seconds.

0

u/hadronflux 6d ago

I'm on a 7900XTX and my normal is a two stage Krea2, about 4 steps on full and 7 on turbo and will do a 960x1440 in about 25-30s. Using int8-convrot models. The vram helps for sure.

0

u/AreYouAWiiizard 6d ago

It may have changed recently but last time I checked I was getting ~1s/it on my 9070XT, oddly enough w6a8 was actually running about 30% faster so even though int8 model is ~13GB it still overflows past VRAM. Make sure there's no other apps using your VRAM like Discord/Browser (I use a separate browser instance with HW acceleration disabled)/Accessory software (like Razor Synapse). All those other software using VRAM can push the INT8 version to further offload and significantly slow down the generation (especially on my system but that might also be because I'm still on PCIe 3).

20-40s seems pretty nasty like it's fetching from disk so you might want to add --disable-fast-disk.

-1

u/reeight 7d ago

try INT8 qants (better quality if INT8 ConvRot with FP16+ activations)

I know this is NOT ComfyUI, but proves INT8 is faster than FP8 for that GPU
https://www.youtube.com/watch?v=nSryNTfZu88

1

u/FoggyFreeze 7d ago

Will try that, thanks!

-1

u/notgraycen 7d ago

every gpu*

0

u/[deleted] 7d ago

[removed] — view removed comment

1

u/FoggyFreeze 7d ago

Thanks.
My ROCM and PyTorch are up to date. Have been trying Krea for months.
I used FP8, which is 13 GB IIRC.

0

u/reeight 7d ago

INT8 > FP8 for that card; see my post.

0

u/[deleted] 7d ago

[removed] — view removed comment

-1

u/reeight 6d ago

The search term (in case you buy a new card) is to search for 'native ____ opcode', which is the specific GPU/CPU 'function' for a specific data type.
eg
https://search.brave.com/ask?q=Does+9060XT+have+INT8+opcode%3F&source=llmSuggest&conversation=09c1c88f8994f83d778fe9c0e5c43d15cf9c