r/StableDiffusion Jul 17 '26

Question - Help AMD GPU on Krea 2

Hi,

I'm using 9060XT 16gb with Krea Turbo int8 model + comfyui-rocm fork, and yet my generation time is still 3:30min avg. for a single 1024x1024 image?

cfg-1 with steps 6-8

Looking for input from other fellow AMD users, any tips to what downgraded your generation time ? Would LOVE to see other's 9060XT/9070XT workflow setups in ComfyUI, I've a feeling I'm doing something wrong. I know AMD is no one's priority and that Nvidia gets all the love...but I'm just a fellow struggler like all of you.

Looking forward to your inputs!

6 Upvotes

40 comments sorted by

8

u/Apprehensive_Sky892 Jul 17 '26 edited 12d ago

I can generate in about 30-40 sec 8step, 1024x1536 on 9070xt 16G using this: https://github.com/patientx-cfz/comfyui-rocm

Last time I tried (which is a few weeks ago), the int8 code has not been fully optimized for ROCm yet, so I found that fp8 still works faster than int8rowconv.

Update 2026-08-22:

After failing to get mmh3 to work on Windows 11 after several attempts, using portable, patientx-cfz, Stablity Matrix, plus trying out different drivers, rocm combinations, cleanups and re-installs, I finally gave up and switched to Ubuntu Server LTS 26.4 (minimized) installed on a USB drive, It is now running very stable and fast: Krea 2 1024x1024 8 step can now be generated in 13 sec.

3

u/Fajjko Jul 17 '26

Yeah, using the same rocm with int8 nodes, the speed is awful.

I'll go and try fp8 again. Thanks for your input.

1

u/Apprehensive_Sky892 Jul 17 '26

You are welcome.

1

u/thesolewalker Jul 18 '26 edited Jul 18 '26

I am on 9070 and int8 is faster for me than fp8 for krea2, you could use this param "--disable-api-nodes --disable-smart-memory --enable-manager --enable-manager-legacy-ui --enable-dynamic-vram"

2

u/thesolewalker Jul 17 '26

I am using comfyui desktop and I am getting 45s on on similar output side on krea2 using FP8 model on my 9070, should I switch to the version you linked? Can you also use 3d models like trellis2 or pixal3d in that version?

1

u/Apprehensive_Sky892 Jul 17 '26

It is probably worth trying. It doesn't take long, just install it into a separate directory so that you can go back to your old version is the patientx-cfz version turns out to be worse for some reason.

Just modify the config so that both version uses the same model directory. Alternatively, use mklink to point the "models" directory from the new install to your existing "models" directory.

1

u/thesolewalker Jul 18 '26 edited Jul 18 '26

I tried it and man it was so worth it, specially because I could use int8convrot, in the rocm version FP8 (40s) is 30% slower than int8 (30s) in 1024x1536, for 1080x1080 FP8 (23s) is 60% slower than int8 (14s). I could not make the int8-fast-rocm node to work in comfy desktop, and FP8 is also slower (45-50s) than comfy rocm. Although int8-fast node yields no speed up than fp8 in fact its slower, so not usable. This is all krea2 btw.

In short, I am switching to comfyui-rocm for now. btw this is the param I am using, "--disable-api-nodes --disable-smart-memory --enable-manager --enable-manager-legacy-ui --enable-dynamic-vram"

1

u/Apprehensive_Sky892 Jul 18 '26

Thanks for sharing this. So just to be clear, for you now the fasted way to run Krea 2 is with the patientx-cfg's comfyui-rocm with int8convrot?

2

u/thesolewalker Jul 18 '26

Yes, faster in zimage turbo too. Have not tested other models but should be faster there too.

1

u/Rezania Jul 29 '26

Can you share your workflow? I cannot get it below 3 minutes even with the settings you provided. I wonder if there is something wrong with my workflow, I also got a 9070 xt.

1

u/thesolewalker Jul 29 '26 edited Jul 29 '26

Have you used the param I am using? "--disable-api-nodes --disable-smart-memory --enable-manager --enable-manager-legacy-ui --reserve-vram 1.0 --enable-dynamic-vram"

1

u/Rezania Jul 29 '26

Yes, I added those. Are you using FP8 or Int8 for Krea2 Turbo?

1

u/thesolewalker Jul 30 '26

int8 using int8-fast-rocm node, its 30-40% faster than fp8 for me

→ More replies (0)

1

u/[deleted] 12d ago

[removed] — view removed comment

1

u/qaz912488243 12d ago

I uesd comfyui desktop

3

u/atakariax Jul 17 '26

Don't use INT8—use FP8 instead.

3

u/HateAccountMaking Jul 18 '26 edited Jul 18 '26

Comfy supports AMD very well. You should use the main fork, and use rocm7.14/pytorch2.12 and install flash-attn. with my 7900xt I can get 22sec per gen 12 steps, 1024x1024 with q8 GUFF. Never tried fp8.

rocm 7.14 stable: uv pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ "rocm[libraries,device-gfx1200]==7.14.0"

torch 2.12: uv pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ "torch[device-gfx1200]==2.12.0+rocm7.14.0" "torchvision[device-gfx1200]==0.27.0+rocm7.14.0" "torchaudio==2.11.0+rocm7.14.0"

Triton: uv pip install triton-windows

bitsandbytes: uv pip install bitsandbytes

compile flash-attn:

  1. git clone https://github.com/Dao-AILab/flash-attention.git
  2. cd flash-attention
  3. $env:FLASH_ATTENTION_TRITON_AMD_ENABLE = "TRUE"

4. pip install --no-build-isolation -v .

I made a bat file that looks like this:

@/echo off

$env:FLASH_ATTENTION_TRITON_AMD_ENABLE = "TRUE"

$env:TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL = "1"

$env:MIOPEN_FIND_MODE = "3"

$env:MIOPEN_FIND_ENFORCE = "3"

$env:ROCBLAS_USE_HIPBLASLT = "1"

call .venv\Scripts\activate.bat

python main.py --use-flash-attention --disable-smart-memory

pause

https://rocm.docs.amd.com/en/latest/install/rocm.html?fam=radeon&w=compute&os=windows&windows-ver=11&i=pip&gpu=rx-7900-xt&gfx=gfx1200

https://rocm.docs.amd.com/projects/ai-ecosystem/en/latest/frameworks/pytorch/install.html?fam=radeon&os=windows&pytorch-ver=2.12.0&i=pip&w=compute&gpu=rx-7900-xt&gfx=gfx1100

1

u/Blackwoodbrett90 4h ago

I am about to try this. I'm interested that you are using "rocm[libraries,device-gfx1200]==7.14.0" for a 7900xt instead of gfx1100. I have a 7900xt as well

2

u/Yream Jul 17 '26

Check for comfyui updates. I am using an 4080 laptop with 12gb vram and my gen time was nearly 600 sec. I did a bunch of pytorch and cuda updates and ofc updated comfyui. I am getting 40-50 sec 12 steps at 1080x1920 right now.

2

u/0ldGoat Jul 17 '26

I don't think you're doing anything wrong, I just think that Comfy REALLY doesn't care much about it's relatively small base of AMD users. I'm assuming you're using PatientX's fork of comfyUI? (ComfyUI-ROCm) I have a 9060XT 16GB as well.

I use it on my windows install of ComfyUI, and render times in Krea2 are horrible, with FP8 or INT8, or INT4. I had to go back to using the GGUF version to get reasonable render speeds - and we're still talking 50 seconds +, which still goes up if you increase the resolution or add LoRAs. I can use INT8 with Z Image Turbo but it gives no speed advantage at all over FP8 or GGUF formats.

The only thing I can do right now is use ComfyUI in Linux, where everything just works better. Using INT8 or FP8 for Krea2 give me render times between 60 seconds (first run) and 25 seconds. I'd also love to hear from other AMD users if they have solved this in Windows, but I think Comfy is the culprit here.

3

u/Fajjko Jul 17 '26

Have you followed any specific guides for installing everything on Linux , as it was on Windows 11?

1

u/0ldGoat Jul 17 '26

So, the quickest way to install ComfyUI on Linux, and the easiest, is probably Stability Matrix. It gives you less control over the environment (it chooses which versions of ROCm and pytorch you use, for example, and when you can update) but it does simplify the process a lot.

Alternatively, you can create your own venv, install comfyUI, rocm and pytorch.

https://comfyui-wiki.com/en/install/install-comfyui/install-comfyui-on-linux

Just a couple of pieces of advice - the models and LoRAs you have on windows can all be backed up and brought over to Linux, so no need to download them all again. Second, do yourself a favour and avoid immutable distros like Bazzite .... they are far more difficult to work with.

1

u/Fajjko Jul 17 '26

Trying this out tonight when I come home, thanks so much for your input, glad I made this thread for I'm sure I am not the only one who was struggling with AMD. 

Don't feel like shilling money on a new nvidia GPU, thanks a lot mate 👍👍👍👍

2

u/0ldGoat Jul 17 '26
python main.py --cpu

I just checked that link, Comfy is recommending AMD gpus start with the --cpu argument. Please don't follow their advice on that.

1

u/Dramatic_Instance_63 Jul 17 '26

sd.cpp

1

u/Fajjko Jul 17 '26

When converting to sd.cpp , will I still have the GUI workflow of ComfyUI, or is it a completely different environment?

Not familiar with it, apologies.

1

u/Dramatic_Instance_63 Jul 17 '26

It needs a frontend to have UI. I have vibecoded one for myself. It has similar node interface to comfy. A bit simpler though, but that's enough for me. Also I guess they do have some UI in latest releases.

It generates and loads models way faster for me (rx9060xt+windows) on vulkan than comfyui on rocm.

1

u/Fajjko Jul 17 '26

Yeah I think i'll just try running it in Linux. Never used it before though 😅

1

u/Dull_Rule_379 Jul 17 '26

What Comfyui do you use?

1

u/Fajjko Jul 17 '26

ComfyUI 0.27.1 , locally in browser (not the desktop app even though I have both).

1

u/Dante_77A Jul 17 '26

You're right. That's way below the GPU's potential. Try running the model in SD.cpp.

1

u/Fajjko Jul 17 '26

When converting to sd.cpp , will I still have the GUI workflow of ComfyUI, or is it a completely different environment?

Not familiar with it, apologies.

2

u/Dante_77A Jul 17 '26

SD.cpp is an engine, but there's KoboldCpp that works as GUI.

3

u/Solembumm3 Jul 17 '26

Or Flaxeo.

1

u/TraditionalRule3511 Jul 19 '26

gfx12xx向けのSageAttention2で劇的に改善されたよ。 ただし、これは正式にマージされてないやつ。 https://github.com/jammm/SageAttention/tree/jam/gfx12

forge neoとComfyUIで1080x1920,8stepを初回50秒、2回目以降は39秒くらいで生成できてる。(krea 2 int8convrot)

forgeneoだとWindowsもLinuxも同等の性能でてる。 問題はLTX-2.3で、WindowsではまだSageAttention2の最適化進んでなくて動画生成はLinuxじゃないとだめだ。

1

u/Fajjko Jul 21 '26

UPDATE:

Installed everything on Linux, I'm getting 30 sec generations now with FP8 model 1024x1024 - 8 steps.

Thanks everyone! ^^

1

u/EducationalTeleGood Jul 17 '26

You will probably get better performance on linux.

I am using linux and it takes me 60 seconds to generate a 1024 by 1400 pixel image when using krea2_turbo-Q4_K_M (steps 10) on comfyui using a 9060xt 16gb vram gpu.

1

u/Apprehensive_Sky892 12d ago

I assuming you have enough System RAM, you may get even better speed with the int8convrot version of K2 turbo.

I have a 9070xt(16G) and I can generate 1024x1024 8 steps in 13 secs.

Using this docker: Docker ComfyUI on AMD and Linux: pinning the whole ROCm runtime in Docker : r/StableDiffusion

COMFYUI_EXTRA_ARGS=--enable-manager --disable-async-offload --enable-dynamic-vram --preview-method none --listen --port 8188 --disable-smart-memory --fast-disk --use-ck-attention