Repository navigation
[release] Move the remaining release tests off the ray-ml image to ray-torch (3/N) - #67517
Merged
elliot-barn merged 23 commits intoNov 3, 2026
Merged
Conversation
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]>
…-ray-ml-release-tests 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]>
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]>
…y-torch (3/N) Moves the last 22 release tests that ran on the ray-ml image (byod type gpu) to ray-torch (torch-cu128, python 3.11), so nothing in the release test suite uses ray-ml anymore. - rllib_learning_tests_* (13): new rllib depset replaces byod_rllib.sh, which reinstalled torch 2.7 on top of the image. - torch_lightning, huggingface_transformers, huggingface_accelerate: new lightning / huggingface depsets. - air_benchmark_tensorflow_mnist_gpu_4x4: reuses the data tensorflow depset. - training_ingest_benchmark-task=recsys: torchrec 1.5 / fbgemm-gpu 1.5 (the torch 2.10 pairing). torchrec pins torchmetrics==1.0.3 against the image's 0.10.3, so this is a pinned closure installed --no-deps. - transformers_reinforcement_learning: image switch only; its post_build installs trl[vllm], which brings its own vllm and torch as before. - distributed_training: import mosaicml-streaming only on the --use-mosaic path, which the release test doesn't take. - image_classification_fixed_size / _from_parquet_fixed_size: a one-package depset swaps in pyarrow 19 for the PyExtensionType dataset. - audio_transcription: new depset; torchaudio pinned to the image's torch release (2.11 declares no torch requirement and would resolve). Removes the now-unused byod_rllib.sh, byod_install_torchrec.sh, byod_pytorch_lightning_test.sh and byod_install_mosaicml.sh. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
force-pushed
the
elliot-barn/migrate-remaining-release-tests-ray-torch
branch
from
October 28, 2026 21:16
0339658 to
e7c0a85
Compare
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]>
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]>
…-torch Signed-off-by: Elliot Barnwell <[email protected]>
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]>
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]>
torchaudio 2.10 routes torchaudio.load through torchcodec, which the ray-torch image doesn't ship, so the benchmark failed with ImportError. Decode the FLAC bytes with soundfile and keep torchaudio for resampling. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…r load on ray-torch - audio_transcription: transformers 5's Whisper batch_decode fails on rows that are numpy arrays (Ray hands over ragged token_ids as an object array), so pass lists of ints. - image_classification x2: the dataset uses the legacy pickled tensor type. byod.Dockerfile sets RAY_DATA_AUTOLOAD_PYEXTENSIONTYPE=1 for the old base images, but ray-torch images don't go through it, so set it in the test's byod runtime_env. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Base automatically changed from
elliot-barn/migrate-data-release-tests-ray-torch
to
master
October 30, 2026 21:22
…-remaining-release-tests-ray-torch Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
sai-miduthuri
approved these changes
Oct 30, 2026
The download.pytorch.org fbgemm-gpu 1.5.0+cu128 cp311 wheel fails its hash check in CI: the custom image build gets a 671.6 MiB file whose sha256 (3ba552...) isn't the one the index lists (71ffe2..., 672.0 MiB), on two runs 18 hours apart. PyPI's fbgemm-gpu 1.5.0 is a CUDA 12 build (libcudart.so.12) for torch 2.10, so it runs on the cu128 image; torchrec 1.5.0 is pure Python. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
torchrec moved PipelineStage out of train_pipeline.utils into train_pipeline.pipeline_stage; the recsys benchmark failed with ImportError on the ray-torch image (release build 113042). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…s runner torchrec 1.5's SparseDataDistUtil tracks one context per in-flight batch. During pipeline fill it needs wait_sdd_fill_callback, which also advances the context; wait_sparse_data_dist alone left the model forward on the wrong context and full_training failed with KeyError 'model.sparse_arch.embedding_bag_collection' (release build 113063). Also pass data_exhausted_callback, and detach the SparseDataDistUtil once its loader is done so the validation loader's pipeline starts from an unpipelined model. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
deleted the
elliot-barn/migrate-remaining-release-tests-ray-torch
branch
November 3, 2026 00:27
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]>
elliot-barn
pushed a commit
that referenced
this pull request
Nov 4, 2026
…ge (#67805) ## Problem #67518 removed the `gpu` BYOD type, but `mid_epoch_resume_benchmark_{10M,3B}` still uses it. #66680 added those tests after #67517 had migrated the others. So `//release:test_config` fails on master: ``` Failed to validate test mid_epoch_resume_benchmark_10M: Invalid BYOD type: gpu ``` ## Solution Move the test to `torch-cu128`, like the other Train tests in #67517. `torch-cu128` requires Python 3.11, so bump `python` from 3.10. The benchmark only needs Ray and torch, which the ray-torch image provides. ## Validation `bazel test //release:test_config` fails on master with the error above and passes with this change. No existing PR addresses this. AI assistance (Claude Code) was used. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Jeffrey Wang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
elliot-barn
pushed a commit
that referenced
this pull request
Nov 5, 2026
…and k8s Serve release tests (#67773) ## Problem Four Serve release tests fail on every run: | Test | Cause | Last pass | |---|---|---| | `pytest_serve_multi_deployment_1k_noop_replica.gce` | Replicas require the custom `worker` resource (#46130), but the GCE config never declared it, so they are unschedulable. | Never since #46130 | | `serve_controller_benchmark_haproxy.gce` | Points at a single 16-CPU node; the benchmark needs ~205 workers. It stalls at 34/51 replicas. | Never (added in #61368) | | `video_analysis_pipeline.gce` | Invalid instance type (`g2-standard-4`), wrong region, and the app reads from S3. | Never | | `k8s_serve_ha_test` | `prepare.sh` fails with `jq: command not found`, then needs `kubectl` and a GKE cluster. | Jul 2023 | ## Fix - Add `resources: {CPU: 32, worker: 1}` to `compute_tpl_32_cpu_gce.yaml`, matching the AWS config. - Remove the GCE variations of the controller benchmark and video analysis tests. The AWS variations cover them. - Remove `k8s_serve_ha_test` and `release/k8s_tests/`, which nothing else uses. `read_and_validate_release_test_collection` passes on the updated `release_tests.yaml`, apart from the master breakage below. ## Premerge `//release:test_config` fails on master, not from this PR: `mid_epoch_resume_benchmark_{10M,3B}` (#66680) still use the `gpu` BYOD type that #67518 removed. Moving them to `torch-cu128` on Python 3.11, as #67517 did for the rest, fixes it. This PR will be rebased once master is fixed. Signed-off-by: qishengxhe <[email protected]>
ArturNiederfahrenhorst
added a commit
to ArturNiederfahrenhorst/ray
that referenced
this pull request
Nov 13, 2026
Master retired the ray-ml (`gpu`) BYOD type and byod_rllib.sh (ray-project#67517). Run the test on `torch-cu133` with Python 3.11 instead. That image has every package the test imports except pettingzoo, which the Footsies env used only for three type aliases; take them from ray.rllib.utils.typing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artur Niederfahrenhorst <[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.
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-depsthroughbyod.python_depset. That replaces post_build scripts whichpip install-ed on top of the image (several of them reinstalled torch).rllib_learning_tests_*_torch(13)torch_cu128_rllibdepset (gymnasium[atari,mujoco], ale_py, pettingzoo, pygame, wandb, ...). Replacesbyod_rllib.sh, which reinstalled torch 2.7torch_lightningtorch_cu128_train_lightningdepset (lightning 2.6.1); replacesbyod_pytorch_lightning_test.shhuggingface_transformers,huggingface_acceleratetorch_cu128_train_huggingfacedepset (accelerate, evaluate)air_benchmark_tensorflow_mnist_gpu_4x4(manual)torch_cu128_data_tensorflowdepsettraining_ingest_benchmark-task=recsys(manual)torchmetrics==1.0.3against the image's 0.10.3, so this one is a pinned closure (10 packages, resolved against the image's other pins) compiled--no-depsinstead of an expandtransformers_reinforcement_learningtrl[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 rewritedistributed_trainingmulti_node_train_benchmark.pyimports mosaicml-streaming only insideget_mosaic_dataloader(the--use-mosaicpath, which this test doesn't take). Dropsbyod_install_mosaicml.sh; every streaming release needs torchtext or transformers<5image_classification_fixed_size,image_classification_from_parquet_fixed_size--no-depsdepset swapping inpyarrow==19.0.1: the datasets use the oldPyExtensionTypetensor type removed in pyarrow 21. Note: the image'sdatasetswants pyarrow>=21; these tests don't import itaudio_transcriptiontorch_cu128_audio_transcriptiondepset.torchaudiopinned to2.10.*: 2.11 declares no torch requirement and resolved next to torch 2.10Removes the now-unused
byod_rllib.sh,byod_install_torchrec.sh,byod_pytorch_lightning_test.shandbyod_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.release_tests.yaml,release_data_tests.yamlorrelease_multimodal_inference_benchmarks_tests.yamlresolves to byod typegpu(DEFAULTS included).This PR was prepared with AI assistance (Claude Code). I reviewed the change.
🤖 Generated with Claude Code
Release test run: https://buildkite.com/ray-project/release/builds/112994/list