Open bb-1357 opened 3 years ago
Hi @bb-1357, it seems that the issues with ParameterList
won't be fixed anytime soon. https://github.com/pytorch/pytorch/issues/36035#issuecomment-770960405
This is unfortunate, but as far as I can tell, the only place in our entire code base that uses this is the ScalarMix
module. So it might not be too hard to make a fix for this one module that is backwards compatible.
I use nn.DataParallel for running with multi-GPUs,However
"nn.ParameterList is being used with DataParallel but this is not supported. This list will appear empty for the models replicated on each GPU except the original one." the empty list really bothers me a lot,I wonder how to use the elmo model with multi-GPUs? nn.ParameterList appears in ELmo model just like this:
My allennlp Version is 1.3.0 and my pytorch version is 1.7.1. Thanks a lot. Hope you have a nice day !