Comprehensive-Transformer-TTS icon indicating copy to clipboard operation
Comprehensive-Transformer-TTS copied to clipboard

Multi-GPU training could not work normally?

Open GuangChen2016 opened this issue 2 years ago • 1 comments

RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates th at your module has parameters that were not used in producing loss. You can enable unused parameter detection by (1) passing the keyword argument find_unused_parameters=True to torch.nn.parallel.DistributedDataParallel; As suggested, I modified the model by adding find_unused_parameters=True, as followings, model = DistributedDataParallel(model, device_ids=[rank], find_unused_parameters=True).to(device), but I still got the same errors, could you train normally when with multi GPU? Any suggestions to fix this? Many Thanks.

GuangChen2016 avatar Jun 12 '22 04:06 GuangChen2016

Hi @GuangChen2016 , sorry for the late response. Could you please set this value to 1?

keonlee9420 avatar Jul 31 '22 05:07 keonlee9420