You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
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:
from allennlp.modules.elmo import Elmo
(scalar_mix_0): ScalarMix(
(scalar_parameters): ParameterList(
(0): Parameter containing: [torch.FloatTensor of size 1]
(1): Parameter containing: [torch.FloatTensor of size 1]
(2): Parameter containing: [torch.FloatTensor of size 1]
)
)
(scalar_mix_1): ScalarMix(
(scalar_parameters): ParameterList(
(0): Parameter containing: [torch.FloatTensor of size 1]
(1): Parameter containing: [torch.FloatTensor of size 1]
(2): Parameter containing: [torch.FloatTensor of size 1]
)
)
)
My allennlp Version is 1.3.0 and my pytorch version is 1.7.1.
Thanks a lot. Hope you have a nice day !
The text was updated successfully, but these errors were encountered:
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 !
The text was updated successfully, but these errors were encountered: