Skip to content

[Data] Add training ingest benchmark release test - #59560

Merged
alexeykudinkin merged 45 commits into
masterfrom
srinathk10/training_ingest_micro_benchmark
Jan 23, 2026
Merged

alexeykudinkin merged 45 commits into
masterfrom
srinathk10/training_ingest_micro_benchmark

Conversation

@srinathk10

@srinathk10 srinathk10 commented Dec 18, 2025 •

Copy link
Copy Markdown
Contributor

Thank you for contributing to Ray! 🚀
Please review the Ray Contribution Guide before opening a pull request.

⚠️ Remove these instructions before submitting your PR.

💡 Tip: Mark as draft if you want early feedback, or ready for review when it's complete.

Description

Briefly describe what this PR accomplishes and why it's needed.

[Data] Add training ingestbenchmark release test

Benchmark script for training data ingest with Ray Data.

This script benchmarks different approaches for loading and preprocessing images:

  • Loads images from S3 (parquet or JPEG format)
  • Applies image transforms (crop, scale, flip)
  • Iterates through batches with configurable batch sizes and prefetch settings
  • Tests all hyperparameter combinations

Supported data formats:

  • images_with_read_parquet: Uses ray.data.read_parquet() with embedded image bytes
  • images_with_map_batches: Lists JPEG files via torchdata, downloads with map_batches
  • images_with_read_images: Uses ray.data.read_images() with Partitioning

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

Comment thread release/release_data_tests.yaml Resolved

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new training ingest micro-benchmark for Ray Data. The changes include a new benchmark script, a cluster configuration file, and updates to the release test suite.

My review focuses on the new benchmark script. I've identified a critical correctness issue with the label encoding logic that will cause problems in a parallel execution environment. I've also found a significant performance issue where the dataset is repeatedly read from storage. Additionally, there are a few medium-severity issues related to data handling that could lead to bugs. I've provided suggestions to address these points.

@ray-gardener ray-gardener Bot added data Ray Data-related issues release-test release test labels Dec 19, 2025
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jan 14, 2026
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
@srinathk10

Copy link
Copy Markdown
Contributor Author

/gemini summarize

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@srinathk10

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

cursor[bot]

This comment was marked as outdated.

Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
@github-actions github-actions Bot added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Jan 16, 2026
@srinathk10 srinathk10 added go add ONLY when ready to merge, run all tests and removed unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. labels Jan 16, 2026
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
@srinathk10
srinathk10 requested a review from a team as a code owner January 21, 2026 18:15
cursor[bot]

This comment was marked as outdated.

@xinyuangui2 xinyuangui2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall LGTM.

Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
cursor[bot]

This comment was marked as outdated.

Signed-off-by: Srinath Krishnamachari <[email protected]>
@srinathk10

Copy link
Copy Markdown
Contributor Author

Signed-off-by: Srinath Krishnamachari <[email protected]>
@srinathk10 srinathk10 changed the title [Data] Add training ingest micro-benchmark release test [Data] Add training ingest benchmark release test Jan 22, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@alexeykudinkin
alexeykudinkin enabled auto-merge (squash) January 23, 2026 00:49
@github-actions
github-actions Bot disabled auto-merge January 23, 2026 00:52
@alexeykudinkin
alexeykudinkin enabled auto-merge (squash) January 23, 2026 02:48
@alexeykudinkin
alexeykudinkin merged commit bc75376 into master Jan 23, 2026
4 checks passed
@alexeykudinkin
alexeykudinkin deleted the srinathk10/training_ingest_micro_benchmark branch January 23, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

3 participants