Skip to content

[Train] Remove Legacy Trainers' code#41276

Merged
matthewdeng merged 3 commits intoray-project:masterfrom
woshiyyya:train/rm_legacy_trainer_code
Nov 22, 2023
Merged

[Train] Remove Legacy Trainers' code#41276
matthewdeng merged 3 commits intoray-project:masterfrom
woshiyyya:train/rm_legacy_trainer_code

Conversation

@woshiyyya
Copy link
Member

Why are these changes needed?

We deprecated LightningTrainer, TransformersTrainer, AccelerateTrainer in Ray 2.8, and this PR is the followup work to remove the legacy code.

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>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
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!

Comment on lines -74 to -75
data_loader.dataset.num_processes = 1
data_loader.dataset.process_index = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

👋

@matthewdeng matthewdeng merged commit 54f75d1 into ray-project:master Nov 22, 2023
ujjawal-khare pushed a commit to ujjawal-khare-27/ray that referenced this pull request Nov 29, 2023
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
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.

4 participants