Skip to content

[deps] Add python3.12/cuda12.9 ray llm CI and release images - #61149

Merged
aslonnie merged 5 commits into
masterfrom
py312-ray-llm-image
Feb 19, 2026
Merged

aslonnie merged 5 commits into
masterfrom
py312-ray-llm-image

Conversation

@jeffreywang88

@jeffreywang88 jeffreywang88 commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Following up #61116, in this PR, we introduce python3.12/cuda12.9 ray LLM release and CI images. Note that the existing python3.11/cuda12.8 LLM images are kept.

Related issues

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

Additional information

Screenshot 2026-02-18 at 4 53 55 PM

@jeffreywang88
jeffreywang88 requested a review from a team as a code owner February 18, 2026 22:01

@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 adds support for Python 3.12 and CUDA 12.9 for Ray LLM CI and release images. The changes are mostly in Buildkite CI configuration files and Dockerfiles. My main feedback is regarding the matrix build configurations in several YAML files. They are currently set up to create a Cartesian product of Python and CUDA versions, which results in unnecessary and likely failing build jobs. I've suggested changing these to use explicit pairs of versions. I also have a suggestion to refactor a conditional block in the ray-llm Dockerfile for better readability and maintainability.

Comment thread .buildkite/_images.rayci.yml Resolved
Comment thread .buildkite/build.rayci.yml Resolved
Comment thread .buildkite/build.rayci.yml Resolved
Comment on lines 40 to +46
setup:
python:
- "3.11"
- "3.12"
cuda:
- "12.8.1-cudnn"
- "12.9.1-cudnn"

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.

high

The current matrix setup creates a Cartesian product of Python and CUDA versions, leading to unintended and likely failing build combinations (e.g., Python 3.11 with CUDA 12.9). To ensure builds only run for the intended pairs (py3.11-cuda12.8, py3.12-cuda12.9), you should define the matrix as a list of explicit pairs. This will also make the CI more efficient by avoiding unnecessary jobs.

      - python: "3.11"
        cuda: "12.8.1-cudnn"
      - python: "3.12"
        cuda: "12.9.1-cudnn"

Comment thread .buildkite/release/build.rayci.yml Resolved
Comment thread docker/ray-llm/Dockerfile
Comment on lines +19 to 28
if [[ "${PYTHON_CODE}" == "py311" ]]; then
CUDA_CODE=cu128
NVSHMEM_VER=3.3.20
elif [[ "${PYTHON_CODE}" == "py312" ]]; then
CUDA_CODE=cu129
NVSHMEM_VER=3.3.20
else
echo "ray-llm supports Python 3.11 and 3.12 only (this image is ${PYTHON_CODE})."
exit 1
fi

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

For better readability and maintainability, consider using a case statement instead of if/elif/else for matching the Python version. This makes it clearer what happens for each version and easier to add new versions in the future. Also, NVSHMEM_VER is the same for both versions and can be defined once outside the conditional block.

NVSHMEM_VER=3.3.20
case "${PYTHON_CODE}" in
    py311)
        CUDA_CODE=cu128
        ;;
    py312)
        CUDA_CODE=cu129
        ;;
    *)
        echo "ray-llm supports Python 3.11 and 3.12 only (this image is ${PYTHON_CODE})."
        exit 1
        ;;
esac

@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 and found 3 potential issues.

Comment thread .buildkite/build.rayci.yml Resolved
Comment thread ci/docker/ray-image.Dockerfile Resolved
Comment thread .buildkite/llm.rayci.yml
BASE_TYPE: "cu129"
BUILD_VARIANT: "gpubuild-py312"
RAY_CUDA_CODE: "cu129"
tags: cibase

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 oss-ci-base_cu129 CI base image definition

High Severity

The new llmgpubuild-py312 step depends on oss-ci-base_cu129-multipy and sets BASE_TYPE: "cu129", but no such CI base image is defined anywhere in the codebase. Only oss-ci-base_cu128-multipy exists in base.rayci.yml, and there's no base.cu129.wanda.yaml. The pipeline will fail because the dependency step doesn't exist, and the corresponding Docker base image (oss-ci-base_cu129-py3.12) has never been built.

Fix in Cursor Fix in Web

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: Jeffrey Wang <[email protected]>
@jeffreywang88 jeffreywang88 added the go add ONLY when ready to merge, run all tests label Feb 18, 2026
@ray-gardener ray-gardener Bot added the community-contribution Contributed by the community label Feb 19, 2026
@aslonnie
aslonnie merged commit 25b8dd0 into master Feb 19, 2026
3 checks passed
@aslonnie
aslonnie deleted the py312-ray-llm-image branch February 19, 2026 02:33
aslonnie pushed a commit that referenced this pull request Mar 5, 2026
## Description
vLLM is moving to py312 + cuda13, and we'd like to adapt ray-llm CI
environment to match that.
- Add depsets for py312 + cuda13
- Remove py312 + cuda12.9 depsets and ray-llm CI / release images
introduced in #61116 and
#61149 respectively. Images are
removed together because they depend on py312 + cuda12.9 depsets.

### Follow up
Introduce CUDA 13 images for ray-llm and core-gpu:
#61497

## 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: Jeffrey Wang <[email protected]>
ParagEkbote pushed a commit to ParagEkbote/ray that referenced this pull request Mar 10, 2026
## Description
vLLM is moving to py312 + cuda13, and we'd like to adapt ray-llm CI
environment to match that.
- Add depsets for py312 + cuda13
- Remove py312 + cuda12.9 depsets and ray-llm CI / release images
introduced in ray-project#61116 and
ray-project#61149 respectively. Images are
removed together because they depend on py312 + cuda12.9 depsets.

### Follow up
Introduce CUDA 13 images for ray-llm and core-gpu:
ray-project#61497

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

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

---------

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: Parag Ekbote <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-code-assisted community-contribution Contributed by the community go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

2 participants