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

[Data] Add BundleQueue abstraction #48503

Merged
merged 3 commits into from
Nov 4, 2024
Merged

[Data] Add BundleQueue abstraction #48503

merged 3 commits into from
Nov 4, 2024

Conversation

bveeramani
Copy link
Member

Why are these changes needed?

Two reasons for adding this abstraction:

  1. It allows us to customize how we pop bundles from OpState and internal queues. Currently, we pop the first-in bundle, but you might want a less naive strategy.
  2. It allows us to keep track of bundles in OpRuntimeMetrics so that we can refresh stale bundle sizes.

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: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
@bveeramani bveeramani enabled auto-merge (squash) November 4, 2024 20:54
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Nov 4, 2024
@bveeramani bveeramani merged commit fab26e1 into master Nov 4, 2024
7 checks passed
@bveeramani bveeramani deleted the bundle-queue branch November 4, 2024 22:52
frances720 added a commit to Promptless/ray-test that referenced this pull request Nov 5, 2024
bveeramani added a commit that referenced this pull request Nov 5, 2024
Follow-up to #48503.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Jay-ju pushed a commit to Jay-ju/ray that referenced this pull request Nov 5, 2024
Two reasons for adding this abstraction:

1. It allows us to customize how we pop bundles from OpState and internal queues. Currently, we pop the first-in bundle, but you might want a less naive strategy.
2. It allows us to keep track of bundles in OpRuntimeMetrics so that we can refresh stale bundle sizes.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Jay-ju pushed a commit to Jay-ju/ray that referenced this pull request Nov 5, 2024
Follow-up to ray-project#48503.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
bveeramani added a commit that referenced this pull request Nov 6, 2024
This reverts commit fab26e1.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
bveeramani added a commit that referenced this pull request Nov 7, 2024
Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
bveeramani added a commit that referenced this pull request Nov 11, 2024
This reverts commit 4a9c424.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
bveeramani added a commit that referenced this pull request Nov 13, 2024
…" (#48686)

This reverts commit 4a9c424.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
Two reasons for adding this abstraction:

1. It allows us to customize how we pop bundles from OpState and internal queues. Currently, we pop the first-in bundle, but you might want a less naive strategy.
2. It allows us to keep track of bundles in OpRuntimeMetrics so that we can refresh stale bundle sizes.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
Follow-up to ray-project#48503.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
…y-project#48612)

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
…)" (ray-project#48612)" (ray-project#48686)

This reverts commit 4a9c424.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this pull request Nov 15, 2024
Two reasons for adding this abstraction:

1. It allows us to customize how we pop bundles from OpState and internal queues. Currently, we pop the first-in bundle, but you might want a less naive strategy.
2. It allows us to keep track of bundles in OpRuntimeMetrics so that we can refresh stale bundle sizes.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this pull request Nov 15, 2024
Follow-up to ray-project#48503.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this pull request Nov 15, 2024
…y-project#48612)

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this pull request Nov 15, 2024
…)" (ray-project#48612)" (ray-project#48686)

This reverts commit 4a9c424.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
dentiny pushed a commit to dentiny/ray that referenced this pull request Dec 7, 2024
…)" (ray-project#48612)" (ray-project#48686)

This reverts commit 4a9c424.

---------

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: hjiang <dentinyhao@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants