Skip to content
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

ControlNeXt-SVD-v2 out-of-memory on 24GB vram #12

Open
sumitmamoria opened this issue Aug 14, 2024 · 5 comments
Open

ControlNeXt-SVD-v2 out-of-memory on 24GB vram #12

sumitmamoria opened this issue Aug 14, 2024 · 5 comments

Comments

@sumitmamoria
Copy link

What is the minimum VRAM requirement to run ControlNeXt-SVD-v2 ?

@sumitmamoria
Copy link
Author

Is it possible to use dual GPU setup?

@Pbihao
Copy link
Collaborator

Pbihao commented Aug 15, 2024

In the v2 version, we implemented a significant change with larger resolution and extended batch frames to achieve better performance. To reduce GPU consumption, you can follow these steps:

  1. Use FP16 or BF16 for inference.
  2. Reduce the resolution, such as to 768x512.
  3. Decrease the number of batch_frames.

However, such operations may influce the final performance

@sumitmamoria
Copy link
Author

In the v2 version, we implemented a significant change with larger resolution and extended batch frames to achieve better performance. To reduce GPU consumption, you can follow these steps:

  1. Use FP16 or BF16 for inference.
  2. Reduce the resolution, such as to 768x512.
  3. Decrease the number of batch_frames.

However, such operations may influce the final performance

Thanks. Will try these changes. Is there a way to support dual GPUs?

@Rodmuzik
Copy link

Dual GPU +1

@nitinmukesh
Copy link

nitinmukesh commented Oct 8, 2024

In the v2 version, we implemented a significant change with larger resolution and extended batch frames to achieve better performance. To reduce GPU consumption, you can follow these steps:

  1. Use FP16 or BF16 for inference.
  2. Reduce the resolution, such as to 768x512.
  3. Decrease the number of batch_frames.

Hello @Pbihao

I am successfully able to include point 1, 2, & 3.

Also I want to use this fp16 version instead of unet.bin. Is it possible. I did tried specifying the below file with --unet_path but it's not working.

https://huggingface.co/Kijai/ControlNeXt-SVD-V2-Comfy/tree/main
controlnext-svd_v2-unet-fp16_converted.safetensors

I am not a coder but if you suggest the code changes I will include them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants