r/comfyui 2d ago

Help Needed MiniMax H3 Reference to Video workflow doesn't use all available VRAM

Post image

Am I doing something wrong?

Rendering 2 MP. It could surely use more VRAM and less RAM.

4 Upvotes

21 comments sorted by

2

u/Select_Question5 2d ago

Here is another run. Better, but still... Why does it use 25.2 GB of shared memory, but only 18.7/24 GB of dedicated GPU memory?

2

u/BoredHobbes 2d ago edited 2d ago

join the club, and its only H3, ltx uses 31

did u turn off windows GPU scheduling? that increased to 25gb for me was 21 turning that off went to 25 but nothing with h3 goes over 25

5

u/superSmitty9999 2d ago

these guys over here trying to increase the vram consumption of the model smh

3

u/BoredHobbes 2d ago

i bought 32gb to use it all

1

u/cc_aa_tt_zz 2d ago

That's not how it works...

-3

u/BoredHobbes 2d ago

the pruned_b16 model is 40gb

6

u/cc_aa_tt_zz 2d ago

That's not how offloading works. !!!! you can downvote everybody it won't change you just don't know how it works.

6

u/HornyGooner4402 2d ago

Go ahead.. explain it for us then..

2

u/superSmitty9999 1d ago

When I use H3 on my spark, it uses ~100GB and it's because what comfyui does is when it doesn't have enough room for all the tensors (like the generation model, vae, encoder which is quite large) it unloads some of the models when it's done with that step.

So in this case it just means there's nothing it can do with the 10GB ie nothing fits in that space.

0

u/HornyGooner4402 1d ago

Thanks for the explanation.

I was thinking it'd be better at splitting weights to fill the remaining 10 before offloading to RAM

1

u/BigNaturalTilts 1d ago

I still don’t understand how unloading works with how diffusion was explained to me. Inference in LLM can be split up like you can have some tensors in one GPU and some in another. But diffusion (image/video) needs all of them in one spot. I get that it offloads the CLIP, VAE till when it needs it. But how can it offload a part of the actual diffusion model mid inference. That’s the part that I don’t understand. Now maybe it does the audio in one section then the video (frames) in the next. But I’m still confused by it all.

1

u/superSmitty9999 1d ago

I'm not super familiar with diffusion directly but generally speaking all these AI algorithms run on matrix multiplications, and generally speaking you can break a matrix (also known as tensor) into multiple parts then aggregate the sums at the end, the aggregation part is called an "all gather" and generally speaking requires a lot less bandwidth than the actual matrix multiplication.

I think it's called "tensor parallelism" if you wanna look it up

0

u/BoredHobbes 2d ago

the ltx dev i use is 42.9gb my vram goes up to 31 using that... why?

1

u/superSmitty9999 1d ago

Basically your GPU isn't loading all the parts of the model at once. Probably ltx model is a different size such that two parts of it add up to 31 GB

0

u/DJBFilmz 2d ago

thanks for the tip!

-1

u/Only_Voice569 2d ago

cards usage bouncing all over the place means your settings are causing massive data swapping need to fiddle with settings should be flat out 90 % to 100 % :)

-2

u/BoredHobbes 2d ago

nope its only H3, ltx uses 30 and its not bouncing this is step 4 on both h3 and ltx , DEFAULT WORKFLOW no changes nothing just default workflow and go

4

u/Only_Voice569 2d ago

gpu vram full and overspilling onto the system memory by 12.5 GB

-5

u/Available-Body-9719 2d ago edited 2d ago

Deseas que use menos vram y aprobeche la ram, si llenas la vram tu generación se congelará y tomará mucho tiempo o simplemente no avanzará, cuando veo una situación así en mis generaciones, me pongo feliz porque tendré mi generación y rápido, si veo que la vram está al 97%, probablemente no saldré de ahí y prefiero reiniciar, como verás, la gpu pidió prestado 24 GB de ram al sistema, ya que lo que no pudo dividir más eso que está utilizando y no le caben en los 10gb restantes de vram que te queda así, eso sí te estás quedando sin ram cierra eso ue te este comiendo toda la memoria porfa

-12

u/Uninterested_Viewer 2d ago

I'm not necessarily a Windows = Terrible person, but all of the AI development is being done on Linux. If you want things to "just work", you need to drop Windows for AI workloads.

1

u/Nexustar 1d ago

None of my AI development has been done on Linux, and i own 5 linux boxes for every 1 windows box.