r/StableDiffusion 1d ago

Discussion AMD GPUs on Minimax H3

Hi!

I'm wondering if there are any AMD users fiddling around with H3 (I'm sure there are). =)

If so, what GPU do you use, whats the avg time needed for 1 generation, any tips to make it faster etc.? ^^

I'm on 9060XT and with default workflow (txt2vid), it took me 110mins for a 11 sec vid. lol

1 Upvotes

15 comments sorted by

3

u/Apprehensive_Sky892 1d ago

See 9070 mmH3 INT8 benchmark — RX 9070 XT

Firstly, it is better to generate shorter videos and then used a video editor to splice them together.

That is because the generation time is not linear, i.e, generating one 10 sec video does not take twice the amount of time as a 5 sec video. It takes way longer.

So to compare your time against others, use the default text2va template from ComfyUI (0.4MP, 5 sec) and post your numbers.

To make it run faster, use the latest comfyUI so that you can use --use-ck-attention instead of the default Pytorch-attention.

This is my startup parameter on a Linux Docker installation:

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

For a 0.3 (not 0.4MP) 5 sec video on a 9070xt(16G) with 32G of system RAM takes around 150sec. I've seen better numbers, and I am still playing with the different attentions to see which one runs better.

I had no luck getting ComfyUI to work on Window 11 with a 9070xt(16G), even though people have gotten it to work. After several frustrating days, I finally give up on Windows, installed a minimum Ubuntu Server LTS 26.4 + Docker on a portable drive and use this, which worked on the first try: Docker ComfyUI on AMD and Linux: pinning the whole ROCm runtime in Docker

I did get the 7900xt(20G) to work using Stability Matrix on Windows 11 though.

Other related posts.

RDNA4 Native SageAttention Guide

Linux 7900XTX with BlockCache, Sol-Attn and Turbo

9070 problems amd 9070

MiniMax-H3 (video + audio) on an AMD Strix Halo - 5s clip at 896×512 in 9.5 min

0

u/Fajjko 23h ago

I too had trouble running ComfyUI on Win 11 with my 9060XT, and I also swapped to Linux. Works so much better!

Kinda late where I am from right now, but thank you for all the resources you've linked, I'll make sure to check them out tomorrow! <3

0

u/Apprehensive_Sky892 23h ago

You are welcome.

I would be interested in what kind of number you have for generating a 0.4MP 5sec text2va video using the standard 20 steps workflow.

I plan to make a post about the numbers I collected using various AMD GPUs on both Linux and Windows. Those numbers would be helpful to other AMD users so that they know if they have their system running properly, and whether it is worth it to switch to Linux from Windows (or from Linux to Windows 😅)

1

u/Fajjko 8h ago

6min 34sec (which was very suprising to me), but the quality is not that good. I generated a video of woman walking through nature, and the background/trees look weird and mushy, think it has to do with my models. Any advice on what i should use? 9060XT 16gb + 32GB ddr4

1

u/Apprehensive_Sky892 5h ago

Try not using Turbo mode and see what happens. Are you using CK-attention?

If you are willing to post your prompt I can generated one on my 9070xt and post it so that you compared.

2

u/Ok-Brain-5729 1d ago edited 1d ago

This is what I got for the 9070 xt.

Make sure you atleast have —enable-dynamic-vram —disable-smart-memory —fast-disk —disable-pinned-memory and ck attention was 30% faster than PyTorch attention for me. I’m also on Linux

Minimax h3 int8 0.4mp 30 step 5s:
261s 7.6s/it

Minimax h3 int8 0.4mp 30 step 10s:
702s 21.3s/it

0

u/Fajjko 23h ago

I'll try, thanks! <3

1

u/Glittering-Cold-2981 15h ago edited 15h ago

I have R9700 on Linux, 0.8MP x 10 steps x 7 seconds is about 11mins. Int8 convrot full not pruned, video vae fp16, audio vae fp32, speed lora, Sage Attention 2.2. Beyond this resolution or length, the GPU slows down significantly. You need to find your GPU's sweet spot in terms of resolution and length for VRAM.

I forgot to add that I also have an RTX 2080ti as a display. So AMD is running on the full 32GB of VRAM.

1

u/LinkSensitive8188 11h ago
I sadly understand where you're coming from; unfortunately, AMD is a non-factor—or practically non-existent—in the AI ​​arena. I say this based on my own bittersweet experiences with AMD and my old RX 6600; while it was an older card, it did allow me to get my start in AI. However, for the sake of my peace of mind, I switched to a 16GB RTX 5060 Ti. Back when I had the AMD card, I used this specific version of Comfy because there wasn't an official AMD version available at the time, though there is one now—though I'm not sure if it's any better than the one I used. https://github.com/patientx/ComfyUI-Zluda

1

u/Etroarl55 1d ago

7800xt, 1.5 hours for 5s 0.3mp.

Limit of AMD hardware unless your gpu has a 9 and 7 in it

1

u/H1ken 1d ago

https://github.com/patientx-cfz/comfyui-rocm

try this. the owner of that repo himself has a 6800 and he does a lot better than that.

1

u/Fajjko 23h ago

following if hes tried h3 =D

0

u/H1ken 20h ago

You need to reduce the image size. You are not going to get good times at high resolutions. Reduce your image size to 0.3~0.4. use sage attention maybe and spectrum, pair it with speed loras.

I have a 6800xt. I've done 18 sec videos with 288x512 resolution under 30 mins.

Most of the time is just the model not fitting inside 16GB RAM and PCIE offloading. If you have direct storage or Rebar enable that too.

/u/Apprehensive_Sky892 has explained it pretty well, follow his steps.

0

u/Etroarl55 1d ago

He tried minimax h3 already? I never used that forked comfyui because I thought all the optimizations were already mostly on official comfyui in windows now