Repository navigation
[image] add base-extra layer - #55513
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new 'cloud extra' Docker image that includes additional dependencies for cloud environments. This is achieved by adding a new Dockerfile and updating the Buildkite CI configuration. The changes also involve refactoring the dependency compilation process, notably by pinning grpcio-tools.
While the overall direction is good, I've found a critical issue with the image tagging in the Wanda configuration that could lead to overwriting the base image. I've also pointed out some areas for improvement in the new Dockerfile regarding deprecated commands and potential base image mismatches, as well as some confusing file naming in the CI configuration that could affect maintainability. Please review the comments for details.
923652e to
bbf0459
Compare
88a3017 to
6c316a3
Compare
6c316a3 to
9f76dff
Compare
52684c7 to
c341ab9
Compare
Signed-off-by: Lonnie Liu <[email protected]>
c341ab9 to
6c28969
Compare
this the layer required to run on anyscale cloud and for running in ray release tests. we have been sourcing this layer from a tarball in s3; this change builds it from the source. Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: Andrew Grosser <[email protected]>
this the layer required to run on anyscale cloud and for running in ray release tests. we have been sourcing this layer from a tarball in s3; this change builds it from the source. Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: jugalshah291 <[email protected]>
this the layer required to run on anyscale cloud and for running in ray release tests. we have been sourcing this layer from a tarball in s3; this change builds it from the source. Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Original PR #55513 by aslonnie Original: ray-project/ray#55513
Merged from original PR #55513 Original: ray-project/ray#55513
## Why The CPU `base-extra` images pin EFA installer 1.42.0, which ships libfabric 2.1. AWS Neuron collectives on Trainium2 refuse to load against it: ``` NET/Plugin: Error: libnccom-net.so load failed due to unsupported libfabric version. Installed libfabric version is currently 2.1. ``` so cross-node collectives over EFA fail in containers built on the CPU images (reported on `anyscale/ray:2.59.0-py313`). The host AMI already runs EFA installer 1.51.0 (libfabric 2.7), and rebuilding the image with EFA installer 1.51.0 fixed the Trainium2 test. The 1.42.0 pin was the latest release when the `base-extra` layer was added (#55513) and has not been changed since. 1.51.0 is the newest EFA installer release. ## What changed - `docker/base-extra/Dockerfile`: CPU branch `EFA_VERSION` 1.42.0 -> 1.51.0. Only the CPU branch changes. The CUDA images build aws-ofi-nccl from source against the EFA installer's libfabric and OpenMPI, so bumping them needs a matching aws-ofi-nccl version and a multi-node NCCL run on EFA hardware. That is left for a follow-up. Note for that follow-up: EFA installer 1.51.0 also installs its own aws-ofi-nccl (`libnccl-ofi` 1.22.0 under `/opt/amazon/ofi-nccl`), which would sit next to the one the Dockerfile builds into `/usr/local`. Not a duplicate: no open PR touches the EFA pins (`gh pr list --state open --search "EFA in:title"` / `"efa installer"` return nothing). ## Testing - `pre-commit` on the commit: passed. - `docker build -f docker/base-extra/Dockerfile --build-arg BASE_IMAGE=rayproject/ray:2.59.0-py313-cpu --build-arg PYTHON_VERSION=3.13 .`: built successfully. In the built image: - `/opt/amazon/efa/bin/fi_info --version`: `libfabric: 2.7.0amzn2.0`, `libfabric api: 2.7` (was 2.1 with 1.42.0). - `/opt/amazon/efa_installed_packages`: EFA installer 1.51.0, `libfabric1-aws 2.7.0amzn2.0`, `libnccl-ofi 1.22.0`, `openmpi40-aws 4.1.8`, `openmpi50-aws 5.0.9`. This matches the versions on the current GA AMI. - `import ray` works (2.59.0). - Trainium2 cross-node collectives were verified separately on an image rebuilt with EFA installer 1.51.0. AI assistance (Claude Code) was used to prepare this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
this the layer required to run on anyscale cloud and for running in ray release tests.
we have been sourcing this layer from a tarball in s3; this change builds it from the source.