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

[CI] Add Lightning 2.0 compatibility test pipeline #34147

Merged
merged 24 commits into from
Apr 27, 2023

Conversation

woshiyyya
Copy link
Member

@woshiyyya woshiyyya commented Apr 6, 2023

Why are these changes needed?

PyTorch Lightning recently updated to version 2.0, but our CI pipelines only covered Lightning 1.x. This pull request aims to build a new pipeline to test the compatibility of LightningTrainer with PTL v2.0.

Some minor changes to unit tests:

  • Updated the testing LightningModule (remove the deprecated validation_epoch_end())
  • Use different syntax to feed model params to optimizer when using FSDP.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: woshiyyya <[email protected]>
@woshiyyya woshiyyya changed the title [CI] Add py38 compatibility pipeline [CI] Add Lightning 2.0 compatibility test pipeline Apr 13, 2023
@woshiyyya woshiyyya marked this pull request as ready for review April 20, 2023 07:16
Copy link
Contributor

@justinvyu justinvyu left a comment

Choose a reason for hiding this comment

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

Nice! Left some questions.

.buildkite/pipeline.gpu_large.yml Outdated Show resolved Hide resolved
.buildkite/pipeline.gpu_large.yml Show resolved Hide resolved
.buildkite/pipeline.gpu_large.yml Show resolved Hide resolved
ci/env/install-minimal.sh Show resolved Hide resolved
python/ray/train/BUILD Show resolved Hide resolved
Copy link
Contributor

@justinvyu justinvyu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the clarifications.

Copy link
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Looks good!

@krfricke krfricke merged commit aeed2b3 into ray-project:master Apr 27, 2023
scv119 added a commit that referenced this pull request May 1, 2023
scv119 added a commit that referenced this pull request May 2, 2023
woshiyyya added a commit that referenced this pull request May 2, 2023
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
PyTorch Lightning recently updated to version 2.0, but our CI pipelines only covered Lightning 1.x. This pull request aims to build a new pipeline to test the compatibility of LightningTrainer with PTL v2.0.

Some minor changes to unit tests:
- Updated the testing LightningModule (remove the deprecated `validation_epoch_end()`)
- Use different syntax to feed model params to optimizer when using FSDP.

Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: Kai Fricke <[email protected]>
Co-authored-by: Kai Fricke <[email protected]>
Signed-off-by: Jack He <[email protected]>
architkulkarni pushed a commit to architkulkarni/ray that referenced this pull request May 16, 2023
PyTorch Lightning recently updated to version 2.0, but our CI pipelines only covered Lightning 1.x. This pull request aims to build a new pipeline to test the compatibility of LightningTrainer with PTL v2.0.

Some minor changes to unit tests:
- Updated the testing LightningModule (remove the deprecated `validation_epoch_end()`)
- Use different syntax to feed model params to optimizer when using FSDP.

Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: Kai Fricke <[email protected]>
Co-authored-by: Kai Fricke <[email protected]>
architkulkarni pushed a commit to architkulkarni/ray that referenced this pull request May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants