Is there a way to use two GPUs? #141
-
Hello, first off I am really impressed with this and would like to say great work. I was curious if there would be a way to use two GPUs? I have two 8GB Nividas (GTX 1080 and RTX 2080) and I would like to use the larger models more efficiently. For instance when I try the Facebook large music gen I get out of memory CUDA errors when I go above 8 seconds. Amazing stuff, thank you for this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Currently it only uses the first detected gpu, models such as musicgen don't currently support multi gpu inference as far as i know though, correct me if i'm wrong. |
Beta Was this translation helpful? Give feedback.
-
Just an update, I've installed this repo on a remote server with 64GB vram and wow I am just blown away. This is really powerful and impressive. One thing I'd like to suggest is batch processing with random seed each time with music generators, so that many samples can made at once and mixed as needed. I'm making techno music and it's wild, I can ask it to do intros or drops, BPM, or specify breaks and bridges and it delivers. I'm sure I can finally be that DJ I always wanted to be lol. This is a good repo very pleased with it. |
Beta Was this translation helpful? Give feedback.
I'm not sure if huggingface transformers allows easy half precision, I'll keep it in mind though.