Skip to content

[Data] Enable memory-safety best practices in video object detection benchmark (#64125) (cherry-pick 2.56.1) - #64827

Merged
elliot-barn merged 1 commit into
releases/2.56.1from
cherry-pick-2.56.1-64125
Jul 17, 2026
Merged

elliot-barn merged 1 commit into
releases/2.56.1from
cherry-pick-2.56.1-64125

Conversation

@sai-miduthuri

Copy link
Copy Markdown
Contributor

Cherry-pick of #64125 onto releases/2.56.1.

Original PR: #64125

Summary

Enables the opt-in memory-safety best practices for the video object detection multimodal benchmark so it exercises (and validates) the OOM guardrails we recommend to users. Specifically, it sets memory=3_529_273_344 (~3.5 GB) on the high-memory ExtractImageFeatures UDF (the max USS observed in previous nightly runs), since Ray Data can't prevent OOMs unless memory is set for high-memory UDFs.

Cherry-pick notes

One conflict resolved in release/nightly_tests/multimodal_inference_benchmarks/video_object_detection/ray_data_main.py: the isolate_read_workers / default_map_logical_memory_enabled DataContext settings that #64125 adds are already present on the branch (introduced by the earlier cherry-pick of #64298, using the DataContext.get_current() accessor). Kept the branch's get_current() form; the net change from this cherry-pick is the memory=3_529_273_344 argument on the ExtractImageFeatures map_batches call.

@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 configures the memory parameter (set to approximately 3.5 GB) for the ExtractImageFeatures high-memory UDF in the Ray Data pipeline to prevent out-of-memory (OOM) errors during nightly test runs. There are no review comments to address, and I have no additional feedback to provide.

…benchmark (#64125) (cherry-pick 2.56.1)

Cherry-pick of #64125 onto `releases/2.56.1`.

Original PR: #64125

## Summary
Enables the opt-in memory-safety best practices for the video object
detection multimodal benchmark so it exercises (and validates) the OOM
guardrails we recommend to users. Specifically, it sets `memory=3_529_273_344`
(~3.5 GB) on the high-memory `ExtractImageFeatures` UDF (the max USS observed
in previous nightly runs), since Ray Data can't prevent OOMs unless `memory`
is set for high-memory UDFs.

## Cherry-pick notes
One conflict resolved in
`release/nightly_tests/multimodal_inference_benchmarks/video_object_detection/ray_data_main.py`:
the `isolate_read_workers` / `default_map_logical_memory_enabled`
`DataContext` settings that #64125 adds are already present on the branch
(introduced by the earlier cherry-pick of #64298, using the
`DataContext.get_current()` accessor). Kept the branch's `get_current()`
form; the net change from this cherry-pick is the `memory=3_529_273_344`
argument on the `ExtractImageFeatures` `map_batches` call.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: sai-miduthuri <[email protected]>
@sai-miduthuri
sai-miduthuri force-pushed the cherry-pick-2.56.1-64125 branch from d439ff9 to d1dc4cc Compare July 17, 2026 00:08
@ray-gardener ray-gardener Bot added data Ray Data-related issues release-test release test labels Jul 17, 2026
@sai-miduthuri sai-miduthuri added the go add ONLY when ready to merge, run all tests label Jul 17, 2026
@elliot-barn
elliot-barn merged commit ea47a0f into releases/2.56.1 Jul 17, 2026
6 checks passed
@elliot-barn
elliot-barn deleted the cherry-pick-2.56.1-64125 branch July 17, 2026 17:47
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.

3 participants