Skip to content

[release] Add cu130 ray-torch release test image (torch-cu130) - #66973

Closed
elliot-barn wants to merge 1 commit into
masterfrom
elliot-barn/ray-torch-cu130
Closed

elliot-barn wants to merge 1 commit into
masterfrom
elliot-barn/ray-torch-cu130

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Description

Adds a CUDA 13.0 variant of the ray-torch release test image (py3.11 and py3.14), published as anyscale/ray-torch:<build>-py31x-cu130. Release tests select it with byod: type: torch-cu130, the same way torch-cu128 works today.

Image build (.buildkite/release/build.rayci.yml, docker/ray-torch/cuda.wanda.yaml)

  • ray-torchcudabase: cu130 is added through adjustments rather 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.
  • The lock path is passed to wanda as PYTHON_DEPSET, the Dockerfile ARG that 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-build and anyscaletorchcudabuild: add cu13.0.0-cudnn.

Locks (ci/raydepsets/configs/ray_torch.depsets.yaml)

  • New ray_torch_cu130_base_depset_{311,314}. It's built on ray_img_cu130 (the core image depset with cupy-cuda12x relaxed out) with torch from the cu130 index. Result: torch==2.10.0+cu130, torchvision==0.25.0+cu130, and no cupy.
  • cupy-cuda12x is removed from docker/ray-torch/torch-requirements.txt. It was redundant, since ray[all] already brings it into the cu128 locks. In those locks only the markers change: cupy-cuda12x and fastrlock now carry ; sys_platform != 'darwin'.

cupy (ci/docker/ray-image.Dockerfile)

  • The cupy-cuda12x → cupy-cuda13x swap now also runs for IMAGE_TYPE=ray-torch on cu13* 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 the cupy-cuda12x that ray[all] installs. If cupy-cuda13x were already installed, uninstalling 12x would delete their shared cupy/ files.

Release config

  • release/ray_release/config.py: allow torch-cu130, limited to py3.11/3.14 like torch-cu128.
  • release/release_tests.yaml: new nightly jobs_check_cuda_version_torch_cu130_py{3.11,3.14}. It asserts torch.version.cuda is 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 existing torch-cu128 image 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.
  • Rendered the release pipeline with rayci v0.48.0 (.rayciversion). It expands to 4 ray-torchcudabase steps, each cu130 one reading ray-torch-cu130_base_py3.1x.lock, plus 4 builds and 4 publishes.
  • jobs_check_cuda_version_torch_cu130_py3.1x resolves to anyscale/ray-torch:<build>-py31x-cu130 and depends on anyscaletorchcudabuild--gpucu1300cudnn-python31x.
  • I checked the swap conditional for ray, ray-torch and ray-llm on cu12/cu13: only ray and ray-torch on cu13 swap.

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

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]>
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

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.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Oct 28, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no more activity in the 14 days
since being marked stale.

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!

@github-actions github-actions Bot closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale The issue is stale. It will be closed within 7 days unless there are further conversation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant