Repository navigation
[release] Add cu130 ray-torch release test image (torch-cu130) - #66973
Closed
elliot-barn wants to merge 1 commit into
Closed
elliot-barn wants to merge 1 commit into
elliot-barn wants to merge 1 commit into
Conversation
Builds the ray-torch release test image on the CUDA 13.0 base for py3.11/3.14 and publishes it as anyscale/ray-torch:<build>-py31x-cu130, selectable in release_tests.yaml with byod type torch-cu130. - Locks: new ray_torch_cu130 depset on the cupy-cuda12x-relaxed ray_img_cu130 chain with torch from the cu130 index, so the lock carries no cupy. cupy-cuda12x is dropped from torch-requirements.txt (ray[all] already brings it to the cu128 locks; only markers change). - ray-image.Dockerfile: run the cupy-cuda12x -> cupy-cuda13x swap for IMAGE_TYPE=ray-torch too, so cu13 ray-torch images get the CUDA-13 cupy. - build.rayci.yml: add the cu130 combinations via array adjustments and pass the lock path to wanda as PYTHON_DEPSET. - Add a nightly jobs_check_cuda_version_torch_cu130 smoke test. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 27, 2026
> **Stacked on #66547** (cu133 base images, nightly-only publishing). Review only the top commit; retarget to `master` once #66547 merges. ## Why are these changes needed? #66547 adds CUDA 13.3.1 images, but the only cu133 release test (`hello_world_cu133`) runs on a CPU-only cluster, so nothing exercises cu133 on a GPU. This adds a cu133 **ray-torch** release test image, selectable as `byod: type: torch-cu133`, and GPU tests that run on it. It mirrors the torch-cu130 change in #66973, but builds on the cu13.3.1 base instead of cu13.0.0. The two PRs share the generic plumbing (the `PYTHON_DEPSET` wanda arg, the ray-torch cupy swap, and dropping `cupy-cuda12x` from `torch-requirements.txt`), so whichever lands second rebases trivially onto those hunks. ### Changes - **Locks:** new `ray_torch_cu133_base_depset_${PYTHON_SHORT}` (py3.11/3.14) built on the cupy-relaxed `ray_img_cu130` chain, so the lock carries no cupy. - PyTorch publishes no cu133 wheel index, so torch comes from the cu130 index (`torch==2.10.0+cu130`). - Those wheels bundle a CUDA 13.0 runtime, which runs on the 13.3 image under CUDA minor-version compatibility. - **`ci/docker/ray-image.Dockerfile`:** the cupy-cuda12x → cupy-cuda13x swap now also runs for `IMAGE_TYPE=ray-torch` on `cu13*`. - **`docker/ray-torch/torch-requirements.txt`:** drop `cupy-cuda12x`. `ray[all]` still brings it to the cu128 locks; only its `sys_platform != 'darwin'` marker changes. - **`.buildkite/release/build.rayci.yml`:** `ray-torchcudabase` adds the cu133 combinations via array `adjustments` and passes the lock as `PYTHON_DEPSET`. `cu13.3.1-cudnn` is added to the ray-torch anyscale build and publish arrays. - **`release/ray_release/config.py`:** allow `torch-cu133` (py3.11/3.14 only, same as `torch-cu128`). - **`release/release_tests.yaml`:** - New nightly `jobs_check_cuda_version_torch_cu133_py{3.11,3.14}` runs `--expected-cuda-version 13`. It checks the major version only, because torch reports 13.0. - Adds `rdt_single_node_T4_microbenchmark_torch_cu133`: the RDT microbenchmark on `torch-cu133` with py3.11 on one 4xT4 node (`compute_t4_gpu.yaml`), so NCCL transfers are intra-node. - Adds `rdt_T4_2x1_microbenchmark_torch_cu133`: the same test on two 1-GPU g4dn.2xlarge nodes (new `compute_t4_gpu_2x1_aws.yaml`), so NCCL runs between nodes. - The RDT test is the useful GPU check: its NCCL tensor transport goes through `cupy.cuda.nccl`, so it fails if the cupy-cuda13x swap is broken. - **`release/microbenchmark/experimental/rdt_single_node_microbenchmark.py`:** kill each round's sender/receiver actors at the end of the round. The benchmark creates a new 1-GPU actor pair per round and the previous round's actors could outlive it, so on a 2-GPU cluster round 2 never scheduled. ## Related issue number Follow-up to #66547; same pattern as #66973. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ray_torch.depsets.yaml` - All depsets compile. - The regenerated cu128 locks are byte-identical to #66973's. - The cu133 locks have torch/torchvision `+cu130`, no cupy, and `nvidia-nccl-cu13==2.28.9`. - `read_and_validate_release_test_collection(["release/release_tests.yaml"])` passes. The cu133 entries resolve to tag suffix `cu133`. - Release build https://buildkite.com/ray-project/release/builds/111347: all cu133 ray-torch images built, and `jobs_check_cuda_version_torch_cu133_py3.11/3.14` passed. The RDT test, then on 2x g4dn.2xlarge, timed out after the NCCL round. Each benchmark round leaves its 1-GPU actors holding their GPUs, so a 2-GPU cluster has nothing left for round 2. The actor-kill fix above addresses this. - Release build https://buildkite.com/ray-project/release/builds/111527: `rdt_single_node_T4_microbenchmark_torch_cu133` passed. - Release build https://buildkite.com/ray-project/release/builds/111722: `jobs_check_cuda_version_torch_cu133_py3.11/3.14` and `rdt_single_node_T4_microbenchmark_torch_cu133` passed. - Release build https://buildkite.com/ray-project/release/builds/111735: `rdt_T4_2x1_microbenchmark_torch_cu133` passed with the actor-kill fix. All 6 rounds ran across the two nodes (NCCL 1GB x10 in ~3.6s, gloo ~18.5s). Duplicate check: `gh pr list --search "torch-cu133"` finds only #66547 (the base). AI assistance (Claude Code) was used to write this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) RDT release tests: https://buildkite.com/ray-project/release/builds/111735/list --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 27, 2026
> **Stacked on #66547** (cu133 base images, nightly-only publishing). Review only the top commit; retarget to `master` once #66547 merges. ## Why are these changes needed? #66547 adds CUDA 13.3.1 images, but the only cu133 release test (`hello_world_cu133`) runs on a CPU-only cluster, so nothing exercises cu133 on a GPU. This adds a cu133 **ray-torch** release test image, selectable as `byod: type: torch-cu133`, and GPU tests that run on it. It mirrors the torch-cu130 change in #66973, but builds on the cu13.3.1 base instead of cu13.0.0. The two PRs share the generic plumbing (the `PYTHON_DEPSET` wanda arg, the ray-torch cupy swap, and dropping `cupy-cuda12x` from `torch-requirements.txt`), so whichever lands second rebases trivially onto those hunks. ### Changes - **Locks:** new `ray_torch_cu133_base_depset_${PYTHON_SHORT}` (py3.11/3.14) built on the cupy-relaxed `ray_img_cu130` chain, so the lock carries no cupy. - PyTorch publishes no cu133 wheel index, so torch comes from the cu130 index (`torch==2.10.0+cu130`). - Those wheels bundle a CUDA 13.0 runtime, which runs on the 13.3 image under CUDA minor-version compatibility. - **`ci/docker/ray-image.Dockerfile`:** the cupy-cuda12x → cupy-cuda13x swap now also runs for `IMAGE_TYPE=ray-torch` on `cu13*`. - **`docker/ray-torch/torch-requirements.txt`:** drop `cupy-cuda12x`. `ray[all]` still brings it to the cu128 locks; only its `sys_platform != 'darwin'` marker changes. - **`.buildkite/release/build.rayci.yml`:** `ray-torchcudabase` adds the cu133 combinations via array `adjustments` and passes the lock as `PYTHON_DEPSET`. `cu13.3.1-cudnn` is added to the ray-torch anyscale build and publish arrays. - **`release/ray_release/config.py`:** allow `torch-cu133` (py3.11/3.14 only, same as `torch-cu128`). - **`release/release_tests.yaml`:** - New nightly `jobs_check_cuda_version_torch_cu133_py{3.11,3.14}` runs `--expected-cuda-version 13`. It checks the major version only, because torch reports 13.0. - Adds `rdt_single_node_T4_microbenchmark_torch_cu133`: the RDT microbenchmark on `torch-cu133` with py3.11 on one 4xT4 node (`compute_t4_gpu.yaml`), so NCCL transfers are intra-node. - Adds `rdt_T4_2x1_microbenchmark_torch_cu133`: the same test on two 1-GPU g4dn.2xlarge nodes (new `compute_t4_gpu_2x1_aws.yaml`), so NCCL runs between nodes. - The RDT test is the useful GPU check: its NCCL tensor transport goes through `cupy.cuda.nccl`, so it fails if the cupy-cuda13x swap is broken. - **`release/microbenchmark/experimental/rdt_single_node_microbenchmark.py`:** kill each round's sender/receiver actors at the end of the round. The benchmark creates a new 1-GPU actor pair per round and the previous round's actors could outlive it, so on a 2-GPU cluster round 2 never scheduled. ## Related issue number Follow-up to #66547; same pattern as #66973. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ray_torch.depsets.yaml` - All depsets compile. - The regenerated cu128 locks are byte-identical to #66973's. - The cu133 locks have torch/torchvision `+cu130`, no cupy, and `nvidia-nccl-cu13==2.28.9`. - `read_and_validate_release_test_collection(["release/release_tests.yaml"])` passes. The cu133 entries resolve to tag suffix `cu133`. - Release build https://buildkite.com/ray-project/release/builds/111347: all cu133 ray-torch images built, and `jobs_check_cuda_version_torch_cu133_py3.11/3.14` passed. The RDT test, then on 2x g4dn.2xlarge, timed out after the NCCL round. Each benchmark round leaves its 1-GPU actors holding their GPUs, so a 2-GPU cluster has nothing left for round 2. The actor-kill fix above addresses this. - Release build https://buildkite.com/ray-project/release/builds/111527: `rdt_single_node_T4_microbenchmark_torch_cu133` passed. - Release build https://buildkite.com/ray-project/release/builds/111722: `jobs_check_cuda_version_torch_cu133_py3.11/3.14` and `rdt_single_node_T4_microbenchmark_torch_cu133` passed. - Release build https://buildkite.com/ray-project/release/builds/111735: `rdt_T4_2x1_microbenchmark_torch_cu133` passed with the actor-kill fix. All 6 rounds ran across the two nodes (NCCL 1GB x10 in ~3.6s, gloo ~18.5s). Duplicate check: `gh pr list --search "torch-cu133"` finds only #66547 (the base). AI assistance (Claude Code) was used to write this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) RDT release tests: https://buildkite.com/ray-project/release/builds/111735/list --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]>
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
|
This pull request has been automatically closed because there has been no more activity in the 14 days Please feel free to reopen or open a new pull request if you'd still like this to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for your contribution! |
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.
Description
Adds a CUDA 13.0 variant of the
ray-torchrelease test image (py3.11 and py3.14), published asanyscale/ray-torch:<build>-py31x-cu130. Release tests select it withbyod: type: torch-cu130, the same waytorch-cu128works today.Image build (
.buildkite/release/build.rayci.yml,docker/ray-torch/cuda.wanda.yaml)ray-torchcudabase: cu130 is added throughadjustmentsrather than a new array dimension. Each CUDA version pairs with exactly one image type, so a cartesian product would create mismatched cu128/cu130 combos. The existing cu128 step keys don't change.PYTHON_DEPSET, the DockerfileARGthat already existed, instead of being hardcoded to cu128. Wanda can't expand$IMAGE_TYPE_base…because_is a valid variable-name character.ray-torch-anyscale-cuda-buildandanyscaletorchcudabuild: addcu13.0.0-cudnn.Locks (
ci/raydepsets/configs/ray_torch.depsets.yaml)ray_torch_cu130_base_depset_{311,314}. It's built onray_img_cu130(the core image depset withcupy-cuda12xrelaxed out) with torch from the cu130 index. Result:torch==2.10.0+cu130,torchvision==0.25.0+cu130, and no cupy.cupy-cuda12xis removed fromdocker/ray-torch/torch-requirements.txt. It was redundant, sinceray[all]already brings it into the cu128 locks. In those locks only the markers change:cupy-cuda12xandfastrlocknow carry; sys_platform != 'darwin'.cupy (
ci/docker/ray-image.Dockerfile)cupy-cuda12x→cupy-cuda13xswap now also runs forIMAGE_TYPE=ray-torchoncu13*platforms. Without this, a cu130 ray-torch image would ship the CUDA 12 cupy on a CUDA 13 runtime. The cu130 lock has no cupy, so the swap only ever replaces thecupy-cuda12xthatray[all]installs. If cupy-cuda13x were already installed, uninstalling 12x would delete their sharedcupy/files.Release config
release/ray_release/config.py: allowtorch-cu130, limited to py3.11/3.14 liketorch-cu128.release/release_tests.yaml: new nightlyjobs_check_cuda_version_torch_cu130_py{3.11,3.14}. It assertstorch.version.cudais 13.0 on the driver and on a GPU task. It's mainly there so a test consumes the image and the image actually gets built.Related issues
Not a duplicate:
gh pr list --search "ray-torch cu130"finds no open PR for this. #66880 moves tests onto the existingtorch-cu128image and doesn't add a CUDA variant.Additional information
Tests run locally:
bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ray_torch.depsets.yaml: all 4 ray-torch depsets compile.bazel test //release:test_config //release:test_custom_byod_build_init_helper //release:test_custom_image_build_and_test_init //release:test_test //release:test_byod_build: 5/5 pass..rayciversion). It expands to 4ray-torchcudabasesteps, each cu130 one readingray-torch-cu130_base_py3.1x.lock, plus 4 builds and 4 publishes.jobs_check_cuda_version_torch_cu130_py3.1xresolves toanyscale/ray-torch:<build>-py31x-cu130and depends onanyscaletorchcudabuild--gpucu1300cudnn-python31x.The image itself hasn't been built yet. These steps only run in the release pipeline, so the first release run on this branch is the real check.
AI assistance (Claude Code) was used to write this change. I reviewed it.
🤖 Generated with Claude Code