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

[fix] Enable manual optimization DeepSpeed #7970

Merged
merged 11 commits into from
Jun 16, 2021
Merged

[fix] Enable manual optimization DeepSpeed #7970

merged 11 commits into from
Jun 16, 2021

Conversation

tchaton
Copy link
Contributor

@tchaton tchaton commented Jun 14, 2021

What does this PR do?

This PR enables support for manual optimization for DeepSpeed.
However, DeepSpeed only supports 1 optimizer.

Fixes #7957 #6503

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 🙃

@tchaton tchaton added the bug Something isn't working label Jun 14, 2021
@tchaton tchaton added this to the v1.3.x milestone Jun 14, 2021
@tchaton tchaton self-assigned this Jun 14, 2021
@pep8speaks
Copy link

pep8speaks commented Jun 14, 2021

Hello @tchaton! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-06-16 09:02:29 UTC

@codecov
Copy link

codecov bot commented Jun 14, 2021

Codecov Report

Merging #7970 (74f8842) into master (b093a9e) will decrease coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #7970   +/-   ##
======================================
- Coverage      92%     91%   -0%     
======================================
  Files         207     207           
  Lines       13378   13380    +2     
======================================
- Hits        12248   12214   -34     
- Misses       1130    1166   +36     

@mergify mergify bot removed the has conflicts label Jun 14, 2021
@SeanNaren
Copy link
Contributor

Let's get #7234 merged, then I'll rebase this PR and address comments for thomas!

# Conflicts:
#	dockers/base-cuda/Dockerfile
#	pytorch_lightning/plugins/training_type/deepspeed.py
@mergify mergify bot removed the has conflicts label Jun 15, 2021
@SeanNaren SeanNaren changed the title [bugfix] Enable manual optimization DeepSpeed [fix] Enable manual optimization DeepSpeed Jun 15, 2021
@SeanNaren
Copy link
Contributor

The test failing is associated to #7790 so should be good to go

@SeanNaren SeanNaren modified the milestones: v1.3.x, v1.4 Jun 15, 2021
@SeanNaren
Copy link
Contributor

Cherry picking this for 1.3.x will be difficult as it relies on the later DeepSpeed Infinity API, so we'll wait for 1.4.

@SeanNaren SeanNaren enabled auto-merge (squash) June 15, 2021 21:31
@SeanNaren SeanNaren disabled auto-merge June 15, 2021 21:32
@SeanNaren SeanNaren enabled auto-merge (squash) June 15, 2021 21:35
@SeanNaren SeanNaren merged commit d2983c7 into master Jun 16, 2021
@SeanNaren SeanNaren deleted the deepspeed_fixes branch June 16, 2021 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed Manual Backward during DeepSpeed training.
5 participants