-
Notifications
You must be signed in to change notification settings - Fork 0
[XPU] Upgrade NIXL to remove CUDA dependency #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -69,4 +69,9 @@ RUN --mount=type=cache,target=/root/.cache/pip \ | |||||
|
|
||||||
| # install development dependencies (for testing) | ||||||
| RUN python3 -m pip install -e tests/vllm_test_utils | ||||||
|
|
||||||
| # install nixl from source code | ||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
test2 |
||||||
| RUN python3 /workspace/vllm/tools/install_nixl_from_source_ubuntu.py | ||||||
| ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/python3.12/dist-packages/.nixl.mesonpy.libs/plugins/" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The hardcoded Python version ( To make this more robust, I recommend determining the path dynamically. A good way to achieve this is by using a shell-based For example, you could replace this # (remove the ENV line for LD_LIBRARY_PATH)
...
ENTRYPOINT ["/bin/bash", "-c", "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(python3 -c 'import site; print(site.getsitepackages()[0])')/.nixl.mesonpy.libs/plugins/ exec vllm serve \"$@\"", "vllm-serve"]This approach avoids hardcoding the Python version and makes the Docker image more maintainable. |
||||||
|
|
||||||
| ENTRYPOINT ["vllm", "serve"] | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test review 1