Repository navigation
[release] Add cu133 ray-torch release test image (torch-cu133) - #67099
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds support for the CUDA 13.3 variant of the ray-torch image, updating Buildkite pipelines, dependency locks, and release tests for Python 3.11 and 3.14. A critical issue was identified in ci/docker/ray-image.Dockerfile where the exact string match for IMAGE_TYPE will fail to match ray-torch-cu128 or ray-torch-cu133, preventing the necessary cupy swap from executing. It is recommended to use a wildcard pattern match instead.
| # locks carry no cupy, so the only one present is ray[all]'s cupy-cuda12x); | ||
| # ray-llm flows through this same Dockerfile but manages cupy via its own llm | ||
| # locks, so leave it untouched. | ||
| if [[ ("${IMAGE_TYPE}" == "ray" || "${IMAGE_TYPE}" == "ray-torch") && "${PLATFORM}" == cu13* ]]; then |
There was a problem hiding this comment.
The IMAGE_TYPE for the new cu133 image is configured as ray-torch-cu133 (and ray-torch-cu128 for cu128) in .buildkite/release/build.rayci.yml. Using an exact string match "${IMAGE_TYPE}" == "ray-torch" will evaluate to false for these image types, preventing the cupy swap from executing. Using a wildcard pattern match like "${IMAGE_TYPE}" == ray-torch* will correctly match both ray-torch-cu128 and ray-torch-cu133.
if [[ ("${IMAGE_TYPE}" == "ray" || "${IMAGE_TYPE}" == ray-torch*) && "${PLATFORM}" == cu13* ]]; then
There was a problem hiding this comment.
Not an issue. The ray-torch-cu1xx values in .buildkite/release/build.rayci.yml only feed the ray-torch base image (docker/ray-torch/cuda.wanda.yaml), where they select the lock file. ci/docker/ray-image.Dockerfile is built from ci/docker/ray-torch-anyscale-cuda.wanda.yaml, which passes IMAGE_TYPE=ray-torch exactly. The Dockerfile also uses that value to form BASE_IMAGE (cr.ray.io/rayproject/${IMAGE_TYPE}-py…), so an exact match is correct here.
Release build https://buildkite.com/ray-project/release/builds/111347 shows the swap ran on both cu133 torch images:
- py3.11:
cupy-cuda12x 13.6.0uninstalled,cupy-cuda13x==13.6.0installed - py3.14:
cupy-cuda12x 14.0.1uninstalled,cupy-cuda13x==14.0.1installed
82c5a41 to
6ebf3ef
Compare
6f887cd to
2e531b4
Compare
6ebf3ef to
1130a23
Compare
2e531b4 to
8dc026f
Compare
3201dcd to
31237fd
Compare
41d67a6 to
47fad65
Compare
Adds byod type torch-cu133 (py3.11/3.14), built on the cu13.3.1 base
with torch from the cu130 index (no cu133 wheel index exists). The
ray-image.Dockerfile cupy-cuda12x -> cupy-cuda13x swap now also runs
for ray-torch, and the cu133 locks carry no cupy.
Tests:
- nightly jobs_check_cuda_version_torch_cu133_py{3.11,3.14}
- rdt_single_node_T4_microbenchmark_torch_cu133 (one 4xT4 node,
intra-node NCCL) as the GPU check of the cupy swap
- rdt_T4_2x1_microbenchmark_torch_cu133 (two 1-GPU nodes, NCCL between
nodes)
The RDT benchmark creates a new sender/receiver GPUActor pair per round
and the previous round's actors could outlive it, so on a 2-GPU cluster
round 2 never scheduled. Kill both actors at the end of each round.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
31237fd to
261f485
Compare
| # Free this round's GPUs before the next round creates its actors. Without | ||
| # this the old actors can outlive the round, and on a cluster with only two | ||
| # GPUs the next round's actors never schedule. | ||
| ray.kill(sender) | ||
| ray.kill(receiver) |
There was a problem hiding this comment.
Why was this not an issue before now CUDA 13.3?
There was a problem hiding this comment.
was required for a multi node benchmark but ill talk to the core team about adding this in the future. removed from this pr and the rdt test is on a single node gpu
Keep only the single-node 4xT4 RDT test for the cu133 ray-torch image. It already exercises cupy.cuda.nccl, which is what validates the cupy-cuda13x swap. Removes the 2x1 test, its compute config, and the ray.kill change to the benchmark script, which only the 2x1 layout needed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
> **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]>
The torch-cu133 locks came in with the #67099 squash-merge, which was compiled against an older master than the one merged into this branch. Recompiled with raydepsets build --all-configs; the only changes are master's newer pins (aiohttp 3.14.4, certifi 2026.10.19, packaging 26.3, virtualenv 21.14.12, and their deps). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…se test (#66547) > **Stack:** this PR (base, targets `master`) → #67099 (torch-cu133 release test image, stacked on this branch). ## Description Adds CUDA 13.3 (`13.3.1-cudnn`, tag suffix `-cu133`) as a new platform for the `ray` and `ray-extra` images so it ships in nightlies (`rayproject/ray:nightly-py3xx-cu133[-aarch64]`). Follows the same pattern as cu130 (#63801, #63972): - **`.buildkite/_images.rayci.yml`**: add `13.3.1-cudnn` to `raycudabase` / `raycudabaseextra`, and `13.3.1` to `ray-slimcudabase`. - **`.buildkite/build.rayci.yml`** (x86_64): add to `ray-image-cuda-build` / `ray-extra-image-cuda-build` and `--platform cu13.3.1-cudnn` to `ray_images_push` / `ray_extra_images_push`. - **`.buildkite/linux_aarch64.rayci.yml`**: same for the aarch64 bases, image builds and pushes. - **`ray-images.json`**: add `cu13.3.1-cudnn` to `ray` platforms, so nightly verification expects the new tags. - **`ci/ray_ci/test_ray_docker_container.py`**: assert `cu13.3.1-cudnn` → `-cu133`. **Nightly only for now.** Unlike cu130, cu133 is not published as part of a Ray release yet: - **`ci/ray_ci/automation/push_ray_image.py`**: new `NIGHTLY_ONLY_PLATFORMS = {"cu13.3.1-cudnn"}`. On `releases/*` branches the publish step skips those platforms; the images are still built there, just not pushed. Master nightly publishing is unchanged. To ship cu133 in releases later, remove it from the set. - **`ci/ray_ci/automation/test_push_ray_image.py`**: on a release branch cu130 is pushed and cu133 is skipped; on master nightly both are pushed. No new lock files. The base / base-extra layers use CUDA-agnostic locks, and the cupy-cuda12x → cupy-cuda13x swap in `ci/docker/ray-image.Dockerfile` keys on `cu13*`, so cu133 already picks it up. `nvidia/cuda:13.3.1-{cudnn-devel,runtime}-ubuntu22.04` exists for both amd64 and arm64. **Release test (hello world):** - **`.buildkite/release/build.rayci.yml`**: add `13.3.1-cudnn` to `raycudabaseextra-testdeps`, and `cu13.3.1-cudnn` to `ray-anyscale-cuda-build` / `anyscalecudabuild`. The testdeps lock is keyed by image type, not CUDA, so no new locks are needed. - **`release/ray_release/config.py`**: allow BYOD type `gpu-cu133`. - **`release/release_tests.yaml`**: new nightly `hello_world_cu133_py{3.10..3.13}`, mirroring `hello_world_cu130`. It resolves to `ray:<build>-py31x-cu133` and depends on `anyscalecudabuild--gpucu1331cudnn-python31x`. Out of scope: ray-llm stays on cu130. GPU release tests for cu133 (RDT, `jobs_check_cuda_version`) run on the torch-cu133 ray-torch image in #67099. ## Related issues N/A ## Additional information - The push steps are `skip-on-premerge`, so the real check is the first postmerge/nightly run after merge. - `bazel test //ci/ray_ci/automation:test_push_ray_image` passes. - Release build https://buildkite.com/ray-project/release/builds/111722: `hello_world_cu133_py3.10`–`3.13` passed. - Local: `ci/ray_ci` docker-container / image / supported-images tests pass; `release/ray_release` config / BYOD-init / test tests pass (81), and the release test collection validates. 🤖 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]>
…se test (ray-project#66547) > **Stack:** this PR (base, targets `master`) → ray-project#67099 (torch-cu133 release test image, stacked on this branch). ## Description Adds CUDA 13.3 (`13.3.1-cudnn`, tag suffix `-cu133`) as a new platform for the `ray` and `ray-extra` images so it ships in nightlies (`rayproject/ray:nightly-py3xx-cu133[-aarch64]`). Follows the same pattern as cu130 (ray-project#63801, ray-project#63972): - **`.buildkite/_images.rayci.yml`**: add `13.3.1-cudnn` to `raycudabase` / `raycudabaseextra`, and `13.3.1` to `ray-slimcudabase`. - **`.buildkite/build.rayci.yml`** (x86_64): add to `ray-image-cuda-build` / `ray-extra-image-cuda-build` and `--platform cu13.3.1-cudnn` to `ray_images_push` / `ray_extra_images_push`. - **`.buildkite/linux_aarch64.rayci.yml`**: same for the aarch64 bases, image builds and pushes. - **`ray-images.json`**: add `cu13.3.1-cudnn` to `ray` platforms, so nightly verification expects the new tags. - **`ci/ray_ci/test_ray_docker_container.py`**: assert `cu13.3.1-cudnn` → `-cu133`. **Nightly only for now.** Unlike cu130, cu133 is not published as part of a Ray release yet: - **`ci/ray_ci/automation/push_ray_image.py`**: new `NIGHTLY_ONLY_PLATFORMS = {"cu13.3.1-cudnn"}`. On `releases/*` branches the publish step skips those platforms; the images are still built there, just not pushed. Master nightly publishing is unchanged. To ship cu133 in releases later, remove it from the set. - **`ci/ray_ci/automation/test_push_ray_image.py`**: on a release branch cu130 is pushed and cu133 is skipped; on master nightly both are pushed. No new lock files. The base / base-extra layers use CUDA-agnostic locks, and the cupy-cuda12x → cupy-cuda13x swap in `ci/docker/ray-image.Dockerfile` keys on `cu13*`, so cu133 already picks it up. `nvidia/cuda:13.3.1-{cudnn-devel,runtime}-ubuntu22.04` exists for both amd64 and arm64. **Release test (hello world):** - **`.buildkite/release/build.rayci.yml`**: add `13.3.1-cudnn` to `raycudabaseextra-testdeps`, and `cu13.3.1-cudnn` to `ray-anyscale-cuda-build` / `anyscalecudabuild`. The testdeps lock is keyed by image type, not CUDA, so no new locks are needed. - **`release/ray_release/config.py`**: allow BYOD type `gpu-cu133`. - **`release/release_tests.yaml`**: new nightly `hello_world_cu133_py{3.10..3.13}`, mirroring `hello_world_cu130`. It resolves to `ray:<build>-py31x-cu133` and depends on `anyscalecudabuild--gpucu1331cudnn-python31x`. Out of scope: ray-llm stays on cu130. GPU release tests for cu133 (RDT, `jobs_check_cuda_version`) run on the torch-cu133 ray-torch image in ray-project#67099. ## Related issues N/A ## Additional information - The push steps are `skip-on-premerge`, so the real check is the first postmerge/nightly run after merge. - `bazel test //ci/ray_ci/automation:test_push_ray_image` passes. - Release build https://buildkite.com/ray-project/release/builds/111722: `hello_world_cu133_py3.10`–`3.13` passed. - Local: `ci/ray_ci` docker-container / image / supported-images tests pass; `release/ray_release` config / BYOD-init / test tests pass (81), and the release test collection validates. 🤖 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]>
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 asbyod: 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_DEPSETwanda arg, the ray-torch cupy swap, and droppingcupy-cuda12xfromtorch-requirements.txt), so whichever lands second rebases trivially onto those hunks.Changes
ray_torch_cu133_base_depset_${PYTHON_SHORT}(py3.11/3.14) built on the cupy-relaxedray_img_cu130chain, so the lock carries no cupy.torch==2.10.0+cu130).ci/docker/ray-image.Dockerfile: the cupy-cuda12x → cupy-cuda13x swap now also runs forIMAGE_TYPE=ray-torchoncu13*.docker/ray-torch/torch-requirements.txt: dropcupy-cuda12x.ray[all]still brings it to the cu128 locks; only itssys_platform != 'darwin'marker changes..buildkite/release/build.rayci.yml:ray-torchcudabaseadds the cu133 combinations via arrayadjustmentsand passes the lock asPYTHON_DEPSET.cu13.3.1-cudnnis added to the ray-torch anyscale build and publish arrays.release/ray_release/config.py: allowtorch-cu133(py3.11/3.14 only, same astorch-cu128).release/release_tests.yaml: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.rdt_single_node_T4_microbenchmark_torch_cu133: the RDT microbenchmark ontorch-cu133with py3.11 on one 4xT4 node (compute_t4_gpu.yaml), so NCCL transfers are intra-node.rdt_T4_2x1_microbenchmark_torch_cu133: the same test on two 1-GPU g4dn.2xlarge nodes (newcompute_t4_gpu_2x1_aws.yaml), so NCCL runs between nodes.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+cu130, no cupy, andnvidia-nccl-cu13==2.28.9.read_and_validate_release_test_collection(["release/release_tests.yaml"])passes. The cu133 entries resolve to tag suffixcu133.jobs_check_cuda_version_torch_cu133_py3.11/3.14passed. 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.rdt_single_node_T4_microbenchmark_torch_cu133passed.jobs_check_cuda_version_torch_cu133_py3.11/3.14andrdt_single_node_T4_microbenchmark_torch_cu133passed.rdt_T4_2x1_microbenchmark_torch_cu133passed 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
RDT release tests: https://buildkite.com/ray-project/release/builds/111735/list