Skip to content

[LLM] Bump to nixl==0.4.1#55671

Merged
kouroshHakha merged 11 commits intoray-project:masterfrom
lk-chen:bump_nixl_041
Aug 20, 2025
Merged

[LLM] Bump to nixl==0.4.1#55671
kouroshHakha merged 11 commits intoray-project:masterfrom
lk-chen:bump_nixl_041

Conversation

@lk-chen
Copy link
Contributor

@lk-chen lk-chen commented Aug 15, 2025

Why are these changes needed?

Use latest nixl, which should've resolved some perf. issues according to slack message.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Based on #55664

Signed-off-by: Linkun <github@lkchen.net>
Signed-off-by: Linkun <github@lkchen.net>
Signed-off-by: Linkun <github@lkchen.net>
Signed-off-by: Linkun <github@lkchen.net>
@lk-chen lk-chen requested a review from aslonnie August 15, 2025 22:16
Signed-off-by: Linkun <github@lkchen.net>
Copy link
Contributor

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

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 primarily bumps the nixl dependency to version 0.4.1 and UCX to 1.19.0. It also introduces support for darwin/aarch64 for the uv utility, which required changes to Bazel configurations and CI scripts. The dependency files have been updated accordingly. The changes are well-structured and address the goal of the pull request. I have a couple of suggestions to improve the robustness of the build process and simplify one of the shell scripts.

Comment on lines +108 to +112
actual = select({
"//:linux_x86_64": "@uv_x86_64-linux//:file",
"//:darwin_aarch64": "@uv_aarch64-darwin//:file",
"//conditions:default": "@uv_x86_64-linux//:file",
}),
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The use of //conditions:default to fall back to the linux_x86_64 binary might cause confusing runtime errors on unsupported platforms (e.g., linux_aarch64). When an unsupported platform is used, it will attempt to use the x86_64 binary and fail. It would be more robust to have the build fail explicitly during the analysis phase for unsupported platforms. Consider removing the default case, which will cause Bazel to error out if no condition matches, providing a clearer error to the user.

    actual = select({
        "//:linux_x86_64": "@uv_x86_64-linux//:file",
        "//:darwin_aarch64": "@uv_aarch64-darwin//:file",
    }),

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree we can scrap the default and error out if an supported platform is used

Copy link
Contributor

Choose a reason for hiding this comment

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

we do check and throw an error for unsupported platforms in raydepsets but I don't see the point in using a default here?

Comment on lines 15 to +17
cp python/requirements_compiled.txt /tmp/ray-deps/requirements_compiled.txt
sed -i '/^--extra-index-url /d' /tmp/ray-deps/requirements_compiled.txt
sed -i '/^--find-links /d' /tmp/ray-deps/requirements_compiled.txt
sed -e '/^--extra-index-url /d' -e '/^--find-links /d' /tmp/ray-deps/requirements_compiled.txt > /tmp/ray-deps/requirements_compiled.txt.tmp
mv /tmp/ray-deps/requirements_compiled.txt.tmp /tmp/ray-deps/requirements_compiled.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

These three lines can be simplified into a single sed command that reads from the source file and writes to the destination file. This avoids an intermediate copy and a temporary file, making the script cleaner and more efficient.

Suggested change
cp python/requirements_compiled.txt /tmp/ray-deps/requirements_compiled.txt
sed -i '/^--extra-index-url /d' /tmp/ray-deps/requirements_compiled.txt
sed -i '/^--find-links /d' /tmp/ray-deps/requirements_compiled.txt
sed -e '/^--extra-index-url /d' -e '/^--find-links /d' /tmp/ray-deps/requirements_compiled.txt > /tmp/ray-deps/requirements_compiled.txt.tmp
mv /tmp/ray-deps/requirements_compiled.txt.tmp /tmp/ray-deps/requirements_compiled.txt
sed -e '/^--extra-index-url /d' -e '/^--find-links /d' python/requirements_compiled.txt > /tmp/ray-deps/requirements_compiled.txt

@ray-gardener ray-gardener bot added the llm label Aug 16, 2025
@aslonnie aslonnie requested a review from elliot-barn August 16, 2025 01:46
Copy link
Collaborator

@aslonnie aslonnie left a comment

Choose a reason for hiding this comment

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

@elliot-barn could you help review?

Comment on lines +16 to +17
sed -e '/^--extra-index-url /d' -e '/^--find-links /d' /tmp/ray-deps/requirements_compiled.txt > /tmp/ray-deps/requirements_compiled.txt.tmp
mv /tmp/ray-deps/requirements_compiled.txt.tmp /tmp/ray-deps/requirements_compiled.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this change?

- --extra-index-url https://download.pytorch.org/whl/${CUDA_CODE}
append_flags:
- --python-version=3.11
- --python-platform=x86_64-manylinux_2_28
Copy link
Collaborator

Choose a reason for hiding this comment

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

we use manylinux2014, not 2_28

Copy link
Contributor

@elliot-barn elliot-barn left a comment

Choose a reason for hiding this comment

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

ran locally on my mac and looks good! I would just address Lonnie's comments, remove the uv_file alias default and ill approve

@lk-chen
Copy link
Contributor Author

lk-chen commented Aug 19, 2025

@elliot-barn All comments have been resolved in #55664 , I've merged that branch.

@lk-chen lk-chen added the go add ONLY when ready to merge, run all tests label Aug 19, 2025
@lk-chen lk-chen requested a review from aslonnie August 20, 2025 07:15
Copy link
Collaborator

@aslonnie aslonnie left a comment

Choose a reason for hiding this comment

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

this is just llm related dependency changes now. llm team can (and should) review it internally.

@lk-chen lk-chen requested a review from a team August 20, 2025 07:32
@kouroshHakha kouroshHakha merged commit 4205868 into ray-project:master Aug 20, 2025
5 checks passed
@lk-chen lk-chen deleted the bump_nixl_041 branch August 20, 2025 21:35
ljstrnadiii pushed a commit to ljstrnadiii/ray that referenced this pull request Aug 21, 2025
Signed-off-by: Linkun <github@lkchen.net>
ljstrnadiii pushed a commit to ljstrnadiii/ray that referenced this pull request Aug 21, 2025
Signed-off-by: Linkun <github@lkchen.net>
Signed-off-by: ljstrnadiii <ljstrnadiii@gmail.com>
alimaazamat pushed a commit to alimaazamat/ray that referenced this pull request Aug 21, 2025
Signed-off-by: Linkun <github@lkchen.net>
jugalshah291 pushed a commit to jugalshah291/ray_fork that referenced this pull request Sep 11, 2025
Signed-off-by: Linkun <github@lkchen.net>
Signed-off-by: jugalshah291 <shah.jugal291@gmail.com>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
Signed-off-by: Linkun <github@lkchen.net>
Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
Signed-off-by: Linkun <github@lkchen.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests llm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants