You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/04/01 19:22:43 UTC
[GitHub] [incubator-mxnet] sandeep-krishnamurthy commented on issue #14516:
cann't achive linear speed up with multi GPUs
sandeep-krishnamurthy commented on issue #14516: cann't achive linear speed up with multi GPUs
URL: https://github.com/apache/incubator-mxnet/issues/14516#issuecomment-478711210
@xrmzju Thanks for asking this question. Also, note that, you can ask questions and get faster response from wider community on discuss forum here - https://discuss.mxnet.io
To answer your question, when you are using multi gpu training following points are worth noting:
1. Each GPUs need data to train on. So your batch of data will be split evenly across all GPUs. For Example your batch_size is 512 and you use 2 GPUs, each will get 256 samples per batch and so on. So, if you batch size is small and number of GPUs are more, each GPU will get less data. Usually as a rule of thumb, if you use 128 as batch size for 1 GPU, you set 256 for 2 GPUs and so on and increase the batch size.
2. Observe that, when training with more than 1 GPUs, they need to communicate with each other to share gradients and update weights. If you use too small batch size, GPUs computation will become less significant than communication and hence you see no good speed up.
Closing the issue for now, Please reopen if issue exists.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services