Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-node multi-cpu training do not converge #550

Closed
waynezhang2018 opened this issue Oct 8, 2018 · 3 comments
Closed

multi-node multi-cpu training do not converge #550

waynezhang2018 opened this issue Oct 8, 2018 · 3 comments

Comments

@waynezhang2018
Copy link

hi, guys

sorry for bothering!

I have successfully run the example, and also convert my own code from single node DataParallel to distributedDataParallel mode, the train runs without any error, but the loss is not descending and the accuracy looks wrong (finally to be 0)

the surprising point is, if I run the code with single GPU with batch size 128 and LR=0.001, it can work, everything is fine and converging, but if I take mpirun for 2 node X 8 opus =16gpus, loss is not descending.

what should I do?

I have changed the LR to be 10 or 1/10 times of the original LR, no help.

@waynezhang2018
Copy link
Author

btw, I am using pytorch 0.4.0 and horovod 14

@alsrgv
Copy link
Member

alsrgv commented Oct 8, 2018

@waynezhang2018, could you review this example and check that you have corresponding code in your model for every part that says # ... Horovod ...?

@alsrgv alsrgv added the question label Oct 8, 2018
@stale
Copy link

stale bot commented Nov 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 7, 2020
@stale stale bot closed this as completed Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants