-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to sequential cpu offload 8GB VRAM maybe less #75
Conversation
I couldn't get this to run, it looks like the cpu_offload function didn't get Oops: just need to change the accelerate import to include cpu_offload |
This is indeed a problem. @rodjjo could you submit another commit to include |
With a really short video, I was also able to run as low as 2GB with #76 merged and tile_sample_min_size lowered to 64 (48, 32, 16 progressively became slower and vram usage didn't go down) With this, vae decode is now the limiting factor. The exact vae decode usage seems to fluctuate depending on temp: 16 (5sec): 4.808GiB (anything in between should work, these are just the ones I chose to sample) |
This looks great. Thank you @rodjjo! |
Sorry for missing the include :D |
What
Use even less memory to run it.
Why
To help people with 8GB VRAM GPU
Description
Add support to sequential CPU offloading.
For the reviewer
Generate a text to video and a image to video to validate (I moved the logic from a personal project to support this one here).
How to use: