Repository navigation
[Data] Enable spilling and OOM check for remaining multimodal release tests - #64298
Conversation
Signed-off-by: Balaji Veeramani <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces memory configurations and best practices to prevent OOM errors in the audio transcription nightly benchmark, including setting a preprocess memory limit and enabling worker isolation. It also updates test configurations to fail on spilling and removes obsolete environment overrides. The review feedback correctly points out that modifying ray.data.DataContext class attributes directly will not affect the active singleton instance, and provides a code suggestion to use ray.data.DataContext.get_current() instead.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1d6a53e. Configure here.
Signed-off-by: Balaji Veeramani <[email protected]>
… tests (ray-project#64298) Now that we've fixed the issue where we don't subtract system memory from logical memory in our release test environment, I'm bumping up the spilling and OOM ratchets for the multimodal release tests. In this PR, I've: * Enabled the OOM ratchet for the audio and video release tests * Enabled the spilling ratchet for all multimodal release tests * Fixed a minor issue where I didn't configure `DataContext` currently in the video release test * Added best practices to the audio release test --------- Signed-off-by: Balaji Veeramani <[email protected]>
… tests (#64298) Now that we've fixed the issue where we don't subtract system memory from logical memory in our release test environment, I'm bumping up the spilling and OOM ratchets for the multimodal release tests. In this PR, I've: * Enabled the OOM ratchet for the audio and video release tests * Enabled the spilling ratchet for all multimodal release tests * Fixed a minor issue where I didn't configure `DataContext` currently in the video release test * Added best practices to the audio release test --------- Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: elliot-barn <[email protected]>
… tests (#64298) (cherry-pick 2.56.1) (#64758) Cherry-pick of #64298 onto `releases/2.56.1`. Original PR: #64298 ## Summary Bumps up the spilling and OOM ratchets for the multimodal release tests (enables the OOM ratchet for the audio and video release tests, plus related `_anyscale_job_wrapper` and test yaml changes). ## Cherry-pick notes One conflict resolved in `release/nightly_tests/multimodal_inference_benchmarks/video_object_detection/ray_data_main.py`: the incoming change adds the opt-in OOM best-practice `DataContext` settings at the start of `run_pipeline()`; accepted the addition (base had no surrounding divergence). Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Balaji Veeramani <[email protected]>
…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]>
…benchmark (#64125) (cherry-pick 2.56.1) (#64827) 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]> Co-authored-by: Balaji Veeramani <[email protected]>
… tests (ray-project#64298) Now that we've fixed the issue where we don't subtract system memory from logical memory in our release test environment, I'm bumping up the spilling and OOM ratchets for the multimodal release tests. In this PR, I've: * Enabled the OOM ratchet for the audio and video release tests * Enabled the spilling ratchet for all multimodal release tests * Fixed a minor issue where I didn't configure `DataContext` currently in the video release test * Added best practices to the audio release test --------- Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: 400Ping <[email protected]>

Now that we've fixed the issue where we don't subtract system memory from logical memory in our release test environment, I'm bumping up the spilling and OOM ratchets for the multimodal release tests.
In this PR, I've:
DataContextcurrently in the video release test