Skip to content

[Data] Add memory hint for reads to image_embedding_from_jsonl (#64717) (cherry-pick 2.56.1) - #64757

Merged
elliot-barn merged 2 commits into
releases/2.56.1from
cherry-pick-2.56.1-64717
Jul 15, 2026
Merged

elliot-barn merged 2 commits into
releases/2.56.1from
cherry-pick-2.56.1-64717

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Cherry-pick of #64717 onto releases/2.56.1.

Original PR: #64717

Summary

Reads can use lots of memory in the image_embedding_from_jsonl release test. To prevent expected OOMs, this adds a memory hint for the read.

Clean cherry-pick, no conflicts.

@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 updates the nightly dataset benchmark script to prevent Out-Of-Memory (OOM) errors. It introduces a READ_MEMORY constant set to 3 GiB, which is passed to ray.data.read_json. Additionally, it enables default_map_logical_memory_enabled on the Ray DataContext as a best practice. There are no review comments, so I have no feedback to provide.

)

Reads can use lots of memory in the `image_embedding_from_jsonl` release
test. To prevent expected OOMs, I'm adding a memory hint for the read
based on the historical heap usage.

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Co-authored-by: Elliot Barnwell <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn force-pushed the cherry-pick-2.56.1-64717 branch from be064a3 to b006e5d Compare July 14, 2026 22:48
elliot-barn added a commit that referenced this pull request Jul 15, 2026
…64630) (cherry-pick 2.56.1) (#64761)

Cherry-pick of #64630 onto `releases/2.56.1` to fix the failing
ReadTheDocs build on the 2.56.1 release line.

Original PR: #64630

## Why
The docs build on `releases/2.56.1` fails under `fail_on_warning` (-W)
with 3 warnings, all from stale references to a renamed
sphinx-collections example:
```
tune/examples/index.rst:25: WARNING: toctree contains reference to nonexisting document
  '_collections/tune/examples/tune_pytorch_asha/tune_pytorch_asha'
tune/examples/index.rst:48: WARNING: unknown document: '.../tune_pytorch_asha/tune_pytorch_asha'
tune-pytorch-cifar.ipynb: WARNING: unknown document: '.../tune_pytorch_asha/tune_pytorch_asha'
```
The ASHA example is pulled at build time via `sphinx-collections`; its
published notebook was renamed to `README.ipynb`, so the canonical
document is now `.../tune_pytorch_asha/README`. The old
`tune_pytorch_asha` document no longer exists in the published archive.

## What
- `conf.py`: remove the now-wrong
`_collections/tune/examples/tune_pytorch_asha/README.md` exclusion (that
exclusion was deleting the canonical README page).
- `tune/examples/index.rst`: repoint the toctree entry and the `:doc:`
list-table row to `.../tune_pytorch_asha/README`.
- `tune/examples/tune-pytorch-cifar.ipynb`: repoint the `{doc}` link in
the "See More PyTorch Examples" cell.

Clean cherry-pick (no conflicts). Verified no
`tune_pytorch_asha/tune_pytorch_asha` references remain.

## Note
This is a pre-existing docs-build breakage on the release branch
(independent of any code cherry-picks). Once merged, in-flight 2.56.1
cherry-pick PRs (#64757, #64758) can be rebased to get green docs
builds.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
@elliot-barn
elliot-barn merged commit d7babce into releases/2.56.1 Jul 15, 2026
3 checks passed
@elliot-barn
elliot-barn deleted the cherry-pick-2.56.1-64717 branch July 15, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants