MMaDA icon indicating copy to clipboard operation
MMaDA copied to clipboard

Multiple GPU usage

Open michaelwhitford opened this issue 1 year ago • 1 comments

I have downloaded the repo and the model and tried to get it working on a multi-GPU setup. It only runs on 1 GPU, and I do not know enough about pytorch to make it use the distributeddataparallel net.

Any chance this could be updated to use multiple GPUs? I have 2x4090 gpus with 48G of vram total, but the current app only loads on one of them so any advanced usage of the model just runs out of VRAM and crashes the app.

Thank you very much for the release, I am eagerly waiting to try this model in many scenarios, but need to be able to use both my GPUs to accomodate the 30G of vram it seems this model needs.

michaelwhitford avatar May 24 '25 18:05 michaelwhitford

Thanks for your attention to MMaDA! Currently, multi-GPU inference isn't supported. As a workaround, you could try decreasing the generation length to reduce GPU memory consumption, but please be aware this may lead to some degradation in performance."

tyfeld avatar May 26 '25 05:05 tyfeld