-
Notifications
You must be signed in to change notification settings - Fork 308
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
torch.OutOfMemoryError: CUDA out of memory #82
Comments
I have the same problem with 6xRTX 4090 trying to run with the default settings. |
@paras-genmo i tried, but "CPU offload not supported in multi-GPU mode" |
I see, we haven't tested multi-GPU where each GPU has < 80 GB of memory as we don't have a system to test that setting. The multi-GPU codepath is slightly different than single-GPU, but it should theoretically be possible to make it work with code changes since 6x 4090 is definitely better than 1x 4090. Were you able to get the code to work on a single GPU?
You can adjust If that works, a smaller number of frames may work on multi-GPU even without CPU offloading:
If you find a way to make CPU offload work on multi-GPU, we would be happy to review a pull request. |
It seems that gpu offload doesn't work:
it fails on line Also dit is loaded in float32 |
Hi, I have exactly the same issue regarding the OOM error. I'm working with several GPUs, each with less than 46 GB of memory, and offloading to the CPU doesn't seem to work. The model is moved multiple times between the CPU and the GPU, but it ends up on the GPU. Did you solve this OOM problem @noskill ? |
@saimeur Not yet, to be honest i am using mochi 1 repackaged by comfyui team https://huggingface.co/Comfy-Org/mochi_preview_repackaged/tree/main/split_files/diffusion_models?ref=blog.comfy.org |
Thank you for your answer @noskill. I'm not very familiar with ComfyUI, but I took a quick look at the workflow, and the user interface seems great for generating some outputs while having control over the parameters. Is it possible to use ComfyUI to generate videos in bulk, like what can be done with a .yml file, or is it limited to one at a time? |
Hi!
I have 4 RTX 3090, but generation fails with out of memory error on 256x512 videos.
full stacktrace:
nvidis-smi
The text was updated successfully, but these errors were encountered: