Repository navigation
[release] Move data release tests off the ray-ml image to ray-torch (2/N) - #67262
Merged
elliot-barn merged 8 commits intoOct 30, 2026
Merged
Conversation
elliot-barn
marked this pull request as ready for review
October 27, 2026 00:10
Contributor
There was a problem hiding this comment.
Code Review
This pull request migrates the Ray data release tests from Python 3.10 to Python 3.11 and updates the default GPU test environment to use the ray-torch image (torch-cu128) instead of the ray-ml image (gpu). To support this, new dependency configurations and requirements files (requirements_data_image_embedding.in and requirements_data_tensorflow.in) have been added to build specialized lock files for TensorFlow and image embedding benchmarks. Certain tests with dependency conflicts (such as those requiring PyArrow 19 or MosaicML) are explicitly kept on the ray-ml image. There are no review comments, and we have no feedback to provide.
sai-miduthuri
approved these changes
Oct 28, 2026
This was referenced Oct 28, 2026
Step 1 of retiring `byod.type: gpu` (anyscale/ray-ml) in release tests:
- 13 tests that only need torch move to `torch-cu128` (ray-torch, py3.11).
- 6 tests that use no ML framework and run on CPU-only compute move to `cpu`.
- Delete the manual compiled_graphs_GPU[_multinode] tests, which the
`_cu130_py{{python}}` variants replace.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Every test leaving ray-ml now targets the ray-torch image (`torch-cu128`) instead of splitting between it and `cpu`, and moves to Python 3.11 (the image is built for 3.11 and 3.14 only). The xgboost/lightgbm train batch inference benchmarks need both libraries, which ray-torch doesn't ship, so they get a `python_depset` (torch_cu128_xgboost_lightgbm_py3.11.lock). It is expanded from the ray-torch py3.11 image lock and constrained to it, so it adds exactly xgboost 2.1.0 and lightgbm 4.6.0 and changes no package the image has. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…-torch pytest_serve_resnet_benchmark's DataDownloader loads NVIDIA's torch hub nvidia_convnets_processing_utils, which imports validators. ray-ml shipped it; the ray-torch image does not, so the downloading replica died with ModuleNotFoundError and the others timed out waiting on its lock (build 110605). Add torch_cu128_serve_resnet_py3.11.lock: the ray-torch image lock plus validators, constrained to that lock like the xgboost/lightgbm depset. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…ster Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
force-pushed
the
elliot-barn/migrate-ray-ml-release-tests
branch
from
October 28, 2026 22:23
61a4fde to
6f905c3
Compare
The data release tests' DEFAULTS block now uses the ray-torch image (`torch-cu128`) instead of ray-ml (`gpu`), and 47 tests move to Python 3.11, the version the image is built for. Two tests need packages ray-torch doesn't ship, so they get python_depsets expanded from the ray-torch py3.11 image lock and constrained to it. Each depset only adds packages and changes no pin the image has: - read_tfrecords, to_tf: tensorflow 2.19.1 and tensorflow-metadata (torch_cu128_data_tensorflow_py3.11.lock). 2.20 needs protobuf>=5.28, and the image pins 5.27.5. - image_embedding_from_uris/jsonl: albumentations and pybase64 (torch_cu128_data_image_embedding_py3.11.lock). Three tests stay on ray-ml with a TODO: - image_classification_fixed_size and image_classification_from_parquet_fixed_size pin pyarrow 19 for the removed pyarrow.PyExtensionType. ray-torch ships pyarrow 23. - distributed_training imports mosaicml-streaming at module load. Every streaming release needs torchtext (0.5.x) or transformers<5. Both conflict with ray-torch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
force-pushed
the
elliot-barn/migrate-data-release-tests-ray-torch
branch
from
October 28, 2026 22:26
8cdd235 to
30508fc
Compare
…ay-torch Dataset.join needs polars, which ray-ml shipped and ray-torch doesn't, so every joins_sf1000_* and tpch_* test failed on import (release build 112579). torch_cu128_data_joins_py3.11.lock is the ray-torch base lock plus polars 1.40.0 and polars-runtime-32; no existing pin changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Base automatically changed from
elliot-barn/migrate-ray-ml-release-tests
to
master
October 30, 2026 00:11
…-torch Signed-off-by: Elliot Barnwell <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 30, 2026
Resolve conflicts from the squashed #66880 and #67262's later commits by taking #67262's side and re-applying this PR's own changes: the six 3/N depsets after the data ones, and air_benchmark_tensorflow_mnist in requirements_data_tensorflow.in. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 30, 2026
Picks up master's aiohttp 3.14.4, certifi, virtualenv and packaging bumps in the audio_transcription, rllib, train_huggingface and train_lightning locks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 30, 2026
Resolve conflicts with master's cu133 additions: keep cu13.3.1-cudnn in the ray-torch-anyscale publish step and gpu-cu133/torch-cu133 in ALLOWED_BYOD_TYPES, while still dropping the ray-ml-anyscale publish step and the gpu byod type. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
deleted the
elliot-barn/migrate-data-release-tests-ray-torch
branch
October 30, 2026 21:22
elliot-barn
added a commit
that referenced
this pull request
Nov 3, 2026
…y-torch (3/N) (#67517) ## Why are these changes needed? Step 3 of retiring the ray-ml image from release tests. Stacked on #67262 (2/N), which is stacked on #66880 (1/N). After those two, 22 release tests still ran on ray-ml (`byod.type: gpu`). This moves all of them to ray-torch (`torch-cu128`, python 3.11), so no release test uses ray-ml anymore. The image build itself is removed in 4/N. Like 1/N and 2/N, extra packages come from depsets expanded from the ray-torch image lock and constrained to it, installed with `--no-deps` through `byod.python_depset`. That replaces post_build scripts which `pip install`-ed on top of the image (several of them reinstalled torch). | Tests | Change | |---|---| | `rllib_learning_tests_*_torch` (13) | New `torch_cu128_rllib` depset (gymnasium[atari,mujoco], ale_py, pettingzoo, pygame, wandb, ...). Replaces `byod_rllib.sh`, which reinstalled torch 2.7 | | `torch_lightning` | New `torch_cu128_train_lightning` depset (lightning 2.6.1); replaces `byod_pytorch_lightning_test.sh` | | `huggingface_transformers`, `huggingface_accelerate` | New `torch_cu128_train_huggingface` depset (accelerate, evaluate) | | `air_benchmark_tensorflow_mnist_gpu_4x4` (manual) | Reuses 2/N's `torch_cu128_data_tensorflow` depset | | `training_ingest_benchmark-task=recsys` (manual) | torchrec 1.5 + fbgemm-gpu 1.5 (the torch 2.10 pairing; the old script pinned torch 2.6). torchrec pins `torchmetrics==1.0.3` against the image's 0.10.3, so this one is a pinned closure (10 packages, resolved against the image's other pins) compiled `--no-deps` instead of an expand | | `transformers_reinforcement_learning` | Image switch only. Its post_build installs `trl[vllm]==1.0.0`, which brings its own vllm and torch, as it did on ray-ml. Moving it to the llm image would need TRL ≥1.16 (vllm 0.31) and a notebook rewrite | | `distributed_training` | `multi_node_train_benchmark.py` imports mosaicml-streaming only inside `get_mosaic_dataloader` (the `--use-mosaic` path, which this test doesn't take). Drops `byod_install_mosaicml.sh`; every streaming release needs torchtext or transformers<5 | | `image_classification_fixed_size`, `image_classification_from_parquet_fixed_size` | One-package `--no-deps` depset swapping in `pyarrow==19.0.1`: the datasets use the old `PyExtensionType` tensor type removed in pyarrow 21. Note: the image's `datasets` wants pyarrow>=21; these tests don't import it | | `audio_transcription` | New `torch_cu128_audio_transcription` depset. `torchaudio` pinned to `2.10.*`: 2.11 declares no torch requirement and resolved next to torch 2.10 | Removes the now-unused `byod_rllib.sh`, `byod_install_torchrec.sh`, `byod_pytorch_lightning_test.sh` and `byod_install_mosaicml.sh`. ## Duplicate check Searched open PRs for ray-ml / ray-torch release-test work: only this stack (#66880, #67262). #62580 fixes deps inside the TF benchmark and Dolly/Vicuna scripts, not the image they run on. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`: lock files up to date. - `bazel test //release:test_config //release:test_test //release:test_custom_byod_build_init_helper`: pass. - Script check: no entry in `release_tests.yaml`, `release_data_tests.yaml` or `release_multimodal_inference_benchmarks_tests.yaml` resolves to byod type `gpu` (DEFAULTS included). - Release tests not run yet. Next: run the 22 on this branch. This PR was prepared with AI assistance (Claude Code). I reviewed the change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Release test run: https://buildkite.com/ray-project/release/builds/112994/list --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Nov 3, 2026
…(4/N) (#67518) ## Why are these changes needed? Step 4 of retiring ray-ml from release tests. Stacked on #67517 (3/N), after which no release test uses byod type `gpu` (the ray-ml image). This removes the image build and the type. - `.buildkite/release/build.rayci.yml`: drop `ray-mlcudabaseextra-testdeps`, `ray-ml-anyscale-cuda-build` and the `ray-ml-anyscale` publish step (`anyscalemlbuild`). Delete `ci/docker/ray-ml-anyscale-cuda.wanda.yaml`. - `ci/ray_ci/oss_config.yaml` / `global_config.py`: drop `release_image_step.ray_ml`. - `ray_release/config.py`: `gpu` is no longer an allowed byod type, so a new test can't land on ray-ml. - `ray_release/test.py`: drop the `anyscale/ray-ml` repo, `use_byod_ml_image`, and the `gpu` → `cu121` tag mapping. - `custom_byod_build_init_helper.py`: drop the `ray-ml` prerequisite-step branch. - Tests and sample YAMLs that used `gpu` as a generic GPU type now use `torch-cu128` (py3.11) or `gpu-cu130` (py3.12). Cases that tested only the removed behavior are deleted, and a case asserts `gpu` is rejected. **Not changed:** the public `rayproject/ray-ml` images (`_images.rayci.yml`, `docker/ray-ml/`, image tag/push automation), the generic `push_release_test_image.py`, and the shared `docker/base-extra-testdeps/`. **Merge order:** anyscale/rayturbo#4501 must merge before this syncs into rayturbo, because its ray-ml release image step depends on `ray-mlcudabaseextra-testdeps`. ## Duplicate check Only this stack (#66880, #67262, #67517) touches ray-ml release-test infra. ## Testing - `bazel test //release:test_config //release:test_test //release:test_byod_build //release:test_global_config //release:test_custom_byod_build_init_helper //release:test_custom_image_build_and_test_init //release:test_custom_byod_build //release:test_byod_build_context //release:test_buildkite //release:test_step //release:test_glue`: 11/11 pass. - All `//release:test_*` plus `//ci/ray_ci/...`: 66 pass, including `//ci/ray_ci:test_utils`, which reads `oss_config.yaml`. 2 fail locally on things this PR doesn't touch: `test_anyscale_job_wrapper` times out at 60s, and `test_privileged` hits a `typing._SpecialGenericAlias` env error. - `git grep` finds no remaining reference to `anyscalemlbuild`, `ray-ml-anyscale-cuda`, `ray-mlcudabaseextra-testdeps`, `release_image_step_ray_ml`, `DATAPLANE_ECR_ML_REPO` or `use_byod_ml_image`. This PR was prepared with AI assistance (Claude Code). I reviewed the change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #66880 (step 1/N). Review only the top commit until #66880 merges.
Why
This is step 2 of retiring the
anyscale/ray-mlimage from release tests. It moves the data release tests to the ray-torch image (torch-cu128) on Python 3.11, the same target #66880 uses.Change
DEFAULTSblock inrelease/release_data_tests.yamlswitches fromtype: gpu(ray-ml) totype: torch-cu128.training_ingest_regression_testsettype: gpuexplicitly and switches too.python: "3.10"to"3.11".python_depsets. Like the [release] Move torch-only and no-ML release tests off the ray-ml image (1/N) #66880 depsets, these are expanded fromray-torch-cu128_base_py3.11.lockand constrained to it. I diffed each lock against the image lock: both only add packages and change no existing pin.read_tfrecordsandto_tfgettorch_cu128_data_tensorflow_py3.11.lock, which adds tensorflow 2.19.1 and tensorflow-metadata 1.17.3. tensorflow 2.20 needsprotobuf>=5.28, and the image pins 5.27.5.image_embedding_from_uris_*andimage_embedding_from_jsonl_*gettorch_cu128_data_image_embedding_py3.11.lock, which adds albumentations 2.0.8 and pybase64 1.4.3.post_build_scripts are unchanged. Neither package touches torch or numpy.Still on ray-ml, each with a TODO (follow-up):
image_classification_fixed_sizeandimage_classification_from_parquet_fixed_sizepinpyarrow==19throughimage_classification_py3.10.lock, because the dataset uses the removedpyarrow.PyExtensionType. ray-torch ships pyarrow 23. These need a data-team fix to the dataset.distributed_trainingimportsmosaicml-streamingat module load, even though this test never uses--use-mosaic. Every streaming release needs torchtext (0.5.x, which pins an old torch) ortransformers<5(0.6 through 0.13). Both conflict with ray-torch's torch 2.10 and transformers 5.11. Making the import lazy would unblock it.text_embedding_*already usescu123and is unchanged.Release test filter
Duplicate check
I searched open PRs for ray-ml / ray-torch data release test changes. Only #66880 (step 1, which this stacks on) and #67220 (a serve test fix) came up.
Testing
bazel test //release:test_config //release:test_testpasses.bazel run //ci/raydepsets:raydepsets -- build --all-configs --checkpasses.AI assistance (Claude Code) was used to make and check this change.
🤖 Generated with Claude Code