denoising-diffusion-pytorch icon indicating copy to clipboard operation
denoising-diffusion-pytorch copied to clipboard

multi-gpu training support?

Open nanlliu opened this issue 2 years ago • 2 comments

it looks like it only supports a single GPU training rn. Do you have any plans to add multi-gpu training option any time soon? much appreciated

nanlliu avatar Jul 14 '21 04:07 nanlliu

use torch.nn.DataParallel is enough

wangqiang9 avatar Mar 31 '22 09:03 wangqiang9

Where exactly do you suggest putting that call? I tried it on both the GaussianDiffusion and Unet models, but it fails on both because it tries to access attributes that no longer exist when you call torch.nn.DataParallel on it.

rlangefe avatar Jun 06 '22 20:06 rlangefe

Open the diffusion file, and run a search and replace model. ---> model.module.

CerebralSeed avatar Sep 30 '22 15:09 CerebralSeed