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
You use single-GPU training in your code, I tried to train with multiple GPUs, but the speed dropped, what is the reason?
I modified the following code
#model = torch.nn.DataParallel(model, device_ids=device_ids).cuda()
You use single-GPU training in your code, I tried to train with multiple GPUs, but the speed dropped, what is the reason?
I modified the following code
#model = torch.nn.DataParallel(model, device_ids=device_ids).cuda()
tokens, mask, prefix = tokens.to(device=device_ids[0]), mask.to(device=device_ids[0]), prefix.to(device=device_ids[0]).to(torch.float32)
The text was updated successfully, but these errors were encountered: