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

Add SWA support to Pytorch trainer #88

Open
andrewyates opened this issue Sep 1, 2020 · 0 comments
Open

Add SWA support to Pytorch trainer #88

andrewyates opened this issue Sep 1, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@andrewyates
Copy link
Member

Pytorch 1.6 supports stochastic weight averaging (SWA), which could improve model effectiveness. The Pytorch trainer should support a boolean swa config option that controls whether it is used.

As described in the docs, using SWA with batchnorm requires additional steps. Can we automatically detect whether a model contains any batchnorm layers and, if so, either raise an exception (easier) or perform the necessary additional steps?

@andrewyates andrewyates added the good first issue Good for newcomers label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant