Repository navigation
[deps] Add python3.12/cuda12.9 ray llm CI and release images - #61149
Conversation
Signed-off-by: Jeffrey Wang <[email protected]>
There was a problem hiding this comment.
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.
| setup: | ||
| python: | ||
| - "3.11" | ||
| - "3.12" | ||
| cuda: | ||
| - "12.8.1-cudnn" | ||
| - "12.9.1-cudnn" |
There was a problem hiding this comment.
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"| 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 |
There was a problem hiding this comment.
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
| BASE_TYPE: "cu129" | ||
| BUILD_VARIANT: "gpubuild-py312" | ||
| RAY_CUDA_CODE: "cu129" | ||
| tags: cibase |
There was a problem hiding this comment.
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.
Signed-off-by: Jeffrey Wang <[email protected]>
f6ba225 to
e33f17b
Compare
Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: Jeffrey Wang <[email protected]>
## 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]>
## 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]>


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
Additional information