Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Support LARC for SGD optimizer only in classy vision #408

Closed
wants to merge 1 commit into from

Conversation

prigoyal
Copy link
Contributor

Summary:
In an attempt to implement SimpleCLR for contrastive losses, I needed LARC to enable large batch training. mannatsingh had already done work on this during classy vision open source release. https://our.intern.facebook.com/intern/diff/D18542126/

I initially tried using that diff to have a separate standalone LARC to work for any optimizer but it turned out to be tricky to setup correctly as we need to wrap a given optimizer in LARC (the getattr and setattr functions were not working). I talked to vreis about it and we decided that for now, we can support it for SGD only, file a task to support other optimizers too later after discussions with mannatsingh once he's back.

Differential Revision: D20139718

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Feb 27, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D20139718

2 similar comments
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D20139718

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D20139718

…h#408)

Summary:
Pull Request resolved: facebookresearch#408

Pull Request resolved: fairinternal/ClassyVision#64

In an attempt to implement SimpleCLR for contrastive losses, I needed LARC to enable large batch training. mannatsingh had already done work on this during classy vision open source release. https://our.intern.facebook.com/intern/diff/D18542126/

I initially tried using that diff to have a separate standalone LARC to work for any optimizer but it turned out to be tricky to setup correctly as we need to wrap a given optimizer in LARC (the `getattr` and `setattr` functions were not working). I talked to vreis about it and we decided that for now, we can support it for SGD only, file a task to support other optimizers too later after discussions with mannatsingh once he's back.

Differential Revision: D20139718

fbshipit-source-id: c8cf4d545e6ce94cca8e646f68d519197856f675
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D20139718

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 04a99c8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants