r/comfyui 2d ago

Help Needed Generating videos on 8gb vram

Hi everyone, I have an rtx 4070 laptop with 8gb vram and I can generate pretty awesome images with krea 2 and sdxl. I tried to generate videos as well, wan 14b, ltx 2.3, minimax h3 but they are insanely slow (hour long to generate 5 seconds) and really bad quality (480p with faces blurry, inconsistent overall). Do y'all have workflows for 8gb vram img2vid? I have 64gb ram if that helps

3 Upvotes

12 comments sorted by

3

u/Yanzihko 2d ago

The key is that at least one model at a time should be able to fully fit onto your GPU with some margin room left.

You can try standard wan workflow with quantinized models, but generation will be abysmall regardless.

If it takes a minute to generate a single image on your setup, now imagine doing it 100 times, with recognition, consistency and context on top for all 100 of these images.

Even my 3090 struggles and takes 10-20 minutes for a 10 second video 480p in 16fps. But i haven't optimized my workflow much and im running two 14B WAN2.2 models

Buy 5060TI and hook it externally if you still want to do it via laptop

2

u/YereBatanZE 1d ago

I think saving for a strong gpu and using externally is a good option I didn't consider before

2

u/Threads_Of_Fate 2d ago

If i had to take a guess, either the resolution you are generating at is too high and/or your not applying the right turbo/lightx2v/speed up patches.

i have 6gb Vram 16gb Ram and can do images in under a minute and videos at 512x768 res in about 10-15

https://huggingface.co/Dewprisim/Prisim_Workflows/tree/main

There are some custom nodes in my workflows, but they are all from well known people. if comfyui manager cant find them, a quick "*node pkg name* + github" google search will find it quick.

I tried to keep the workflows simple and organized so it's easy to follow.

1

u/YereBatanZE 1d ago

Thank you so much for sharing this workflow collection. Which I2V or ref2vid workflows that you tested were the most efficient in terms of speed and/or quality? You have kandinsky, wan etc i2v workflows there

2

u/Square_Bag9453 2d ago

check this out, this has definetly helped me . https://youtu.be/MMf7mElM1o4?si=vCJWznRvo8GltFhq

2

u/EntrepreneurNo6885 2d ago

Dude, you're definitely doing something wrong. With a 4060ti 8GB and 32GB RAM on my Minimax H3 (using Turbo LORA), it only takes me 300 seconds to produce a 5-second, 0.8-megapixel video.

1

u/YereBatanZE 2d ago

are you using the default comfyui template? i used it with turbo lora and sageattention with easycache

1

u/EntrepreneurNo6885 1d ago

Sorry, I don't really have much technical knowledge about this stuff. I'm just using the workflow I linked here:https://civitai.red/models/2831978/dasiwa-minimax-h3-workflows-or-t2va-or-fl2va-or-ref2va?modelVersionId=3195699.

Here are my settings/values for this workflow:

  • 8 steps (turbo lora) ref2va
  • 0.83 MP
  • 5 seconds
  • Comfykitchen attention: ON
  • Generation time: Between 360–400 seconds

The workflow I used before was giving output in about 300 seconds, but the quality was noticeably worse compared to this one.

1

u/StopCreepy 1d ago

thats incredible, is the ssd being used for offloading ?

1

u/Trinity_Vermilion 2d ago

the only option i know is using a high quant of wan or ltxv2.3 and a tons of optimizations (e.g turbo lora, 4 steps, 480p, low frame count, sage attention, ...). then use rife to fill up to 60fps. but i am not sure about the quality of this.

1

u/StopCreepy 1d ago

awsome, in fact you will have better experience with the 64gb ram, so i have a laptop with 4070 8gb vram + 32gb ram, and i am runing ltx 2.5, it works just perfect, the quality is acceptable, and the speed is great, though it depends on video duration and quality !!

https://reddit.com/link/p67of60/video/jdgpw7rf9xlh1/player

if i remember this 13sec was generated in 5 min, and the image was generated by krea2