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

Rewrite accelerator_connector #11448

Merged
merged 71 commits into from
Feb 17, 2022
Merged

Conversation

four4fish
Copy link
Contributor

@four4fish four4fish commented Jan 12, 2022

What does this PR do?

Fixes #11449 #11548

Does your PR introduce any breaking changes? If yes, please list them.

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 list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is welcome to review the PR.
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
Copy link
Contributor

tchaton commented Jan 20, 2022

Hey @four4fish,

Any ETA for this PR to be ready ?

@four4fish
Copy link
Contributor Author

Hey @four4fish,

Any ETA for this PR to be ready ?

@tchaton I should be able to fix tests early next week, then it will be ready for review.
This PR could be breakdown to smaller piece after reviews

@four4fish four4fish changed the title [NOT ready for review] Rewrite accelerator_connector Rewrite accelerator_connector Jan 24, 2022
@four4fish four4fish force-pushed the rewrite/acc_con branch 3 times, most recently from 12b8bb9 to a0f80a6 Compare January 29, 2022 05:42
@four4fish four4fish force-pushed the rewrite/acc_con branch 2 times, most recently from d67ed66 to d964949 Compare February 1, 2022 00:02
tests/strategies/test_ddp_strategy.py Outdated Show resolved Hide resolved
tests/trainer/test_trainer.py Show resolved Hide resolved
tests/accelerators/test_accelerator_connector.py Outdated Show resolved Hide resolved
Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is large so I would suggest you comment on your own PR to kickstart discussions on open questions

pytorch_lightning/utilities/exceptions.py Outdated Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Outdated Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Outdated Show resolved Hide resolved
pytorch_lightning/strategies/ddp.py Outdated Show resolved Hide resolved
pytorch_lightning/strategies/ddp.py Outdated Show resolved Hide resolved
pytorch_lightning/strategies/ddp.py Show resolved Hide resolved
pytorch_lightning/strategies/ddp.py Outdated Show resolved Hide resolved
pytorch_lightning/strategies/single_device.py Show resolved Hide resolved
@four4fish four4fish marked this pull request as ready for review February 3, 2022 03:11
@four4fish four4fish requested a review from rohitgr7 as a code owner February 3, 2022 03:11
@mergify mergify bot removed the has conflicts label Feb 17, 2022
@mergify mergify bot added the ready PRs ready to be merged label Feb 17, 2022
Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny how GitHub crashes when trying to review the accelerator connector file.

There's many things that should be improved here before the release. Approving to unblock but let's try to move quick on the follow-ups

Good job!

tests/accelerators/test_accelerator_connector.py Outdated Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Outdated Show resolved Hide resolved
tests/accelerators/test_accelerator_connector.py Outdated Show resolved Hide resolved
tests/accelerators/test_ipu.py Show resolved Hide resolved
tests/accelerators/test_tpu.py Show resolved Hide resolved
tests/accelerators/test_tpu.py Show resolved Hide resolved
tests/trainer/flags/test_env_vars.py Show resolved Hide resolved
four4fish and others added 2 commits February 17, 2022 14:49
@ananthsub ananthsub enabled auto-merge (squash) February 17, 2022 23:18
@ananthsub ananthsub merged commit 6e14209 into Lightning-AI:master Feb 17, 2022
@tchaton
Copy link
Contributor

tchaton commented Feb 18, 2022

connector

I thought this was only me ahahha @four4fish great job there, very impressed.

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

Successfully merging this pull request may close these issues.

Rewrite Accelerator_connector and follow up tasks
7 participants