Repository navigation
[release] Move torch-only and no-ML release tests off the ray-ml image (1/N) - #66880
Merged
Merged
Conversation
2 tasks done
dstrodtman
added a commit
that referenced
this pull request
Oct 13, 2026
…directs (#66893) ## Why are these changes needed? A maintainer triage of the Ray Train examples marked five examples as outdated: four LLM and detection notebooks that need a replacement, and the DreamBooth example, which needs a rebuild on current diffusers. This PR takes them off the site and points each URL at the closest current page until the replacement ships. **Stacked on #66892**, which is stacked on #66883. Merge those first. | Unpublished page (`train/examples/...`) | Temporarily redirects to | | --- | --- | | `pytorch/torch-detection` | the object detection example (`ray-overview/examples/object-detection`) | | `lightning/dolly-lightning-fsdp-finetuning` | the `pytorch-fsdp` example | | `lightning/vicuna-13b-lightning-deepspeed-finetune` | the `deepspeed_finetune` example | | `deepspeed/gptj-deepspeed-fine-tuning` | the `deepspeed_finetune` example | | `pytorch/dreambooth-finetuning` | the Train examples gallery | The Llama-2 gallery card, which linked to `doc/source/templates/04_finetuning_llms_with_deepspeed` on GitHub, is also removed. It has no docs URL to redirect. The template directory itself isn't touched here. ### What changes - **Pages and gallery:** deletes the four notebooks and removes five gallery cards (the four above with cards, plus Llama-2). - **DreamBooth is excluded, not deleted.** `conf.py` adds the page to `exclude_patterns`, so it stops building while its source, its code under `templates/05_dreambooth_finetuning/`, and its two release tests (`air_example_dreambooth_finetuning`, `air_example_dreambooth_finetuning_lora`) stay in place for the rebuild. Republishing means removing the exclusion and the two temporary redirects. - **Inbound links:** `ray-overview/use-cases.md` now links the object detection example. The Tune Lightning example drops its dolly link. The Accelerate guide drops its Llama-2 `seealso`. The DeepSpeed guide's "Run DeepSpeed with Other Frameworks" table listed only the three removed examples, so it becomes a sentence linking the Accelerate, Transformers, and Lightning guides. - **Bazel:** the two dolly and vicuna `exclude` entries in `examples/lightning/BUILD.bazel`, and the GPT-J note in `examples/BUILD.bazel`. ### Release tests (please review, @ray-project/ray-train) Removes the three manual-frequency release tests that only ran the deleted notebooks, with their `release/air_examples/` working directories and BYOD setup scripts: - `air_example_gptj_deepspeed_fine_tuning` (`byod_gptj_test.sh`) - `air_example_dolly_v2_lightning_fsdp_finetuning` (`byod_dolly_test.sh`) - `air_example_vicuna_13b_lightning_deepspeed_finetuning` (`byod_vicuna_test.sh`) No other release test, BUILD file, or CI config references those directories or scripts. Release tests don't run on premerge, so CI can't confirm this part. ### Redirects Each page gets two rules, one for the old underscore slug and one for the hyphenated slug from #66883, both pointing at the final target, so no chain forms. Every one of the 10 rules carries `description: "Temporary: repoint when the replacement or rebuilt example ships"`, so `grep Temporary doc/redirects/current.yaml` finds them when the new examples land. ## Verification - `rtd-redirects validate doc/redirects/current.yaml`: 0 errors, 0 warnings. - `make -C doc rtd-build` (RtD-faithful, `-W`) on this branch: `build succeeded.`, zero Sphinx warnings. `train/examples/pytorch/` now emits only `pytorch-resnet-finetune.html`, confirming the DreamBooth exclusion. - `grep` over `doc/source/`, `release/`, `.buildkite/`, `ci/`, and `python/ray/train/` finds no remaining link to an unpublished page. Remaining hits are the DreamBooth template code and its kept release tests, plus comments in `.buildkite/test.rules*.txt` that describe the template directories. - `pre-commit` passes on the changed files. **Not a duplicate.** Two older open PRs edit these notebooks: #62580 fixes the dolly and vicuna release-test dependencies, and #63342 swaps dolly for a Pythia example and moves the Train release tests to manual. This PR deletes those notebooks and their tests, so both would need a rebase or would no longer apply. Draft #66880 also edits `release_tests.yaml`, but not these three entries. AI assistance (Claude Code) was used to prepare this change. I reviewed every changed line. ## Related issue number N/A ## Checks - [x] I've signed off every commit (DCO). - [x] Docs, doc-test Bazel, and release-test config changes. No library code changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
edoakes
pushed a commit
that referenced
this pull request
Oct 15, 2026
## Why are these changes needed? `doc/source/templates/` is the Ray 2.6-era "Ray Starter Templates" directory. The harness that made it a templates mechanism is gone. `exclude_patterns` in `doc/source/conf.py` drops `templates/*` from the Sphinx build, and nothing in it backs a bazel test target. What was left on master: - `01_batch_inference`, `02_many_model_training`, `03_serving_stable_diffusion`, `configs/`, `testing/`, and `README.md` had no references outside the directory. The README documents a contribution workflow whose scripts (`testing/validate.py`, `testing/release/`) no longer exist. - `04_finetuning_llms_with_deepspeed` was referenced only by a doctest exclusion in `doc/BUILD.bazel`. #66893 repointed its last doc links to the `deepspeed_finetune` example. - `05_dreambooth_finetuning` backed `train/examples/pytorch/dreambooth-finetuning.md`, which #66893 unpublished because the example doesn't run on current libraries. It also backed two release tests, `air_example_dreambooth_finetuning` and `air_example_dreambooth_finetuning_lora`, through symlinks in `release/air_examples/dreambooth/`. Both tests are `frequency: manual` and were jailed after failing (#49847, #49846). Its `requirements.txt` pins a July-2023 stack (`torch==2.0.1`, `diffusers==0.19.3`, `transformers==4.30.2`). The DreamBooth example is being rebuilt on current diffusers as a new example, so this PR deletes the old sources rather than moving them. The rebuilt example lands outside `templates/`. ## What this PR changes - Deletes `doc/source/templates/` (69 files). - Deletes the unpublished `doc/source/train/examples/pytorch/dreambooth-finetuning.md` and its `exclude_patterns` entry. The temporary redirects in `doc/redirects/current.yaml` from both old DreamBooth URLs to `/train/examples.html` stay as they are, to be repointed when the rebuilt example ships. - Deletes `release/air_examples/dreambooth/` and the two jailed release tests in `release/release_tests.yaml` (the whole `AIR examples` group, which held only these two). - Removes the dead `templates/*` patterns from `exclude_patterns` and `llms_txt_exclude` in `conf.py`, and the `04` doctest exclusion from `doc/BUILD.bazel`. - `.buildkite/test.rules.txt`: drops `doc/source/templates/05_dreambooth_finetuning/` from the literalinclude-sources rule and `doc/source/templates/` from the skip rule that #65289 added. `_templates/` keeps its skip rule. The comments are updated to match. - `.buildkite/test.rules.test.txt`: drops the `templates/` cases. The assertion that the prose-and-image skip still wins inside a `doc`-routed directory moves from `05` to `cluster/doc_code/`, so that coverage isn't lost. - `.github/CODEOWNERS`: drops `templates` from the catch-all comment's directory list. ## Questions for reviewers - **Release tests (ml team):** this removes `air_example_dreambooth_finetuning` and `air_example_dreambooth_finetuning_lora`. They're manual-only and jailed, and their sources go away with this directory. If you'd rather keep the test definitions as a placeholder for the rebuilt example, say so and I'll restore them. - **External links:** these templates were promoted publicly around Ray 2.6, so blog posts or course material might link to `github.com/ray-project/ray/tree/master/doc/source/templates/...`. This PR is a clean delete. If maintainers would prefer a tombstone `README.md` pointing at the Train examples gallery, I can add one. ## Related PRs Once this merges, the following open Dependabot PRs target manifests that no longer exist and can be closed: #65851, #65850, #64851, #64850, #64002, #64001, #62417, #62418, #56096, #54423, #55301. ## Duplicate check Searched open PRs for `doc/source/templates` and `dreambooth`. The only matches are the Dependabot bumps listed above, #67006 (my own in-tree-links sweep, which deliberately leaves this directory alone), and #66880 (touches `release_tests.yaml` but not the DreamBooth entries). ## Testing - `rayci test-rules` (built from `ray-project/rayci`) against the updated `.buildkite/test.rules.txt` and `test.rules.test.txt`: 177/177 cases pass. Flipping one new case to a wrong expectation makes it fail, confirming the case is live. - `git grep` for `doc/source/templates`, each template directory name, and `air_example_dreambooth` returns no matches outside `_templates/`. - `conf.py` parses, and `release/release_tests.yaml` loads with `yaml.safe_load`. - `pre-commit` passes on the changed files, including buildifier on `doc/BUILD.bazel` and the master-link resolution check. - The docs build runs on this PR's Read the Docs preview. This PR was prepared with AI assistance (Claude Code). I reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
elliot-barn
marked this pull request as ready for review
October 22, 2026 00:56
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates several release tests in release_tests.yaml to use Python 3.11 and the torch-cu128 BYOD image type instead of the generic gpu type. It also introduces new dependency set configurations in release_ray_torch_tests.depsets.yaml along with corresponding requirements files for XGBoost, LightGBM, and ResNet Serve benchmarks. Additionally, some deprecated compiled graph GPU tests have been removed. There are no review comments to address, and the changes look clean and consistent.
sampan-s-nayak
pushed a commit
that referenced
this pull request
Oct 23, 2026
…frequency (#67303) ## Why are these changes needed? `image_embedding_from_jsonl_fixed_size` has failed every weekly run since 2026-08-20 (last pass 2026-08-13). It hasn't failed in Ray. Every attempt ends with the cluster terminated with `failed to acquire min nodes` before Ray starts on the workers. The test needs 141 on-demand nodes in a single AZ: 40 × `g5.4xlarge` + 100 × `r6a.8xlarge` workers, plus an `r6a.8xlarge` head. us-west-2 can't reliably supply that right now: - `InsufficientInstanceCapacity` events per attempt rose from 30–70 (Aug) to ~90–190 (Oct). - Since late September the GPU group rarely gets past ~14/40 nodes. - `g5.4xlarge` isn't offered in `us-west-2d`, so one of the four zones the autoscaler rotates through can never satisfy the GPU group. Because the test is jailed, the release automation reopens its tracking issue after every failed weekly run. The issue only stays closed once the test passes or stops running on a schedule. This change moves only the real-GPU `fixed_size` variant to `frequency: manual`. The `fake_gpu_fixed_size` variant runs the same pipeline without real GPUs, has been passing, and stays weekly as the scheduled signal. The real-GPU variant can still be run on demand, for example once a capacity reservation or a smaller cluster shape is available. ## Related issue number <!-- DATA-3466 (internal) --> ## Duplicate check - `gh pr list --repo ray-project/ray --state open --search "image_embedding_from_jsonl"` returns only #66880 (ray-ml image migration), which doesn't touch this test. ## Testing - Loaded and validated the release test collection with `ray_release`: `read_and_validate_release_test_collection(["release/release_data_tests.yaml"])` validated 117 tests. Matrix expansion gives `image_embedding_from_jsonl_fixed_size: manual` and `image_embedding_from_jsonl_fake_gpu_fixed_size: weekly`. - `pre-commit run <hook> --files release/release_data_tests.yaml`: trailing-whitespace, end-of-file-fixer, check-added-large-files and check-ray-repo-links passed. prettier skipped (no matching files). Signed-off-by: Prasad Palkar <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 27, 2026
## Why
`pytest_serve_autoscaling_load_test` has been sending a bad payload on
every request, and the test hid it.
`release/serve_tests/workloads/locust_utils.py` hands the worker
subprocess its payload as a JSON string in `sys.argv[1]`. The worker
passed that string straight to `json=`, so locust encoded it a second
time. Every request body was a JSON *string* (`"{\"uri\": ...}"`).
`resnet_50.py` then failed on `(await request.json())["uri"]` with
`TypeError: string indices must be integers` and returned HTTP 500 on
100% of requests.
Master's nightly still passes because of a second bug:
- `run_locust_worker` raises only if `client.errors` is non-empty, and
`autoscaling_load_test.py` never checks the failure rate.
- On the ray-ml image (`locust==2.18.0`), the request listener crashes
on `response.text`. Serve's 500 response declares no charset, and locust
2.18 calls `str(content, None)`, which raises `TypeError: str() argument
'encoding' must be str, not None`.
- Locust catches handler exceptions and only logs them, so the error is
never appended and the test passes.
Master's nightly build 111411 shows 1,901,821 requests and 1,901,821
failures, and the test still passed.
Locust 2.39 (in the ray-torch image) falls back to detecting the
encoding, so the errors are recorded and the worker raises. That's how
this surfaced while moving the test to ray-torch in #66880.
## Change
Decode `sys.argv[1]` with `json.loads` in the worker script, so the
request body is the original `{"uri": ...}` object.
`replica_scalability.py` also uses this helper, with `data=None`. It now
sends no body instead of `"null"`, which makes no difference to its noop
app.
With this fix the autoscaling test sends real ResNet inference load
again, so expect its latency and RPS metrics to change.
## Duplicate check
I searched open PRs for `locust` and `autoscaling_load_test` and found
nothing related.
## Testing
- Confirmed the root cause in the service's replica logs (`TypeError` at
`resnet_50.py:38`) and the masked errors in master's job logs (repeated
"Uncaught exception in event handler").
- Checked the round-trip locally: the old body is `"{\"uri\": \"x\"}"`,
the new body is `{"uri": "x"}`.
- pre-commit passed.
- I haven't run a release test with the fix yet. Filter:
```
name:^pytest_serve_autoscaling_load_test\.aws$
name:^pytest_serve_autoscaling_load_test\.aws\.haproxy$
```
AI assistance (Claude Code) was used to investigate and write this
change.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
justinyeh1995
pushed a commit
to justinyeh1995/ray
that referenced
this pull request
Oct 28, 2026
…project#67220) ## Why `pytest_serve_autoscaling_load_test` has been sending a bad payload on every request, and the test hid it. `release/serve_tests/workloads/locust_utils.py` hands the worker subprocess its payload as a JSON string in `sys.argv[1]`. The worker passed that string straight to `json=`, so locust encoded it a second time. Every request body was a JSON *string* (`"{\"uri\": ...}"`). `resnet_50.py` then failed on `(await request.json())["uri"]` with `TypeError: string indices must be integers` and returned HTTP 500 on 100% of requests. Master's nightly still passes because of a second bug: - `run_locust_worker` raises only if `client.errors` is non-empty, and `autoscaling_load_test.py` never checks the failure rate. - On the ray-ml image (`locust==2.18.0`), the request listener crashes on `response.text`. Serve's 500 response declares no charset, and locust 2.18 calls `str(content, None)`, which raises `TypeError: str() argument 'encoding' must be str, not None`. - Locust catches handler exceptions and only logs them, so the error is never appended and the test passes. Master's nightly build 111411 shows 1,901,821 requests and 1,901,821 failures, and the test still passed. Locust 2.39 (in the ray-torch image) falls back to detecting the encoding, so the errors are recorded and the worker raises. That's how this surfaced while moving the test to ray-torch in ray-project#66880. ## Change Decode `sys.argv[1]` with `json.loads` in the worker script, so the request body is the original `{"uri": ...}` object. `replica_scalability.py` also uses this helper, with `data=None`. It now sends no body instead of `"null"`, which makes no difference to its noop app. With this fix the autoscaling test sends real ResNet inference load again, so expect its latency and RPS metrics to change. ## Duplicate check I searched open PRs for `locust` and `autoscaling_load_test` and found nothing related. ## Testing - Confirmed the root cause in the service's replica logs (`TypeError` at `resnet_50.py:38`) and the masked errors in master's job logs (repeated "Uncaught exception in event handler"). - Checked the round-trip locally: the old body is `"{\"uri\": \"x\"}"`, the new body is `{"uri": "x"}`. - pre-commit passed. - I haven't run a release test with the fix yet. Filter: ``` name:^pytest_serve_autoscaling_load_test\.aws$ name:^pytest_serve_autoscaling_load_test\.aws\.haproxy$ ``` AI assistance (Claude Code) was used to investigate and write this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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
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
…2/N) (#67262) Stacked on #66880 (step 1/N). Review only the top commit until #66880 merges. ## Why This is step 2 of retiring the `anyscale/ray-ml` image 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 - The `DEFAULTS` block in `release/release_data_tests.yaml` switches from `type: gpu` (ray-ml) to `type: torch-cu128`. `training_ingest_regression_test` set `type: gpu` explicitly and switches too. - 47 test entries move from `python: "3.10"` to `"3.11"`. - Two tests need packages ray-torch doesn't ship, so they get `python_depset`s. Like the #66880 depsets, these are expanded from `ray-torch-cu128_base_py3.11.lock` and constrained to it. I diffed each lock against the image lock: both only add packages and change no existing pin. - `read_tfrecords` and `to_tf` get `torch_cu128_data_tensorflow_py3.11.lock`, which adds tensorflow 2.19.1 and tensorflow-metadata 1.17.3. tensorflow 2.20 needs `protobuf>=5.28`, and the image pins 5.27.5. - `image_embedding_from_uris_*` and `image_embedding_from_jsonl_*` get `torch_cu128_data_image_embedding_py3.11.lock`, which adds albumentations 2.0.8 and pybase64 1.4.3. - The deltalake and pyiceberg `post_build_script`s are unchanged. Neither package touches torch or numpy. **Still on ray-ml, each with a TODO (follow-up):** - `image_classification_fixed_size` and `image_classification_from_parquet_fixed_size` pin `pyarrow==19` through `image_classification_py3.10.lock`, because the dataset uses the removed `pyarrow.PyExtensionType`. ray-torch ships pyarrow 23. These need a data-team fix to the dataset. - `distributed_training` imports `mosaicml-streaming` at module load, even though this test never uses `--use-mosaic`. Every streaming release needs torchtext (0.5.x, which pins an old torch) or `transformers<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 uses `cu123` and is unchanged. ## Release test filter ``` name:^(read_parquet_fixed_size|read_large_parquet_fixed_size|read_images_fixed_size|read_tfrecords|read_from_uris_fixed_size|write_parquet|write_delta|write_delta_smoke|write_delta_overwrite|write_delta_partitioned|iceberg_benchmark_[^.]+|iceberg_benchmark_overwrite|aggregate_groups_low_cardinality|aggregate_groups_high_cardinality|map_groups_high_cardinality|map_groups_low_cardinality|joins_[^.]+_[^.]+|joins_[^.]+_[^.]+_disk|wide_schema_pipeline_primitives|wide_schema_pipeline_tensors|wide_schema_pipeline_objects|wide_schema_pipeline_nested_structs|streaming_split|mix|training_ingest_benchmark|training_ingest_regression_test|chunked_tensor_take|iter_batches_[^.]+|iter_batches_pyarrow|to_tf|iter_torch_batches|map|flat_map|map_batches_fixed_size_[^.]+_[^.]+_[^.]+|worker_scaling_[^.]+_[^.]+_[^.]+ops|backpressure_fast_producer_slow_consumer|backpressure_many_tiny_objects|backpressure_training_prefetch|backpressure_heterogeneous_memory_nodes|random_shuffle|heterogeneous_memory_batch_inference_multitenancy|image_embedding_from_uris_[^.]+|image_embedding_from_jsonl_[^.]+|multi_stage_batch_inference|tpch_[^.]+|tpch_[^.]+_disk_shuffle)(\..+)?$ ``` ## 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_test` passes. - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` passes. - pre-commit passes. - The release tests haven't run on this branch yet. The filter is above. AI assistance (Claude Code) was used to make and check this 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
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.
Why
byod.type: gpuruns a release test on theanyscale/ray-mlimage. That image is py3.10 / CUDA 12.1 only and carries the whole ML requirements stack, and it is the last thing keeping ray-ml in the release build. 95 release test entries still use it:type: gpurelease/release_data_tests.yamlDEFAULTSblockrelease/release_tests.yamlrelease/release_multimodal_inference_benchmarks_tests.yamlaudio_transcriptionThis PR is step 1: it moves the tests that need either nothing ML-specific or only torch, and deletes two superseded ones.
What changed (
release/release_tests.yamlonly)Moved to
torch-cu128(ray-torch image), py3.10 → py3.11. Every test leaving ray-ml in this PR goes to the same image. The image is built for py3.11 and py3.14 only, so each move also bumps the test's Python version. That matches the existingtraining_ingest_benchmark-task=image_classificationtests.These need only torch, torchvision and other packages the image already ships (torchmetrics, transformers, datasets, locust):
air_benchmark_torch_mnist_gpu_4x4,air_benchmark_tune_torch_mnistjobs_check_cuda_available(the aws/gce variants; the cu130 variations already set their own type and python),jobs_specify_num_gpuspytest_serve_autoscaling_load_test,pytest_serve_resnet_benchmarktrain_async_checkpointing_validation_benchmark,train_preemption_benchmark,torch_local_mode,train_elastic_e2e_with_node_killing,elastic_benchmarkrdt_single_node_T4_microbenchmark,benchmark_worker_startupThese use no ML framework and run on CPU-only compute. The ray-torch image works there too:
hello_world_custom_byod_depset_onlyjobs_basic_local_working_dir,jobs_basic_remote_working_dir,jobs_remote_multi_nodeagent_stress_test{{framework}}_train_batch_inference_benchmark_{{size}}: needs xgboost and lightgbm, which ray-torch doesn't ship, so it gets a newpython_depset,torch_cu128_xgboost_lightgbm_py3.11.lock(configci/raydepsets/configs/release_ray_torch_tests.depsets.yaml). The depset 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 (the versionsrequirements_compiled.txtpins) and changes no package the image already has.Deleted:
compiled_graphs_GPUandcompiled_graphs_GPU_multinode. Both arefrequency: manual, andcompiled_graphs_GPU[_multinode]_cu130_py{{python}}replaces them.What's left (follow-ups)
Step 2:
release_data_tests.yaml(data team).DEFAULTSfromgputotorch-cu128(py3.11), the same target as this PR. About 33 of the 50 entries run on CPU-only compute and need no ML framework.read_tfrecordsandto_tfneed tensorflow, andwrite_delta*/iceberg*already install deltalake / pyiceberg via post-build scripts.read_tfrecordsandto_tfneed TF, which the cpu test deps already pin (2.19.1).mix,training_ingest_benchmark,training_ingest_regression_test,iter_torch_batches,image_classification_*,multi_stage_batch_inference) override totorch-cu128.Step 3: tests that need a
python_depset, built the same way asrelease_ml_torchft_tests.depsets.yaml.torch_lightninghuggingface_transformershuggingface_acceleraterllib_learning_tests_*byod_rllib.shtoday; halfcheetah may also need the mesa/osmesa apt packages ray-ml installs)distributed_trainingimage_embedding_from_urisimage_embedding_from_jsonlaudio_transcriptiontraining_ingest_benchmark-task=recsystransformers_reinforcement_learningStep 4: delete or keep (owners to decide). All of these are
frequency: manual.air_benchmark_tensorflow_mnist_gpu_4x4air_example_dreambooth_finetuningand_loraair_example_gptj_deepspeed_fine_tuningair_example_dolly_v2_lightning_fsdp_finetuning(reinstalls cu118 torch)air_example_vicuna_13b_lightning_deepspeed_finetuning(reinstalls cu118 torch)Step 5: remove ray-ml. Once nothing uses
type: gpu:ray-mlcudabaseextra-testdepsandray-ml-anyscale-cuda-buildsteps,docker/ray-ml/, theray_ml_base_extra_testdepsdepset, andrelease_image_step_ray_ml.Testing
bazel test //release:test_config //release:test_test //release:test_custom_byod_build_init_helper //release:test_new_sdk_compute_configspasses.bazel run //ci/raydepsets:raydepsets -- build --all-configs --checkpasses. The new depset's pins matchray-torch-cu128_base_py3.11.lockexactly, apart from the two added packages.name:filters), especially the py3.11 bump on the train and serve tests.Related work
Not a duplicate. No open PR moves release tests off
byod.type: gpuor retires ray-ml. The closest one, #62580, fixes the dependencies of the Dolly, Vicuna and TensorFlow benchmark tests. It stays on ray-ml and touches none of the tests this PR moves; those three tests are in step 4 above.AI assistance (Claude Code) was used to analyze the tests and write this change.
🤖 Generated with Claude Code