-
Notifications
You must be signed in to change notification settings - Fork 353
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
Disk #706
Disk #706
Conversation
Hi @564612540! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn 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 If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. (Because this pull request was imported automatically, there will not be any future comments.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution! Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please fix the linting errors here: https://github.com/pytorch/opacus/actions/runs/12486817231/job/35330455867?pr=706.
For more instructions on linting please see the instructions here under "Code style": https://github.com/pytorch/opacus/blob/53b3c25432bb75dd92b22131d02fcdc39c8dbe5f/CONTRIBUTING.md.
Hopefully, the changes should be minor. Please let us know if there are any questions. Following a unified code style helps us maintain code readability.
The error is fixed |
It seems that there is still an issue with isort. Could you try If your isort version is <5.0.0 please use Apologies for the back and forth. |
It is not showing any error from my side when running this command. I don't know what is the issue here. The logs are:
|
That is strange. For now, can you please use the following import order in KFprivacy_engine.py:
and re-run black and isort. |
isort automatically changes it back to the previous format below:
Now I am changing to
I think this should work |
@iden-kalemaj merged this pull request in b4c075d. |
Thank you again for your contribution. We would like to suggest adding copy-right headers to each of the .py files you contributed. The copy-right header would look something like this for an individual contributor
or
if contributing from a company. This is for consistency with files contributed from Meta all of which have copyright headers. |
Types of changes
Motivation and Context / Related issue
It introduces a set of new optimizers called DiSK, which uses a simplified Kalman filter to improve optimizer performance.
How Has This Been Tested (if it applies)
It is tested with the mnist.py from the example folder (with modifications for DiSK) to ensure all the functions work.
Checklist
Not sure whether to add documents.