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

BatchNormsync with Adam Optimizer #35

Open
tarun005 opened this issue Sep 26, 2018 · 5 comments
Open

BatchNormsync with Adam Optimizer #35

tarun005 opened this issue Sep 26, 2018 · 5 comments

Comments

@tarun005
Copy link

Is the bnsync code written specifically for SGD optimizer? The loss is not converging if I use and train the model with Adam optimizer.

@d-li14
Copy link

d-li14 commented Dec 8, 2018

@tarun005 Have you tested with SGD optimizer? Does it drive the training process to convergence?

@tarun005
Copy link
Author

tarun005 commented Dec 9, 2018

Yes, the model converges with SGD, but same model does not if I replace SGD with adam.

@d-li14
Copy link

d-li14 commented Dec 9, 2018

@tarun005 Although I suppose that BN should be irrelevant to the optimization method, when I used the syncbn by just adding the folder lib to $PATH, I met an error saying 'segmentation fault'. What's your usage?

@tarun005
Copy link
Author

Agree that BN shouldn't be relevant to optimization method, but I have read somewhere that Adam requires global statistics at every iteration, so the implementation of BNsync given here could be an issue.

@jakubLangr
Copy link

Hi were either of you @tarun005 @d-li14 be able to upload the models to e.g. dropbox as they don't seem to be accessible on the Princeton site. That'd be awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants