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

[RLlib] Change placement group strategy for learner #36929

Merged

Conversation

avnishn
Copy link
Member

@avnishn avnishn commented Jun 28, 2023

Signed-off-by: avnishn avnishnarayan@gmail.com

Why are these changes needed?

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: avnishn <avnishnarayan@gmail.com>
Signed-off-by: avnishn <avnishnarayan@gmail.com>
class AlgorithmBase:

@staticmethod
def _get_learner_bundles(cf: AlgorithmConfig):
Copy link
Contributor

Choose a reason for hiding this comment

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

document what it returns?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@avnishn
Copy link
Member Author

avnishn commented Jun 29, 2023

image left is new placement group, right is old placement group, with a learnergroup with 0 workers with 1 gpu

avnishn added 2 commits June 29, 2023 17:04
Signed-off-by: avnishn <avnishnarayan@gmail.com>
Signed-off-by: avnishn <avnishnarayan@gmail.com>
@avnishn
Copy link
Member Author

avnishn commented Jun 30, 2023

image num gpus 1 num workers 1

@kouroshHakha kouroshHakha merged commit 43210e0 into ray-project:master Jun 30, 2023
max_workers: 2
instance_type: g3.8xlarge
min_workers: 1
max_workers: 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@avnishn since you change the number of worker, you also need to change the number here https://github.com/ray-project/ray/blob/master/release/release_tests.yaml#L3679 to wait for the correct number of node

This broke this test, and some other rllib test in this latest run https://buildkite.com/ray-project/release-tests-branch/builds/1846

Please cherry pick the fix as well since the branch is cut

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm putting #37022 to fix

arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
Signed-off-by: avnishn <avnishnarayan@gmail.com>
Signed-off-by: e428265 <arvind.chandramouli@lmco.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.

3 participants