mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

About the speed of data parallel training on different machines

Open huyangc opened this issue 9 years ago • 6 comments

I have read the speed given on the page of mxnet-speed.

I know that when the GPU is different, the speed and speed up rate will be different as well. But I also read this paper. I think the result of this paper has a large gap with the speed I mentioned above. Will P40 make such a huge difference?

Looking forward for an answer. Thanks a lot.

huyangc avatar Nov 26 '17 15:11 huyangc

Looking into the configuration for AlexNet, mxnet uses batch size per GPU of 512, and paper uses 1024 (Table IV). Moreover paper says they exclude first epoch training times to avoid the impact of I/O overheads from hard disks.

This two considerations could also have significant impact in throughput, as far as I know.

beeva-enriqueotero avatar Nov 27 '17 10:11 beeva-enriqueotero

I think if the data save in machine and don't transfer on the network, the bigger batch size the better speed up rate? Cause the rate of computation and communication can be larger when have a larger batch size.

If I have some mistake understanding, please correct me : )

huyangc avatar Nov 27 '17 11:11 huyangc

You're right. In general larger batch sizes reduce communication overhead and improve throughput. But also cause optimization difficulties. Though there are workarounds. +info

beeva-enriqueotero avatar Nov 27 '17 11:11 beeva-enriqueotero

Yes, I totally agree with the optimization difficulties large batch size bring. But the speed evaluation in both mxnet's web page and the article is the speed of image processing per second.

huyangc avatar Nov 27 '17 11:11 huyangc

proposed labels: "Question", "Performance", "Discussion"

zhiz21 avatar Mar 10 '18 00:03 zhiz21

Can you please ask usage related questions at - https://discuss.mxnet.io/ Please feel free to reopen if you encounter any issues.

sandeep-krishnamurthy avatar Mar 11 '18 09:03 sandeep-krishnamurthy