Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

vincentqb
Copy link
Contributor

@vincentqb vincentqb commented Jul 2, 2019

We implement SGDW, following #3790 as proposed in #3740, #4429. This follows the implementation of AdamW in #21250. We should validate this PR against another existing implementation as done in #21250.

This pull request does not include weight schedulers, see #22343.

Stack from ghstack:

Differential Revision: D16096615

@pytorchbot pytorchbot added the module: optimizer Related to torch.optim label Jul 2, 2019
@vincentqb vincentqb changed the title Adding SGDW. Adding SGDW Jul 2, 2019
Adding SGDW.

gh-metadata: pytorch pytorch 22466 gh/vincentqb/16/head
@vincentqb vincentqb changed the title Adding SGDW [WIP] Adding SGDW Jul 2, 2019
vincentqb added 2 commits July 2, 2019 13:28
Adding SGDW.

gh-metadata: pytorch pytorch 22466 gh/vincentqb/16/head
Adding SGDW.

gh-metadata: pytorch pytorch 22466 gh/vincentqb/16/head
@vincentqb vincentqb added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Feb 6, 2020
@facebook-github-bot
Copy link
Contributor

Hi @vincentqb!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label May 28, 2022
@github-actions github-actions bot closed this Jun 27, 2022
@sbrodehl
Copy link
Contributor

Hi @vincentqb,

this PR was marked as Stale and got closed, but I think it would still be a good addition to the project.

Do you (still) have plans to add SGDW in the future?
Why was this PR marked as WIP, was was/is missing to get this merged?

@facebook-github-bot facebook-github-bot deleted the gh/vincentqb/16/head branch July 28, 2022 14:18
@zhb2000
Copy link

zhb2000 commented Nov 29, 2023

The weight decay implementation of this code is incorrect. I think it should be

# Apply weight decay
if weight_decay != 0:
    p.data.mul_(1 - weight_decay)

# Apply momentum
p.data.add_(d_p, alpha=-group['lr'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed module: optimizer Related to torch.optim open source Stale triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.