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

[Train] Fix the import path for LightningTrainer to be compatible with Pytorch Lightning 2.0. #34033

Merged

Conversation

woshiyyya
Copy link
Member

@woshiyyya woshiyyya commented Apr 4, 2023

Why are these changes needed?

Pytorch Lightning released 2.0 a few weeks ago, and they have changed the import path of ProgressBarBase, which could cause an import error if we do not take care of it.

Given that PTL has removed all the documentations in 1.x, and many of our users are trying out PTL 2.0, it'd be necessary to ensure compatibility with the latest PTL version in release 2.4. This PR added version check and import ProgressBarBase with different paths accordingly.

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 <xiaoyunxuan1998@gmail.com>
@woshiyyya woshiyyya marked this pull request as ready for review April 4, 2023 00:54
@woshiyyya woshiyyya added the train Ray Train Related Issue label Apr 4, 2023
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
@gjoliver gjoliver merged commit 22b6f14 into ray-project:master Apr 4, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
…h Pytorch Lightning 2.0. (ray-project#34033)

* fix import path

Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: elliottower <elliot@elliottower.com>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
…h Pytorch Lightning 2.0. (ray-project#34033)

* fix import path

Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: Jack He <jackhe2345@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
train Ray Train Related Issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants