Skip to content

[release] Add ray-torch release test image (py3.14, cu12.8) - #65114

Merged
elliot-barn merged 3 commits into
masterfrom
elliot-barn/add-ray-torch-image
Aug 5, 2026
Merged

elliot-barn merged 3 commits into
masterfrom
elliot-barn/add-ray-torch-image

Conversation

@elliot-barn

@elliot-barn elliot-barn commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds a ray-torch release test image, extracted from the py3.14 release testing branch (#63270). This image bundles torch + common ML test dependencies (no vllm, which has no py3.14 wheels yet) on top of the ray py3.14 cu12.8 base, so release tests can be run against Python 3.14 where the ray-ml image is not available. This is crucial for verifying the py3.14 images work.

Changes

  • docker/ray-torch/: Dockerfile, cuda wanda spec, and torch requirements
  • ci/raydepsets/configs/ray_torch.depsets.yaml + compiled lock python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock (expand of ray_img_depset_314 against the cu128 torch index, regenerated against current master)
  • .buildkite/release/build.rayci.yml: ray-torchcudabase, ray-torch-anyscale-cuda-build, and anyscaletorchcudabuild publish steps (py3.14 / cu12.8.1-cudnn)
  • ci/ray_ci/oss_config.yaml + ray_release: support for the torch-cu128 BYOD type (anyscale/ray-torch repo, py3.14 only)
  • release/release_tests.yaml: new manual-frequency torch_local_mode_ray_torch test — a variant of torch_local_mode (smallest torch test from the [Release / DO NOT MERGE] Update release tests to Python 3.14 #63270 port list, no extra deps) running on the ray-torch image via the torch-cu128 BYOD type, so the image is exercised end to end. The existing test is unchanged. Verified passing on the release pipeline: build #103115 (image build, publish, and test all green).

Related issues

Extracted from #63270 (py3.14 release testing, DO NOT MERGE branch) so the image lands on master independently.

Additional information

AI-assisted (Claude Code); all changes reviewed by the submitter. Not duplicating open work: #63270 is a closed testing-only branch and no other open PR adds this image.

Tests run locally:

  • pytest release/ray_release/tests/test_global_config.py release/ray_release/tests/test_test.py release/ray_release/tests/test_config.py — pass
  • bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ray_torch.depsets.yaml --check — lock files up to date
  • pre-commit run on changed files — pass

🤖 Generated with Claude Code

Extracted from the py3.14 release testing branch (#63270): adds a
ray-torch image (torch + common ML test deps, no vllm) so release
tests can run against Python 3.14, where the ray-ml image is not
available.

- docker/ray-torch: Dockerfile, cuda wanda spec, torch requirements
- ci/raydepsets/configs/ray_torch.depsets.yaml + compiled lock
  (expand of ray_img_depset_314 with cu128 torch index)
- release pipeline steps to build and publish
  anyscale/ray-torch py3.14 cu12.8.1 release test image
- ray_release support for the torch-cu128 BYOD type

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn requested review from a team as code owners July 29, 2026 22:06

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new ray-torch build configuration, including Dockerfiles, Wanda build configurations, dependency locks, and release test configurations to support a new torch-cu128 BYOD (Bring Your Own Docker) type targeting Python 3.14 and CUDA 12.8.1. Feedback is provided to optimize the docker/ray-torch/Dockerfile by removing an unused pip alias and reducing the final image size by cleaning up the apt cache and using --no-install-recommends during package installation.

set -euo pipefail

set -x
alias pip="$HOME/anaconda3/bin/pip"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The alias pip is defined but never used in this Dockerfile (which uses uv pip instead). Additionally, aliases are not expanded by default in non-interactive bash shells unless shopt -s expand_aliases is set. This line can be safely removed to clean up the Dockerfile.

Comment on lines +20 to +32
sudo apt-get update \
&& sudo apt-get install -y gcc \
cmake \
libgtk2.0-dev \
libgl1-mesa-dev \
libgl1-mesa-glx \
libosmesa6 \
libosmesa6-dev \
libglfw3 \
patchelf \
unzip \
unrar \
zlib1g-dev

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To keep the Docker image size as small as possible, it is highly recommended to clean up the apt cache by removing /var/lib/apt/lists/* in the same RUN instruction, and to use --no-install-recommends to avoid installing unnecessary packages.

sudo apt-get update \
    && sudo apt-get install -y --no-install-recommends \
        gcc \
        cmake \
        libgtk2.0-dev \
        libgl1-mesa-dev \
        libgl1-mesa-glx \
        libosmesa6 \
        libosmesa6-dev \
        libglfw3 \
        patchelf \
        unzip \
        unrar \
        zlib1g-dev \
    && sudo rm -rf /var/lib/apt/lists/*

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a379dfe. Configure here.

unrar \
zlib1g-dev

uv pip install -r /home/ray/python_depset.lock --no-deps --system --index-strategy unsafe-best-match

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing hash verify disable

Medium Severity

uv pip install uses --index-strategy unsafe-best-match against a PyTorch CUDA-index lock that includes dual-index packages such as triton and nvidia-*, but omits --no-verify-hashes. The ray-llm image documents this exact failure mode and disables hash verification for the same reason; without it, the ray-torch image build can fail on hash mismatches when the CUDA index serves a different build than the PyPI hash in the lock.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a379dfe. Configure here.

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core release-test release test labels Jul 30, 2026
@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Jul 30, 2026
elliot-barn and others added 2 commits August 5, 2026 00:14
…h image

Adds a nightly variant of torch_local_mode (picked from the #63270 port
list as the smallest torch test with no extra deps) that runs on the new
anyscale/ray-torch py3.14 cu12.8 image via the torch-cu128 BYOD type,
exercising the image end to end. The existing torch_local_mode test is
unchanged.

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Verified passing on the release pipeline (build 103115); keep it
manual until the image ships nightly.

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn merged commit f1e0f9b into master Aug 5, 2026
6 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/add-ray-torch-image branch August 5, 2026 17:51
elliot-barn pushed a commit that referenced this pull request Aug 10, 2026
## Summary

Regenerates
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has
been failing `raydepsets --check` since 2026-08-05.

#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was
published on 2026-07-23 — before that PR landed. A fresh `uv pip
compile` therefore resolves 3.14.3, and `build: raydepsets: compile all
dependencies` reports the committed lock as out of date:

```
--- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
+++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
@@ -13,127 +13,126 @@
-aiohttp==3.13.5
+aiohttp==3.14.3
```

`aiohttp` is the only package that moves. The rest of the diff is its
hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@`
hunk the checker produced.

## Why this went unnoticed for five days

The check is gated on the `python_dependencies` tag
(`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by
touching `python/deplocks/`, `ci/raydepsets/configs/` or
`python/requirements*`. **1 of the last 40 premerge builds ran the step
at all.** So almost nothing trips it, and the PRs that do inherit an
unrelated red X, because the step runs `--all-configs` and checks every
lock in the repo rather than the one the PR edited.

Postmerge ignores tags, so it is also failing there — including on
`releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0
release path.

## Testing

Regenerated with the depset's own config rather than by hand, so the
output is whatever the checker computes:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build \
  ci/raydepsets/configs/ray_torch.depsets.yaml \
  --name ray_torch_cu128_base_depset_314
```

Then the full gate, exactly as CI runs it:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check
```

- **Passes** (exit 0) with this change applied.
- Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is
modified — `git status` is otherwise clean after the full check, so no
other lock has drifted and the fix is complete rather than the first of
several.
- Verified against master beforehand: the same command fails on
`origin/master` with the diff quoted above.

One note for anyone re-running this locally: `--all-configs`
intermittently dies on `503 Service Unavailable` from
`download.pytorch.org` while resolving the GPU configs (it hit
`.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and
unrelated — a retry passed. Worth distinguishing from a genuine lock
mismatch, since both surface as exit 1.

## Not a duplicate

No open PR touches this file. Checked the plausible candidates' file
lists directly rather than by title: #65305 (depset config JSON schema
validation), #65318 (wanda image rename), #65206 (dependabot bumping
aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than
a real deplock), #64885 (text_embedding release-test depset) — none of
them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/`
has exactly one commit in its history, #65114, which is the one that
introduced the drift. No commit has touched any deplock since
2026-08-05.

cc the author of #65114 for awareness, since this is their file.

## AI assistance

Prepared with AI assistance (Claude Code). I have reviewed the change
and can defend it: it is a mechanical regeneration, the diff is one
package plus its hashes, and the verification above is the same command
CI runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Ronny Roland <[email protected]>
Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
…ect#65114)

## Description

Adds a **ray-torch** release test image, extracted from the py3.14
release testing branch (ray-project#63270). This image bundles torch + common ML
test dependencies (no vllm, which has no py3.14 wheels yet) on top of
the ray py3.14 cu12.8 base, so release tests can be run against Python
3.14 where the ray-ml image is not available. This is crucial for
verifying the py3.14 images work.

### Changes
- `docker/ray-torch/`: Dockerfile, cuda wanda spec, and torch
requirements
- `ci/raydepsets/configs/ray_torch.depsets.yaml` + compiled lock
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` (expand of
`ray_img_depset_314` against the cu128 torch index, regenerated against
current master)
- `.buildkite/release/build.rayci.yml`: `ray-torchcudabase`,
`ray-torch-anyscale-cuda-build`, and `anyscaletorchcudabuild` publish
steps (py3.14 / cu12.8.1-cudnn)
- `ci/ray_ci/oss_config.yaml` + `ray_release`: support for the
`torch-cu128` BYOD type (`anyscale/ray-torch` repo, py3.14 only)
- `release/release_tests.yaml`: new manual-frequency
`torch_local_mode_ray_torch` test — a variant of `torch_local_mode`
(smallest torch test from the ray-project#63270 port list, no extra deps) running
on the ray-torch image via the `torch-cu128` BYOD type, so the image is
exercised end to end. The existing test is unchanged. **Verified passing
on the release pipeline: [build
#103115](https://buildkite.com/ray-project/release/builds/103115)**
(image build, publish, and test all green).

## Related issues

Extracted from ray-project#63270 (py3.14 release testing, DO NOT MERGE branch) so
the image lands on master independently.

## Additional information

AI-assisted (Claude Code); all changes reviewed by the submitter. Not
duplicating open work: ray-project#63270 is a closed testing-only branch and no
other open PR adds this image.

Tests run locally:
- `pytest release/ray_release/tests/test_global_config.py
release/ray_release/tests/test_test.py
release/ray_release/tests/test_config.py` — pass
- `bazel run //ci/raydepsets:raydepsets -- build
ci/raydepsets/configs/ray_torch.depsets.yaml --check` — lock files up to
date
- `pre-commit run` on changed files — pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
…ject#65343)

## Summary

Regenerates
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has
been failing `raydepsets --check` since 2026-08-05.

ray-project#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was
published on 2026-07-23 — before that PR landed. A fresh `uv pip
compile` therefore resolves 3.14.3, and `build: raydepsets: compile all
dependencies` reports the committed lock as out of date:

```
--- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
+++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
@@ -13,127 +13,126 @@
-aiohttp==3.13.5
+aiohttp==3.14.3
```

`aiohttp` is the only package that moves. The rest of the diff is its
hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@`
hunk the checker produced.

## Why this went unnoticed for five days

The check is gated on the `python_dependencies` tag
(`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by
touching `python/deplocks/`, `ci/raydepsets/configs/` or
`python/requirements*`. **1 of the last 40 premerge builds ran the step
at all.** So almost nothing trips it, and the PRs that do inherit an
unrelated red X, because the step runs `--all-configs` and checks every
lock in the repo rather than the one the PR edited.

Postmerge ignores tags, so it is also failing there — including on
`releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0
release path.

## Testing

Regenerated with the depset's own config rather than by hand, so the
output is whatever the checker computes:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build \
  ci/raydepsets/configs/ray_torch.depsets.yaml \
  --name ray_torch_cu128_base_depset_314
```

Then the full gate, exactly as CI runs it:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check
```

- **Passes** (exit 0) with this change applied.
- Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is
modified — `git status` is otherwise clean after the full check, so no
other lock has drifted and the fix is complete rather than the first of
several.
- Verified against master beforehand: the same command fails on
`origin/master` with the diff quoted above.

One note for anyone re-running this locally: `--all-configs`
intermittently dies on `503 Service Unavailable` from
`download.pytorch.org` while resolving the GPU configs (it hit
`.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and
unrelated — a retry passed. Worth distinguishing from a genuine lock
mismatch, since both surface as exit 1.

## Not a duplicate

No open PR touches this file. Checked the plausible candidates' file
lists directly rather than by title: ray-project#65305 (depset config JSON schema
validation), ray-project#65318 (wanda image rename), ray-project#65206 (dependabot bumping
aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than
a real deplock), ray-project#64885 (text_embedding release-test depset) — none of
them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/`
has exactly one commit in its history, ray-project#65114, which is the one that
introduced the drift. No commit has touched any deplock since
2026-08-05.

cc the author of ray-project#65114 for awareness, since this is their file.

## AI assistance

Prepared with AI assistance (Claude Code). I have reviewed the change
and can defend it: it is a mechanical regeneration, the diff is one
package plus its hashes, and the verification above is the same command
CI runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Ronny Roland <[email protected]>
elliot-barn pushed a commit that referenced this pull request Aug 11, 2026
…http 3.14.3) (#65343) (#65378)

## Summary

Regenerates
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has
been failing `raydepsets --check` since 2026-08-05.

#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was
published on 2026-07-23 — before that PR landed. A fresh `uv pip
compile` therefore resolves 3.14.3, and `build: raydepsets: compile all
dependencies` reports the committed lock as out of date:

```


--- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
+++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
@@ -13,127 +13,126 @@
-aiohttp==3.13.5
+aiohttp==3.14.3
```

`aiohttp` is the only package that moves. The rest of the diff is its
hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@`
hunk the checker produced.

## Why this went unnoticed for five days

The check is gated on the `python_dependencies` tag
(`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by
touching `python/deplocks/`, `ci/raydepsets/configs/` or
`python/requirements*`. **1 of the last 40 premerge builds ran the step
at all.** So almost nothing trips it, and the PRs that do inherit an
unrelated red X, because the step runs `--all-configs` and checks every
lock in the repo rather than the one the PR edited.

Postmerge ignores tags, so it is also failing there — including on
`releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0
release path.

## Testing

Regenerated with the depset's own config rather than by hand, so the
output is whatever the checker computes:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build \
  ci/raydepsets/configs/ray_torch.depsets.yaml \
  --name ray_torch_cu128_base_depset_314
```

Then the full gate, exactly as CI runs it:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check
```

- **Passes** (exit 0) with this change applied.
- Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is
modified — `git status` is otherwise clean after the full check, so no
other lock has drifted and the fix is complete rather than the first of
several.
- Verified against master beforehand: the same command fails on
`origin/master` with the diff quoted above.

One note for anyone re-running this locally: `--all-configs`
intermittently dies on `503 Service Unavailable` from
`download.pytorch.org` while resolving the GPU configs (it hit
`.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and
unrelated — a retry passed. Worth distinguishing from a genuine lock
mismatch, since both surface as exit 1.

## Not a duplicate

No open PR touches this file. Checked the plausible candidates' file
lists directly rather than by title: #65305 (depset config JSON schema
validation), #65318 (wanda image rename), #65206 (dependabot bumping
aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than
a real deplock), #64885 (text_embedding release-test depset) — none of
them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/`
has exactly one commit in its history, #65114, which is the one that
introduced the drift. No commit has touched any deplock since
2026-08-05.

cc the author of #65114 for awareness, since this is their file.

## AI assistance

Prepared with AI assistance (Claude Code). I have reviewed the change
and can defend it: it is a mechanical regeneration, the diff is one
package plus its hashes, and the verification above is the same command
CI runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> Thank you for contributing to Ray! 🚀
> Please review the [Ray Contribution
Guide](https://docs.ray.io/en/master/ray-contribute/getting-involved.html)
before opening a pull request.

> ⚠️ Remove these instructions before submitting your PR.

> 💡 Tip: Mark as draft if you want early feedback, or ready for review
when it's complete.

## Description
> Briefly describe what this PR accomplishes and why it's needed.

## Related issues
> Link related issues: "Fixes #1234", "Closes #1234", or "Related to
#1234".

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

Signed-off-by: Ronny Roland <[email protected]>
Co-authored-by: Ronny <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ect#65114)

## Description

Adds a **ray-torch** release test image, extracted from the py3.14
release testing branch (ray-project#63270). This image bundles torch + common ML
test dependencies (no vllm, which has no py3.14 wheels yet) on top of
the ray py3.14 cu12.8 base, so release tests can be run against Python
3.14 where the ray-ml image is not available. This is crucial for
verifying the py3.14 images work.

### Changes
- `docker/ray-torch/`: Dockerfile, cuda wanda spec, and torch
requirements
- `ci/raydepsets/configs/ray_torch.depsets.yaml` + compiled lock
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` (expand of
`ray_img_depset_314` against the cu128 torch index, regenerated against
current master)
- `.buildkite/release/build.rayci.yml`: `ray-torchcudabase`,
`ray-torch-anyscale-cuda-build`, and `anyscaletorchcudabuild` publish
steps (py3.14 / cu12.8.1-cudnn)
- `ci/ray_ci/oss_config.yaml` + `ray_release`: support for the
`torch-cu128` BYOD type (`anyscale/ray-torch` repo, py3.14 only)
- `release/release_tests.yaml`: new manual-frequency
`torch_local_mode_ray_torch` test — a variant of `torch_local_mode`
(smallest torch test from the ray-project#63270 port list, no extra deps) running
on the ray-torch image via the `torch-cu128` BYOD type, so the image is
exercised end to end. The existing test is unchanged. **Verified passing
on the release pipeline: [build
#103115](https://buildkite.com/ray-project/release/builds/103115)**
(image build, publish, and test all green).

## Related issues

Extracted from ray-project#63270 (py3.14 release testing, DO NOT MERGE branch) so
the image lands on master independently.

## Additional information

AI-assisted (Claude Code); all changes reviewed by the submitter. Not
duplicating open work: ray-project#63270 is a closed testing-only branch and no
other open PR adds this image.

Tests run locally:
- `pytest release/ray_release/tests/test_global_config.py
release/ray_release/tests/test_test.py
release/ray_release/tests/test_config.py` — pass
- `bazel run //ci/raydepsets:raydepsets -- build
ci/raydepsets/configs/ray_torch.depsets.yaml --check` — lock files up to
date
- `pre-commit run` on changed files — pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Signed-off-by: 400Ping <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ject#65343)

## Summary

Regenerates
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has
been failing `raydepsets --check` since 2026-08-05.

ray-project#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was
published on 2026-07-23 — before that PR landed. A fresh `uv pip
compile` therefore resolves 3.14.3, and `build: raydepsets: compile all
dependencies` reports the committed lock as out of date:

```
--- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
+++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
@@ -13,127 +13,126 @@
-aiohttp==3.13.5
+aiohttp==3.14.3
```

`aiohttp` is the only package that moves. The rest of the diff is its
hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@`
hunk the checker produced.

## Why this went unnoticed for five days

The check is gated on the `python_dependencies` tag
(`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by
touching `python/deplocks/`, `ci/raydepsets/configs/` or
`python/requirements*`. **1 of the last 40 premerge builds ran the step
at all.** So almost nothing trips it, and the PRs that do inherit an
unrelated red X, because the step runs `--all-configs` and checks every
lock in the repo rather than the one the PR edited.

Postmerge ignores tags, so it is also failing there — including on
`releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0
release path.

## Testing

Regenerated with the depset's own config rather than by hand, so the
output is whatever the checker computes:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build \
  ci/raydepsets/configs/ray_torch.depsets.yaml \
  --name ray_torch_cu128_base_depset_314
```

Then the full gate, exactly as CI runs it:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check
```

- **Passes** (exit 0) with this change applied.
- Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is
modified — `git status` is otherwise clean after the full check, so no
other lock has drifted and the fix is complete rather than the first of
several.
- Verified against master beforehand: the same command fails on
`origin/master` with the diff quoted above.

One note for anyone re-running this locally: `--all-configs`
intermittently dies on `503 Service Unavailable` from
`download.pytorch.org` while resolving the GPU configs (it hit
`.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and
unrelated — a retry passed. Worth distinguishing from a genuine lock
mismatch, since both surface as exit 1.

## Not a duplicate

No open PR touches this file. Checked the plausible candidates' file
lists directly rather than by title: ray-project#65305 (depset config JSON schema
validation), ray-project#65318 (wanda image rename), ray-project#65206 (dependabot bumping
aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than
a real deplock), ray-project#64885 (text_embedding release-test depset) — none of
them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/`
has exactly one commit in its history, ray-project#65114, which is the one that
introduced the drift. No commit has touched any deplock since
2026-08-05.

cc the author of ray-project#65114 for awareness, since this is their file.

## AI assistance

Prepared with AI assistance (Claude Code). I have reviewed the change
and can defend it: it is a mechanical regeneration, the diff is one
package plus its hashes, and the verification above is the same command
CI runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Ronny Roland <[email protected]>
Signed-off-by: 400Ping <[email protected]>
elliot-barn added a commit that referenced this pull request Sep 4, 2026
…(closes the py3.14 TODO)

ray_torch.depsets.yaml carried two copies of the same depset because
requirements_compiled_py3.14.txt pinned torch 2.7.0 (no cp314 wheels), so the
py3.14 image pinned torch itself in docker/ray-torch/torch-constraints-py3.14.txt.
With the snapshot on torch 2.10.0 every pin in that side file is supplied by the
snapshot, so the two entries collapse into one constrained by
requirements_compiled_py${PYTHON_VERSION}.txt and the side file is deleted.

Two changes were needed for the unified py3.14 depset to resolve:
- nvidia-nccl-cu12 in the py3.14 snapshot: 2.26.2 -> 2.27.5 (torch 2.10.0
  requires 2.27.5 exactly; matches requirements_compiled.txt / dl-cpu).
- jsonpatch==1.32 -> 1.33 in test-requirements.txt: langchain-text-splitters
  (in the ray-torch image since #65114) needs a langchain-core requiring
  jsonpatch>=1.33. 1.32 was a 2023 tier-split snapshot pin, 1.33 is the last
  release, and the only other consumer (cfn-lint) takes any version. This also
  removes the reason langchain-text-splitters was excluded from the py3.11
  ray-torch image, so that marker is dropped and both images match.

The py3.14 ray-torch lock, previously unconstrained apart from the side-file
pins, is now held to the py3.14 compiled snapshot like the py3.11 image is held
to requirements_compiled.txt (~109 lines move, mostly packages that used to
float). jsonpatch 1.33 flows into 37 locks.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn added a commit that referenced this pull request Oct 1, 2026
…ch 2.7 special case (#65909)

## Description

Bumps the repo-wide torch pin from **2.9.0 to 2.10.0** (torchvision
0.24.0 → 0.25.0) across CI, the release BYOD images and the compiled
constraints, and retires the Windows-only torch 2.7 special case that
the 2.9 pin forced.

Why now: torch 2.8/2.9 Windows wheels were built without libuv, so
`torch.distributed`'s gloo backend could not initialize on Windows
(pytorch/pytorch#150381). The fix (pytorch/gloo#472) ships in torch
2.10, and `windows-requirements.txt` carried the instruction *"Keep
Windows CI on 2.7.0 until the repo-wide torch pin reaches >=2.10, then
delete this file and the windows torch2.7 depsets."* This PR does
exactly that.

### Pins moved
- `python/requirements/ml/dl-cpu-requirements.txt`: `torch==2.10.0`,
`torchvision==0.25.0`, `torch-scatter==2.1.2+cpu.torch.2.10` (Astral),
`torch-sparse==0.6.18+pt210cpu` (PyG `torch-2.10.0+cpu` page).
`nvidia-nccl-cu12==2.27.5` is unchanged — torch 2.10.0+cu128 still
requires exactly that.
- `dl-gpu-requirements.txt`: `torch==2.10.0+cu128`,
`torchvision==0.25.0+cu128`, `torch-scatter==2.1.2+cu.12.8.torch.2.10`,
`torch-sparse==0.6.18+pt210cu128`.
- `data-test-requirements.txt`: `torchvision==0.25.0`; **`torchcodec`
cap flipped from `<0.10` to `>=0.10,<0.11`** — its `libtorchcodec` is
ABI-bound to a torch minor and declares no torch requirement, so the
line has to be pinned by hand: 0.9.x was built for torch 2.9 and would
fail to load, 0.10.x is the torch 2.10 line (lerobot 0.5.1 allows
`<0.11`).
- Release BYOD: `requirements_ml_byod_3.10.in` (`torch==2.10.0`,
`triton==3.6.0` — torch 2.10 requires triton 3.6),
`requirements_ml_byod_3.13.in` (`torch==2.10.0`),
`requirements_gpu_cu130.in` (`2.9.1` → `2.10.0`).
- `requirements_compiled_py3.14.txt`: `torch==2.10.0`,
`torchvision==0.25.0`, PyG find-links → `torch-2.10.0+cpu` — mirrored by
hand as always for this file. Note torch 2.10 is the first line with
cp314 wheels, so this snapshot's torch pin is now actually satisfiable
on py3.14 (it pinned 2.7.0, which has none); unifying
`docker/ray-torch/torch-constraints-py3.14.txt` onto it is a possible
follow-up, not done here.

### ray-torch image: py3.14 now shares the compiled constraints (closes
the TODO in `ray_torch.depsets.yaml`)
`ray_torch.depsets.yaml` carried two copies of the same depset because
`requirements_compiled_py3.14.txt` pinned torch 2.7.0 (no cp314 wheels),
so the py3.14 image had to pin torch itself in
`docker/ray-torch/torch-constraints-py3.14.txt`. With the snapshot on
2.10.0 every pin in that side file (`torch`, `torchvision`,
`cupy-cuda12x`, `llvmlite`, `numba`, `dm-tree`) is supplied identically
by the snapshot, so the two entries collapse into one constrained by
`/tmp/ray-deps/requirements_compiled_py${PYTHON_VERSION}.txt` and the
side file is deleted. Two things had to move for that to resolve:
- `nvidia-nccl-cu12` in the py3.14 snapshot: `2.26.2` → `2.27.5` — the
torch-2.7-era value was never mirrored; torch 2.10.0 requires 2.27.5
exactly (same as `requirements_compiled.txt` /
`dl-cpu-requirements.txt`).
- **Effect on the py3.14 ray-torch lock:** it was previously
unconstrained apart from the six side-file pins, so ~100 of its packages
floated to whatever was newest at compile time; they are now held to the
py3.14 compiled snapshot the same way the py3.11 image is held to
`requirements_compiled.txt`. Most of the ~109 moved lines are exactly
that (e.g. `pytest` 9.0.3 → 8.3.3, `numpy` 2.4.6 → 2.3.3,
`sentence-transformers` 5.5.1 → 3.0.1). Caveat worth knowing:
`requirements_compiled_py3.14.txt` is a hand-maintained snapshot and
differs from `requirements_compiled.txt` in 28 of 607 shared pins (mixed
direction — `transformers` 4.36.2 vs 5.11.0 and `datasets` 3.6.0 vs
4.8.5 older, `numpy`/`pytest`/`urllib3`/`grpcio`/`pydantic` newer) plus
15 py3.14-only pins, so the two ray-torch images are aligned in *policy*
but not yet byte-for-byte in versions. Refreshing that snapshot toward
`requirements_compiled.txt` (now that torch 2.10 makes it possible) is
the natural follow-up. The py3.11 lock only gains
`langchain-text-splitters` and its closure plus the jsonpatch bump.
- **`jsonpatch==1.32` → `1.33`** in `test-requirements.txt`.
`langchain-text-splitters` (in the ray-torch image since #65114) needs a
`langchain-core` requiring `jsonpatch>=1.33`; 1.32 was a 2023 tier-split
snapshot pin (#36808), 1.33 is the last release, and the only other
consumer (`cfn-lint`) takes any version. This also removes the reason
`langchain-text-splitters` was excluded from the py3.11 ray-torch image,
so that `python_version >= "3.12"` marker is dropped and both images
match.

### Windows special case removed
- `python/requirements/windows-requirements.txt` deleted.
- `ci_windows.depsets.yaml`: `relaxed_windows_tests_ci_depset` and
`windows_tests_torch27_ci_depset` removed; their two locks deleted.
- `ci/docker/windows.build.wanda.yaml` and
`ci/ray_ci/windows/build_base.sh` now consume
`windows-tests-ci_depset_py3.10.lock` directly (the lock the torch27 one
was derived from).

### Not moved (deliberately)
- LLM stack (`python/requirements/llm`, `python/deplocks/llm/*`): pinned
by `vllm==0.27.0` to torch 2.13; independent of this pin.
- `doc/source/templates/**` (torch 2.0.1): legacy template examples, out
of scope.
- `docker/ray-torch/torch-constraints-py3.14.txt` already pins torch
2.10.0 / torchvision 0.25.0.

### What moved in the locks
Aggregated across the 38 changed locks — nothing outside torch's own
closure: `torch` 2.9.0→2.10.0 (+cpu/+cu128), `torchvision`
0.24.0→0.25.0, `torch-scatter`/`torch-sparse` to the torch-2.10 builds,
`triton` 3.5.0→3.6.0 (13 GPU locks), `torchcodec` 0.9.1→0.10.0 (3 data
locks), `nvidia-nvshmem-cu12` 3.3.20→3.4.5 (13 GPU locks), and the
`cuda-bindings`/`cuda-python`/`cuda-pathfinder` set that torch 2.10's
cu128 wheel pulls in (torch 2.10.0+cu128 declares
`cuda-bindings==12.9.4` exactly, which brings `cuda-pathfinder` and
moves the five py3.12 GPU locks that previously resolved
`cuda-bindings`/`cuda-python` 12.9.6 down to 12.9.4). `deepspeed` stays
`0.18.9`.

### Verified locally
- torch 2.10.0 has cp310/cp312/cp314 wheels on
`download.pytorch.org/whl/{cpu,cu128,cu130}` and win_amd64 on PyPI;
torchvision 0.25.0 likewise (and the repo's ray-torch py3.14 constraints
already pair 2.10.0 with 0.25.0).
- PyG publishes `torch_sparse 0.6.18+pt210{cpu,cu128}` for cp310/cp312
(linux + win); Astral publishes `torch-scatter 2.1.2+cpu.torch.2.10` /
`+cu.12.8.torch.2.10`.
- No caps in the way: `torchtext 0.18.0` requires `torch>=2.3.0`;
`pytorch-lightning 1.8.6` requires `torch>=1.9.0`; `torchft-nightly`
requires `torch>=2.7`.
- `./ci/ci.sh compile_pip_dependencies` → exit 0; diff vs base is
exactly the find-links URL, `torch==2.10.0`, `torchvision==0.25.0`
- `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit
0, 105 depsets; 38 locks modified, 2 deleted (the Windows torch27 pair);
every non-LLM lock now pins `torch==2.10.0`
- `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`
→ exit 0, all 105 depsets regenerate byte-identically

Follows #65899 (Astral index / PyG cleanup), which has merged; this PR
is rebased on top of it.

## Related issues

pytorch/pytorch#150381, pytorch/gloo#472. Follows #65899.

## Additional information

Not a duplicate: open dependabot PRs (#64868, #64860, #64005) bump torch
in single requirement files without the Windows/PyG/torchcodec/lock
changes, and each carries a failing check; no open PR bumps the fleet
pin coherently.

AI assistance (Claude Code) was used for this change; every changed line
was reviewed by the submitter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…ect#65114)

## Description

Adds a **ray-torch** release test image, extracted from the py3.14
release testing branch (ray-project#63270). This image bundles torch + common ML
test dependencies (no vllm, which has no py3.14 wheels yet) on top of
the ray py3.14 cu12.8 base, so release tests can be run against Python
3.14 where the ray-ml image is not available. This is crucial for
verifying the py3.14 images work.

### Changes
- `docker/ray-torch/`: Dockerfile, cuda wanda spec, and torch
requirements
- `ci/raydepsets/configs/ray_torch.depsets.yaml` + compiled lock
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` (expand of
`ray_img_depset_314` against the cu128 torch index, regenerated against
current master)
- `.buildkite/release/build.rayci.yml`: `ray-torchcudabase`,
`ray-torch-anyscale-cuda-build`, and `anyscaletorchcudabuild` publish
steps (py3.14 / cu12.8.1-cudnn)
- `ci/ray_ci/oss_config.yaml` + `ray_release`: support for the
`torch-cu128` BYOD type (`anyscale/ray-torch` repo, py3.14 only)
- `release/release_tests.yaml`: new manual-frequency
`torch_local_mode_ray_torch` test — a variant of `torch_local_mode`
(smallest torch test from the ray-project#63270 port list, no extra deps) running
on the ray-torch image via the `torch-cu128` BYOD type, so the image is
exercised end to end. The existing test is unchanged. **Verified passing
on the release pipeline: [build
#103115](https://buildkite.com/ray-project/release/builds/103115)**
(image build, publish, and test all green).

## Related issues

Extracted from ray-project#63270 (py3.14 release testing, DO NOT MERGE branch) so
the image lands on master independently.

## Additional information

AI-assisted (Claude Code); all changes reviewed by the submitter. Not
duplicating open work: ray-project#63270 is a closed testing-only branch and no
other open PR adds this image.

Tests run locally:
- `pytest release/ray_release/tests/test_global_config.py
release/ray_release/tests/test_test.py
release/ray_release/tests/test_config.py` — pass
- `bazel run //ci/raydepsets:raydepsets -- build
ci/raydepsets/configs/ray_torch.depsets.yaml --check` — lock files up to
date
- `pre-commit run` on changed files — pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…ject#65343)

## Summary

Regenerates
`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has
been failing `raydepsets --check` since 2026-08-05.

ray-project#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was
published on 2026-07-23 — before that PR landed. A fresh `uv pip
compile` therefore resolves 3.14.3, and `build: raydepsets: compile all
dependencies` reports the committed lock as out of date:

```
--- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
+++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock
@@ -13,127 +13,126 @@
-aiohttp==3.13.5
+aiohttp==3.14.3
```

`aiohttp` is the only package that moves. The rest of the diff is its
hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@`
hunk the checker produced.

## Why this went unnoticed for five days

The check is gated on the `python_dependencies` tag
(`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by
touching `python/deplocks/`, `ci/raydepsets/configs/` or
`python/requirements*`. **1 of the last 40 premerge builds ran the step
at all.** So almost nothing trips it, and the PRs that do inherit an
unrelated red X, because the step runs `--all-configs` and checks every
lock in the repo rather than the one the PR edited.

Postmerge ignores tags, so it is also failing there — including on
`releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0
release path.

## Testing

Regenerated with the depset's own config rather than by hand, so the
output is whatever the checker computes:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build \
  ci/raydepsets/configs/ray_torch.depsets.yaml \
  --name ray_torch_cu128_base_depset_314
```

Then the full gate, exactly as CI runs it:

```bash
bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check
```

- **Passes** (exit 0) with this change applied.
- Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is
modified — `git status` is otherwise clean after the full check, so no
other lock has drifted and the fix is complete rather than the first of
several.
- Verified against master beforehand: the same command fails on
`origin/master` with the diff quoted above.

One note for anyone re-running this locally: `--all-configs`
intermittently dies on `503 Service Unavailable` from
`download.pytorch.org` while resolving the GPU configs (it hit
`.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and
unrelated — a retry passed. Worth distinguishing from a genuine lock
mismatch, since both surface as exit 1.

## Not a duplicate

No open PR touches this file. Checked the plausible candidates' file
lists directly rather than by title: ray-project#65305 (depset config JSON schema
validation), ray-project#65318 (wanda image rename), ray-project#65206 (dependabot bumping
aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than
a real deplock), ray-project#64885 (text_embedding release-test depset) — none of
them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/`
has exactly one commit in its history, ray-project#65114, which is the one that
introduced the drift. No commit has touched any deplock since
2026-08-05.

cc the author of ray-project#65114 for awareness, since this is their file.

## AI assistance

Prepared with AI assistance (Claude Code). I have reviewed the change
and can defend it: it is a mechanical regeneration, the diff is one
package plus its hashes, and the verification above is the same command
CI runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Ronny Roland <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…ch 2.7 special case (ray-project#65909)

## Description

Bumps the repo-wide torch pin from **2.9.0 to 2.10.0** (torchvision
0.24.0 → 0.25.0) across CI, the release BYOD images and the compiled
constraints, and retires the Windows-only torch 2.7 special case that
the 2.9 pin forced.

Why now: torch 2.8/2.9 Windows wheels were built without libuv, so
`torch.distributed`'s gloo backend could not initialize on Windows
(pytorch/pytorch#150381). The fix (pytorch/gloo#472) ships in torch
2.10, and `windows-requirements.txt` carried the instruction *"Keep
Windows CI on 2.7.0 until the repo-wide torch pin reaches >=2.10, then
delete this file and the windows torch2.7 depsets."* This PR does
exactly that.

### Pins moved
- `python/requirements/ml/dl-cpu-requirements.txt`: `torch==2.10.0`,
`torchvision==0.25.0`, `torch-scatter==2.1.2+cpu.torch.2.10` (Astral),
`torch-sparse==0.6.18+pt210cpu` (PyG `torch-2.10.0+cpu` page).
`nvidia-nccl-cu12==2.27.5` is unchanged — torch 2.10.0+cu128 still
requires exactly that.
- `dl-gpu-requirements.txt`: `torch==2.10.0+cu128`,
`torchvision==0.25.0+cu128`, `torch-scatter==2.1.2+cu.12.8.torch.2.10`,
`torch-sparse==0.6.18+pt210cu128`.
- `data-test-requirements.txt`: `torchvision==0.25.0`; **`torchcodec`
cap flipped from `<0.10` to `>=0.10,<0.11`** — its `libtorchcodec` is
ABI-bound to a torch minor and declares no torch requirement, so the
line has to be pinned by hand: 0.9.x was built for torch 2.9 and would
fail to load, 0.10.x is the torch 2.10 line (lerobot 0.5.1 allows
`<0.11`).
- Release BYOD: `requirements_ml_byod_3.10.in` (`torch==2.10.0`,
`triton==3.6.0` — torch 2.10 requires triton 3.6),
`requirements_ml_byod_3.13.in` (`torch==2.10.0`),
`requirements_gpu_cu130.in` (`2.9.1` → `2.10.0`).
- `requirements_compiled_py3.14.txt`: `torch==2.10.0`,
`torchvision==0.25.0`, PyG find-links → `torch-2.10.0+cpu` — mirrored by
hand as always for this file. Note torch 2.10 is the first line with
cp314 wheels, so this snapshot's torch pin is now actually satisfiable
on py3.14 (it pinned 2.7.0, which has none); unifying
`docker/ray-torch/torch-constraints-py3.14.txt` onto it is a possible
follow-up, not done here.

### ray-torch image: py3.14 now shares the compiled constraints (closes
the TODO in `ray_torch.depsets.yaml`)
`ray_torch.depsets.yaml` carried two copies of the same depset because
`requirements_compiled_py3.14.txt` pinned torch 2.7.0 (no cp314 wheels),
so the py3.14 image had to pin torch itself in
`docker/ray-torch/torch-constraints-py3.14.txt`. With the snapshot on
2.10.0 every pin in that side file (`torch`, `torchvision`,
`cupy-cuda12x`, `llvmlite`, `numba`, `dm-tree`) is supplied identically
by the snapshot, so the two entries collapse into one constrained by
`/tmp/ray-deps/requirements_compiled_py${PYTHON_VERSION}.txt` and the
side file is deleted. Two things had to move for that to resolve:
- `nvidia-nccl-cu12` in the py3.14 snapshot: `2.26.2` → `2.27.5` — the
torch-2.7-era value was never mirrored; torch 2.10.0 requires 2.27.5
exactly (same as `requirements_compiled.txt` /
`dl-cpu-requirements.txt`).
- **Effect on the py3.14 ray-torch lock:** it was previously
unconstrained apart from the six side-file pins, so ~100 of its packages
floated to whatever was newest at compile time; they are now held to the
py3.14 compiled snapshot the same way the py3.11 image is held to
`requirements_compiled.txt`. Most of the ~109 moved lines are exactly
that (e.g. `pytest` 9.0.3 → 8.3.3, `numpy` 2.4.6 → 2.3.3,
`sentence-transformers` 5.5.1 → 3.0.1). Caveat worth knowing:
`requirements_compiled_py3.14.txt` is a hand-maintained snapshot and
differs from `requirements_compiled.txt` in 28 of 607 shared pins (mixed
direction — `transformers` 4.36.2 vs 5.11.0 and `datasets` 3.6.0 vs
4.8.5 older, `numpy`/`pytest`/`urllib3`/`grpcio`/`pydantic` newer) plus
15 py3.14-only pins, so the two ray-torch images are aligned in *policy*
but not yet byte-for-byte in versions. Refreshing that snapshot toward
`requirements_compiled.txt` (now that torch 2.10 makes it possible) is
the natural follow-up. The py3.11 lock only gains
`langchain-text-splitters` and its closure plus the jsonpatch bump.
- **`jsonpatch==1.32` → `1.33`** in `test-requirements.txt`.
`langchain-text-splitters` (in the ray-torch image since ray-project#65114) needs a
`langchain-core` requiring `jsonpatch>=1.33`; 1.32 was a 2023 tier-split
snapshot pin (ray-project#36808), 1.33 is the last release, and the only other
consumer (`cfn-lint`) takes any version. This also removes the reason
`langchain-text-splitters` was excluded from the py3.11 ray-torch image,
so that `python_version >= "3.12"` marker is dropped and both images
match.

### Windows special case removed
- `python/requirements/windows-requirements.txt` deleted.
- `ci_windows.depsets.yaml`: `relaxed_windows_tests_ci_depset` and
`windows_tests_torch27_ci_depset` removed; their two locks deleted.
- `ci/docker/windows.build.wanda.yaml` and
`ci/ray_ci/windows/build_base.sh` now consume
`windows-tests-ci_depset_py3.10.lock` directly (the lock the torch27 one
was derived from).

### Not moved (deliberately)
- LLM stack (`python/requirements/llm`, `python/deplocks/llm/*`): pinned
by `vllm==0.27.0` to torch 2.13; independent of this pin.
- `doc/source/templates/**` (torch 2.0.1): legacy template examples, out
of scope.
- `docker/ray-torch/torch-constraints-py3.14.txt` already pins torch
2.10.0 / torchvision 0.25.0.

### What moved in the locks
Aggregated across the 38 changed locks — nothing outside torch's own
closure: `torch` 2.9.0→2.10.0 (+cpu/+cu128), `torchvision`
0.24.0→0.25.0, `torch-scatter`/`torch-sparse` to the torch-2.10 builds,
`triton` 3.5.0→3.6.0 (13 GPU locks), `torchcodec` 0.9.1→0.10.0 (3 data
locks), `nvidia-nvshmem-cu12` 3.3.20→3.4.5 (13 GPU locks), and the
`cuda-bindings`/`cuda-python`/`cuda-pathfinder` set that torch 2.10's
cu128 wheel pulls in (torch 2.10.0+cu128 declares
`cuda-bindings==12.9.4` exactly, which brings `cuda-pathfinder` and
moves the five py3.12 GPU locks that previously resolved
`cuda-bindings`/`cuda-python` 12.9.6 down to 12.9.4). `deepspeed` stays
`0.18.9`.

### Verified locally
- torch 2.10.0 has cp310/cp312/cp314 wheels on
`download.pytorch.org/whl/{cpu,cu128,cu130}` and win_amd64 on PyPI;
torchvision 0.25.0 likewise (and the repo's ray-torch py3.14 constraints
already pair 2.10.0 with 0.25.0).
- PyG publishes `torch_sparse 0.6.18+pt210{cpu,cu128}` for cp310/cp312
(linux + win); Astral publishes `torch-scatter 2.1.2+cpu.torch.2.10` /
`+cu.12.8.torch.2.10`.
- No caps in the way: `torchtext 0.18.0` requires `torch>=2.3.0`;
`pytorch-lightning 1.8.6` requires `torch>=1.9.0`; `torchft-nightly`
requires `torch>=2.7`.
- `./ci/ci.sh compile_pip_dependencies` → exit 0; diff vs base is
exactly the find-links URL, `torch==2.10.0`, `torchvision==0.25.0`
- `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit
0, 105 depsets; 38 locks modified, 2 deleted (the Windows torch27 pair);
every non-LLM lock now pins `torch==2.10.0`
- `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`
→ exit 0, all 105 depsets regenerate byte-identically

Follows ray-project#65899 (Astral index / PyG cleanup), which has merged; this PR
is rebased on top of it.

## Related issues

pytorch/pytorch#150381, pytorch/gloo#472. Follows ray-project#65899.

## Additional information

Not a duplicate: open dependabot PRs (ray-project#64868, ray-project#64860, ray-project#64005) bump torch
in single requirement files without the Windows/PyG/torchcodec/lock
changes, and each carries a failing check; no open PR bumps the fleet
pin coherently.

AI assistance (Claude Code) was used for this change; every changed line
was reviewed by the submitter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant