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

[AIR] Use specified Preprocessor configs when using stream API. #31725

Merged
merged 16 commits into from
Jan 19, 2023

Conversation

amogkam
Copy link
Contributor

@amogkam amogkam commented Jan 18, 2023

In previous PRs, we added support for specifying various batch formats and batch sizes for Preprocessors.

However, with the stream API, these configurations were not respected as pandas batch format was hard-coded. In this PR, we introduce a private _transform_pipeline API to Preprocessor which we use in training ingest and pipelined batch inference, rather than manually calling map_batches.

Closes #31503

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 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 :(

@amogkam amogkam changed the title Pipelining batch size [AIR] Use specified Preprocessor configs when using stream API. Jan 18, 2023
@amogkam amogkam marked this pull request as ready for review January 18, 2023 02:41
Signed-off-by: amogkam <[email protected]>
Signed-off-by: amogkam <[email protected]>
Signed-off-by: amogkam <[email protected]>
Copy link
Member

@bveeramani bveeramani left a comment

Choose a reason for hiding this comment

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

LGTM

@amogkam amogkam added the tests-ok The tagger certifies test failures are unrelated and assumes personal liability. label Jan 19, 2023
Copy link
Contributor

@c21 c21 left a comment

Choose a reason for hiding this comment

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

LG

@amogkam amogkam merged commit ce98fe0 into ray-project:master Jan 19, 2023
@amogkam amogkam deleted the pipelining-batch-size branch January 19, 2023 23:31
andreapiso pushed a commit to andreapiso/ray that referenced this pull request Jan 22, 2023
…y-project#31725)

In previous PRs, we added support for specifying various batch formats and batch sizes for Preprocessors.

However, with the stream API, these configurations were not respected as pandas batch format was hard-coded. In this PR, we introduce a private _transform_pipeline API to Preprocessor which we use in training ingest and pipelined batch inference, rather than manually calling map_batches.

Closes ray-project#31503

Signed-off-by: amogkam <[email protected]>
Signed-off-by: Andrea Pisoni <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AIR] [Data] Preprocessor Transform configs are not respected with stream API
6 participants